You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have gone through my code several times but still not sure what's is the issue. Getting build success but my tests are getting ignored and shown as passed in build log. I am using custom WebDriver. Not sure what is the issue but got a feeling something is wrong with webdriver. it seems like it is not intialized.
Please find the below code snippet for my custom WebDriver:
`public class localDriver implements DriverSource {
@Override
public WebDriver newDriver() {
System.setProperty("webdriver.chrome.driver", "src/test/resources/drivers/chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
options.addArguments("disable-infobars");
WebDriver _driver = new ChromeDriver(options);
System.out.println("Driver has been initialized");
return _driver;
}
@Override
public boolean takesScreenshots() {
return true;
}
} My pom.xml
4.0.0
au.com.nab
author-test
jar
1.0-SNAPSHOT
}serenity.properties:webdriver.driver=provided
webdriver.provided.type = mydriver
webdriver.provided.mydriver = automatedAuthorTests.localDriver
thucydides.driver.capabilities = mydriver
`
Another issue is with serenity.properties file. I have defined the WebDriver specific properties but it's showing me the properties as unused. I am struck with my POC. Please help me to resolve the given issues.
Thanks in advance!!
The text was updated successfully, but these errors were encountered:
I have gone through my code several times but still not sure what's is the issue. Getting build success but my tests are getting ignored and shown as passed in build log. I am using custom WebDriver. Not sure what is the issue but got a feeling something is wrong with webdriver. it seems like it is not intialized.
Please find the below code snippet for my custom WebDriver:
`public class localDriver implements DriverSource {
}
My pom.xml
4.0.0
au.com.nab
author-test
jar
1.0-SNAPSHOT
}
Test runner:
@RunWith(CucumberWithSerenity.class)@CucumberOptions(
features = {"src/test/resources/features/"},
glue = {"automatedAuthorTests.support.hooks","automatedAuthorTests.step_definitions" },
tags = {"@test"}
)
public class testRunner{
}
serenity.properties:
webdriver.driver=providedwebdriver.provided.type = mydriver
webdriver.provided.mydriver = automatedAuthorTests.localDriver
thucydides.driver.capabilities = mydriver
`
Another issue is with serenity.properties file. I have defined the WebDriver specific properties but it's showing me the properties as unused. I am struck with my POC. Please help me to resolve the given issues.
Thanks in advance!!
The text was updated successfully, but these errors were encountered: