Using QTP checkpoint, where do you store your expected
Properties of the object which later compares with the
actual properties of the object???
Answer Posted / firoz shaik
Hi I am Firoz.
Think that, you have to verify the value of a text box,
Dim act, exp
exp = "Firoz"
' for ex, the expected value of the text value is Firoz
then store Firoz in a variable.
act = Browser("Browser").Page("Page").GetROProperty("value")
If Strcomp(Exp, Act, 1) = 0
Msgbox "The expected value"&exp"is same as Actual Value"&Act
else
Msgbox "The expected value"&exp"is not same as Actual
Value"&Act
End If
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to creating an output value using quicktest professional?
What is the Command used to start the QTP
How to customize checkpoints with parameters?
hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this
Generic function to search for the unique link in webtable and click on it
Thanks....But can u tell me how i use the QTP for GIS with one Example...
What is a reusable action?
What is checkpoints for qtp?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
What are the different ways to invoke an application using QTP?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
What is difference between design time and run time data table?
How can I import environment from a file on disk?
What is qtpro? What is quick test pro?