Highlighted
Trusted Contributor.
Trusted Contributor.
468 views

Reg : True Client protocol and Database connection through Web Service Protocol

Jump to solution

Hi,

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.

Thanks,

Khaja Shaik.

 

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Reg : True Client protocol and Database connection through Web Service Protocol

Jump to solution

Hi Edo,

Thank you so much for the support.

 

 

View solution in original post

0 Likes
2 Replies
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: Reg : True Client protocol and Database connection through Web Service Protocol

Jump to solution

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:

  1. 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.
  2. In TruClient IE, it may be possible to leverage an ActiveX control to achieve the same goal.
    See here:
    https://stackoverflow.com/questions/857670/how-to-connect-to-sql-server-database-from-javascript-in-the-browser.

Edo

Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Reg : True Client protocol and Database connection through Web Service Protocol

Jump to solution

Hi Edo,

Thank you so much for the support.

 

 

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.