Quellcode durchsuchen

更新了控件树逻辑,暂定了输出文件夹

xuyr vor 4 Jahren
Ursprung
Commit
7e1fad592c

+ 18 - 0
ActivityList/0.txt

@@ -0,0 +1,18 @@
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.LoginActivity
+.MainActivity
+.MainActivity
+.MainActivity

+ 1400 - 0
OperationFlow/com.yao.club/1583238670716_0.txt

@@ -0,0 +1,1400 @@
+activity:.LoginActivity
+behavior:click
+arg:
+index:-1
+id:
+text:欢迎来到记乐部
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.LoginActivity
+behavior:click
+arg:
+index:-1
+id:
+text:会员名
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.LoginActivity
+behavior:sendKeys
+arg:[张三]
+index:-1
+id:com.yao.club:id/et_username
+text:请输入会员名
+className:android.widget.EditText
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:true
+longClickable:true
+scrollable:false
+selected:false
+displayed:true
+
+activity:.LoginActivity
+behavior:click
+arg:
+index:-1
+id:
+text:密   码
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.LoginActivity
+behavior:sendKeys
+arg:[123]
+index:-1
+id:com.yao.club:id/et_pwd
+text:
+className:android.widget.EditText
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:true
+scrollable:false
+selected:false
+displayed:true
+
+activity:.LoginActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_login
+text:登录
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_appname
+text:爱羽俱乐部
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_surplus
+text:剩余会费
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_surplus_money
+text:1000.00
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_total
+text:总交会费
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_total_money
+text:1000.00
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_note
+text:记一笔
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_left
+text:
+className:android.widget.ImageView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/tv_title
+text:记一笔
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_palce
+text:地点
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_time
+text:时间
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_day
+text:2020-03-03
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:
+text:2019
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:true
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:
+text:2021
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:true
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:
+text:2
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:true
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:
+text:4
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:true
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:
+text:02
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:true
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:
+text:04
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:true
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:android:id/button2
+text:取消
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_money
+text:场地费
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_placemoneyflag
+text:¥
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_watermoney
+text:水费
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_watermoneyflag
+text:¥
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_badminton
+text:羽毛球
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_badmintonflag
+text:个
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_people
+text:会员
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_people
+text:+
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/addr_title
+text:选择会员
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/iv_cancel
+text:
+className:android.widget.ImageView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/gridType
+text:
+className:android.widget.GridView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_nomember
+text:非会员
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_nomemberflag
+text:人
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_totalmoneyinfo
+text:总计:
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_totalmoney
+text:¥0.0
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_averagemoneyinfo
+text:每人:
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_averagemoney
+text:¥0.0
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_save
+text:保存
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.RecordActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_cancel
+text:取消
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_activity
+text:活动
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.ExerciseListActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_left
+text:
+className:android.widget.ImageView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_member
+text:会员
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_left
+text:
+className:android.widget.ImageView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_property
+text:资产
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_onself
+text:个人信息
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:个人信息
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:会员名
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:密  码
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:纳  贡
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:类  型
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:click
+arg:
+index:-1
+id:
+text:
+className:android.view.View
+desc:个人信息
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.MemberInfoActivity
+behavior:sendKeyEvent
+arg:[4]
+index:-1
+id:
+text:
+className:
+desc:
+packageName:
+enabled:null
+checkable:null
+checked:null
+clickable:null
+focusable:null
+focused:null
+longClickable:null
+scrollable:null
+selected:null
+displayed:null
+
+activity:.MainActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/btn_hf
+text:会费信息
+className:android.widget.Button
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:true
+focusable:true
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.HFActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_appname
+text:爱羽俱乐部
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.HFActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_surplus
+text:剩余会费
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.HFActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_surplus_money
+text:1000.0
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.HFActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_total
+text:总交会费
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.HFActivity
+behavior:click
+arg:
+index:-1
+id:com.yao.club:id/txt_total_money
+text:1000.0
+className:android.widget.TextView
+desc:
+packageName:
+enabled:true
+checkable:false
+checked:false
+clickable:false
+focusable:false
+focused:false
+longClickable:false
+scrollable:false
+selected:false
+displayed:true
+
+activity:.HFActivity
+behavior:sendKeyEvent
+arg:[4]
+index:-1
+id:
+text:
+className:
+desc:
+packageName:
+enabled:null
+checkable:null
+checked:null
+clickable:null
+focusable:null
+focused:null
+longClickable:null
+scrollable:null
+selected:null
+displayed:null
+
+activity:.MainActivity
+behavior:sendKeyEvent
+arg:[4]
+index:-1
+id:
+text:
+className:
+desc:
+packageName:
+enabled:null
+checkable:null
+checked:null
+clickable:null
+focusable:null
+focused:null
+longClickable:null
+scrollable:null
+selected:null
+displayed:null
+

+ 674 - 0
OperationFlow/com.yao.club/mergeWidgetInfo.dot

@@ -0,0 +1,674 @@
+digraph g {
+    node [shape=box, style=filled, fillcolor=lightblue, fontname="simsun.ttc", fontsize=14];
+    edge [fontname="simsun.ttc", fontsize=12];
+    subgraph cluster_{
+    label = ""
+        64[label = "Start        "];
+    }
+    subgraph cluster__LoginActivity{
+    label = "_LoginActivity"
+        0[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 欢迎来到记乐部
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        1[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 会员名
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        2[label = "behavior = sendKeys
+        arg = [张三]
+        index = -1
+        id = com.yao.club:id/et_username
+        text = 请输入会员名
+        className = android.widget.EditText
+        desc = 
+        packageName = 
+        "];
+        3[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 密   码
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        4[label = "behavior = sendKeys
+        arg = [123]
+        index = -1
+        id = com.yao.club:id/et_pwd
+        text = 
+        className = android.widget.EditText
+        desc = 
+        packageName = 
+        "];
+        5[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_login
+        text = 登录
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+    }
+    subgraph cluster__ExerciseListActivity{
+    label = "_ExerciseListActivity"
+        44[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_left
+        text = 
+        className = android.widget.ImageView
+        desc = 
+        packageName = 
+        "];
+    }
+    subgraph cluster__RecordActivity{
+    label = "_RecordActivity"
+        12[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_left
+        text = 
+        className = android.widget.ImageView
+        desc = 
+        packageName = 
+        "];
+        13[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/tv_title
+        text = 记一笔
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        14[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_palce
+        text = 地点
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        15[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_time
+        text = 时间
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        16[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_day
+        text = 2020-03-03
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        17[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 2019
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        18[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 2021
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        19[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 2
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        20[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 4
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        21[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 02
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        22[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 04
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        23[label = "behavior = click
+        arg = null
+        index = -1
+        id = android:id/button2
+        text = 取消
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        24[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_money
+        text = 场地费
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        25[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_placemoneyflag
+        text = ¥
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        26[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_watermoney
+        text = 水费
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        27[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_watermoneyflag
+        text = ¥
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        28[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_badminton
+        text = 羽毛球
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        29[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_badmintonflag
+        text = 个
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        30[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_people
+        text = 会员
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        31[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_people
+        text = +
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        32[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/addr_title
+        text = 选择会员
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        33[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/iv_cancel
+        text = 
+        className = android.widget.ImageView
+        desc = 
+        packageName = 
+        "];
+        34[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/gridType
+        text = 
+        className = android.widget.GridView
+        desc = 
+        packageName = 
+        "];
+        35[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_nomember
+        text = 非会员
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        36[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_nomemberflag
+        text = 人
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        37[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_totalmoneyinfo
+        text = 总计:
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        38[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_totalmoney
+        text = ¥0.0
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        39[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_averagemoneyinfo
+        text = 每人:
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        40[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_averagemoney
+        text = ¥0.0
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        41[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_save
+        text = 保存
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        42[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_cancel
+        text = 取消
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+    }
+    subgraph cluster__HFActivity{
+    label = "_HFActivity"
+        57[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_appname
+        text = 爱羽俱乐部
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        58[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_surplus
+        text = 剩余会费
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        59[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_surplus_money
+        text = 1000.0
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        60[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_total
+        text = 总交会费
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        61[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_total_money
+        text = 1000.0
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        62[label = "behavior = sendKeyEvent
+        arg = [4]
+        index = -1
+        id = 
+        text = 
+        className = 
+        desc = 
+        packageName = 
+        "];
+    }
+    subgraph cluster__MainActivity{
+    label = "_MainActivity"
+        6[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_appname
+        text = 爱羽俱乐部
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        7[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_surplus
+        text = 剩余会费
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        8[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_surplus_money
+        text = 1000.00
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        9[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_total
+        text = 总交会费
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        10[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/txt_total_money
+        text = 1000.00
+        className = android.widget.TextView
+        desc = 
+        packageName = 
+        "];
+        11[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_note
+        text = 记一笔
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        43[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_activity
+        text = 活动
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        45[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_member
+        text = 会员
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        47[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_property
+        text = 资产
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        48[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_onself
+        text = 个人信息
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        56[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_hf
+        text = 会费信息
+        className = android.widget.Button
+        desc = 
+        packageName = 
+        "];
+        63[label = "behavior = sendKeyEvent
+        arg = [4]
+        index = -1
+        id = 
+        text = 
+        className = 
+        desc = 
+        packageName = 
+        "];
+    }
+    subgraph cluster__MemberActivity{
+    label = "_MemberActivity"
+        46[label = "behavior = click
+        arg = null
+        index = -1
+        id = com.yao.club:id/btn_left
+        text = 
+        className = android.widget.ImageView
+        desc = 
+        packageName = 
+        "];
+    }
+    subgraph cluster__MemberInfoActivity{
+    label = "_MemberInfoActivity"
+        49[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 
+        className = android.view.View
+        desc = 个人信息
+        packageName = 
+        "];
+        50[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 
+        className = android.view.View
+        desc = 会员名
+        packageName = 
+        "];
+        51[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 
+        className = android.view.View
+        desc = 
+        packageName = 
+        "];
+        52[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 
+        className = android.view.View
+        desc = 密  码
+        packageName = 
+        "];
+        53[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 
+        className = android.view.View
+        desc = 纳  贡
+        packageName = 
+        "];
+        54[label = "behavior = click
+        arg = null
+        index = -1
+        id = 
+        text = 
+        className = android.view.View
+        desc = 类  型
+        packageName = 
+        "];
+        55[label = "behavior = sendKeyEvent
+        arg = [4]
+        index = -1
+        id = 
+        text = 
+        className = 
+        desc = 
+        packageName = 
+        "];
+    }
+    0->1;
+    1->2;
+    2->3;
+    3->4;
+    4->5;
+    5->6;
+    6->7;
+    7->8;
+    8->9;
+    9->10;
+    10->11;
+    11->12;
+    12->13;
+    13->14;
+    14->15;
+    15->16;
+    16->17;
+    17->18;
+    18->19;
+    19->20;
+    20->21;
+    21->22;
+    22->23;
+    23->24;
+    24->25;
+    25->26;
+    26->27;
+    27->28;
+    28->29;
+    29->30;
+    30->31;
+    31->32;
+    32->33;
+    33->34;
+    34->35;
+    35->36;
+    36->37;
+    37->38;
+    38->39;
+    39->40;
+    40->41;
+    41->42;
+    42->43;
+    43->44;
+    44->45;
+    45->46;
+    46->47;
+    47->48;
+    48->49;
+    49->50;
+    49->55;
+    50->51;
+    51->52;
+    51->53;
+    51->54;
+    51->51;
+    51->49;
+    52->51;
+    53->51;
+    54->51;
+    55->56;
+    56->57;
+    57->58;
+    58->59;
+    59->60;
+    60->61;
+    61->62;
+    62->63;
+    64->0;
+}

BIN
OperationFlow/com.yao.club/mergeWidgetInfo.png


+ 54 - 39
src/main/java/net/mooctest/www/android_auto_test/Scripts/MergeScript.java

@@ -25,7 +25,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
 public class MergeScript extends AbstractBaseScript {
 
     public static final String TAG = Thread.currentThread() .getStackTrace()[1].getClassName();
-
+    private String flowDir = "OperationFlow"+File.separator;
     private String udid;
     private AndroidDriver driver;
     private ApkInfo apkInfo;
@@ -73,6 +73,7 @@ public class MergeScript extends AbstractBaseScript {
         this.driver = driver;
         this.apkInfo = apkInfo;
         this.appPackage = apkInfo.getPackageName();
+        this.flowDir = this.flowDir+appPackage+File.separator;
     }
     private void initWriter(File testScript, File testAction, File myTestLog){
         try {
@@ -108,44 +109,42 @@ public class MergeScript extends AbstractBaseScript {
 
     @Override
     public void run(){
-        PrintUtil.print("MergeScript start", TAG, udid);
-        //跑第一遍
-        startTest();
-        //读内容
-        preRun();
         //跑
         try{
             int testNum=0;
             if (resList != null) {
                 for (int i = 0; i < nodeList.size(); i++) {
                     try {
+                        //DFS中如果有覆盖到这里,就不用跑这条了
                         if (nodeList.get(i).isVisited()) {
-                            System.out.println("第" + (i + 1) + "条路径 已被覆盖,继续下一条");
+                            PrintUtil.print("the "+ (i + 1) + "path has been covered in DFS, skip to next", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
                             testNum++;
                             continue;
                         }
-                    } catch (Exception ex) {
-                        System.out.println(ex.getStackTrace());
-                        System.out.println("查询路线覆盖情况失败?");
+                    } catch (Exception e) {
+                        PrintUtil.printException(TAG, udid, e);
+                        PrintUtil.print("merge DFS and scripts failed", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
                     }
+                    //重置app
                     driver.resetApp();
-                    System.out.println("第" + (i + 1) + "条路径");
-                    System.out.println("sleep 10s to reset APP");
+                    PrintUtil.print("rerun the "+(i+1)+" path", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
+                    PrintUtil.print("sleep 10s to reset APP", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
                     Thread.sleep(10000);
                     try {
                         widgetMergeTools.runOnePath(resList.size(), nodeList.get(i), driver, this);
                     } catch (Exception e) {
-                        System.out.println(e.getStackTrace());
-                        System.out.println("第" + (i + 1) + "条路径 复现失败");
+                        PrintUtil.printException(TAG, udid, e);
+                        PrintUtil.print("rerun the "+(i+1)+" path failed", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
                     }
-                    System.out.println("路径复现完毕,3秒后开始自动化测试");
+                    PrintUtil.print("sleep 3s to start DFS", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
                     Thread.sleep(3000);
                     try {
                         setStopTestFlag(false);
+                        //控制权转移
                         startTest();
                     } catch (Exception e) {
-                        System.out.println(e.getStackTrace());
-                        System.out.println("第" + (i + 1) + "条路径 自动化测试失败");
+                        PrintUtil.printException(TAG, udid, e);
+                        PrintUtil.print("rerun the "+(i+1)+" times DFS failed", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
                     }
                     try {
                         for (int m = 0; m < resList.size(); m++) {
@@ -156,16 +155,16 @@ public class MergeScript extends AbstractBaseScript {
                                 }
                             }
                         }
-                    } catch (Exception ex) {
-                        System.out.println(ex.getStackTrace());
-                        System.out.println("用户节点删减失败");
+                    } catch (Exception e) {
+                        PrintUtil.printException(TAG, udid, e);
+                        PrintUtil.print("delete covered widget failed", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
                     }
-                    System.out.println("本次遍历完成,进入下一条路径");
+                    PrintUtil.print("finish the "+(i+1)+" rerun, next", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
                 }
-                System.out.println("跑完啦");
-                System.out.println("经过的activity存储在/ActivityList中");
+                PrintUtil.print("success run all", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
             }
             //实验用数据
+            /*
             int num=0;
             for(int m = 0;m<resList.size();m++){
                 if(!resList.get(m).isVisited()){
@@ -174,23 +173,27 @@ public class MergeScript extends AbstractBaseScript {
             }
             System.out.println(testNum+"个新Activity点在测试中被重复覆盖");
             System.out.println("还有"+num+"个点未被覆盖");
+            */
         }catch (Exception e){
-            System.out.println("复现人工脚本失败");
+            PrintUtil.printException(TAG, udid, e);
+            PrintUtil.print("rerun the path failed", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
         }
-        //结尾
-        afterRun();
     }
 
     @Override
     void preRun(){
+        PrintUtil.print("MergeScript start", TAG, udid);
+        //跑第一遍
+        startTest();
         //从res文件里读内容
-        //TODO地址要改
         try {
-            resList = widgetMergeTools.getResList("OperationFlow"+File.separator);
-            widgetMergeTools.resList2Pic(resList);
+            File fdir = new File(flowDir);
+            if(!fdir.exists()) fdir.mkdirs();
+            resList = widgetMergeTools.getResList(flowDir);
             nodeList = widgetMergeTools.getAllPath(resList);
         }catch(Exception e){
-            System.out.println("用户操作流读取失败");
+            PrintUtil.printException(TAG, udid, e);
+            PrintUtil.print("read rerun path failed", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
         }
         //去重
         try {
@@ -203,16 +206,25 @@ public class MergeScript extends AbstractBaseScript {
                 }
             }
         }catch (Exception e){
-            System.out.println("第一次DFS去重失败");
+            PrintUtil.printException(TAG, udid, e);
+            PrintUtil.print("delete covered widget failed", TAG, udid, myTestLogWriter, PrintUtil.ANSI_WHITE);
         }
-
     }
 
     @Override
     void afterRun(){
         //跑的整个数据生成res文件
-
-        //删掉旧的
+        widgetMergeTools.resList2Pic(wholeMap,flowDir);
+        long time = new Date().getTime();
+        for(int index = 0; index< pathList.size();index++){
+            List<WidgetInfo> res = pathList.get(index);
+            for (int i = 0; i < res.size(); i++) {
+                WidgetInfo wi = res.get(i);
+                String txtName = flowDir + File.separator + time +"_"+ index +".txt";
+                wi.recordWholeElement(txtName);
+            }
+        }
+        //删掉旧的 TODO
     }
 
     public void setStopTestFlag(boolean b){
@@ -281,13 +293,13 @@ public class MergeScript extends AbstractBaseScript {
         //flag开启的情况下,到了web界面则自动返回,防止无限前进
         if(closeWebPageFlag){
             if(!isNativeApp()){
-                System.out.println("not native App");
+                PrintUtil.print("not native app", TAG, udid, myTestLogWriter, PrintUtil.ANSI_GREEN);
                 executeKeyEvent("Click Return button because is WebPage", AndroidKey.BACK);
                 currentActivity = driver.currentActivity();
             }
         }
         //TODO 太慢
-        System.out.println("计算页面hash值");
+        PrintUtil.print("culculate Hash", TAG, udid, myTestLogWriter, PrintUtil.ANSI_GREEN);
         int currentPageHash = driver.getPageSource().hashCode();
         currentNode.setName(currentActivity);
         //若当前子页面的activity在activityList中,currentActivityIndex为指向该对象的index,不在则为-1
@@ -397,13 +409,13 @@ public class MergeScript extends AbstractBaseScript {
                         //web开启则返回
                         if(closeWebPageFlag){
                             if(!isNativeApp()){
-                                System.out.println("not native App");
+                                PrintUtil.print("not native App", TAG, udid, myTestLogWriter, PrintUtil.ANSI_GREEN);
                                 executeKeyEvent("Click Return button because is WebPage", AndroidKey.BACK);
                                 activityAfterClick = driver.currentActivity();
                             }
                         }
                         //TODO 太慢
-                        System.out.println("计算页面hash值");
+                        PrintUtil.print("culculate Hash", TAG, udid, myTestLogWriter, PrintUtil.ANSI_GREEN);
                         int pageHashAfterClick = driver.getPageSource().hashCode();
                         if(pageHashAfterClick == currentPageHash){
                             //点击控件后的页面的pageSource的hash值没变,页面没有任何改变
@@ -1488,7 +1500,7 @@ public class MergeScript extends AbstractBaseScript {
         Set<String> contextNames = driver.getContextHandles();
         for (String contextName : contextNames) {
             if (contextName.contains("WEBVIEW")) {
-                System.out.println("is webview, return");
+                PrintUtil.print("is webview, return", TAG, udid, myTestLogWriter, PrintUtil.ANSI_GREEN);
                 return false;
             }
         }
@@ -1496,7 +1508,9 @@ public class MergeScript extends AbstractBaseScript {
     }
 
     private void recordActivity(String act) {
+        //no need now
         //实验用,记录每一个到达过的activity
+        /*
         File f = new File("ActivityList");
         if(!f.exists()){
             f.mkdirs();
@@ -1509,5 +1523,6 @@ public class MergeScript extends AbstractBaseScript {
         } catch (IOException e) {
             e.printStackTrace();
         }
+        */
     }
 }

+ 1 - 1
src/main/java/net/mooctest/www/android_auto_test/models/WidgetInfo.java

@@ -582,7 +582,7 @@ public class WidgetInfo {
         getWholePath("C:\\Users\\jon\\Desktop\\1574660320774");
         getWholePath("C:\\Users\\jon\\Desktop\\1574658681331");
         ArrayList<WidgetInfoNode> resList = widgetMergeTools.getResList("C:\\Users\\jon\\Desktop\\test");
-        widgetMergeTools.resList2Pic(resList);
+        widgetMergeTools.resList2Pic(resList,"test");
         ArrayList<WidgetInfoNode> nodeList = widgetMergeTools.getAllPath(resList);
     }
 }

+ 1 - 1
src/main/java/net/mooctest/www/android_auto_test/utils/RunScriptTest.java

@@ -25,7 +25,7 @@ public class RunScriptTest {
     String udid = deviceName;
     String traceId = "100";
     AndroidDriver<WebElement> driver;
-    String port = "4730";
+    String port = "4723";
     String TAG = "just for test";
 
     ApkInfo apkInfo;

+ 2 - 3
src/main/java/net/mooctest/www/android_auto_test/utils/widgetMergeTools.java

@@ -435,8 +435,7 @@ public class widgetMergeTools {
     }
 
 
-    public static void resList2Pic(ArrayList<WidgetInfoNode> resList) {
-        String dirName = "ActivityList";
+    public static void resList2Pic(ArrayList<WidgetInfoNode> resList,String dirName) {
         String dotName = "mergeWidgetInfo";
         File dotFile = new File(dirName+File.separator+dotName+".dot");
         try {
@@ -539,7 +538,7 @@ public class widgetMergeTools {
     }
     public static void main(String []args){
         ArrayList<WidgetInfoNode> resList = widgetMergeTools.getResList("D:\\工作\\test");
-        widgetMergeTools.resList2Pic(resList);
+        widgetMergeTools.resList2Pic(resList,"test");
 //        ArrayList<WidgetInfoNode> nodeList = widgetMergeTools.getAllPath(resList);
 //        //nodeList.size()
 //        for(int i =0;i<1;i++){