From d9e49e8847ee782839ac7caec770ae57d607d437 Mon Sep 17 00:00:00 2001 From: zhangxiujian Date: Thu, 3 Nov 2022 01:04:00 +0000 Subject: [PATCH] updata authorization box location. Signed-off-by: zhangxiujian --- screenshot32/DistributedTest/testcases/DistributedTest.py | 8 ++++---- screenshot32/resource/app_capture_screen_test_config.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/screenshot32/DistributedTest/testcases/DistributedTest.py b/screenshot32/DistributedTest/testcases/DistributedTest.py index 6de3591..bec8615 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.jpeg") CommonOH.hdc_std(self.Phone1, "file recv /data/distributedcalc_step1.jpeg testcases\\distributedcalc_step1.jpeg") CommonOH.click(self.Phone1, 610, 110) @@ -96,8 +96,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_step7.jpeg") CommonOH.hdc_std(self.Phone2, "file recv /data/distributedcalc_step7.jpeg testcases\\distributedcalc_step7.jpeg") diff --git a/screenshot32/resource/app_capture_screen_test_config.json b/screenshot32/resource/app_capture_screen_test_config.json index bfdf8b4..fbb3fac 100644 --- a/screenshot32/resource/app_capture_screen_test_config.json +++ b/screenshot32/resource/app_capture_screen_test_config.json @@ -6,7 +6,7 @@ "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], "take_photos-x-y":[360, 1095], "convert_to_video-x-y":[430, 980], "convert_to_photos-x-y":[200, 1095], -- Gitee