Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. cci task run robot...
  2.  
  3. *** Settings ***
  4. Resource C:/Dev/AmpImpact/robotframework/EnvironmentSetupFile.robot
  5. Suite Setup Run Keywords Suite Setup KW1 AND Suite Setup OS And Browser ${LocalOrRemote} ${Browser}
  6.  
  7.  
  8. *** Test Cases ***
  9. Verify whether I am able to set environment and browser
  10. [Tags] LocalEdge
  11. [Documentation] This test should run on the local edge browser
  12. Keyword X
  13. Keyword Y
  14.  
  15.  
  16. *** Keywords ***
  17. Suite Setup KW1
  18. do something
  19. Suite Setup OS And Browser
  20. [Arguments] ${LocalOrRemote} ${Browser}
  21. Log Many ${LocalOrRemote} ${Browser}
  22. run keyword if '${LocalOrRemote}'=='Local' Setup Local Browser ${Browser}
  23. ... ELSE IF '${LocalOrRemote}'=='Remote' Setup Remote Browser ${Browser}
  24. ... ELSE FAIL "Incorrect environment value passed! Please refer the instructions in README for running the test suite"
  25.  
  26. cci task run robot -o suites mypath/MyTestFile.robot -o include LocalEdge -o vars LocalOrRemote:Local,Browser:edge
  27.  
  28. KEYWORD BuiltIn . Log Many ${LocalOrRemote}, ${Browser}
  29. Documentation:
  30. Logs the given messages as separate entries using the INFO level.
  31. Start / End / Elapsed: 20190522 16:36:53.877 / 20190522 16:36:53.878 / 00:00:00.001
  32. 16:36:53.877 INFO Local
  33. 16:36:53.877 INFO chrome
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement