我正在通过Jenkins运行所有的Robot Framework测试。 Jenkins发送自动生成的结果邮件,其内容为Jenkins Job运行控制台输出。
我的要求是,自动生成的邮件的BODY应该包含Pybot run的控制台输出(如下所示)
MAIL SUBJECT行应包含:
Total Tests = 4, PASS = 0, FAIL = 4
MAIL BODY应包含以下输出:
C:\Users\test\Desktop\FINAL WORKING COPY OF SCRIPTS>pybot sample_test_testsui
te.robot
==============================================================================
Sample test testsuite
==============================================================================
TESTCASE1 : TEST-01 - HJ amouallation in jkfault locati .Second si
gnal will force exit.
TESTCASE1 : TEST-01 - HJ amouallation in jkfault locati | FAIL |
Execution terminated by signal
------------------------------------------------------------------------------
TESTCASE2 : TEST-01 - Teske1n: Kendows: Verify that teskencesste s... | FAIL |
Test execution stopped due to a fatal error.
------------------------------------------------------------------------------
TESTCASE3 : TEST-01 - Teske1n Control (Start HJ): jkldows | FAIL |
Test execution stopped due to a fatal error.
------------------------------------------------------------------------------
TESTCASE4 : TEST-01, TEST-01 - Teske2n Control (Stop HJ): opndows | FAIL |
Test execution stopped due to a fatal error.
------------------------------------------------------------------------------
Direct install testsuite | FAIL |
4 critical tests, 0 passed, 4 failed
4 tests total, 0 passed, 4 failed
==============================================================================
Output: C:\Users\test\Desktop\FINAL WORKING COPY OF SCRIPTS\output.xml
Log: C:\Users\test\Desktop\FINAL WORKING COPY OF SCRIPTS\log.html
Report: C:\Users\test\Desktop\FINAL WORKING COPY OF SCRIPTS\report.html
Terminate batch job (Y/N)? y
C:\Users\test\Desktop\FINAL WORKING COPY OF SCRIPTS>
有没有办法在Robot Framework或Jenkins中实现这个目标?
请指导我的想法。