???????????

???????????????recording Options ????????correlation?????????Enable correlation during recording ???????????

??????LoadRunner ???WebTours??????ù?????

????????WebTours????????administration ????????? Set LOGIN form's action tag to an error page.????????

???????WebTours?????????????

Action()
{

    web_url("WebTours"??
        "URL=http://127.0.0.1:2080/WebTours/"??
        "Resource=0"??
        "RecContentType=text/html"??
        "Referer="??
        "Snapshot=t1.inf"??
        "Mode=HTML"??
        LAST);

    web_url("favicon.ico"??
        "URL=http://127.0.0.1:2080/favicon.ico"??
        "Resource=1"??
        "Referer="??
        LAST);

    web_submit_data("login.pl"??
        "Action=http://127.0.0.1:2080/WebTours/login.pl"??
        "Method=POST"??
        "Referer=http://127.0.0.1:2080/WebTours/nav.pl?in=home"??
        "Mode=HTML"??
        ITEMDATA??
        "Name=userSession"?? "Value=110381.833940867fzHHHzfpfiDDDDDDDtAzzpfQDf"?? ENDITEM??
        "Name=username"?? "Value=test"?? ENDITEM??
        "Name=password"?? "Value=123456"?? ENDITEM??
        "Name=JSFormSubmit"?? "Value=on"?? ENDITEM??
        LAST);

    web_submit_data("login.pl_2"??
        "Action=http://127.0.0.1:2080/WebTours/login.pl"??
        "Method=POST"??
        "RecContentType=text/html"??
        "Referer=http://127.0.0.1:2080/WebTours/nav.pl?in=home"??
        "Snapshot=t2.inf"??
        "Mode=HTML"??
        ITEMDATA??
        "Name=userSession"?? "Value=110381.833940867fzHHHzfpfiDDDDDDDtAzzpfQDf"?? ENDITEM??
        "Name=username"?? "Value=test"?? ENDITEM??
        "Name=password"?? "Value=123456"?? ENDITEM??
        "Name=JSFormSubmit"?? "Value=on"?? ENDITEM??
        "Name=login.x"?? "Value=52"?? ENDITEM??
        "Name=login.y"?? "Value=1"?? ENDITEM??
        LAST);

    web_image("SignOff Button"??
        "Alt=SignOff Button"??
        "Snapshot=t3.inf"??
        LAST);

    return 0;
}