gao9960 发表于 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
页: [1]
查看完整版本: 关于脚本关联的问题