擅长:python、mysql、java
<p>如果您只需要对日志/报告文件进行更改</strong>,您应该查看一下<a href="http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#programmatic-modification-of-results" rel="nofollow">here</a>实现<code>--prerebotmodifier</code>选项的SuiteVisitor。正如布莱恩·奥克利所说,如果你不记住这一点,这可能会使你的及格/不及格人数减少。在</p>
<p><strong>目前看来不可能真正改变之前的测试状态输出.xml</strong>已创建,但存在<a href="https://github.com/robotframework/robotframework/issues/177" rel="nofollow">plans to implement it in RF 3.0</a>。还有一个关于a <a href="https://github.com/robotframework/robotframework/issues/2087" rel="nofollow">skip status</a>的讨论</p>
<p>另一个<strong>更复杂的解决方案</strong>是通过实现一个<a href="http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#using-listener-interface" rel="nofollow">listener</a>来创建自己的输出文件,该选项与<code>--listener</code>选项一起使用,该选项可以根据您的需要创建一个输出文件(可能与原始文件一起使用)输出.xml). 在</p>
<p>也有可能在测试执行期间<strong>设置标记,</strong>但我还不熟悉这一点,所以我不能真正告诉任何关于atm的信息。这可能是解释这些依赖关系失败的另一种可能,因为在生成日志/报告时可以忽略某些标记的关键字</p>