-
Notifications
You must be signed in to change notification settings - Fork 68
get testwatcher code working #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -1,4 +1,4 @@ | |||
package test.java.com.saucelabs.advancedselenium; | |||
package com.saucelabs.advancedselenium; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the way the tests is set up, based on this: https://github.com/saucelabs-training/advanced-selenium/tree/new_base repo, the tests won't work unless they are named as they were before
@@ -1,70 +1,72 @@ | |||
package test.java.com.saucelabs.advancedselenium; | |||
package com.saucelabs.advancedselenium; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the way the tests is set up, based on this: https://github.com/saucelabs-training/advanced-selenium/tree/new_base repo, the tests won't work unless they are named as they were before
} | ||
|
||
@Override | ||
protected void testSuccessful(ExtensionContext context) { | ||
session.stop(true); | ||
public void testSuccessful(ExtensionContext context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am gettting a log of 'Test Passed!' after test, but session info isn't being passed to Sauce Labs
test.java.
(IntelliJ might have the wrong folder set as Test Source)MyTestWatcher
instead ofSauceTestWatcher
because it has to handle both local & sauce use casesRegisterExtension
even though the instance isn't actually used; code complains withExtendWith
probably because we are annotating the outer class and it doesn't like that