Skip to content

medivhXu/AT-M

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIT

appium + unitTest框架,po模式设计

安装使用

以上配置完成后,请运行以下脚本配置环境:

# iOS tools
$ brew install usbmuxd
$ brew install ideviceinstaller
$ brew install ios-webkit-debug-proxy # webview
$ npm -version
> 6.14.4

# macaca driver
# 安装有 TEAM_ID 的 macaca-ios
$ DEVELOPMENT_TEAM_ID=TEAM_ID npm i macaca-ios -g
$ brew install gradle
$ npm i macaca-android -g
$ npm i macaca-electron -g
$ npm i macaca-chrome -g
$ npm i -g macaca-cli
$ macaca doctor

# python 虚拟环境
$ cd uit
$ rm -rf venv
$ virtualenv --no-site-packages venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt

运行

  1. 请启动Appium Desktop App
  2. 请确认 __conf.py中,客户端配置参数是否与测试机一致;
  3. 请确认 __conf.py中,数据库配置参数是否与测试机运行环境一致;
  4. 请确认命令行中 adb devices 正常运行,并显示设备信息;
  5. 如果3运行不正常,请检查测试机是否开启开发者模式,并打开usb调试模式,如果仍然不行,请重启电脑;
  6. 测试过程中,请开启测试机的充电不锁屏选项;

注意

  1. 先去user.yaml文件里去改成自己的手机号;

run

点击图片查看视频

IMAGE ALT TEXT

About

app自动化框架

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages