Package org.alfresco.utility.testng
Class OSTestMethodSelector
- java.lang.Object
-
- org.alfresco.utility.testng.OSTestMethodSelector
-
- All Implemented Interfaces:
org.testng.IInvokedMethodListener,org.testng.ITestNGListener
public class OSTestMethodSelector extends java.lang.Object implements org.testng.IInvokedMethodListenerUse this listener if you want to exclude automatically tests based on your operating system. Example:@Test(groups = { TestGroup.OS_WIN }) public void testA() { } @Test(groups = { TestGroup.OS_WIN, TestGroup.OS_UNIX }) public void testB() { } @Test(groups = { TestGroup.OS_WIN }) public void testC() { } and you are running your tests on Unix, then only testB will be executed, the remaining ones will be marked as skipped.- Author:
- Paul Brodner
-
-
Constructor Summary
Constructors Constructor Description OSTestMethodSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterInvocation(org.testng.IInvokedMethod testNGmethod, org.testng.ITestResult testResult)voidbeforeInvocation(org.testng.IInvokedMethod testNGmethod, org.testng.ITestResult testResult)
-
-
-
Method Detail
-
beforeInvocation
public void beforeInvocation(org.testng.IInvokedMethod testNGmethod, org.testng.ITestResult testResult)- Specified by:
beforeInvocationin interfaceorg.testng.IInvokedMethodListener
-
afterInvocation
public void afterInvocation(org.testng.IInvokedMethod testNGmethod, org.testng.ITestResult testResult)- Specified by:
afterInvocationin interfaceorg.testng.IInvokedMethodListener
-
-