【发布时间】:2017-12-12 23:54:49
【问题描述】:
我的项目使用 Maven 来引用所有需要的库,所以我什至不需要手动安装机器人框架(我只是在 pom.xml 中包含了 markusbernhardt 的 Selenium2Library 作为依赖项):
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.github.markusbernhardt</groupId>
<artifactId>robotframework-selenium2library-java</artifactId>
<version>1.4.0.8</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<version>1.4.7</version>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
我可以使用 Maven 安装或使用 Maven 的运行配置来运行我的测试:
但是,我不知道如何告诉机器人框架我要运行带有特定标签的测试。我没有从命令行运行机器人框架,因为我的机器上没有安装机器人框架,我只是将它用作 maven 依赖项,所以我无法运行 python -m robot.run --include tag。
我尝试在运行配置中添加--include tag 作为参数,但它被忽略了。
有没有办法在 Eclipse 中将此标签参数发送给机器人?
【问题讨论】:
标签: eclipse robotframework ui-automation