When to Insert transactions in QTP?

Answers were Sorted based on User's Feedback



When to Insert transactions in QTP?..

Answer / 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

When to Insert transactions in QTP?..

Answer / ramarao

By using transctions we can find how much time taken for
the script exection.
if we are start the script we can add start transction
; services .start transections
if end exection for the script
you can add services.end transctions

Is This Answer Correct ?    11 Yes 4 No

When to Insert transactions in QTP?..

Answer / kiran pakki

Hi All,

Can i use the start and end transitions for scripted component? I using BTP for SAP application testing. I want to use these transactions for to test the performance of my events. If not what is alternative.

Could any please answer ASAP.

Thanks in advance..
Regards
Kiran Pakki

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is system testing and what are the different types of tests you perform in system testing?

0 Answers  


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

0 Answers  


How to capture checkbox properties when properties of the object keep changing on relogin to the application.

0 Answers   TCS,


Explain the difference between check point and output value?

0 Answers  


how qtp handles customised object

1 Answers  






What is the difference between Call to Action and Copy Action.?

2 Answers  


I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

0 Answers  


What is output value?

3 Answers  


Could you please suggest a book to start with QTP and also a book for advanced concepts?

2 Answers  


How to modify object property in qtp ?

0 Answers  


Difference between keyword driven test and DDT?

1 Answers  


In how may ways we can use checkpoints to an application using QTP?

3 Answers  


Categories