简体   繁体   English

Robot Framework 中的 WARN 测试结果

[英]WARN Test results in Robot Framework

I have multiple test cases that need to be tested.我有多个测试用例需要测试。 With every release, I get some new test cases as well as some old ones.每次发布时,我都会得到一些新的测试用例以及一些旧的测试用例。

My problem is for old test cases which are failed I have already created a problem ticket in JIRA and in the next release this ticket number is added in [Documentation] Field of the .robot我的问题是旧的测试用例失败了

Now what I want is next time on a new release if the bug is already raised in Jira meaning the documentation section of the robot will contain the ticket number, If the test fails I will label it as WARN in Yellow instead of marking it as Failure.现在我想要的是下一次发布新版本,如果错误已经在 J​​ira 中提出,这意味着机器人的文档部分将包含票号,如果测试失败,我会将其标记为黄色警告而不是将其标记为失败.

I have searched a lot and found this thread but according to it I can't do it- Github Issue is there any other way?我已经搜索了很多并找到了这个线程,但根据它我不能这样做 - Github 问题还有其他方法吗?

You will need to process the Documentation of the test to see if it has a JIRA issue number, if so, then add a Tag (for example TagName) to it.您将需要处理测试的文档以查看它是否有 JIRA 问题编号,如果有,则为其添加一个标签(例如 TagName)。 When launching tests with robotframework version 4.0, you call them by passing the option --skiponfailure TagName .使用机器人框架 4.0 版启动测试时,您可以通过传递选项--skiponfailure TagName调用它们。 You will have those tests marked as SKIPPED.您会将这些测试标记为已跳过。

The parsing of Documentation would be needed to parse before running the actual tests (in a helper test run).在运行实际测试之前(在辅助测试运行中),需要解析文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM