我发现如果我的scipt包含任何中文字符,它的效果很好,statu是“PASS”,但是RIDE的输出将不显示案例的状态。 这里是我的代码:RIDE的输出不能显示测试用例的状态
*** Test Cases ***
test
[Template]
Log To Console 中文
这里是输出:====== Link of screen shot =======
command: pybot.bat --outputdir ./report/ --argumentfile c:\users\figoto~1\appdata\local\temp\RIDEqvnd6h.d\argfile.txt --listener D:\Python27\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:61768:False E:\testing\PartnerAutoTest\Partner
========================================================================================================================================================================
Partner
========================================================================================================================================================================
Partner.Landing
========================================================================================================================================================================
Log: E:\testing\PartnerAutoTest\Partner\report\log.html
Report: E:\testing\PartnerAutoTest\Partner\report\report.html
test finished 20160304 16:13:00
当我的脚本contans没有汉字,输出很好,像这样:
*** Test Cases ***
test
[Template]
Log To Console Chinese
和输出是这样的:=========== =========== Link of Screen Shot
command: pybot.bat --outputdir ./report/ --argumentfile c:\users\figoto~1\appdata\local\temp\RIDEqvnd6h.d\argfile.txt --listener D:\Python27\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:61768:False E:\testing\PartnerAutoTest\Partner
========================================================================================================================================================================
Partner
========================================================================================================================================================================
Partner.Landing
========================================================================================================================================================================
Partner.Landing.Debug test
========================================================================================================================================================================
test Chinese
| PASS |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test2 | FAIL |
chinese
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Partner.Landing.Debug test | FAIL |
2 critical tests, 1 passed, 1 failed
2 tests total, 1 passed, 1 failed
========================================================================================================================================================================
Partner.Landing | FAIL |
2 critical tests, 1 passed, 1 failed
2 tests total, 1 passed, 1 failed
========================================================================================================================================================================
Partner | FAIL |
2 critical tests, 1 passed, 1 failed
2 tests total, 1 passed, 1 failed
========================================================================================================================================================================
Output: E:\testing\PartnerAutoTest\Partner\report\output.xml
Log: E:\testing\PartnerAutoTest\Partner\report\log.html
Report: E:\testing\PartnerAutoTest\Partner\report\report.html
test finished 20160304 16:23:34
我所知道的一切都很好在我昨天升级RIDE和Robotframework之前。 (用于DateTime库) 以下是我现在的版本: RIDE 1.5.2.1在Python 2.7.9上运行。 robotframework-3.0
也许我需要在某处更改一些编码文件。所以我试图改变文件“D:\ Python27 \ Lib \ site-packages \ robotide \ lib \ robot \ utils \ encodingsniffer.py”,但它不起作用。
有关如何解决此问题的任何建议? 在此先感谢。