使用jojo/bean进入例子中后进行了一个最基本的定票操作然后退出,录制完毕后,将depart和arrive参数化,然后回放,系统提示要求对userSession进行关联,自动关联好之后,回放成功,然后再设置runtime setting,将number of iteration改为2,再次回放时出现错误:
Action.c(59): Error -27979: Requested form not found [MsgId: MERR-27979]
Action.c(59): web_submit_form("reservations.pl_2") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
Action.c(41): Error -27979: Requested form not found [MsgId: MERR-27979]
Action.c(41): web_submit_form highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-27178]"
这时在tree view中看不到此组件的相关URL。
处理方法如下:
1, 打开recording options,在internet protocol下的recording中选择recording level为HTML-based script,点击HTML Advanced,选择script type为A script containing explicit.即可。
2, 选择使用URL_based script录制。
另外,附上帮助中的这个错误代码的说明:
Message Code 27979
Requested form not found
The form was not found in the page received from the server. Possible reasons: (i) The current or a previous HTML page was changed after the script was recorded. (ii) A previous request navigated to a wrong page or failed. (iii) One or more web_submit_form arguments are missing or incorrect (especially for manually coded, parameterized, or correlated functions). (iv) The server returned an unexpected page (e.g., under excessive load).
Troubleshooting
If the current or previous HTML page was changed, look for the correct properties of the form used in the text (e.g., action), and change it in the script.
If your snapshots and extended log are disabled, enable them and run the script again.
(i) To enable Snapshots: Select Tools > General Options > Correlation, and check the Save correlation information during replay box.
(ii) To enable Extended Log: Select Run-time Settings > General: Log, and check Enable logging, Always send messages, Extended log, Data returned by server, Advanced trace.
Compare the record and replay snapshots for each step in the script from the beginning, and locate the first difference. If you identify a difference in the snapshots, locate the corresponding HTTP request in both the recording log and the extended log. Compare the requests and, if they are different, have the replay issue exactly the same request. This can be done, for example, by adding web_add_header (for adding missing headers or adjusting existing ones), web_remove_auto_header (for removing extra headers), and web_add_cookie (for missing cookies).
If some correlation is missing, (e.g., the recording and replay runs have different session IDs), use the correlation tool to locate and handle such cases.作者: flyfly310 时间: 2007-8-28 14:32 标题: 回复 #3 Zee 的帖子 另外我看了Zee的如何在LR中做关联的帖子
问题一:我的教本也是出现了Zee所说的:
Action.c(37): Error -27979: Requested form not found [MsgId: MERR-27979]
Action.c(37): web_submit_form("com.mercurytours.servlet.IteneraryServlet") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
一样的错误,但是我不是通过教本关联解决的,而是通过上述的选择script type为A script containing explicit,解决了,为什么这样能解决呢?
问题二:知道错误代码后,我怎么搜不到help文档里的相关说明,在哪个文档里面,我用的是LR8。0?作者: monstergod 时间: 2007-8-28 14:58
学习中~~作者: lph4509 时间: 2011-11-18 10:56
应用程序范例使用了动态数据来处理航班信息。这就需要参数化或者相互关联以保证多个用户运行而不会出错。
转换到Script view.,选择View > Script View,或者单击Script View按钮。
找到以“Name=outboundFlight”开始的那行,并在前边加反斜线(//),修改后的行应该如下:// “Name=outboundFlight”, ......