Highlighted
Absent Member.
Absent Member.
567 views

how to capture transaction ID

All,

 

I am new to LR. I have a form. The moment I click on new Form I get an ID which I need to use it in later stages.

I need to Capture that ID & store it.

 

Your help is appriciated.

 

Hrishi

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: how to capture transaction ID

Hi

I think that you will need to get to now the basics in how to work with LoadRunner, and that you need to do yourself.

A good place to start is in the help-files, either inside LoadRunner or Loadrunner - WebHelp.

Or search for Loadrunner tutorial or LoadRunner beginner

How to get values from a webpage and use it later is called Correlation and is fundamental to understand and use.

br /ola


Please mark post as solved if your problems or questions is/are resolved.
If this post was valuable to you, please consider kudo it.

.
Highlighted
Honored Contributor.
Honored Contributor.

Re: how to capture transaction ID

Hi Hrishi.

You can also refer below URL to get knowledge on Correlation in a simple way:

Click Here

Regards,
Gagandeep Malviya

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: how to capture transaction ID

Hi Gagandeep,

 

Thanks for the info. I read it & is very useful. But my issue is with the drop down values. it has fixed strings like approved, wait, Hold etc.. I have to select only Approved. But I cant directly pass that parameter as application doesnt allow me to do so. I tried it by sending it as parameter value. But not sure where exactly it failing.

 

Your help is appriciated.

 

 

Here is my code

web_submit_form("maximo.jsp_12",
        "Snapshot=t16.inf",
        ITEMDATA,
        "Name=event", "Value=showmenu", ENDITEM,
        "Name=targetid", "Value=changestatus_grid1_1_1_grid4_1", ENDITEM,
        "Name=visvalue", "Value=", ENDITEM,
        "Name=property", "Value=", ENDITEM,
        "Name=row", "Value=", ENDITEM,
        "Name=lastfocus", "Value=changestatus_grid1_1_1_grid4_1_textbox", ENDITEM,
        "Name=currentfocus", "Value=changestatus_grid1_1_1_grid4_1_dropimage", ENDITEM,
        "Name=currentcontrol", "Value=changestatus_grid1_1_1_grid4_1", ENDITEM,
        "Name=focuscontainer", "Value=status", ENDITEM,
        "Name=uniqueid", "Value=", ENDITEM,
        "Name=additionalevent", "Value=", ENDITEM,
        "Name=changedcontrolid", "Value=", ENDITEM,
        "Name=changedattribute", "Value=", ENDITEM,
        "Name=changedcontrolvalue", "Value=", ENDITEM,
        "Name=changedcontrolrow", "Value=", ENDITEM,
        "Name=changestatus_grid1_1_1_grid4_1_textbox", "Value=", ENDITEM,
        "Name=changestatus_grid1_1_1_grid4_2_textbox", "Value=", ENDITEM,
        "Name=changestatus_grid1_1_1_grid4_3_textbox", "Value=", ENDITEM,
        LAST);

    web_reg_find("Text=MAXIMO Menu Control Output",
        LAST);

    web_submit_data("maximo.jsp_13",
        "Mode=HTML",
        ITEMDATA,
        "Name=hiddenframe", "Value=true", ENDITEM,
        "Name=sc", "Value=1472835945101", ENDITEM,
        "Name=event", "Value=setvalue", ENDITEM,
        "Name=targetid", "Value=changestatus_grid1_1_1_grid4_1", ENDITEM,
        "Name=visvalue", "Value=APPR", ENDITEM,
        "Name=value", "Value=APPR", ENDITEM,
        "Name=property", "Value=", ENDITEM,
        "Name=row", "Value=", ENDITEM,
        "Name=lastfocus", "Value=changestatus_grid1_1_1_grid4_1_dropimage", ENDITEM,
        "Name=currentfocus", "Value=changestatus_grid1_1_1_grid4_1_textbox", ENDITEM,
        "Name=currentcontrol", "Value=changestatus_grid1_1_1_grid4_1", ENDITEM,
        "Name=focuscontainer", "Value=status", ENDITEM,
        "Name=uniqueid", "Value=", ENDITEM,
        "Name=additionalevent", "Value=", ENDITEM,
        "Name=changedcontrolid", "Value=", ENDITEM,
        "Name=changedattribute", "Value=", ENDITEM,
        "Name=changedcontrolvalue", "Value=", ENDITEM,
        "Name=vischangedcontrolvalue", "Value=", ENDITEM,
        "Name=changedcontrolrow", "Value=", ENDITEM,
        LAST);

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.