Package core.apiCore
Class ServiceManager
java.lang.Object
core.apiCore.ServiceManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 voidincluded generated interface from the client as well as existing interfacesstatic voidrunCsvInterface(ServiceObject serviceObject) static voidrunInterface(ServiceObject serviceObject) static voidruns after suitestatic voidruns 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 Details
-
SERVICE_TEST_RUNNER_ID
- See Also:
-
EXTERNAL_INTERFACE
- See Also:
-
TEST_BASE_PATH
- See Also:
-
TEST_BASE_BEFORE_CLASS
- See Also:
-
TEST_BASE_AFTER_CLASS
- See Also:
-
TEST_BASE_BEFORE_SUITE
- See Also:
-
TEST_BASE_AFTER_SUITE
- See Also:
-
IS_BASE_BEFORE_CLASS_COMPLETE
- See Also:
-
IS_BASE_AFTER_CLASS_COMPLETE
- See Also:
-
BEFORE_CSV_FILE
- See Also:
-
AFTER_CSV_FILE
- See Also:
-
OPTION_NO_VALIDATION_TIMEOUT
- See Also:
-
OPTION_WAIT_FOR_RESPONSE
- See Also:
-
OPTION_WAIT_FOR_RESPONSE_DELAY
- See Also:
-
SERVICE_RESPONSE_TIMEOUT_SECONDS
- See Also:
-
SERVICE_TIMEOUT_VALIDATION_SECONDS
- See Also:
-
SERVICE_TIMEOUT_VALIDATION_ENABLED
- See Also:
-
SERVICE_RESPONSE_DELAY_BETWEEN_ATTEMPTS_SECONDS
- See Also:
-
SERVICE_RESPONSE_DELAY_BETWEEN_ATTEMPTS_MULTIPLIER
- See Also:
-
OPTION_RETRY_COUNT
- See Also:
-
OPTION_RETRY_AFTER_SECONDS
- See Also:
-
SERVICE_RETRY_COUNT
- See Also:
-
SERVICE_RETRY_AFTER_SERCONDS
- See Also:
-
DEPENDS_ON_TEST
- See Also:
-
-
Constructor Details
-
ServiceManager
public ServiceManager()
-
-
Method Details
-
runCombinedInterface
included generated interface from the client as well as existing interfaces- Throws:
Exception
-
runInterface
- Throws:
Exception
-
runCsvInterface
- Throws:
Exception
-
runBeforeCsv
runs before each csv file- Parameters:
serviceObject-- Throws:
Exception
-
setTestBaseOverride
-
runAfterCsv
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
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
set run count for individual test case- Parameters:
serviceObject-
-