Answer Posted / sridhar reddy
we use the transaction point in QTP to find out execution
time of the script(vb script)by using the start transaction
and end transaction points
note:Transactions can be defined only for tests.
Components cannot include transactions.
Example:
Services.StartTransaction "ReserveSeat"
Browser("Welcome: Mercury Tours").Page("Find a Flight:
Mercury").WebList("fromPort").Select "London"
Browser("Welcome: Mercury Tours").Page("Find a Flight:
Mercury").WebList("toPort").Select "Frankfurt"
Browser("Welcome: Mercury Tours").Page("Find a Flight:
Mercury").WebList("toDay").Select "12"
Browser("Welcome: Mercury Tours").Page("Find a Flight:
Mercury").WebRadioGroup("servClass").Select "Business"
Browser("Welcome: Mercury Tours").Page("Find a Flight:
Mercury").WebList("airline").Select "Blue Skies Airlines"
Browser("Welcome: Mercury Tours").Page("Find a Flight:
Mercury").Image("findFlights").Click 65,12
Browser("Welcome: Mercury Tours").Page("Select a Flight:
Mercury").WebRadioGroup("outFlight").Select "Blue Skies
Airlines"
Browser("Welcome: Mercury Tours").Page("Select a Flight:
Mercury").WebRadioGroup("inFlight").Select "Blue Skies
Airlines"
Browser("Welcome: Mercury Tours").Page("Select a Flight:
Mercury").Image("reserveFlights").Click 46,8
Services.EndTransaction "ReserveSeat"
plz menction if any wrong is there in the answer
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
What is the Difference between copy to action and call to action?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
Explain QTP using different development techniques ?
Explain about the test fusion report of quicktest professional?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
How the exception handling can be done using quicktest professional (qtp)?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
Have you faced any problems with object repository?
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code
Is it possible to use two instances of UFT on the same machine? If not why?
I want to do QTP Certification what is the pattern of Question paper.
Is it possible to change the values of analog recording?
what is actually contain test report? can anybody post the test report
What is the difference between analog and low level recording?