Package core.apiCore
Class ServiceManager
- java.lang.Object
-
- core.apiCore.ServiceManager
-
public class ServiceManager extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ServiceManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidevaluateOption(ServiceObject serviceObject)set run count for individual test casestatic voidrunAfterCsv(ServiceObject serviceObject)runs after each csv filestatic voidrunBeforeCsv(ServiceObject serviceObject)runs before each csv filestatic voidrunCombinedInterface()included generated interface from the client as well as existing interfacesstatic voidrunCsvInterface(ServiceObject serviceObject)static voidrunInterface(ServiceObject serviceObject)static voidrunServiceAfterSuite()runs after suitestatic voidrunServiceBeforeSuite()runs before suitestatic voidrunServiceTestFile(String csvTestPath, String file, String testname, String parent)run csv test without data provider used for before/after class/suitestatic voidrunServiceTestFileWithoutDataProvider(List<Object[]> testList, String testname, String parent)run csv tests without data provider used for before/after class/suitestatic voidsetTestBaseOverride(ServiceObject serviceObject)static voidsetupParentObject(ServiceObject serviceObject)parent object is setup once per csv test file all service tests will inherit from the parent object parent object is used to pass data from one test to another
-
-
-
Field Detail
-
SERVICE_TEST_RUNNER_ID
public static final String SERVICE_TEST_RUNNER_ID
- See Also:
- Constant Field Values
-
EXTERNAL_INTERFACE
public static final String EXTERNAL_INTERFACE
- See Also:
- Constant Field Values
-
TEST_BASE_PATH
public static final String TEST_BASE_PATH
- See Also:
- Constant Field Values
-
TEST_BASE_BEFORE_CLASS
public static final String TEST_BASE_BEFORE_CLASS
- See Also:
- Constant Field Values
-
TEST_BASE_AFTER_CLASS
public static final String TEST_BASE_AFTER_CLASS
- See Also:
- Constant Field Values
-
TEST_BASE_BEFORE_SUITE
public static final String TEST_BASE_BEFORE_SUITE
- See Also:
- Constant Field Values
-
TEST_BASE_AFTER_SUITE
public static final String TEST_BASE_AFTER_SUITE
- See Also:
- Constant Field Values
-
IS_BASE_BEFORE_CLASS_COMPLETE
public static final String IS_BASE_BEFORE_CLASS_COMPLETE
- See Also:
- Constant Field Values
-
IS_BASE_AFTER_CLASS_COMPLETE
public static final String IS_BASE_AFTER_CLASS_COMPLETE
- See Also:
- Constant Field Values
-
BEFORE_CSV_FILE
public static final String BEFORE_CSV_FILE
- See Also:
- Constant Field Values
-
AFTER_CSV_FILE
public static final String AFTER_CSV_FILE
- See Also:
- Constant Field Values
-
OPTION_NO_VALIDATION_TIMEOUT
public static final String OPTION_NO_VALIDATION_TIMEOUT
- See Also:
- Constant Field Values
-
OPTION_WAIT_FOR_RESPONSE
public static final String OPTION_WAIT_FOR_RESPONSE
- See Also:
- Constant Field Values
-
OPTION_WAIT_FOR_RESPONSE_DELAY
public static final String OPTION_WAIT_FOR_RESPONSE_DELAY
- See Also:
- Constant Field Values
-
SERVICE_RESPONSE_TIMEOUT_SECONDS
public static final String SERVICE_RESPONSE_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
SERVICE_TIMEOUT_VALIDATION_SECONDS
public static final String SERVICE_TIMEOUT_VALIDATION_SECONDS
- See Also:
- Constant Field Values
-
SERVICE_TIMEOUT_VALIDATION_ENABLED
public static final String SERVICE_TIMEOUT_VALIDATION_ENABLED
- See Also:
- Constant Field Values
-
SERVICE_RESPONSE_DELAY_BETWEEN_ATTEMPTS_SECONDS
public static final String SERVICE_RESPONSE_DELAY_BETWEEN_ATTEMPTS_SECONDS
- See Also:
- Constant Field Values
-
SERVICE_RESPONSE_DELAY_BETWEEN_ATTEMPTS_MULTIPLIER
public static final String SERVICE_RESPONSE_DELAY_BETWEEN_ATTEMPTS_MULTIPLIER
- See Also:
- Constant Field Values
-
OPTION_RETRY_COUNT
public static final String OPTION_RETRY_COUNT
- See Also:
- Constant Field Values
-
OPTION_RETRY_AFTER_SECONDS
public static final String OPTION_RETRY_AFTER_SECONDS
- See Also:
- Constant Field Values
-
SERVICE_RETRY_COUNT
public static final String SERVICE_RETRY_COUNT
- See Also:
- Constant Field Values
-
SERVICE_RETRY_AFTER_SERCONDS
public static final String SERVICE_RETRY_AFTER_SERCONDS
- See Also:
- Constant Field Values
-
DEPENDS_ON_TEST
public static final String DEPENDS_ON_TEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
runCombinedInterface
public static void runCombinedInterface() throws Exceptionincluded generated interface from the client as well as existing interfaces- Throws:
Exception
-
runInterface
public static void runInterface(ServiceObject serviceObject) throws Exception
- Throws:
Exception
-
runCsvInterface
public static void runCsvInterface(ServiceObject serviceObject) throws Exception
- Throws:
Exception
-
runBeforeCsv
public static void runBeforeCsv(ServiceObject serviceObject) throws Exception
runs before each csv file- Parameters:
serviceObject-- Throws:
Exception
-
setTestBaseOverride
public static void setTestBaseOverride(ServiceObject serviceObject)
-
runAfterCsv
public static void runAfterCsv(ServiceObject serviceObject) throws Exception
runs after each csv file- Parameters:
serviceObject-- Throws:
Exception
-
runServiceBeforeSuite
public static void runServiceBeforeSuite()
runs before suite- Parameters:
serviceObject-- Throws:
Exception
-
runServiceAfterSuite
public static void runServiceAfterSuite()
runs after suite- Parameters:
serviceObject-- Throws:
Exception
-
runServiceTestFile
public static void runServiceTestFile(String csvTestPath, String file, String testname, String parent)
run csv test without data provider used for before/after class/suite- Parameters:
csvTestPath-file-parentFileName- : name of the class before/after class is running for- Throws:
Exception
-
runServiceTestFileWithoutDataProvider
public static void runServiceTestFileWithoutDataProvider(List<Object[]> testList, String testname, String parent)
run csv tests without data provider used for before/after class/suite- Parameters:
csvTestPath-file-parentFileName- : name of the class before/after class is running for- Throws:
Exception
-
setupParentObject
public static void setupParentObject(ServiceObject serviceObject)
parent object is setup once per csv test file all service tests will inherit from the parent object parent object is used to pass data from one test to another- Parameters:
serviceObject-
-
evaluateOption
public static void evaluateOption(ServiceObject serviceObject)
set run count for individual test case- Parameters:
serviceObject-
-
-