Highlighted
Absent Member.
Absent Member.
1529 views

problem with manual correlation correlating usersession in lr12.05

Jump to solution

 /*input type="hidden" name="userSession" value="120659.12709599zcAztADpifDHcDiptcDV"/>
<table border */
    web_reg_save_param_ex("ABCDE",
                          "LB= value",
                          "RB=/>\n<table border",
                          "ORD=ALL",
                          LAST);
    web_set_max_html_param_len("1024");

    web_submit_data("login.pl", 
        "Action=http://127.0.0.1:1080/cgi-bin/login.pl", 
        "Method=POST", 
        "RecContentType=text/html", 
        "Referer=http://127.0.0.1:1080/cgi-bin/nav.pl?in=home", 
        "Snapshot=t2.inf", 
        "Mode=HTML", 
        ITEMDATA, 
        "Name=userSession", "Value={ABCDE}", ENDITEM, 
        "Name=username", "Value=jojo", ENDITEM, 
        "Name=password", "Value=bean", ENDITEM, 
        "Name=JSFormSubmit", "Value=off", ENDITEM, 
        "Name=login.x", "Value=51", ENDITEM, 
        "Name=login.y", "Value=12", ENDITEM, 
        LAST);

application is http://127.0.0.1:1080/WebTours/index.htm

Action.c(7): Error -26396: The "ABCDE" argument (number 1) is unrecognized or misplaced [MsgId: MERR-26396]
Action.c(7): Registering web_reg_save_param_ex highest severity level was "ERROR" [MsgId: MMSG-26389]

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: problem with manual correlation correlating usersession in lr12.05

Jump to solution

Hello

I think that you are mixing the two functions.

The syntax used in your code works for web_reg_save_param  (but this function is deprecated)

web_reg_save_param_ex should have "ParamName=theName" as first parameter.

Check the syntax here web_reg_save_param_ex()

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.

 

.

View solution in original post

0 Likes
3 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: problem with manual correlation correlating usersession in lr12.05

Jump to solution

Hello

I think that you are mixing the two functions.

The syntax used in your code works for web_reg_save_param  (but this function is deprecated)

web_reg_save_param_ex should have "ParamName=theName" as first parameter.

Check the syntax here web_reg_save_param_ex()

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.

 

.

View solution in original post

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: problem with manual correlation correlating usersession in lr12.05

Jump to solution

Hi Niranjan,

correlation Function wrongly placed...

you are passing "userSession" in  login.pl, so u are getting  "userSession" value in previous request of "login.pl"

we have to write the correlation function before the request,which are getting dynamic value.

So, place the correlation function before the previous request of "login.pl".

Thanks,

Ravi

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: problem with manual correlation correlating usersession in lr12.05

Jump to solution

thank you very much.

this correlation function is working.

i added correlation function before request.

i removed extra double quotes in LB and RB.

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.