macacajs / NoSmoke

A cross platform UI crawler which scans view trees then generate and execute UI test cases.
https://macacajs.github.io/NoSmoke
MIT License
198 stars 57 forks source link

通过nosmoke -c命令测试过程中,真机与模拟器都截图失败 #97

Open yertao opened 3 years ago

yertao commented 3 years ago

每个请求之后都没有在本地保存图片文件 macaca:2.2.1 Android Platforms:android-29 nosmoke日志提示screenshot failure yml配置

1. Initialization option

desiredCapabilities: platformName: 'android' isWaitActivity: true deviceName: '127.0.0.1:7555' activity: 'LoginActivity' permissionPatterns: '[\"继续安装\",\"下一步\",\"好\",\"允许\",\"确定\",\"我知道\"]' app: 'https://npmcdn.com/android-app-bootstrap@latest/android_app_bootstrap/build/outputs/apk/android_app_bootstrap-debug.apk'

2. Crawling option

crawlingConfig: platform: 'android' packages: 'com.github.android_app_bootstrap|com.xxx.your.optional.app' targetElements: loginAccount: searchValue : 'please input username' actionValue : '中文+Test+12345678' loginPassword: searchValue : 'please input password' actionValue : '111111' loginButton: searchValue : 'Login' alertConfirm: searchValue : 'yes' asserts:

macaca-bot commented 3 years ago

This is the translated issue:


During the NOSMOKE -C command test, the real machine and the simulator screenshot failed

No image files are saved locally after each request Macaca: 2.2.1 Android Platforms: Android-29 Log ! [image] (https://user-images.githubuserContent.com/49397769/102714107-11eb-893a-db7bf3e80fd5.png) YML configuration

1. Initialization Option

DesignedCapabilities: Platformname: 'Android' ISWAITAATIVITY: TRUE DeviceName: '127.0.0.1:7555' Activity: 'LoginActivity' PermissionPatterns: '[\ "Continue to install \", \ "Next \", "Good \", \ "Allow \", "OK \", \ "I know \"]' App: 'https://npmcdn.com/android-app-bootstrap@lates/android_app_bootstrap/build/outputs/apk/android_app_bootstrap-debug.apk'

2. Crawling Option

CrawlingConfig: Platform: 'Android' Packages: 'com.github.android_app_bootstrap | com.xxx.your.optional.app' TargetElements: Loginaccount: SearchValue: 'Please Input Username' ActionValue: 'Chinese + Test + 12345678' Loginpassword: SearchValue: 'Please Input Password' ActionValue: '111111' LoginButton: SearchValue: 'login' AlertConfirm: SearchValue: 'Yes' askERTS: