GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  LoadRunner
Go To First  |  Previous Question  |  Next Question 
 LoadRunner  |  Question 24 of 143    Print  
what is the difference between lr_endtranscation("transcationname",lr_auto)
lr_endtranscation("transcationname",lr_pass)lr_endtranscation("transcationname",lr_fail)

  
Total Answers and Comments: 1 Last Update: June 11, 2007     Asked by: maheswar 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 11, 2007 05:05:19   #1  
crespoe2006 Member Since: June 2007   Contribution: 13    

RE: what is the difference between lr_endtranscation("...

Hi


You can manually set the status of the transaction or you can allow LoadRunner to detect it automatically. To manually set the status you perform a manual check within the code of your script evaluating the return code of a function. For the "succeed" return code set the status to LR_PASS. For a "fail" return code set the status to LR_FAIL.

If status is LR_AUTO then the value of status is automatically assigned by LoadRunner.

For example: Just calling a function to a variable

sstatus CheckString() //return 0 if passed


if(sstatus 0)

lr_end_transaction("parent handle" LR_PASS)

else

lr_end_transaction("parent_handle" LR_FAIL)


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : The purpose of these two is not the same in LR scripts. Transaction is used to specify the end of transaction. Whereas transaction instance is used for performance analysis. In the transaction instance you can capture the whether transaction has been ...
Read Answers (2) | Asked by : pml chaitanya

What is the difference between lr_endtranscation("transcationname",lr_auto)lr_endtranscation("transcationname",lr_pass)lr_endtranscation("transcationname",lr_fail)
Read Answers (1) | Asked by : maheswar

Latest Answer : Protocol is the language in which your client system communicates with your backend systems (web servers, application servers, Database servers). It can be C++, Java, .Net or etc. It may be possible that using the LR we can create complex protocol VUuser ...

Latest Answer : Hits/second are the number of HTTP requests made by VUsers to the Web Server in a scenario or session step run on a per second basis.Requests/second are the number of requests completed during each second of scenario run. ...

What is difference between Manual Scenario and Goal Oriented Scenario? 
Latest Answer : Manual Scenario: You have to control the vusers and execution of scenario. Here we have to define How many Vusers to run for each script? How much Duration it has to run? How the vusers needs to ramp Up? How the Vusers needs to ramp down? Goal ...
Read Answers (2) | Asked by : panni

What is the difference in running the vuser as a script and as a thread? Which is more advantageous way of running vuser? 
Latest Answer : If Vuser is run as a process, the same driver program is loaded into memory for each Vuser, thus taking up a large amount of memory. This limits the no. of Vuser that can be run on a single generator. If the Vuser is run as a thread, only one instance ...

What is the difference between HTML and URL based recording? Which is more advantageous? 
Latest Answer : The recording level you select, depends on your needs and environment. The available levels are GUI-based script, HTML-based script, and URL-based script.  For most applications, including those with JavaScript, use a GUI-based script. The GUI-based ...


 Sponsored Links

 
Related Articles

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

Difference between Scholarship and Grant

Difference between Scholarship and Grant While both scholarships and grants allow students to pay for their tuition without having to pay the money back there are a number of key differences between the two Knowing the difference between grants and scholarship will make it much easier for students t
 

The Difference Between Data Mart and Data Warehouse

The Difference Between Data Mart and Data Warehouse The biggest decision facing most IT managers today is whether or not they should construct the data mart before the data warehouse Many vendors will tell you that data warehouses are hard to build as well as expensive mosgoogle If you listen to som
 

LoadRunner Interview Questions

LoadRunner Interview Questions This article provides Software Testing Interview Questions covering LoadRunner questions For more Interview Questions Answers related to testing click on links provided at the end of each question set mosgoogle LoadRunner 1 What is load testing Can we test J2ME
 

Why Choose LoadRunner for Performance testing

This article start with brief introduction to Performance Testing Why should you automate performance testing What are the LoadRunner components LoadRunner Terminology and Load Testing Process Performance testing Introduction mosgoogle Performance Testing is the process by which software is tested a
 

Be Prepared for Tech Job Cuts

Even one of the most flourishing and possibly the strongest industries of the future are not experiencing the economic crunch. The tech industry is now experiencing massive job losses in different categories. Although you will still see innovations almost every day from the tech industry through th
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape