ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
What is the difference between gettoproperty and 
settoproperty?Explain with an example?
 Question Submitted By :: Anil
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between gettoproperty and settoproperty?Explain with an example?
Answer
# 1
gettoproperty are the standard testobjectproperties that do 
not chamnge during run time...In short Property whose value 
is retrieved from the object description. 
ObjectCount = Browser("Demo of Vo Object").Page("Demo of Vo 
Object").ActiveX("VoDemoFormX").DROPDOWN
("FLIGHTS").GetTOProperty("itemscount") 

SETOPROPERTY - Modifying Test Object Properties During a 
Run Session  

CHANGING THE NAME 
Browser("Demo of Vo Object").Page("Demo of Vo 
Object").ActiveX("VoDemoFormX").VirtualButton
("button").SetTOProperty "Name", 0
 
Is This Answer Correct ?    6 Yes 0 No
Dhananjay Vemuri
 
  Re: What is the difference between gettoproperty and settoproperty?Explain with an example?
Answer
# 2
'The following example uses the GetTOProperties method to 
retrieve
'the collection of properties and values used to identify 
the Calendar
'ActiveX object.

Set col = Browser("Flight").Page("Flight").ActiveX
("Calendar").GetTOProperties()

setTOproperty:
You can modify the properties of the temporary version of 
the object during the run session without affecting the 
permanent values in the object repository by adding a 
SetTOProperty statement in the Expert View. 

Use the following syntax for the SetTOProperty method: 

Object(description).SetTOProperty Property, Value
 
Is This Answer Correct ?    2 Yes 1 No
Siva Reddy (us)
 
 
 
  Re: What is the difference between gettoproperty and settoproperty?Explain with an example?
Answer
# 3
GetToProperty: Returns the value of a specified property 
from the test object description. 
Syntax: object.GetTOProperty (Property) 
Example: 
Sub GetTOProperty_Example() 
'The following example uses the GetTOProperty method to 
retrieve the 
'RegExpWndClass property from the Object Repository. 
Dim ObjectName 
RegExpWndClass = Window("Test").GetTOProperty
("RegExpWndClass") 
End Sub 

SetToProperty: Sets the value of the specified property in 
its test object description. 
Syntax: object.SetTOProperty Property, Val 
Example: 
Sub SetTOProperty_Example() 
'The following example uses the SetTOProperty method to set 
the 
'index of a window's description. 
Window("Test").SetTOProperty "Index", 2 
End Sub
 
Is This Answer Correct ?    2 Yes 0 No
Noor
 
  Re: What is the difference between gettoproperty and settoproperty?Explain with an example?
Answer
# 4
GetToProperty: 
eg: a=window("Flight Reservation").WinRadioButton
("Business").GetToProperty("checked") 
 msgbox a

SetTOProperty:
Suppose in first build, it was "OK" button and now in the 
modified buit it is "Yes" button.
you need to change the button name.
window("-----").WinButton("OK").SetTOProperty "Text", "Yes"

This will change the button name to "Yes".

Hope this helps....
 
Is This Answer Correct ?    3 Yes 0 No
Brinda
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what is the abbrivation of .mtr in action reposirtory? GE5
setroproperty and getroproperty difference Ordain-Solutions3
what is virtual object?  2
in order to start automation testing what we should require (entry level to automation testing)  2
Which version of QTP is using by companies nowadays?  2
How to launch application under test through VBscript without using systemutil.run or invokeapplication?  1
How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario. Arsin-Systems2
How many ways we can parameterize data in QTP ?  6
How to execute the test cases using QTP. i.e What is the use of QTP while execution  2
OPening of notedpad in QTP to write and execute the coding?  2
If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script  2
how do we add a new sheet to data table in QTP? Wipro5
Batch testing in howmany ways u perfrom in QTP Lehman-Brothers3
What is a Web Table? Kanbay4
How many actions we can write in a test? TCS5
what is smart identification?  6
How the automated tests in org Maintec1
I have the script like this: Browser("Philips Web Login").Page("Philips CL DMS2 Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. If i want to get that value "DC3701737" in to a variable, how? pls let me know if you didn't get the question. Help me out in this.  2
I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"  2
hi friends i was tried to connect qtp with oracle database using provider.i got a error.so anyone can help me out by correct script  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com