Ask a Question

How to handle descriptive programming in Test complete compare to QTP

SOLVED
Gan
Occasional Contributor

How to handle descriptive programming in Test complete compare to QTP

Hi ,

       How to handle descriptive programming in test complete, In Qtp without objects are stored in the repository, we developing the script where as Test complete reqired objects. below I added Example

if any other alternative solution could you please tell me.

 

Example:

 

Set testObj=sys.process.webbutton(example here i specifyed button object from Name mapping) /* this statement not required in QTP when write descriptive program drictlly specify the object property value in script*/
VarA=array("Class","Text")...chooses the class and text property of the button.
 
Varb=array("WebButton","Click Here")

we need to find the object for which we are searching

Set obj=testObj.Find(VarA,VarB,10)
    
If obj.Exists then
 
  obj.click
 
End if

 

 

Thanks and Regards

GA naidu

1 ACCEPTED SOLUTION

Accepted Solutions
Kamal_chennai
Contributor

Re: How to handle descriptive programming in Test complete compare to QTP

1 REPLY 1
Kamal_chennai
Contributor

Re: How to handle descriptive programming in Test complete compare to QTP

cancel
Showing results for 
Search instead for 
Did you mean: