This is Khaja, We have the below requirement in our project.
Requirement : Have to start transaction in TrueClient protocol and after checking in the SQL Database have to end the same Transaction
Current Implemenation : We have two different protocol scripts
1. True Client Protocol Scipt - which connects to UI and Performs some operation on Orders i.e. Transaction starts here Orders will be locked.
2. WebService Protocol Script : Which connects to MS SQL DB and keep on checking the order lock. Once the orders are unlocked have to End the Transaction here.
As these two scripts from different protocols, I don't have much idea on combining these two scripts and putting in Performance Center.
Could you please check us whether this approach is ok and please advice.
Hi Khaja Shaik,
Out-of-the-box, TruClient will measure transactions from UI and network events. Usually, it would be easier to measure at that level.
If you need to access a database, one of these approaches may work:
- Use the LoadRunner DB API in a C function to access that DB.
Use an "Evaluate C" step to call said function.
Note this can only be done from VuGen.
In TruClient IE, it may be possible to leverage an ActiveX control to achieve the same goal.