I am trying to run the automated test in sauce labs for first time but I see no execution takes in sauce lab but instead execution takes place in my local machine. Since I am new to this way of running, I am not sure where is the correction to make.
Runner.java:-
package Global.ExecutionManager;
import io.cucumber.junit.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(plugin = {"pretty"},
features = "Test",
glue = "foo"
)
public class TestRunner {
}
Feature
Feature: foo boo.
Scenario: test
Given Login with valid "foo" credentials
Step definition file:-
import io.cucumber.java.en.Given;
import net.thucydides.core.annotations.Step;
public class credentails extends Auth {
public credentails() throws SQLException {
open();
}
@Step
@Given("^Login with valid \"([^\"]*)\" credentials$")
public void login_with_valid_credentials(String userType) throws InterruptedException {
// line of codes ....
}
}
Serenity.properties:-
saucelabs.target.platform=Windows 10
saucelabs.driver.version=latest
saucelabs.url=https://f00:boo@ondemand.eu-central-1.saucelabs.com:443/wd/hub
saucelabs.access.key=boo
saucelabs.user.id=foo
saucelabs.test.name=testing
Expected Results:
Execution should take place in sauce lab.
Actual Results:
Execution takes place in local machine.