LoadRunner函数web_reg_find使用总结

LoadRunner中检查函数 int web_reg_find( const char *attribute_list, LAST ); 检查点函数主要用于检查页面的文本信息,该函数要放在  Web_castom_request(); web_image(); web_link(); web_submit_data(); web_submit_form(); web_url();这六个函数之前。需要注意的是,web_reg_find函数必须放在所检查的页面之前,否则会检查失败。

实例:

web_reg_find("Fail=NotFound",
"Search=Body",
"SaveCount=loginCount",
"Text/IC=成功登录",
LAST);


web_submit_data("index.aspx", 
"Action=http://192.168.126.101/lgsoft/index.aspx", 
"Method=POST", 
"RecContentType=text/html", 
"Referer=http://192.168.126.101/lgsoft/", 
"Snapshot=t16.inf", 
"Mode=HTML", 
ITEMDATA, 
"Name=__EVENTTARGET", "Value=linkButton", ENDITEM, 
"Name=__EVENTARGUMENT", "Value=", ENDITEM, 
"Name=__VIEWSTATE", "Value=/wEPDwULLTE1Nzk1NTY5NzJkZPeKiwJnFba72rqvgYZnzOMb9Gnr", ENDITEM, 
"Name=SeatInfo", "Value=50101", ENDITEM, 
"Name=ClientIP", "Value=192.168.126.219", ENDITEM, 
"Name=ComputerName", "Value=WIN-FKPO2PBNPJT", ENDITEM, 
"Name=myCurrentSelect", "Value=loginByXhGhTable", ENDITEM, 
"Name=TextBox_XhGh", "Value={UStud}", ENDITEM, 
"Name=TextBox_XhGh_Pwd", "Value=888888", ENDITEM, 
"Name=TextBox_IDNum", "Value=", ENDITEM, 
"Name=TextBox_IDNum_Pwd", "Value=", ENDITEM, 
"Name=TextBox_ShortName", "Value=", ENDITEM, 
"Name=TextBox_ShortName_Pwd", "Value=", ENDITEM,

......

  );

_ ~:u[6r-Y!J0其中Text/IC表示不区分大小写。

你可能感兴趣的:(LoadRunner学习记录)