Question: Outputting SauceOnDemandSessionID
tiny-dancer opened this issue · comments
Following the saucelabs guide on integrating with jenkins and curious what the best approach would be for outputting the SauceOnDemandSessionID
with TestCafe.
This value is used in the Outputting the Jenkins Session ID to stdout
step shown below.
Java Example from docs:
private void printSessionId() {
String message = String.format("SauceOnDemandSessionID=%1$s job-name=%2$s",
(((RemoteWebDriver) driver).getSessionId()).toString(), "some job name");
System.out.println(message);
}
Thanks!
Updated question to be less jenkins focused, is this answerable?
I apologize for a delayed response. I don't think that printing a session ID to the console in this provider is a very good idea because it won't be useful for customers that don't use Jenkins CI. You can create a fork of this provider, modify it in the described way and publish it under a different name.