| 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.runInterface(ServiceObject apiObject) |
static void |
ServiceManager.TestRunner(ServiceObject apiObject) |
| Modifier and Type | Method and Description |
|---|---|
static String |
ApiTestDriver.getTestClass(ServiceObject apiObject)
gets the test class based on the csv file name eg.
|
void |
ApiTestDriver.initTest(ServiceObject apiObject)
initialized testInfo with testId as key runs before test adds current driver
info to test object note: each row in csv is treated as separte test, with
separte test object test logs And config are shared by test class object,
which is the csv file name
|
static void |
ApiTestDriver.setTestId(ServiceObject apiObject) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceObject |
CsvReader.mapToApiObject(Object[] testData) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,ServiceObject> |
CsvReader.mapToApiObject(List<String[]> testCases)
maps list of testcases to api object map
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| 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 |
SqlInterface.DataBaseInterface(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 database api calls
|
static ResultSet |
SqlInterface.evaluateDbQuery(ServiceObject apiObject)
evaluaes the sql statement
|
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateOption(ServiceObject apiObject,
io.restassured.specification.RequestSpecification request)
sets the header, content type And body based on specifications
|
static void |
SqlInterface.evaluateReponse(ServiceObject apiObject,
ResultSet resSet)
evaluate the response
|
static io.restassured.response.Response |
RestApiInterface.evaluateRequest(ServiceObject apiObject) |
static io.restassured.response.Response |
RestApiInterface.evaluateRequestAndValidateResponse(ServiceObject apiObject)
evaluate request and validate response
retry until validation timeout period in seconds
|
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateRequestBody(ServiceObject apiObject,
io.restassured.specification.RequestSpecification request) |
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateRequestHeaders(ServiceObject apiObject)
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 apiObject)
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 apiObject)
interface for restful API calls
|
static void |
RestApiInterface.setURI(ServiceObject apiObject)
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 |
ServiceBusInterface.testServiceBus(ServiceObject apiObject)
Inject message to inbound queue And dequeues from outbound queue And do
comparisons
|
static io.restassured.response.Response |
Authentication.tokenGenerator(ServiceObject apiObject)
interface for restful api calls
|
static List<String> |
RestApiInterface.validateExpectedValues(io.restassured.response.Response response,
ServiceObject apiObject) |
static List<String> |
RestApiInterface.validateResponse(io.restassured.response.Response response,
ServiceObject apiObject) |
static void |
TestPrepare.waitForSeconds(ServiceObject apiObject) |
| 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
|
static ServiceObject |
ApiKeyword.getApiDef(String key) |
ServiceObject |
ServiceObject.setApiObject(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 PartialExpectedResponse,
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.withParentClass(String parentClass) |
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 |
|---|---|
void |
AbstractDriverTestNG.setupApiDriver(ServiceObject apiObject) |
Copyright © 2019. All rights reserved.