Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

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

Open
yertao opened this issue Dec 20, 2020 · 1 comment
Open

Comments

@yertao
Copy link

yertao commented Dec 20, 2020

每个请求之后都没有在本地保存图片文件
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:
- type: 'regex'
given: 'android\s+bootstrap'
then: 'please\s+input\s+username'
- type: 'regex'
given: 'HOME'
then: 'list'
exclusivePattern: 'pushView|popView|cookie|userAgent:|Mozilla|cookie:|setTitle|Macaca Test Swipe API'
clickTypes:
- 'android.widget.ImageView'
- 'android.widget.TextView'
- 'android.widget.Button'
editTypes:
- 'android.widget.EditText'
tabBarTypes:
- 'android.widget.TabWidget'
...

@macaca-bot
Copy link
Member

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:
- TYPE: 'Regex'
Given: 'Android \ S + Bootstrap'
Then: 'please \ s + input \ s + usrname'
- TYPE: 'Regex'
Given: 'Home'
Then: 'List'
ExclusivePattern: 'PushView | PopView | Cookie | UseRagent: | Mozilla | Cookie: | Settitle | Macaca Test Swipe API'
ClickTypes:
- 'Android.widget.imageView'
- 'Android.Widget.TextView'
- 'Android.Widget.Button'
EditTypes:
- 'Android.Widget.editText'
Tabbartypes:
- 'Android.Widget.Tabwidget'
...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants