Recorded script:
Note: The redundant scripts are removed.
Action () {web_url ("mercurywebtours", "url = http: // 127.0.0.1: 1080/mercurywebtours/", "resource = 0", "reccontenttype = text/html ", "Referer =", "snapshot = t1.inf", "mode = html", last); web_submit_data ("login. PL "," Action = http: // 127.0.0.1: 1080/mercurywebtours/login. PL "," method = post "," reccontenttype = text/html "," Referer = http: // 127.0.0.1: 1080/mercurywebtours/nav. pl? In = home "," snapshot = t2.inf "," mode = html ", itemdata," name = usersession "," value = 96444.2213041717 tqzaitqpzdddddddddcqhzfpaqhi ", Enditem," name = username ", "value = Jojo", Enditem, "name = password", "value = Bean", Enditem, "name = jsformsubmit", "value = on", Enditem, "Name = login. X "," value = 0 ", Enditem," name = login. Y "," value = 0 ", Enditem, last); lr_think_time (4); web_image (" signoff button "," alt = signoff button "," snapshot = t3.inf ", last); Return 0 ;} |
Set data returned by server and then play back the data:
<Input type = hidden name = usersession value = 96444.2921020656 tqzaifdpchfcqhzfpvvqzf>/n |
Before submission, add the join function as follows:
// Note the length change. The fixed length is described here. If the length is dynamic, you cannot write it like this. Web_reg_save_param ("usersession1", "lB = Name = usersession", "RB =>", "savelen = 38", "saveoffset = 6", last ); |
Replay again. The following figure shows the replay log:
Action. C (7): Policy: savingparameter "usersession1 = 96444.4360469826 tqzaizapzhqvzzzhcqhzfp" |
OK. This function is applicable when associated data is segmented.