GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - macaca-sample/macaca-java-biz-sample: 基于MacacaJava版的UI自动化示例 (a sample for macaca business development based on wd.java(macacaClient))

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
autoui.iml
autoui.iml
 
 
checkstyle.xml
checkstyle.xml
 
 
pom.xml
pom.xml
 
 
settings.xml
settings.xml
 
 

Repository files navigation

Bootstrap


基于Macaca-Java版的UI自动化实现demo

文档参考(从入门到精通)

https://testerhome.com/junhe

安装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直接引用。

公共库代码也已开源: //github.com/macaca-sample/macaca-java-biz-framework

欢迎大家引用biz.jar,使用过程中遇到问题,可以提issue,我会尽快解决。

Contributors


Yinxl


xudafeng

This project follows the git-contributor spec, auto upated at Sat Apr 28 2018 19:15:25 GMT+0800.

About

基于MacacaJava版的UI自动化示例 (a sample for macaca business development based on wd.java(macacaClient))

Topics

javamacaca

Resources

Readme
Activity
Custom properties

Stars

46 stars

Watchers

8 watching

Forks

21 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.