From 82a59bd2277a5cf8f0f43e420517eae9b3932bcb Mon Sep 17 00:00:00 2001 From: LG_lai Date: Fri, 22 Mar 2024 15:31:24 +0800 Subject: [PATCH] Merge branch 'master' of http://git.qniao.cn/automated-test-scripts/Dating-agency --- 0-Login/Login-interface.robot | 22 +++++++++++++--------- 0-Login/phone-test.txt | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/0-Login/Login-interface.robot b/0-Login/Login-interface.robot index 0cfb14d..11aa8aa 100644 --- a/0-Login/Login-interface.robot +++ b/0-Login/Login-interface.robot @@ -36,12 +36,16 @@ Library Collections #${dict} Evaluate demjson.encode(${D1},'utf-8') demjson #${D2} Set To Dictionary ${dict} a=1 #索引值从0开始执行 - ${list} Create List {'a':1} {'b':2} - ${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} - FOR循环 - END + #${list} Create List {'a':1} {'b':2} + #${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} + #FOR循环 + #END + #随机生成字符串 + ${first_name} Set Variable ["王", "李", "张", "刘", "赵", "蒋", "孟", "陈", "徐", "杨", "沈", "马", "高", "殷", "上官", "钟", "常","赖","臧"] + ${汉字} Evaluate chr(random.randint(0x4e00,0x9fff))+${first_name} random + log ${汉字} diff --git a/0-Login/phone-test.txt b/0-Login/phone-test.txt index 9ea248e..6f9f5cd 100644 --- a/0-Login/phone-test.txt +++ b/0-Login/phone-test.txt @@ -1,2 +1,2 @@ 手机号 -13000000035 \ No newline at end of file +18888888888 \ No newline at end of file