-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Need arises to tag sauce Robot jobs with at least test name and test status, otherwise sauce jobs are hard to browse on saucelabs.com. Making Page library a listener itself as per: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-libraries-as-listeners. Code in progress at:
https://github.com/ncbi/robotframework-pageobjects/blob/sauce-listener/robotpageobjects/base.py#L531
I have it now properly logging what it should. Just need to get communicating with Sauce. Remember for each test we want to initially tag the job with the test name, so that you can see the test is in progress and know what test it is. When it finishes, you want to tag that job with the status:
$ pybot test.robot
==============================================================================
Test :: Some docs
==============================================================================
Test 1 INFO - My Page - session ID: 8ae3fb7e4f8f4268a5b50885a513478a
.INFO - My Page - Tag sauce job 8ae3fb7e4f8f4268a5b50885a513478a with Test 1
Test 1 | PASS |
------------------------------------------------------------------------------
INFO - My Page - Tag sauce job, 8ae3fb7e4f8f4268a5b50885a513478a with PASS
Test 2 INFO - My Page - session ID: 493f09c78cbe46539363cca3f8ecace1
.INFO - My Page - Tag sauce job 493f09c78cbe46539363cca3f8ecace1 with Test 2
Test 2 | PASS |
------------------------------------------------------------------------------
INFO - My Page - Tag sauce job, 493f09c78cbe46539363cca3f8ecace1 with PASS
Test :: Some docs | PASS |
2 critical tests, 2 passed, 0 failed
2 tests total, 2 passed, 0 failed
==============================================================================
@gluk-w, @frishberg, @hellmanj : I know gluk-w, wrote some code for a nose plugin to communicate with stash's Rest API using Sauce's module. We need to be able to share that between the core repo and the nose plugin. If the nose plugin is tied to robotframework-pageobjects then the easiest thing to do is have Stan contribute that plugin to this repo, and then we share the helper module. Thoughts?
If gluk-w, frishberg, hellman agree it's a question of where to put things.