修改pybot执行测试案例的输出格式
执行用例pybot test.txt ,输入如下<div class="gmail_default"><font color="#0000ff">==============================<wbr>==============================<wbr>==================</font></div><div class="gmail_default"><font color="#0000ff">Test </font></div><div class="gmail_default"><font color="#0000ff">==============================<wbr>==============================<wbr>==================</font></div><div class="gmail_default"><font color="#0000ff">LoginDemo | PASS |</font></div><div class="gmail_default"><font color="#0000ff">------------------------------<wbr>------------------------------<wbr>------------------</font></div><div class="gmail_default"><font color="#0000ff">Test | PASS |</font></div><div class="gmail_default"><font color="#0000ff">1 critical test, 1 passed, 0 failed</font></div><div class="gmail_default"><font color="#0000ff">1 test total, 1 passed, 0 failed</font></div><div class="gmail_default"><font color="#0000ff">==============================<wbr>==============================<wbr>==================</font></div><div class="gmail_default"><font color="#0000ff">Output:/home/test/scripts/output.xml</font></div><div class="gmail_default"><font color="#0000ff">Log: /home/test/scripts/log.html</font></div><div class="gmail_default"><font color="#0000ff">Report:/home/test/scripts/report.<wbr>html</font></div>是否可以修改Output、Log、Report这三个选项的显示?想要显示如下效果
pybot test.txt
<div class="gmail_default"><font color="#0000ff">==============================<wbr>==============================<wbr>==================</font></div><div class="gmail_default"><font color="#0000ff">Test </font></div><div class="gmail_default"><font color="#0000ff">==============================<wbr>==============================<wbr>==================</font></div><div class="gmail_default"><font color="#0000ff">LoginDemo | PASS |</font></div><div class="gmail_default"><font color="#0000ff">------------------------------<wbr>------------------------------<wbr>------------------</font></div><div class="gmail_default"><font color="#0000ff">Test | PASS |</font></div><div class="gmail_default"><font color="#0000ff">1 critical test, 1 passed, 0 failed</font></div><div class="gmail_default"><font color="#0000ff">1 test total, 1 passed, 0 failed</font></div><div class="gmail_default"><font color="#0000ff">==============================<wbr>==============================<wbr>==================</font></div><div class="gmail_default"><font color="#0000ff">Output: <a href="http://192.168.1.1/output.xml" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=zh-CN&q=http://192.168.1.1/output.xml&source=gmail&ust=1462962276437000&usg=AFQjCNFTwMea4shlwaj4Jm7uNgBAe2WcSA" style="color: rgb(17, 85, 204);">http://192.168.1.1/output.xml</a></font></div><div class="gmail_default"><font color="#0000ff">Log: <a href="http://192.168.1.1/log.html" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=zh-CN&q=http://192.168.1.1/log.html&source=gmail&ust=1462962276437000&usg=AFQjCNHWuByNc7pO3H1eL-0h5Rq7rNiPNQ" style="color: rgb(17, 85, 204);">http://192.168.1.1/log.html</a></font></div><div class="gmail_default"><font color="#0000ff">Report:<a href="http://192.168.1.1/report.html" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=zh-CN&q=http://192.168.1.1/report.html&source=gmail&ust=1462962276437000&usg=AFQjCNENuXvCtjWA-S3oZUZX-EuP615k4g" style="color: rgb(17, 85, 204);">http://192.168.1.1/report.<wbr>html</a></font></div>
页:
[1]