You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.8 KiB
47 lines
1.8 KiB
*** Settings ***
|
|
Documentation 接口:短信验证码登录认证
|
|
Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml
|
|
Resource LoginResource.robot
|
|
Library String
|
|
Library Collections
|
|
|
|
*** Test Cases ***
|
|
手机号验证码登录
|
|
#登录婚介平台
|
|
Given 读取TXT文件
|
|
When 用户获取婚介平台短信验证码
|
|
Then 数据库查询用户生效且未过期的验证码
|
|
And 用户手机号验证码登录婚介平台
|
|
And 查询用户的婚介组织
|
|
|
|
手机号验证码登录-888888
|
|
#登录婚介平台
|
|
Given 读取TXT文件
|
|
And 用户手机号验证码登录婚介平台-888888
|
|
And 查询用户的婚介组织
|
|
|
|
手机号验证码已过期登录
|
|
#验证码已过期
|
|
Given 读取TXT文件
|
|
When 用户获取婚介平台短信验证码
|
|
Then 数据库查询用户生效且已过期的验证码
|
|
And 用户手机号错误验证码登录婚介平台
|
|
|
|
000
|
|
#Given 创建一个列表
|
|
#Then 同时执行多个参数的FOR循环
|
|
#${NUM} Generate Random String 18 [NUMBERS] #随机生成18位的数字
|
|
#追加字典key,value
|
|
#${D1} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXngy89ZejZsGXhrAUhi6bPPS7TweM0fvi/qQk3ObgSi6zg=='}
|
|
#${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
|