Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cci task run robot...
- *** Settings ***
- Resource C:/Dev/AmpImpact/robotframework/EnvironmentSetupFile.robot
- Suite Setup Run Keywords Suite Setup KW1 AND Suite Setup OS And Browser ${LocalOrRemote} ${Browser}
- *** Test Cases ***
- Verify whether I am able to set environment and browser
- [Tags] LocalEdge
- [Documentation] This test should run on the local edge browser
- Keyword X
- Keyword Y
- *** Keywords ***
- Suite Setup KW1
- do something
- Suite Setup OS And Browser
- [Arguments] ${LocalOrRemote} ${Browser}
- Log Many ${LocalOrRemote} ${Browser}
- run keyword if '${LocalOrRemote}'=='Local' Setup Local Browser ${Browser}
- ... ELSE IF '${LocalOrRemote}'=='Remote' Setup Remote Browser ${Browser}
- ... ELSE FAIL "Incorrect environment value passed! Please refer the instructions in README for running the test suite"
- cci task run robot -o suites mypath/MyTestFile.robot -o include LocalEdge -o vars LocalOrRemote:Local,Browser:edge
- KEYWORD BuiltIn . Log Many ${LocalOrRemote}, ${Browser}
- Documentation:
- Logs the given messages as separate entries using the INFO level.
- Start / End / Elapsed: 20190522 16:36:53.877 / 20190522 16:36:53.878 / 00:00:00.001
- 16:36:53.877 INFO Local
- 16:36:53.877 INFO chrome
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement