org.testng.ITestListener Java Examples
The following examples show how to use
org.testng.ITestListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestNGListenerAdapterFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ITestListener createAdapter(ITestListener listener) { Class<?> testNG6Class = tryLoadClass("org.testng.IConfigurationListener2"); if (testNG6Class != null) { return createProxy(testNG6Class, listener); } Class<?> testNG5Class = tryLoadClass("org.testng.internal.IConfigurationListener"); if (testNG5Class != null) { return createProxy(testNG5Class, listener); } throw new UnsupportedOperationException("Neither found interface 'org.testng.IConfigurationListener2' nor interface 'org.testng.internal.IConfigurationListener'. Which version of TestNG are you using?"); }
Example #2
Source File: TestNGListenerAdapterFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ITestListener createAdapter(ITestListener listener) { Class<?> testNG6Class = tryLoadClass("org.testng.IConfigurationListener2"); if (testNG6Class != null) { return createProxy(testNG6Class, listener); } Class<?> testNG5Class = tryLoadClass("org.testng.internal.IConfigurationListener"); if (testNG5Class != null) { return createProxy(testNG5Class, listener); } throw new UnsupportedOperationException("Neither found interface 'org.testng.IConfigurationListener2' nor interface 'org.testng.internal.IConfigurationListener'. Which version of TestNG are you using?"); }
Example #3
Source File: TestNGVideoListenerTest.java From video-recorder-java with MIT License | 5 votes |
@Test @Video() public void shouldBeRecordingIfCustomVideoAnnotation() { System.setProperty("video.save.mode","FAILED_ONLY"); System.setProperty("recorder.type","FFMPEG"); ITestResult result = prepareMock(TestNgCustomVideoListenerTest.class, testMethod); ITestListener listener = new CustomVideoListener(); listener.onTestStart(result); sleep(5); listener.onTestFailure(result); File file = MonteRecorder.getLastRecording(); assertTrue(file.exists()); }
Example #4
Source File: TestNGListenerAdapterFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ITestListener createAdapter(ITestListener listener) { Class<?> testNG6Class = tryLoadClass("org.testng.IConfigurationListener2"); if (testNG6Class != null) { return createProxy(testNG6Class, listener); } Class<?> testNG5Class = tryLoadClass("org.testng.internal.IConfigurationListener"); if (testNG5Class != null) { return createProxy(testNG5Class, listener); } throw new UnsupportedOperationException("Neither found interface 'org.testng.IConfigurationListener2' nor interface 'org.testng.internal.IConfigurationListener'. Which version of TestNG are you using?"); }
Example #5
Source File: TestNGListenerAdapterFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ITestListener createAdapter(ITestListener listener) { Class<?> testNG6Class = tryLoadClass("org.testng.IConfigurationListener2"); if (testNG6Class != null) { return createProxy(testNG6Class, listener); } Class<?> testNG5Class = tryLoadClass("org.testng.internal.IConfigurationListener"); if (testNG5Class != null) { return createProxy(testNG5Class, listener); } throw new UnsupportedOperationException("Neither found interface 'org.testng.IConfigurationListener2' nor interface 'org.testng.internal.IConfigurationListener'. Which version of TestNG are you using?"); }