ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Testing >> Automation Testing >> QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions (496)
 Load Runner interview questions  Load Runner Interview Questions (486)
 QTP interview questions  QTP Interview Questions (3506)
 Test Director interview questions  Test Director Interview Questions (161)
 Rational TestSuite interview questions  Rational TestSuite Interview Questions (106)
 Silk Test interview questions  Silk Test Interview Questions (59)
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions (386)
Question
what are SetToProperty, SetROProperty,GetToproperty 
scripting?
 Question Submitted By :: QTP
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
SetTOProperty – Basically is used to modify the properties
of current Test Object during run session without
permanently modifying the Properties. In short the changed
Properties would be applicable for the present run Session
alone.

Object.SetTOProperty Property, Value



GetTOProperty – A GetTOProperty method is used to retrieve
the value of a Test Object Property. Basically during a Run
Session, incase we need to find out the Property value for
any TestObject we use this method. It does not consider the
properties of the Object as displayed in the Application at
runtime.

VariableName = Browser(“”).Page(“”).WebEdit
(“”).GetTOProperty (“Name”)



A GetROProperty method is used to retrieve the Runtime
properties of an Object as displayed in an application. We
can retrieve the Current value of a Property for
TestObject. It is used to retrieve only Runtime properties.



A Set Property can be used to set a value to any variable
or set the Property value of any Object.
 
Is This Answer Correct ?    9 Yes 2 No
Rekha
 
Answer
# 2
There is a Object Repository in QTP for every test we
created, Every Object Repository has Test Objects for QTP
to recognize Objects we recorded in test.

every test object has properties
like "width","title","text"....... and Objects also have
Run time Properties when test is running.

The Get/SetToProperty means we can Get/set the Test
Objects' Property in Object Repository.

The SetRoProperty means we can set Object's Runtime Property
 
Is This Answer Correct ?    3 Yes 0 No
Vince.shu
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
I have action1, action2, action3 r there.my query is while executing if i get any error in action1 i want exit from here itself, otherwise execute action2, if i get any error in action2 i want exit from hereitself, like this,what is the method for this? AZTEC 5
What is Step generator in qtp? wt is the use? can u any body explain me? plz   1
How to create an Action Template?   1
I have one question as HP QTP is concern, Please send your answers..... Can we do testing of any application without using any of the framework which are we used in QTP tool. If yes then how it can be possible in the HP QTP tool. -- Regards ABC 1
What is wrong in my code?   3
Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I have parametrise the agentname and password field. So wen wromg agent name or password is entered it show a dialog box with proper message(Like: "Wrong Password" or :Please enter Password" etc) and OK button. I have created If else block. Now my problem is i want to make checkpoint on error message Dialog box. But each time i create a checkpoint it shows same text message. So how i can check that message is there or not.   2
diff between winrunner and qtp Wipro 1
Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance.. Sony 3
Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?   2
Can you give me the code to calculate the total number of Links using the child object in the web page..? is there any other way to calculate number of links with out using the Child objects.?? DST-Global-Solutions 2
What are Test case selection criteria for Automation?   2
take one exmple and write on that discriptive programe in qtp?   1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright © 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com