use of com.epam.reportportal.service.ReportPortal in project agent-java-testNG by reportportal.
the class ParametersBypassTest method initMocks.
@BeforeEach
public void initMocks() {
TestUtils.mockLaunch(client, "launchUuid", suitedUuid, testClassUuid, testMethodUuidList);
final ReportPortal reportPortal = ReportPortal.create(client, standardParameters());
TestReportPortalListener.initReportPortal(reportPortal);
}
use of com.epam.reportportal.service.ReportPortal in project agent-java-testNG by reportportal.
the class TestNameAndDescriptionTest method initMocks.
@BeforeEach
public void initMocks() {
mockLaunch(client, namedUuid("launchUuid"), suitedUuid, testClassUuid, stepUuid);
ReportPortal reportPortal = ReportPortal.create(client, standardParameters());
TestNgListener.initReportPortal(reportPortal);
}
use of com.epam.reportportal.service.ReportPortal in project agent-java-testNG by reportportal.
the class TestWithFailedRetryAndDependentMethods method initMocks.
@BeforeEach
public void initMocks() {
mockLaunch(client, namedUuid("launchUuid"), suitedUuid, testClassUuid, testUuidList);
ReportPortal reportPortal = ReportPortal.create(client, standardParameters());
TestListener.initReportPortal(reportPortal);
}
use of com.epam.reportportal.service.ReportPortal in project agent-java-testNG by reportportal.
the class LaunchFinishShutdownHookRemoveTest method main.
public static void main(String... args) throws InterruptedException {
int port = Integer.parseInt(args[0]);
System.out.println("Executing using port: " + port);
ExecutorService myExecutor = Executors.newSingleThreadExecutor(r -> {
Thread t = new Thread(r);
t.setDaemon(true);
return t;
});
ListenerParameters parameters = TestUtils.standardParameters();
parameters.setBaseUrl("http://localhost:" + port);
ReportPortal client = ReportPortal.builder().withParameters(parameters).withExecutorService(myExecutor).build();
MyTestNgService service = new MyTestNgService(client);
service.startLaunch();
System.out.println("Launch started, sleeping...");
Thread.sleep(TimeUnit.SECONDS.toMillis(5));
System.out.println("Finishing launch.");
service.finishLaunch();
System.out.println("Exiting...");
}
use of com.epam.reportportal.service.ReportPortal in project agent-java-testNG by reportportal.
the class LaunchFinishShutdownHookTest method main.
public static void main(String... args) throws InterruptedException {
int port = Integer.parseInt(args[0]);
System.out.println("Executing using port: " + port);
ExecutorService myExecutor = Executors.newSingleThreadExecutor(r -> {
Thread t = new Thread(r);
t.setDaemon(true);
return t;
});
ListenerParameters parameters = TestUtils.standardParameters();
parameters.setBaseUrl("http://localhost:" + port);
ReportPortal client = ReportPortal.builder().withParameters(parameters).withExecutorService(myExecutor).build();
MyTestNgService service = new MyTestNgService(client);
service.startLaunch();
System.out.println("Launch started, sleeping...");
Thread.sleep(TimeUnit.SECONDS.toMillis(3));
System.out.println("Exiting...");
}
Aggregations