When to Insert transactions in QTP?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How to retrieve data from application objects?
Can anybody help me by sharing the code for checkbox in qtp using vbscript.
how to capture (or) checkpoint for chineese or any other language except english using QTP in a web page. ( my application have 24 language, how to check those lanugages using QTP? is it possible). Please let me know
Explain how qtp identifies objects?
How i can use and create Library functions in QTP and what is the proces .
what is meant by source control?
What is the vb script when the url enter into the browser
How many types of Automation frameworks are there in UFT? Describe them.
When we parameterise some field ex. Textbox is there any way that we can generate a specefic number of random values (For alphabetical values if possible) instead of manually entering values in the data table
How to analyzing test results using quicktest professional (qtp)?
for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b
How many types of Recordings are there in QTP and what are they?
7 Answers Dangote, First Indian Corporation,