Highlighted
Micro Focus Contributor
Micro Focus Contributor
110 views

Dummy Nested transactions in Truclient

Jump to solution

Hi Team,

We have Vugen 12.60 & using Truclient Protocol.

There is a requirement from customer to create Blank Nested Transaction like Shown below .

As far i know it's possible in Web protocol, but  i tried my level best  to create in Truclient protocol but it seems to be not working. Because in Truclient for every transaction created , it needs a corresponding steps to get attached into.

Structure of transaction expected by customer.

-------------------------------------------------------------------

lr_start_transaction("Overall transaction");
    
    lr_start_transaction("login");

    /*
    content of the Login transaction here 
    */
    
lr_end_transaction("login", LR_AUTO);

lr_end_transaction("Overall transaction", LR_AUTO);

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Dummy Nested transactions in Truclient

Jump to solution

Hi @RItweek Mohanty ,

you can try to use TruClient api like below, 

Annotation 2020-06-11 112923.png

 

 

 

 

 

 

 

 

 

 

See more TruClient API from https://admhelp.microfocus.com/tc/en/2020/Content/TruClient/reference/functions.htm

 

Thanks,

Penn

View solution in original post

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Dummy Nested transactions in Truclient

Jump to solution

You can use a small javascript action/step in your script "Evaluate Javascript code" to call TC.startTransaction("T1");  etc..

Signature:
Reward community members who take time to respond and help.
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Dummy Nested transactions in Truclient

Jump to solution

Hi @RItweek Mohanty ,

you can try to use TruClient api like below, 

Annotation 2020-06-11 112923.png

 

 

 

 

 

 

 

 

 

 

See more TruClient API from https://admhelp.microfocus.com/tc/en/2020/Content/TruClient/reference/functions.htm

 

Thanks,

Penn

View solution in original post

0 Likes
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: Dummy Nested transactions in Truclient

Jump to solution

HI Penn,

 

Thank You for your detailed help . Your suggestions worked in my customer environment.

 

Regards,

Ritweek

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.