Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Feb 9, 2024
1 parent bb38be6 commit e5ee942
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 41 deletions.
7 changes: 0 additions & 7 deletions example-cucumber6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,5 @@
<version>4.17.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.3.3</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -39,7 +38,6 @@ public class ScreenshotOnFailureHooks {

@Before
public void beforeScenario() {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
}

Expand Down
5 changes: 4 additions & 1 deletion example-cucumber6/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@
<logger name="binary_data_logger" level="DEBUG" additivity="false">
<appender-ref ref="RP"/>
</logger>
<logger name="com.epam.reportportal.example" level="TRACE" additivity="false">
<appender-ref ref="RP"/>
</logger>

<logger name="com.epam.reportportal.service" level="WARN"/>
<logger name="com.epam.reportportal.utils" level="WARN"/>

<!-- By default, the level of the root level is set to DEBUG -->
<root level="INFO">
<root level="WARN">
<appender-ref ref="RP"/>
<appender-ref ref="STDOUT"/>
</root>
Expand Down
6 changes: 0 additions & 6 deletions example-junit5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@
<artifactId>selenide</artifactId>
<version>6.19.1</version>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.3.3</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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=*");
Expand Down
5 changes: 0 additions & 5 deletions example-testng-log4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.6.3</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
5 changes: 0 additions & 5 deletions example-testng-logback/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@
<artifactId>selenide</artifactId>
<version>6.19.1</version>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.6.3</version>
</dependency>
<dependency>
<groupId>com.epam.reportportal</groupId>
<artifactId>logger-java-selenide</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -37,7 +36,6 @@ public class ScreenshotOnFailureTestSimple {

@BeforeMethod
public void initDriver() {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
}

Expand Down

0 comments on commit e5ee942

Please sign in to comment.