| Package | Description |
|---|---|
| core.apiCore | |
| core.apiCore.driver | |
| core.apiCore.helpers | |
| core.apiCore.interfaces | |
| core.support.objects | |
| core.uiCore.drivers |
| Modifier and Type | Method and Description |
|---|---|
static void |
ServiceManager.runAfterCsv(ServiceObject serviceObject)
runs after each csv file
|
static void |
ServiceManager.runBeforeCsv(ServiceObject serviceObject)
runs before each csv file
|
static void |
ServiceManager.runCsvInterface(ServiceObject serviceObject) |
static void |
ServiceManager.runInterface(ServiceObject serviceObject) |
static void |
ServiceManager.setTestBaseOverride(ServiceObject serviceObject) |
static void |
ServiceManager.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
|
static void |
ServiceManager.TestRunner(ServiceObject serviceObject) |
| Modifier and Type | Method and Description |
|---|---|
static TestObject |
ApiTestDriver.getParentTestObject(ServiceObject serviceObject) |
static String |
ApiTestDriver.getTestClass(ServiceObject serviceObject)
gets the test class based on the csv file name eg.
|
void |
ApiTestDriver.initTest(ServiceObject serviceObject)
initialized testInfo with testId as key runs before test adds current driver
info to test object note: each row in csv is treated as separate test, with
separate test object test logs And config are shared by test class object,
which is the csv file name
|
static boolean |
ApiTestDriver.isCsvTestComplete(ServiceObject service)
returns true if all tests in current csv file are completed
|
static void |
ApiTestDriver.setTestId(ServiceObject serviceObject) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceObject |
CsvReader.mapToServiceObject(Object[] testData)
test data array to service object
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,ServiceObject> |
CsvReader.mapToApiObject(List<String[]> testCases)
maps list of test cases to service object map
|
| Modifier and Type | Method and Description |
|---|---|
static String |
JsonHelper.getRequestBodyFromJsonTemplate(ServiceObject serviceObject)
if request body is empty, return json template string
if request body contains @ variable tag, replace tag with value
eg.
|
static String |
XmlHelper.getRequestBodyFromXmlTemplate(ServiceObject serviceObject)
if request body is empty, return xml template string
if request body contains xml tag, replace tag with value
eg.
|
static String |
DataHelper.getServiceObjectTemplateString(ServiceObject serviceObject)
returns service object template file as string
Template file name is from Template column in csv
|
static String |
XmlHelper.replaceRequestTagValues(ServiceObject serviceObject)
replaces request header tag values
eg.
|
static String |
JsonHelper.updateJsonFromRequestBody(ServiceObject serviceObject) |
| Modifier and Type | Method and Description |
|---|---|
static void |
AzureInterface.AzureClientInterface(ServiceObject apiObject)
/* (String TestSuite, String TestCaseID, String RunFlag, String Description,
String InterfaceType, String UriPath, String ContentType, String Method,
String Option, String RequestHeaders, String TemplateFile, String
RequestBody, String OutputParams, String RespCodeExp, String
ExpectedResponse, String ExpectedResponse, String NotExpectedResponse, String
TcComments, String tcName, String tcIndex)
interface for azure storage api calls
|
static void |
AzureInterface.azureUploadToFileShare(ServiceObject apiObject) |
static void |
RabbitMqInterface.connectRabbitMq(ServiceObject serviceObject) |
static void |
SqlInterface.DataBaseInterface(ServiceObject serviceObject)
interface for database calls
|
static ResultSet |
SqlInterface.evaluateDbQuery(ServiceObject serviceObject)
evaluaes the sql statement
|
static void |
RabbitMqInterface.evaluateOption(ServiceObject serviceObject) |
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateOption(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request)
sets the header, content type And body based on specifications
|
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateQueryParameters(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request)
evaluate query parameters
format: "name=key=value&key2=value2"
|
static void |
SqlInterface.evaluateReponse(ServiceObject serviceObject,
ResultSet resSet)
evaluate the response
|
static io.restassured.response.Response |
RestApiInterface.evaluateRequest(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request) |
static io.restassured.response.Response |
RestApiInterface.evaluateRequestAndValidateResponse(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request)
evaluate request and validate response retry until validation timeout period
in seconds
|
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateRequestBody(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request) |
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateRequestHeaders(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request)
sets the header, content type And body based on specifications Headers are
based on key value, separated by ";" Invalid token: if authorization token
exists, replace last values with "invalid", else set to "invalid"
|
static ResultSet |
SqlInterface.executeAndWaitForDbResponse(PreparedStatement sqlStmt,
ServiceObject serviceObject)
executes And waits for response calls the query in each loop does not wait if
expected or partial expected response are empty
|
static com.microsoft.azure.storage.file.CloudFileDirectory |
AzureInterface.getCloudfileDirectory(ServiceObject apiObject)
sets the location of the azure file directory from option column
|
static io.restassured.response.Response |
RestApiInterface.RestfullApiInterface(ServiceObject serviceObject)
interface for restful API calls
|
static void |
KafkaInterface.sendKafkaMessage(ServiceObject serviceObject) |
static void |
KafkaInterface.sendMessage(ServiceObject serviceObject)
send kafka message
|
static void |
RabbitMqInterface.sendMessage(ServiceObject serviceObject)
send rabbitMq message
|
static void |
RabbitMqInterface.sendRabbitMqMessage(ServiceObject serviceObject) |
static void |
KafkaInterface.setupProducer(ServiceObject apiObject) |
static io.restassured.specification.RequestSpecification |
RestApiInterface.setURI(ServiceObject serviceObject)
sets base uri for api call
|
static void |
Authentication.setURI(ServiceObject serviceObject)
sets base uri for api call
|
static void |
TestPrepare.TestPrepareInterface(ServiceObject apiObject)
/* (String TestSuite, String TestCaseID, String RunFlag, String Description,
String InterfaceType, String UriPath, String ContentType, String Method,
String Option, String RequestHeaders, String TemplateFile, String
RequestBody, String OutputParams, String RespCodeExp, String
ExpectedResponse, String ExpectedResponse, String NotExpectedResponse, String
TcComments, String tcName, String tcIndex)
interface for azure storage api calls
|
static void |
KafkaInterface.testRabbitMqInterface(ServiceObject serviceObject)
interface for database calls
|
static void |
RabbitMqInterface.testRabbitMqInterface(ServiceObject serviceObject)
interface for database calls
|
static void |
ServiceBusInterface.testServiceBus(ServiceObject apiObject)
Inject message to inbound queue And dequeues from outbound queue And do
comparisons
|
static void |
Authentication.tokenGenerator(ServiceObject apiObject)
interface for restful api calls
|
static List<String> |
RestApiInterface.validateExpectedValues(String responseString,
ServiceObject serviceObject) |
static List<String> |
RestApiInterface.validateResponse(io.restassured.response.Response response,
ServiceObject serviceObject) |
static void |
TestPrepare.waitForSeconds(ServiceObject apiObject) |
| Modifier and Type | Field and Description |
|---|---|
ServiceObject |
TestObject.serviceObject |
| Modifier and Type | Field and Description |
|---|---|
Map<String,ServiceObject> |
TestObject.apiMap |
| Modifier and Type | Method and Description |
|---|---|
static ServiceObject |
TestObject.getApiDef(String key)
gets api object from api keywords each keyword is associated with a api call
use api keywords csv files for definitions
|
ServiceObject |
ServiceObject.setServiceObject(Object[] testData) |
ServiceObject |
ServiceObject.setServiceObject(String TestSuite,
String TestCaseID,
String RunFlag,
String Description,
String InterfaceType,
String UriPath,
String ContentType,
String Method,
String Option,
String RequestHeaders,
String TemplateFile,
String RequestBody,
String OutputParams,
String RespCodeExp,
String ExpectedResponse,
String TcComments,
String tcName,
String tcIndex,
String testType) |
ServiceObject |
ServiceObject.withContentType(String ContentType) |
ServiceObject |
ServiceObject.withDescription(String Description) |
ServiceObject |
ServiceObject.withExpectedResponse(String ExpectedResponse) |
ServiceObject |
ServiceObject.withInterfaceType(String InterfaceType) |
ServiceObject |
ServiceObject.withMethod(String Method) |
ServiceObject |
ServiceObject.withOption(String Option) |
ServiceObject |
ServiceObject.withOutputParams(String OutputParams) |
ServiceObject |
ServiceObject.withParent(String parent) |
ServiceObject |
ServiceObject.withRequestBody(String RequestBody) |
ServiceObject |
ServiceObject.withRequestHeaders(String RequestHeaders) |
ServiceObject |
ServiceObject.withRespCodeExp(String RespCodeExp) |
ServiceObject |
ServiceObject.withRunFlag(String runFlag) |
ServiceObject |
ServiceObject.withTcComments(String TcComments) |
ServiceObject |
ServiceObject.withTcIndex(String tcIndex) |
ServiceObject |
ServiceObject.withTcName(String tcName) |
ServiceObject |
ServiceObject.withTemplateFile(String TemplateFile) |
ServiceObject |
ServiceObject.withTestCaseID(String testCaseID) |
ServiceObject |
ServiceObject.withTestSuite(String testSuite) |
ServiceObject |
ServiceObject.withUriPath(String UriPath) |
| Modifier and Type | Method and Description |
|---|---|
static TestObject |
TestObject.getParentTestInfo(ServiceObject serviceObject)
get parent test object
parent id is unique for each csv test file in service tests
user for inheritance of config and log files
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractDriverTestNG.setupApiDriver(ServiceObject apiObject) |
Copyright © 2019. All rights reserved.