bytedance / Fastbot_Android

Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
1.05k stars 241 forks source link

max.xpath.actions如下,运行起来没有操作如下步骤 #86

Closed zhanghao921 closed 2 years ago

zhanghao921 commented 2 years ago

[ { "prob": 1, "activity":"com.xueqiu.android.main.view.MainActivity", "times": 1, "actions": [ { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[7]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[6]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[5]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[4]', "action": "CLICK", "throttle": 500 } ] } ]

ShenJiaojiao commented 2 years ago

[ { "prob": 1, "activity":"com.xueqiu.android.main.view.MainActivity", "times": 1, "actions": [ { "xpath":'//_[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[7]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[6]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[5]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[4]', "action": "CLICK", "throttle": 500 } ] } ]

一般都是配置的不对,这个脚本是可以正常执行的

geron-cn commented 2 years ago

[ { "prob": 1, "activity":"com.xueqiu.android.main.view.MainActivity", "times": 1, "actions": [ { "xpath":'//_[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[7]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[6]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[5]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[4]', "action": "CLICK", "throttle": 500 } ] } ]

使用 json.cn 等 format 工具检测配置, 你这个配置是错的。

pingchaodeng commented 2 years ago

[ { "prob": 1, "activity":"com.xueqiu.android.main.view.MainActivity", "times": 1, "actions": [ { "xpath":'//_[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[7]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[6]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[5]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[4]', "action": "CLICK", "throttle": 500 } ] } ]

使用 json.cn 等 format 工具检测配置, 你这个配置是错的。

使用Jason.cn检查无问题的配置,也无法正常执行,请问是什么原因呢@geron-cn