[英]Automated Robot test on Jenkins
When I want to run my tests on Jenkins I can define which workflow I want. 当我想在Jenkins上运行测试时,可以定义所需的工作流程。
When committing my test to gitlab i define a commit message, and to that message I add this : 将测试提交到gitlab时,我定义了一条提交消息,并向该消息中添加以下内容:
runTest=testsuites/someFolder/someWorkflow.robot
What I am wondering is if it is possible to select a certain test from that workflow to execute ? 我想知道的是,是否可以从该工作流程中选择某个测试来执行? Currently all of test from it will run, and it takes a lot time. 目前,所有测试都将运行,并且需要很多时间。
Check Robot user guide for selecting suites and testcases based on names,tags and patterns: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#selecting-test-cases 查看机器人用户指南,以根据名称,标签和模式选择套件和测试用例: http : //robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#selecting-test-cases
Options --suites and --tests are those which you could use. 选项--suites和--test是可以使用的选项。
If you are uncertain, create simple suite with multiple tests and execute it from favorite IDE (RED,RIDE,PyCharm) to check the command and parameters. 如果不确定,请创建具有多个测试的简单套件,然后从喜欢的IDE(RED,RIDE,PyCharm)执行该套件以检查命令和参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.