Search in sources :

Example 1 with StepReporter

use of com.epam.reportportal.service.step.StepReporter in project agent-java-testNG by reportportal.

the class ManualStepReporterFeatureTest method manualStepTest.

@Test
public void manualStepTest() {
    StepReporter stepReporter = Launch.currentLaunch().getStepReporter();
    stepReporter.sendStep(FIRST_NAME);
    LOGGER.info("First info log of the first step");
    LOGGER.info("Second info log of the first step");
    stepReporter.sendStep(SECOND_NAME);
    LOGGER.error("First error log of the second step");
    stepReporter.sendStep(ItemStatus.FAILED, THIRD_NAME, new File("pug/unlucky.jpg"));
    LOGGER.error("Second error log of the second step");
    stepReporter.finishPreviousStep();
    LOGGER.error("Main test method error log");
}
Also used : StepReporter(com.epam.reportportal.service.step.StepReporter) File(java.io.File) Test(org.testng.annotations.Test)

Example 2 with StepReporter

use of com.epam.reportportal.service.step.StepReporter in project agent-java-junit5 by reportportal.

the class ManualStepReporterFeatureTest method manualStepTest.

@Test
public void manualStepTest() {
    StepReporter stepReporter = Launch.currentLaunch().getStepReporter();
    stepReporter.sendStep(FIRST_NAME);
    LOGGER.info("First info log of the first step");
    LOGGER.info("Second info log of the first step");
    stepReporter.sendStep(SECOND_NAME);
    LOGGER.error("First error log of the second step");
    stepReporter.sendStep(ItemStatus.FAILED, THIRD_NAME, new File("pug/unlucky.jpg"));
    LOGGER.error("Second error log of the second step");
    stepReporter.finishPreviousStep();
    LOGGER.error("Main test method error log");
}
Also used : StepReporter(com.epam.reportportal.service.step.StepReporter) File(java.io.File) StepReporterTest(com.epam.reportportal.junit5.StepReporterTest) Test(org.junit.jupiter.api.Test)

Example 3 with StepReporter

use of com.epam.reportportal.service.step.StepReporter in project agent-java-testNG by reportportal.

the class ManualStepReporterSimpleTest method manualStepTest.

@Test
public void manualStepTest() {
    StepReporter stepReporter = Launch.currentLaunch().getStepReporter();
    stepReporter.sendStep(FIRST_NAME);
    LOGGER.info("Inside first nested step");
}
Also used : StepReporter(com.epam.reportportal.service.step.StepReporter) Test(org.testng.annotations.Test)

Example 4 with StepReporter

use of com.epam.reportportal.service.step.StepReporter in project agent-java-junit5 by reportportal.

the class ManualStepReporterSimpleTest method manualStepTest.

@Test
public void manualStepTest() {
    StepReporter stepReporter = Launch.currentLaunch().getStepReporter();
    stepReporter.sendStep(FIRST_NAME);
    LOGGER.info("Inside first nested step");
}
Also used : StepReporter(com.epam.reportportal.service.step.StepReporter) StepReporterTest(com.epam.reportportal.junit5.StepReporterTest) Test(org.junit.jupiter.api.Test)

Aggregations

StepReporter (com.epam.reportportal.service.step.StepReporter)4 StepReporterTest (com.epam.reportportal.junit5.StepReporterTest)2 File (java.io.File)2 Test (org.junit.jupiter.api.Test)2 Test (org.testng.annotations.Test)2