想问下,我这边在配置testcase用于启动后进行自动登陆操作,同时该页面部分按钮添加到了黑明单(用不到的控件),但是testcase没生效,且黑明单也没生效,点击了黑名单控件
-
现象:登陆页面输入框一直没响应,会进入到黑明单控件,运行一段时间后进入桌面会启动其他App。
-
日志文件如下:
appcrawler_login.log (3.2 MB) -
yml配置文件如下:
---
pluginList: []
saveScreen: true
reportTitle: ""
resultDir: "20210930152311"
waitLoading: 500
waitLaunch: 6000
showCancel: true
maxTime: 10800
maxDepth: 10
capability:
noReset: "true"
fullReset: "false"
appium: "http://127.0.0.1:4723/wd/hub"
appPackage: "com.jlpay.merch"
appActivity: ".ui.start.SplashActivity"
testcase:
name: "XueQiuTestDemo AppCrawler"
steps:
- given: []
when:
xpath: "//*[@resource-id='com.jlpay.merch:id/et_login_account']"
action: "84931015812A00N"
when:
xpath: " //*[@resource-id='com.jlpay.merch:id/et_login_password']"
action: "123456Aa"
when:
xpath: "//*[@resource-id='com.jlpay.merch:id/btn_login']"
action: click
when:
xpath: "//*[@resource-id='com.jlpay.merch:id/btn_confirm']"
action: click
# - { xpath: "//*[@resource-id='com.xueqiu.android:id/et_login_account']", action: "84931015812A00N" }
# - { xpath: "//*[@resource-id='com.xueqiu.android:id/et_login_password']", action: "123456Aa" }
# - { xpath: "//*[@resource-id='com.xueqiu.android:id/btn_login']", action: click}
# - { xpath: "//*[@resource-id='com.xueqiu.android:id/btn_confirm']", action: click }
selectedList:
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Button')]"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Text') and @clickable='true' and string-length(@text)<10]"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[@clickable='true']/*[contains(name(), 'Text') and string-length(@text)<10]"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Image') and @clickable='true']"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[@clickable='true']/*[contains(name(), 'Image')]"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Image') and @name!='']"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[contains(name(), 'Text') and @name!='' and string-length(@label)<10]"
action: null
actions: []
times: 0
firstList: []
lastList:
- given: []
when: null
then: []
xpath: "//*[@selected='true']/..//*"
action: null
actions: []
times: 0
- given: []
when: null
then: []
xpath: "//*[@selected='true']/../..//*"
action: null
actions: []
times: 0
backButton:
- given: []
when: null
then: []
xpath: "Navigate up"
action: null
actions: []
times: 0
triggerActions:
- given: []
when: null
then: []
xpath: "share_comment_guide_btn"
action: null
actions: []
times: 0
xpathAttributes:
- "name"
- "label"
- "value"
- "resource-id"
- "content-desc"
- "instance"
- "text"
sortByAttribute:
- "depth"
- "list"
- "selected"
findBy: "default"
defineUrl: []
baseUrl: []
appWhiteList: []
urlBlackList: []
urlWhiteList: []
blackList:
- xpath: "//*[@resource-id='com.jlpay.merch:id/tv_login_type']"
- xpath: "//*[@resource-id='com.jlpay.merch:id/tv_forget_password']"
- xpath: "//*[@resource-id='com.jlpay.merch:id/ll_apply_account']"
- xpath: "//*[@resource-id='com.jlpay.merch:id/ll_login_group']"
beforeRestart: []
beforeElement:
- given: []
when: null
then: []
xpath: "/*"
action: "Thread.sleep(500)"
actions: []
times: 0
afterElement: []
afterPage: []
afterPageMax: 2
tagLimitMax: 2
tagLimit:
- given: []
when: null
then: []
xpath: "确定"
action: null
actions: []
times: 1000
- given: []
when: null
then: []
xpath: "取消"
action: null
actions: []
times: 1000
- given: []
when: null
then: []
xpath: "share_comment_guide_btn_name"
action: null
actions: []
times: 1000
assertGlobal: []