LR系统中用到的字符操作:strlen、strcpy、strcat、strcmp、strstr、strtok。内存操作:memset、memcpy、memmove

知识点:在这里插入图片描述

需求:关联订票的航班信息(航班号+价格+日期)

Action()
{
   
   	
	char str1[]="";
	int denglu = 0;
//	手动关联登录
	web_reg_save_param("usersession",
		"LB/IC=<input type=hidden name=userSession value=",
		"RB=>\n",
		"Ord=ALL",
		LAST);

	web_url("webtours", 
		"URL=http://localhost:1080/webtours", 
		"TargetFrame=", 
		"Resource=0", 
		"RecContentType=text/html", 
		"Referer=", 
		"Snapshot=t1.inf", 
		"Mode=HTML", 
		LAST);

	lr_think_time(11);

	lr_start_transaction("zong");

	web_url("sign up now", 
		"URL=http://localhost:1080/WebTours/login.pl?username=&password=&getInfo=true", 
		"TargetFrame=", 
		"Resource=0", 
		"RecContentType=text/html", 
		"Referer=http://localhost:1080/WebTours/home.html", 
		"Snapshot=t2.inf", 
		"Mode=HTML", 
		LAST);

	lr_think_time(21);

	lr_start_transaction("denglu");
	
// 登录检查点
	web_reg_find("SaveCount=denglu_count",
		"Text=Welcome, <b>AP</b>, to the Web Tours reservation page",
		LAST);

	web_submit_data("login.pl_2", 
		"Action=http://localhost:1080/webtours/login.pl", 
		"Method=POST", 
		"TargetFrame=body", 
		"RecContentType=text/html", 
		"Referer=http://localhost:1080/webtours/nav.pl?in=home", 
		"Snapshot=t4.inf", 
		"Mode=HTML", 
		ITEMDATA, 
		"Name=userSession", "Value={usersession_1}", ENDITEM, 
		"Name=username", "Value=AP", ENDITEM, 
		"Name=password", "Value=123", ENDITEM, 
		
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值