Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
macaca-java-biz-sample
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
macaca-java-biz-sample
Commits
f2a1bc31
Commit
f2a1bc31
authored
Aug 14, 2017
by
mabo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
23280956
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
README.md
README.md
+61
-0
No files found.
README.md
0 → 100644
View file @
f2a1bc31
# bootstrap
基于Macaca-Java版的UI自动化实现demo
### 安装Macaca环境
参考链接:(Macaca-Java版入门指南)
[
https://testerhome.com/topics/6431)
### 使用步骤
### 1. 下载源码
```
$ git clone https://github.com/macaca-sample/macaca-java-biz-sample.git
```
### 2. 更新依赖
```
$ cd macaca-java-biz-sample
$ make install
```
如果下载依赖过程中报错,可能是由于mvn -s命令没有生效导致的,建议将根目录下settings.xml中的依赖配置到本地Maven目录下的settings.xml中。
### 如何修改目标平台 ios/android?
```
//package com.javademo.common;
// Config.java
// 目标平台- ios android
public static final String PLATFORM = "ios";
```
注意:执行iOS用例时需要将XCode升级到最新的8.1,执行用例前请先启动目标模拟器。
### 3. 启动server
```
$ macaca server --verbose
```
注意启动server时不能加代理,因为server在本机启动需要连接localhost,加代理会导致无法建立连接。
### 4. 执行测试用例
新建cmd窗口(记得新建cmd窗口哦,不要跟macaca server在同一个窗口执行) ,执行mvn test(默认为启动iOS用例)
```
$ mvn -s settings.xml test
```
或者选中SampleTest.java,右键执行run as -> JunitTest
### ReleaseNotes
#### v0.0.2
将原公共库代码common部分提出来单独建立了代码库,以jar包的形式上传至Jcenter,可通过Maven直接引用。
公共库代码也已开源:
[
https://github.com/macaca-sample/macaca-java-biz-framework
](
https://github.com/macaca-sample/macaca-java-biz-framework
)
欢迎大家引用biz.jar,使用过程中遇到问题,可以提issue,我会尽快解决。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment