51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1808|回复: 3
打印 上一主题 下一主题

[求助] LR11 中自带的webtour脚本练习userSession 出现两个??咋回事???

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-7-16 20:20:06 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
****** Response Body For Transaction With Id 159 ******
<!-- Comments option is ON

These are used to make the automated parsing difficult.
User must try and get the UserSession value.  There are several here, with similar boundaries.
But none are the right value.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>Web Tours Navigation Bar</TITLE>
<style>
        blockquote {font-family: tahoma; font-size : 10pt}
        H1 {font-family: tahoma; font-size : 22pt;color: #993333}
        small {font-family: tahoma; font-size : 8pt}
</style>
</HEAD><BODY BGCOLOR="#E0E7F1"><br clear>
<form method=post action=login.pl target=body>
<input type=hidden name=userSession value=8454108743.085621709ffQDtHcptzzzzzzHDDfzApiDti>
<form method=post action=error.pl onSubmit='doJSformSubmit1(this)' target=body>
<input type=hidden name=userSession value=1108743.085621709ffQDtHcptzzzzzzHDDfzApiDti>
<table border=0>
<tr><td><font face=sans-serif size=2>&nbsp;</font><td><tr>
<tr><td><font face=sans-serif size=2>&nbsp;Username</font><td><tr>
<tr><td><input type=text name=username value='' size=18 maxlength=30>
<tr><td><font face=sans-serif size=2>&nbspassword</font>
<tr><td><input type=password name=password value='' size=18 maxlength=30>
<tr><td><input type=image name=login value=Login alt=Login border=1 src='/WebTours/images/mer_login.gif'>
</table></form>
</BODY></HTML>
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

4#
发表于 2012-7-17 09:53:42 | 只看该作者
你不用关心这个代码怎么写,反正要么用web_submit_form()不需要关联,要么使用web_submit_data()关联一个sessionid给服务器就行了
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2012-7-16 23:30:51 | 只看该作者
来自 《精通软件性能测试与LR实战》
就这个 关联例子 通不过
其他的几个 关联 都通过了正确的
回复 支持 反对

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-7-16 20:22:09 | 只看该作者
为什么 在 form 里面出现两个 userSession
<form method=post action=login.pl target=body>
<input type=hidden name=userSession value=8454108743.085621709ffQDtHcptzzzzzzHDDfzApiDti>
<form method=post action=error.pl onSubmit='doJSformSubmit1(this)' target=body>
<input type=hidden name=userSession value=1108743.085621709ffQDtHcptzzzzzzHDDfzApiDti>
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-21 20:34 , Processed in 0.068020 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表