目录
Parsing config steps and create suite keywords
Write yourself keywords
This article is about setup and teardown in suite.
Attentions
- If you want to setup variables in suite, use set_suite_variable
- Remove keyword type in testcase
- If have multiple keywords with same name will cause: test case contains no keywords when create yourself keywords.
Parsing config steps and create suite keywords
#
suite_steps = configs.get('steps')
create_case_step(suite, suite_steps)
Create simple keywords
Yaml example
outputs
If config assertions into yaml file will be better
==============================================================================
Activate Variable
==============================================================================
Should Activate Skynet | PASS |
------------------------------------------------------------------------------
Test self keyword | PASS |
------------------------------------------------------------------------------
Activate Variable | PASS |
2 critical tests, 2 passed, 0 failed
2 tests total, 2 passed, 0 failed
==============================================================================
Output: C:\make-your-robot-rest-api\day5\src\reports\skynet-output.xml
[Finished in 0.6s]
Whole python scripts
References