我尝试使用Pycharm检查robotframework中的多个用户名和密码。我用的是Mac EI舰长。 请帮帮我。我正在尝试使用机器人框架指南中给出的方法。还有,有没有可能?或者我必须使用excel表或python文件?请让我知道。 这是我正在尝试的代码:
*** Settings ***
Library Selenium2Library
Resource ../Resources/Common.robot
Resource ../Resources/Yahoor.robot
Test Setup Common.Begin Browser
#Test Teardown Common.End Browser
Library string
*** Variables ***
${BROWSER} = firefox
${URL} = https://login.yahoo.com/config/login?.src=fpctx&.intl=ca&.lang=en-CA&.done=https://ca.yahoo.com/
${PASS} = ****
*** Test Cases ***
Yahoo Login Check Positive Testing
[Tags] Positive
[Documentation] Check for positive test
@{STR} Create List user1 user2
: FOR ${Item} IN @{STR}
Yahoor.Verify Display
Yahoor.Input Email-id
Yahoor.Check Pass Page
Yahoor.Input Pass Credentials
您可以首先调用和检索数据库中的所有用户,并在变量(例如BODY)中设置它们,然后从jsonbody
:FOR ${ELEMENT} IN @{BODY.json()}
获取用户名和密码,并调用其他关键字相关问题 更多 >
编程相关推荐