VuGen — WebHttpHtml_Login.usr
Vuser Script Editor
1Action()2{3lr_start_transaction("Login_Flow");45web_url("home",6"URL=https://shop.acme-corp.com/index.jsp",7"Resource=0",8"RecContentType=text/html",9LAST);1011// Submit the login form12web_submit_data("login.jsp",13"Action=https://shop.acme-corp.com/login.jsp",14"Method=POST",15ITEMDATA,16"Name=username", "Value=john_doe", ENDITEM,17"Name=password", "Value=Passw0rd!", ENDITEM,18LAST);1920web_add_header("X-User-Id", "884213");21lr_output_message("Session opened for john_doe");2223web_custom_request("profile",24"URL=https://shop.acme-corp.com/api/profile?user=john_doe",25"Method=GET",26LAST);2728web_submit_data("checkout.jsp",29"Action=https://shop.acme-corp.com/checkout.jsp",30"Method=POST",31ITEMDATA,32"Name=buyer", "Value=john_doe", ENDITEM,33LAST);3435lr_end_transaction("Login_Flow", LR_AUTO);3637return 0;38}
Step 1 of 8 — select the hardcoded value john_doe, then right-click it to open the context menu.
ReadyParameters: 0 · Replaced: 0