diff --git a/example-cucumber6/pom.xml b/example-cucumber6/pom.xml index 937e71e3..427ae985 100644 --- a/example-cucumber6/pom.xml +++ b/example-cucumber6/pom.xml @@ -77,12 +77,5 @@ 4.17.0 test - - - io.github.bonigarcia - webdrivermanager - 5.3.3 - test - diff --git a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/BasicRunnerTests.java b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/BasicRunTest.java similarity index 92% rename from example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/BasicRunnerTests.java rename to example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/BasicRunTest.java index 4d977a34..81d44825 100644 --- a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/BasicRunnerTests.java +++ b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/BasicRunTest.java @@ -7,5 +7,5 @@ @RunWith(Cucumber.class) @CucumberOptions(plugin = "com.epam.reportportal.cucumber.ScenarioReporter", features = "src/test/resources/features/attributes", glue = "com.epam.reportportal.example.cucumber6.attributes") -public class BasicRunnerTests { +public class BasicRunTest { } diff --git a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunAttributesTests.java b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunAttributesCustomReporterTest.java similarity index 95% rename from example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunAttributesTests.java rename to example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunAttributesCustomReporterTest.java index 3a1e6ee2..78bbbfb1 100644 --- a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunAttributesTests.java +++ b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunAttributesCustomReporterTest.java @@ -23,5 +23,5 @@ @RunWith(Cucumber.class) @CucumberOptions(plugin = { "pretty", "html:report.html", "com.epam.reportportal.example.cucumber6.attributes.CustomAttributeReporter" }, features = "src/test/resources/features/attributes", tags = "not @ignore", glue = "com.epam.reportportal.example.cucumber6.attributes") -public class RunAttributesTests { +public class RunAttributesCustomReporterTest { } diff --git a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunLoggingTests.java b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunLoggingTest.java similarity index 97% rename from example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunLoggingTests.java rename to example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunLoggingTest.java index 464e0a20..11eeb86a 100644 --- a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunLoggingTests.java +++ b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/RunLoggingTest.java @@ -23,5 +23,5 @@ @RunWith(Cucumber.class) @CucumberOptions(plugin = { "pretty", "html:report.html", "com.epam.reportportal.cucumber.ScenarioReporter" }, features = "src/test/resources/features/logging", tags = "not @ignore", glue = "com.epam.reportportal.example.cucumber6.logging") -public class RunLoggingTests { +public class RunLoggingTest { } diff --git a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/logging/LaunchIdLogging.java b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/logging/LaunchIdLogging.java index 44b5d1d1..3bbf0ad0 100644 --- a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/logging/LaunchIdLogging.java +++ b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/logging/LaunchIdLogging.java @@ -16,7 +16,7 @@ package com.epam.reportportal.example.cucumber6.logging; -import com.epam.reportportal.example.cucumber6.RunLoggingTests; +import com.epam.reportportal.example.cucumber6.RunLoggingTest; import com.epam.reportportal.service.Launch; import com.epam.ta.reportportal.ws.model.launch.LaunchResource; import io.cucumber.java.en.Given; @@ -26,7 +26,7 @@ import static java.util.Optional.ofNullable; /** - * An example how to get and report current Launch ID, run {@link RunLoggingTests} class to see results. + * An example how to get and report current Launch ID, run {@link RunLoggingTest} class to see results. */ public class LaunchIdLogging { private static final Logger LOGGER = LoggerFactory.getLogger(LaunchIdLogging.class); diff --git a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/logging/LaunchUrlLogging.java b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/logging/LaunchUrlLogging.java index 3140355e..4a1b4550 100644 --- a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/logging/LaunchUrlLogging.java +++ b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/logging/LaunchUrlLogging.java @@ -16,7 +16,7 @@ package com.epam.reportportal.example.cucumber6.logging; -import com.epam.reportportal.example.cucumber6.RunLoggingTests; +import com.epam.reportportal.example.cucumber6.RunLoggingTest; import com.epam.reportportal.listeners.ListenerParameters; import com.epam.reportportal.service.Launch; import io.cucumber.java.en.Given; @@ -26,7 +26,7 @@ import static java.util.Optional.ofNullable; /** - * An example how to get and report current Launch URL, run {@link RunLoggingTests} class to see results. + * An example how to get and report current Launch URL, run {@link RunLoggingTest} class to see results. */ public class LaunchUrlLogging { private static final Logger LOGGER = LoggerFactory.getLogger(LaunchUrlLogging.class); diff --git a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/selenium/ScreenshotOnFailureHooks.java b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/selenium/ScreenshotOnFailureHooks.java index 3da3bcd2..8ab3bb30 100644 --- a/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/selenium/ScreenshotOnFailureHooks.java +++ b/example-cucumber6/src/test/java/com/epam/reportportal/example/cucumber6/selenium/ScreenshotOnFailureHooks.java @@ -20,7 +20,6 @@ import io.cucumber.java.Before; import io.cucumber.java.Scenario; import io.cucumber.java.en.Given; -import io.github.bonigarcia.wdm.WebDriverManager; import org.junit.Assert; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; @@ -39,7 +38,6 @@ public class ScreenshotOnFailureHooks { @Before public void beforeScenario() { - WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); } diff --git a/example-cucumber6/src/test/resources/logback.xml b/example-cucumber6/src/test/resources/logback.xml index afde0772..98d420d3 100644 --- a/example-cucumber6/src/test/resources/logback.xml +++ b/example-cucumber6/src/test/resources/logback.xml @@ -37,12 +37,15 @@ + + + - + diff --git a/example-junit5/pom.xml b/example-junit5/pom.xml index ed270404..4be1623d 100644 --- a/example-junit5/pom.xml +++ b/example-junit5/pom.xml @@ -71,12 +71,6 @@ selenide 6.19.1 - - io.github.bonigarcia - webdrivermanager - 5.3.3 - test - diff --git a/example-junit5/src/test/java/com/epam/reportportal/example/junit5/logging/SelenideScreenshotLoggingTest.java b/example-junit5/src/test/java/com/epam/reportportal/example/junit5/logging/SelenideScreenshotLoggingTest.java index 15d6f7a8..599d927f 100644 --- a/example-junit5/src/test/java/com/epam/reportportal/example/junit5/logging/SelenideScreenshotLoggingTest.java +++ b/example-junit5/src/test/java/com/epam/reportportal/example/junit5/logging/SelenideScreenshotLoggingTest.java @@ -20,7 +20,6 @@ import com.codeborne.selenide.Configuration; import com.codeborne.selenide.Selenide; import com.epam.reportportal.example.junit5.ScreenShootOnFailureExtension; -import io.github.bonigarcia.wdm.WebDriverManager; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -38,7 +37,6 @@ public class SelenideScreenshotLoggingTest { @BeforeAll public static void initDriver() { - WebDriverManager.chromedriver().setup(); Configuration.browser = Browsers.CHROME; ChromeOptions options = new ChromeOptions(); options.addArguments("--remote-allow-origins=*"); diff --git a/example-testng-log4j/pom.xml b/example-testng-log4j/pom.xml index b69bde84..a9d680f2 100644 --- a/example-testng-log4j/pom.xml +++ b/example-testng-log4j/pom.xml @@ -80,11 +80,6 @@ selenium-java ${selenium.version} - - io.github.bonigarcia - webdrivermanager - 5.6.3 - diff --git a/example-testng-log4j/src/main/java/com/epam/reportportal/example/testng/log4j/extension/ScreenshotOnFailureTestExtensionTest.java b/example-testng-log4j/src/main/java/com/epam/reportportal/example/testng/log4j/extension/ScreenshotOnFailureTestExtensionTest.java index 942e85bb..c4548b97 100644 --- a/example-testng-log4j/src/main/java/com/epam/reportportal/example/testng/log4j/extension/ScreenshotOnFailureTestExtensionTest.java +++ b/example-testng-log4j/src/main/java/com/epam/reportportal/example/testng/log4j/extension/ScreenshotOnFailureTestExtensionTest.java @@ -18,7 +18,6 @@ import com.epam.reportportal.example.testng.log4j.LoggingUtils; import com.epam.reportportal.testng.ReportPortalTestNGListener; -import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; @@ -41,7 +40,6 @@ public class ScreenshotOnFailureTestExtensionTest { @BeforeMethod public void initDriver() { - WebDriverManager.chromedriver().setup(); ChromeOptions options = new ChromeOptions(); options.addArguments("--remote-allow-origins=*"); driver = new ChromeDriver(options); diff --git a/example-testng-logback/pom.xml b/example-testng-logback/pom.xml index 0e9bf6c0..3a9ce0cf 100644 --- a/example-testng-logback/pom.xml +++ b/example-testng-logback/pom.xml @@ -111,11 +111,6 @@ selenide 6.19.1 - - io.github.bonigarcia - webdrivermanager - 5.6.3 - com.epam.reportportal logger-java-selenide diff --git a/example-testng-logback/src/main/java/com/epam/reportportal/example/testng/logback/extension/ScreenshotOnFailureTestExtensionTest.java b/example-testng-logback/src/main/java/com/epam/reportportal/example/testng/logback/extension/ScreenshotOnFailureTestExtensionTest.java index 897e8454..6e65df3a 100644 --- a/example-testng-logback/src/main/java/com/epam/reportportal/example/testng/logback/extension/ScreenshotOnFailureTestExtensionTest.java +++ b/example-testng-logback/src/main/java/com/epam/reportportal/example/testng/logback/extension/ScreenshotOnFailureTestExtensionTest.java @@ -18,7 +18,6 @@ import com.epam.reportportal.example.testng.logback.LoggingUtils; import com.epam.reportportal.testng.ReportPortalTestNGListener; -import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; @@ -41,7 +40,6 @@ public class ScreenshotOnFailureTestExtensionTest { @BeforeMethod public void initDriver() { - WebDriverManager.chromedriver().setup(); ChromeOptions options = new ChromeOptions(); options.addArguments("--remote-allow-origins=*"); driver = new ChromeDriver(options); diff --git a/example-testng-logback/src/main/java/com/epam/reportportal/example/testng/logback/logging/ScreenshotOnFailureTestSimple.java b/example-testng-logback/src/main/java/com/epam/reportportal/example/testng/logback/logging/ScreenshotOnFailureTestSimple.java index dbdb0926..b50526a3 100644 --- a/example-testng-logback/src/main/java/com/epam/reportportal/example/testng/logback/logging/ScreenshotOnFailureTestSimple.java +++ b/example-testng-logback/src/main/java/com/epam/reportportal/example/testng/logback/logging/ScreenshotOnFailureTestSimple.java @@ -17,7 +17,6 @@ package com.epam.reportportal.example.testng.logback.logging; import com.epam.reportportal.example.testng.logback.LoggingUtils; -import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; @@ -37,7 +36,6 @@ public class ScreenshotOnFailureTestSimple { @BeforeMethod public void initDriver() { - WebDriverManager.chromedriver().setup(); driver = new ChromeDriver(); }