LG_lai 2 years ago
parent
commit
82a59bd227
2 changed files with 14 additions and 10 deletions
  1. 22
      0-Login/Login-interface.robot
  2. 2
      0-Login/phone-test.txt

22
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 ${汉字}

2
0-Login/phone-test.txt

@ -1,2 +1,2 @@
手机号
13000000035
18888888888
Loading…
Cancel
Save