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 the diff between Procedure and function

3 Answers   iFlex,


How to identify 2 versions of browsers based on regular expression

1 Answers   Cognizant,


We developed 100 descriptive programms and put in running, in the midle if any descriptive program is stucked with some error? what will happend weather it will execute the remaining prg's or it will terriminate ?

6 Answers   Kanbay,


How to open a new test using quicktest professional?

0 Answers  


what is the difference between IE & Netscape in web testing on a log in page

0 Answers   TCS,






how to click on object? (with out knowing the object details) for ex: in a webpage one link is available.i want to click that link by using one menthod through qtp?

3 Answers   Zensar,


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

0 Answers  


What are the differences between quicktest professional (qtp) and winrunner?

0 Answers  


What ate the Technologies supported by QTP?

0 Answers  


Explain advantages and disadvantages of ddf?

0 Answers  


Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

0 Answers  


What is wrong in my code?

3 Answers  


Categories