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

  • 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.

  • Hi Hrishi.

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

    Click Here

  • 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);