TA的每日心情 | 奋斗 2018-6-19 15:14 |
---|
签到天数: 27 天 连续签到: 1 天 [LV.4]测试营长
|
现在回放脚本时,日志显示:
添加了这个语句:lr_output_message("%s",lr_eval_string("{passengers}"));
输出日志如下:
Action.c(6): Found resource "http://127.0.0.1:1080/WebTours/images/button_next.gif" in HTML "http://127.0.0.1:1080/WebTours/reservations.pl" [MsgId: MMSG-26659]
Action.c(6): web_submit_data("reservations.pl") was successful, 3065 body bytes, 417 header bytes [MsgId: MMSG-26386]
Action.c(29): Submitting form to "http://127.0.0.1:1080/WebTours/reservations.pl", Target Frame="" [MsgId: MMSG-27978]
Action.c(29): Resource "http://127.0.0.1:1080/WebTours/images/button_next.gif" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(29): web_submit_form("reservations.pl_2") was successful, 8149 body bytes, 253 header bytes [MsgId: MMSG-26386]
Action.c(36): 64
Ending action Action.
Ending iteration 1.
Starting iteration 2.
Starting action Action.
Action.c(6): Found resource "http://127.0.0.1:1080/WebTours/images/button_next.gif" in HTML "http://127.0.0.1:1080/WebTours/reservations.pl" [MsgId: MMSG-26659]
Action.c(6): web_submit_data("reservations.pl") was successful, 3065 body bytes, 417 header bytes [MsgId: MMSG-26386]
Action.c(29): Submitting form to "http://127.0.0.1:1080/WebTours/reservations.pl", Target Frame="" [MsgId: MMSG-27978]
Action.c(29): Resource "http://127.0.0.1:1080/WebTours/images/button_next.gif" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(29): web_submit_form("reservations.pl_2") was successful, 3184 body bytes, 253 header bytes [MsgId: MMSG-26386]
Action.c(36): 10Ending action Action.
Ending iteration 2.
Starting iteration 3.
Starting action Action.
Action.c(6): Found resource "http://127.0.0.1:1080/WebTours/images/button_next.gif" in HTML "http://127.0.0.1:1080/WebTours/reservations.pl" [MsgId: MMSG-26659]
Action.c(6): web_submit_data("reservations.pl") was successful, 3065 body bytes, 417 header bytes [MsgId: MMSG-26386]
Action.c(29): Submitting form to "http://127.0.0.1:1080/WebTours/reservations.pl", Target Frame="" [MsgId: MMSG-27978]
Action.c(29): Resource "http://127.0.0.1:1080/WebTours/images/button_next.gif" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(29): web_submit_form("reservations.pl_2") was successful, 3116 body bytes, 253 header bytes [MsgId: MMSG-26386]
Action.c(36): 12Ending action Action.
Ending iteration 3.
Starting iteration 4.
Starting action Action.
Action.c(6): Found resource "http://127.0.0.1:1080/WebTours/images/button_next.gif" in HTML "http://127.0.0.1:1080/WebTours/reservations.pl" [MsgId: MMSG-26659]
Action.c(6): web_submit_data("reservations.pl") was successful, 3065 body bytes, 417 header bytes [MsgId: MMSG-26386]
Action.c(29): Submitting form to "http://127.0.0.1:1080/WebTours/reservations.pl", Target Frame="" [MsgId: MMSG-27978]
Action.c(29): Resource "http://127.0.0.1:1080/WebTours/images/button_next.gif" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(29): web_submit_form("reservations.pl_2") was successful, 3661 body bytes, 253 header bytes [MsgId: MMSG-26386]
Action.c(36): 60Ending action Action.
而我想日志只要输入这个lr_output_message("%s",lr_eval_string("{passengers}"));的结果,其他过程在日志中都不显示,
期望显示为:
Action.c(36): 64
Action.c(36): 12
Action.c(36): 60
----这样看直观,一目了然 |
|