From f449e8a9ecc61b77f6642906b186ee22a4bbac90 Mon Sep 17 00:00:00 2001 From: LG_lai Date: Sat, 23 Mar 2024 09:06:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=B5=84=E6=96=99=E5=A1=AB?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0-Login/Login-interface.robot | 8 +- 0-Login/phone-test.txt | 2 +- 1-Applet/1-WriteInfo/Infomation.robot | 3 + .../MarriageInfo/Authentication.robot | 3 +- UI-Testing/Login.robot | 7 +- output/log.html | 12 +- output/output.xml | 949 ++---------------- output/report.html | 10 +- 8 files changed, 104 insertions(+), 890 deletions(-) diff --git a/0-Login/Login-interface.robot b/0-Login/Login-interface.robot index 4d27eee..47debb2 100644 --- a/0-Login/Login-interface.robot +++ b/0-Login/Login-interface.robot @@ -40,12 +40,14 @@ Library Collections #${L1} Create List {'c':3} #${index} Set Variable -1 #FOR ${item} IN @{list} - #${intex} Evaluate ${index}+1 - #${data} Set Variable ${item} - #Set Global Variable ${data} + #${intex} Evaluate ${index}+1 + #${data} Set Variable ${item} + #Set Global Variable ${data} #FOR循环 #END #随机生成字符串 ${first_name} Set Variable ["王", "李", "张", "刘", "赵", "蒋", "孟", "陈", "徐", "杨", "沈", "马", "高", "殷", "上官", "钟", "常","赖","臧"] ${nickName} Evaluate random.choice(${first_name}) +chr(random.randint(0x4e00,0x9fbf)) random log ${nickName} + +删除已浏览数据次数 diff --git a/0-Login/phone-test.txt b/0-Login/phone-test.txt index 16296eb..8b07d1f 100644 --- a/0-Login/phone-test.txt +++ b/0-Login/phone-test.txt @@ -1,2 +1,2 @@ 手机号 -13000000046 \ No newline at end of file +13000000036 \ No newline at end of file diff --git a/1-Applet/1-WriteInfo/Infomation.robot b/1-Applet/1-WriteInfo/Infomation.robot index 306b60b..5124c3d 100644 --- a/1-Applet/1-WriteInfo/Infomation.robot +++ b/1-Applet/1-WriteInfo/Infomation.robot @@ -44,3 +44,6 @@ region Set Global Variable ${districtName} Set Global Variable ${provinceCode} Set Global Variable ${provinceName} + +获取省市区 + region diff --git a/1-Applet/2-Homepage/MarriageInfo/Authentication.robot b/1-Applet/2-Homepage/MarriageInfo/Authentication.robot index cdbfeaa..d8bdd84 100644 --- a/1-Applet/2-Homepage/MarriageInfo/Authentication.robot +++ b/1-Applet/2-Homepage/MarriageInfo/Authentication.robot @@ -102,7 +102,8 @@ Resource ../../1-WriteInfo/InfoResource.robot END 提交${dating}征婚人的介绍信息 - ${value} Set Variable 在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上,自觉遵守公司的的,坚持参加公司的每次的培训。要求积极上进,爱护公司的一砖一瓦,一直严谨的态度和积极的热情投身于学习和工作中,虽然有成功的泪水,也有失败的辛酸,然而日益激烈的社会竟争也使我充分地认识到成为一名德智体全面发展的优秀工作者的重要性。 #个人介绍value + ${valueData} Create List 记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉 春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能 悲欢离合总无情 ,一任阶前、点滴到天明。悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 #个人介绍value + ${value} Evaluate random.choice(${valueData}) random #${value} Set Variable 草泥马 #敏感词个人介绍 ${authenticationCode} Evaluate 7 FOR ${miId} ${client_header} IN ZIP ${miId_list} ${Cheader_list} diff --git a/UI-Testing/Login.robot b/UI-Testing/Login.robot index 1954f57..82b2cb6 100644 --- a/UI-Testing/Login.robot +++ b/UI-Testing/Login.robot @@ -3,7 +3,8 @@ Library AppiumLibrary *** Test Cases *** LoginTest - Open Application http://127.0.0.1:4723/wd/hub platformName=Android deviceName=eafb4fdc - Wait Until Element Is Visible xpath=//android.webkit.WebView 10s + Open Application http://127.0.0.1:4723/wd/hub platformName=Android platformVersion=9 deviceName=emulator-5554 + #Wait Until Element Is Visible xpath=//android.webkit.WebView 10s Click Element xpath=//android.webkit.WebView - Wait Until Element Is Visible xpath=//android.view.View[@text=\"手机号快捷登录\"] \ No newline at end of file + Wait Until Element Is Visible xpath=//android.view.View[@text=\"去认证\"] + Close Application diff --git a/output/log.html b/output/log.html index a10720e..3dd3500 100644 --- a/output/log.html +++ b/output/log.html @@ -1806,25 +1806,25 @@ function stopPropagation(event) { window.output = {};