Maven 整合 robot framework 进行测试
2024-08-25 11:18:29
1. 在maven pom.xml中先配置robot framework的plugin:
<plugin>
<!-- integration test runner (robot-framework) -->
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<version>1.4.7</version>
<dependencies>
<!-- Can specify the robot framework version if required -->
<dependency>
<groupId>org.robotframework</groupId>
<artifactId>robotframework</artifactId>
<version>2.8.7</version>
</dependency>
<!-- Can add self developed robot test library -->
<dependency>
<groupId>com.abc.robottest</groupId>
<artifactId>robottestinglib</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<!-- default execution phase is 'verify' -->
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<testCasesDirectory>./src/test/robotframework/acceptance</testCasesDirectory>
<libdoc/>
<testdoc/>
</configuration>
</plugin>
2. 在上面的testCasesDirectory路径中编写*.robot文件,参考官方正常robot文件的编写方法: http://robotframework.org/#examples
最新文章
- Android Secret Code
- Android IOS WebRTC 音视频开发总结(二五)-- webrtc优秀资源汇总
- DOM、Window操作
- 【原】iOS学习之第三方-AFNetworking1.3.0
- The All-purpose Zero---hdu5773(LIS变形)
- 淘宝的ruby镜像已无人维护,使用ruby-china的RubyGems镜像
- Spring处理id相同的bean
- 请输出in.txt文件中的2 4 6 8 9 10 12行
- prototype constructor __proto__
- css的绝对定位
- struts2中根对象以及ognl .
- Ubuntu + VMware=Linux虚拟机
- (函数封装)获取class名称
- windows 下面安装make
- idea中如何将单个java类导出为jar包文件?
- expect 安装 salt 客户端
- 三. html&;JavaScript&;ajax 部 分
- 数据结构(C语言版)-C语言和C++相关补充
- Atom窗口切换和放大或者缩小
- 转:android root tcpdump抓包强烈推荐