| C:\snml2019\run\run_nms1.txt |
---|
001 | screen.set color red {0} green {0} blue {0} |
002 | screen.text at point {150} {30} string {18、run测试} |
003 | var {v_y} value {60} |
004 | |
005 | screen.text at point {10} {~v_y~} string {序号} |
006 | screen.text at point {250} {~v_y~} string {测试内容} |
007 | screen.line from point {10} {75} to point {50} {75} |
008 | screen.line from point {70} {75} to point {630} {75} |
009 | |
010 | var {v_time} value datetime |
011 | var {v_i} value {0} |
012 | |
013 | loop.begin |
014 | |
015 | var {v_i} add number {1} |
016 | var {v_y} add number {18} |
017 | |
018 | run.nms {C:\snml2019\ping\ping_nms1.txt} |
019 | run.set run.maxtime {33} seconds |
020 | run.set loglevel {nolog} |
021 | run.set onerror {run.end} |
022 | run.set loglevel {debug} |
023 | run.set step.timeout {3} seconds |
024 | run.sleep {2} seconds |
025 | |
026 | screen.text at point {10} {~v_y~} string {~v_i~} |
027 | screen.text at point {70} {~v_y~} string {v_time=~v_time~,run.steps=~run.steps~,run.seconds=~run.seconds~, run.errors=~run.errors~,} |
028 | |
029 | if.var {v_y} > {400} |
030 | loop.exit |
031 | if.end |
032 | loop.end |
033 | run.end |