在robotframework中创建测试用例期间,可以修改关键字中多个参数列表中的1个或2个参数
我很好奇,当我在测试用例创建期间尝试使用以下关键字时,是否可以修改一些默认参数。见下面的例子在robotframework中创建测试用例期间,可以修改关键字中多个参数列表中的1个或2个参数,robotframework,Robotframework,我很好奇,当我在测试用例创建期间尝试使用以下关键字时,是否可以修改一些默认参数。见下面的例子 *** Keywords *** Open URL With Custom Parameters [Arguments] ${fe}=example.lan ${be}=https://example.be.lan ${reminderInterval}=5 ${licence}=default ${flowId}=7349 ${name}=example ${c
*** Keywords ***
Open URL With Custom Parameters
[Arguments] ${fe}=example.lan ${be}=https://example.be.lan ${reminderInterval}=5 ${licence}=default ${flowId}=7349 ${name}=example ${cur}=EUR ${lang}=en
... ${browser}=chrome
Open Browser https://${fe}/${name}/debug_index.html?&appsrv=${be}¤cy=${cur}&lang=${lang}&reminderInterval=${reminderInterval}&fullscreen=yes&license=${licence} ${browser}
我只想修改2个专用参数,例如下面的参数不起作用
*** Test Cases ***
Open browser and do sth
Open URL With Custom Parameters ${name}=development ${be}=https://goodday.com`
如果可以按不同的顺序更改关键字的默认参数,那么在关键字中设置默认参数的位置是什么
我希望避免添加all LEISTES参数以仅更改1或2个参数,如下所示:
*** Test Cases ***
Open browser and do sth
Open URL With Custom Parameters ${fe}=https://development ${be}=https://goodday3421.com
..是的,这是可能的,只是在调用关键字时不要在参数名称周围使用
${}
:
Open URL With Custom Parameters fe=https://development be=https://goodday3421.com