From 98cb6bcf18f0d9b6ff8354859add1fef5e937af6 Mon Sep 17 00:00:00 2001 From: LG_lai Date: Fri, 8 Mar 2024 12:01:57 +0800 Subject: [PATCH] =?UTF-8?q?Appium=EF=BC=9A=E7=94=A8=E6=88=B7=E6=89=93?= =?UTF-8?q?=E5=BC=80=E7=9B=92=E7=89=88=E6=8B=BC=E6=8B=BC=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Login/Login.robot | 2 ++ Login/LoginResource.robot | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/Login/Login.robot b/Login/Login.robot index 3e3e515..eee3455 100644 --- a/Login/Login.robot +++ b/Login/Login.robot @@ -15,3 +15,5 @@ Plogin Then 登录 WLogin + Given 用户打开小程序 + #Then 微信一键登录 diff --git a/Login/LoginResource.robot b/Login/LoginResource.robot index 697ae16..d17a65a 100644 --- a/Login/LoginResource.robot +++ b/Login/LoginResource.robot @@ -3,8 +3,21 @@ Library AppiumLibrary *** Keywords *** 用户打开小程序 + #UI自动化,连接设备 + Open Application http://127.0.0.1:4723/wd/hub platformName=Android platformVersion=7.1.2 deviceName=127.0.0.1:5555 + #... appPackage=com.tencent.mm appActivity=ui.LauncherUI #打开微信 + Click Element xpath=//android.widget.TextView[@text='微信' and @content-desc='微信'] #打开微信 + sleep 2 + Click Element xpath=//android.widget.ImageView[@resource-id='com.tencent.mm:id/he6'] #点击搜索 + #Click Element xpath=//android.widget.EditText[@resource-id='com.tencent.mm:id/bxz'] #点击文本输入框 + sleep 1 + Input Text xpath=//android.widget.EditText[@resource-id='com.tencent.mm:id/bxz'] 盒版拼拼 #文本框输入:盒版拼拼 + Click Element xpath=//android.widget.TextView[@text='盒版拼拼'] #点击搜索的结果 + sleep 1 + Close Application 微信一键登录 + 用户打开小程序 输入手机号获取验证码