51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1344|回复: 0
打印 上一主题 下一主题

[原创] 关于脚本关联的问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-2-10 13:35:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
求高手解救啊

给下面这段脚本做关联
                 web_submit_data("examAction!getExamlist",
                "Action=http://10.71.0.175:7070/tiandun/web/jsp/personal/web/jsp/personal/examAction!getExamlist",
                "Method=POST",
                "EncType=multipart/form-data",
                "RecContentType=text/html",
                "Referer=http://10.71.0.175:7070/tiandun/web/jsp/personal/examAction!examLogin",
                "Snapshot=t14.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=exam.SCREEN_ID", "Value={screen_id}", ENDITEM,
                "Name=exam.FILE_NUMBER", "Value={file_number}", ENDITEM,
                "Name=exam.SUBJECT_ID", "Value={subject_id}", ENDITEM,
                "Name=exam.PERSON_ID", "Value={person_id}", ENDITEM,
                "Name=exam.BATCH_NUMBER", "Value={batch_number}", ENDITEM,
                "Name=exam.REAL_EXAM_ID", "Value={real_exam_id}", ENDITEM,
                "Name=exam.EXAM_ID", "Value={exam_id}", ENDITEM,
                EXTRARES,
                "Url=/tiandun/web/images/exam/exam-title-repeatx.jpg", "Referer=http://10.71.0.175:7070/tiandun/web/exams/examTitle.jsp", ENDITEM,
                "Url=/tiandun/web/images/exam/exam-lable.jpg", "Referer=http://10.71.0.175:7070/tiandun/web/exams/examContent.jsp", ENDITEM,
                "Url=/tiandun/web/images/exam/exam-help.jpg", "Referer=http://10.71.0.175:7070/tiandun/web/exams/examInfo-bottom.jsp", ENDITEM,
                "Url=/tiandun/web/images/exam/exam-list.jpg", "Referer=http://10.71.0.175:7070/tiandun/web/exams/examInfo-middle.jsp", ENDITEM,
                "Url=/tiandun/web/css/PIE.htc", "Referer=", ENDITEM,
                LAST);
下面是我写的关联脚本
           web_reg_save_param("screen_id",
                "LB=\t\t\t\t\t\t<input type=\"hidden\" name=\"exam.SCREEN_ID\" value=\"",
                "RB=\" />\r\n",
                "Notfound=warning",
                LAST);

                lr_log_message("screen_id=%s",lr_eval_string("{screen_id}"));

        web_reg_save_param("file_number",
                "LB=\t\t\t\t\t\t<input type=\"hidden\" name=\"exam.FILE_NUMBER\" value=\"",
                "RB=\" />\r\n",
                "Notfound=warning",
                LAST);

        web_reg_save_param("subject_id",
                "LB=\t\t\t\t\t\t<input type=\"hidden\" name=\"exam.SUBJECT_ID\" value=\"",
                "RB=\" />\r\n",
                "Notfound=warning",
                LAST);

        web_reg_save_param("person_id",
                "LB=\t\t\t\t\t\t<input type=\"hidden\" name=\"exam.PERSON_ID\" value=\"",
                "RB=\" />\r\n",
                "Notfound=warning",
                LAST);

        web_reg_save_param("batch_number",
                "LB=\t\t\t\t\t\t<input type=\"hidden\" name=\"exam.BATCH_NUMBER\" value=\"",
                "RB=\" />\r\n",
                "Notfound=warning",
                LAST);

        web_reg_save_param("real_exam_id",
                "LB=\t\t\t\t\t\t<input type=\"hidden\" name=\"exam.REAL_EXAM_ID\" value=\"",
                "RB=\" />\r\n",
                "Notfound=warning",
                LAST);

        web_reg_save_param("exam_id",
                "LB=\t\t\t\t\t\t<input type=\"hidden\" name=\"exam.EXAM_ID\" value=\"",
                "RB=\" />\r\n",
                "Notfound=warning",
                LAST);

但是回放都是警告:Warning: The string 'screen_id' with parameter delimiters is not a parameter.

这是log里的数据
Action.c(55):     \t\t\t\t\t\t\r\n
Action.c(55):     \t\t\t\t\t\t<p class="exam-subject">??????????</p>\r\n
Action.c(55):     \t\t\t\t\t\t<p class="exam-name">????????2</p>\r\n
Action.c(55):     \t\t\t\t\t\t<p class="exam-id">330314198811200022</p>\r\n
Action.c(55):     \t\t\t\t\t\t<p class="exam-session">3325022012021003</p>\r\n
Action.c(55):     \t\t\t\t\t\t<p class="exam-seat">3325012012020021</p>\r\n
Action.c(55):     \t\t\t\t\t\t<p class="exam-date">2012-02-10</p>\r\n
Action.c(55):     \t\t\t\t\t\t<input type="hidden" name="exam.SCREEN_ID" value="3325022012021003" />\r\n
Action.c(55):     \t\t\t\t\t\t<input type="hidden" name="exam.FILE_NUMBER" value="3325012012000021" />\r\n
Action.c(55):     \t\t\t\t\t\t<input type="hidden" name="exam.SUBJECT_ID" value="1601" />\r\n
Action.c(55):     \t\t\t\t\t\t<input type="hidden" name="exam.PERSON_ID" value="330314198811200022" />\r\n
Action.c(55):     \t\t\t\t\t\t<input type="hidden" name="exam.BATCH_NUMBER" value="1" />\r\n
Action.c(55):     \t\t\t\t\t\t<input type="hidden" name="exam.REAL_EXAM_ID" value="58" />\r\n
Action.c(55):     \t\t\t\t\t\t<input type="hidden" name="exam.EXAM_ID" value="73" />\r\n
Action.c(55):     \t\t\t\t\t\t\r\n
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-8 19:44 , Processed in 0.061014 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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