From f9fe38b2a5ed4c692cb3d934b86698a39f37c0dd Mon Sep 17 00:00:00 2001 From: zhangxiujian Date: Fri, 4 Nov 2022 07:26:48 +0000 Subject: [PATCH] updata location to monthly. Signed-off-by: zhangxiujian --- screenshot32/DistributedTest/testcases/DistributedTest.py | 8 ++++---- screenshot32/resource/app_capture_screen_test_config.json | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/screenshot32/DistributedTest/testcases/DistributedTest.py b/screenshot32/DistributedTest/testcases/DistributedTest.py index 41780ce..24117f3 100644 --- a/screenshot32/DistributedTest/testcases/DistributedTest.py +++ b/screenshot32/DistributedTest/testcases/DistributedTest.py @@ -37,8 +37,8 @@ class DistributedTest(TestCase): CommonOH.startAbility(self.Phone1, "ohos.samples.distributedcalc.MainAbility", "ohos.samples.distributedcalc") time.sleep(2) # 授权 - CommonOH.click(self.Phone1, 500, 706) - CommonOH.click(self.Phone1, 500, 706) + CommonOH.click(self.Phone1, 500, 1130) + CommonOH.click(self.Phone1, 500, 1130) CommonOH.hdc_std(self.Phone1, "shell snapshot_display -f /data/distributedcalc_step1.png") CommonOH.hdc_std(self.Phone1, "file recv /data/distributedcalc_step1.png testcases\\distributedcalc_step1.png") CommonOH.click(self.Phone1, 610, 110) @@ -93,8 +93,8 @@ class DistributedTest(TestCase): CommonOH.click(self.Phone1, 580, 1090) # 设备二授权 time.sleep(2) - CommonOH.click(self.Phone2, 500, 706) - CommonOH.click(self.Phone2, 500, 706) + CommonOH.click(self.Phone2, 500, 1130) + CommonOH.click(self.Phone2, 500, 1130) # 校验远端计算器是否被拉起 CommonOH.hdc_std(self.Phone2, "shell snapshot_display -f /data/distributedcalc_step6.png") CommonOH.hdc_std(self.Phone2, "file recv /data/distributedcalc_step6.png testcases\\distributedcalc_step6.png") diff --git a/screenshot32/resource/app_capture_screen_test_config.json b/screenshot32/resource/app_capture_screen_test_config.json index bfdf8b4..181f360 100644 --- a/screenshot32/resource/app_capture_screen_test_config.json +++ b/screenshot32/resource/app_capture_screen_test_config.json @@ -6,7 +6,8 @@ "recent-x-y":[515, 1240], "home-x-y":[360, 1240], "recent_del-x-y":[360, 1170], - "permisson_ok-x-y":[575, 700], + "permisson_ok-x-y":[500, 1130], + "note_content-x-y":[500, 310], "take_photos-x-y":[360, 1095], "convert_to_video-x-y":[430, 980], "convert_to_photos-x-y":[200, 1095], @@ -113,7 +114,7 @@ "entry": "aa start -a MainAbility -b com.ohos.note", "kill_note": ["killall com.ohos.note"], "all_actions": [ - [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [5, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "shot_cmd"], [1, "cmp_cmd-level"], [2, "recent-x-y"], [1, "recent_del-x-y"] + [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [5, "note_content-x-y"], [2, "note_content-x-y"], [2, "shot_cmd"], [1, "cmp_cmd-level"], [2, "recent-x-y"], [1, "recent_del-x-y"] ] }, { @@ -121,7 +122,7 @@ "entry": "aa start -a com.ohos.contacts.MainAbility -b com.ohos.contacts", "kill_contacts": ["killall com.ohos.contacts"], "all_actions": [ - [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "phone-x-y"], [2, "phone-x-y"], [2, "shot_cmd"], [1, "cmp_cmd-level"], [1, "kill_contacts"] + [2, "phone-x-y"], [2, "phone-x-y"], [2, "shot_cmd"], [1, "cmp_cmd-level"], [1, "kill_contacts"] ] }, -- Gitee