| 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
|
| 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<Object[]> testCases)
maps list of test cases to service object map
|
| Modifier and Type | Method and Description |
|---|---|
static void |
MessageQueueHelper.evaluateOption(ServiceObject serviceObject) |
static void |
CsvReader.evaluateOption(ServiceObject serviceObject)
set run count for individual test case
|
static String |
MessageQueueHelper.generateMessageId(ServiceObject serviceObject,
String messageIdPrefix)
generate message id if the request body is set
|
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 format for request body: json
path:position:value or json path:vlaue 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.getRequestBodyIncludingTemplate(ServiceObject serviceObject)
get request body from template file: json, xml, other json template: - if
request body is set, replace value in template with format: - request body:
json path:position:value or json path:vlaue - eg.
|
static String |
DataHelper.getServiceObjectTemplateString(ServiceObject serviceObject)
returns service object template file as string Template file name is from
Template column in csv
|
static void |
DataHelper.loadDataFile(ServiceObject serviceObject)
loads template data info based on value set on request body format:
DataFile:file:dataId
|
static void |
MessageQueueHelper.receiveAndValidateMessages(ServiceObject serviceObject,
String messageId,
MessageObject.messageType messageType)
1) gets messages, adds them to the outboundMessages 2) filters based on the
message key 3) validates based on expected response requirements
|
static String |
XmlHelper.replaceRequestTagValues(ServiceObject serviceObject)
replaces request header tag values eg.
|
static String |
JsonHelper.updateJsonFromRequestBody(ServiceObject serviceObject) |
static List<String> |
MessageQueueHelper.validateMessages(ServiceObject serviceObject,
CopyOnWriteArrayList<MessageObject> filteredMessages)
validate message based on message, header, or topic valites json, xml, or
text response
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceObject |
RestApiInterface.evaluateRequest(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request) |
static ServiceObject |
RestApiInterface.evaluateRequestAndReceiveResponse(ServiceObject serviceObject)
evaluates the request and stores the response in service object
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Authentication.authenticator(ServiceObject serviceObject)
interface for restful api calls
|
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 ResultSet |
SqlInterface.DataBaseInterface(ServiceObject serviceObject)
interface for database calls
|
static io.restassured.response.Response |
RestApiInterface.evaluate(ServiceObject serviceObject) |
static ResultSet |
SqlInterface.evaluateDbQuery(ServiceObject serviceObject)
evaluaes the sql statement
|
static void |
SqlInterface.evaluateOption(ServiceObject serviceObject) |
static void |
KafkaInterface.evaluateOption(ServiceObject serviceObject) |
static void |
ServiceBusInterface.evaluateOption(ServiceObject serviceObject) |
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.response.Response |
RestApiInterface.evaluatePagination(ServiceObject serviceObject)
evaluate pagination format: http://url?page=<@PAGINATION_FROM_1> counter will
start from page 1 will iterate through the pages until either: - the expected
response criteria is met - max pages are reached.
|
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateQueryParameters(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request)
evaluate query parameters format: "name=key=value&key2=value2"
|
static List<String> |
SqlInterface.evaluateReponse(ServiceObject serviceObject,
ResultSet resSet)
evaluate the response
|
static ServiceObject |
RestApiInterface.evaluateRequest(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request) |
static ServiceObject |
RestApiInterface.evaluateRequestAndReceiveResponse(ServiceObject serviceObject)
evaluates the request and stores the response in service object
|
static boolean |
RestApiInterface.evaluateRequestAndValidatePagination(ServiceObject serviceObject) |
static ResultSet |
SqlInterface.evaluateRequestAndValidateResponse(ServiceObject serviceObject)
evaluate request and validate response retry until validation timeout period
in seconds
|
static io.restassured.response.Response |
RestApiInterface.evaluateRequestAndValidateResponse(ServiceObject serviceObject)
evaluate request and validate response retry until validation timeout period
in seconds RetryAfterSecond is based on waiting after the validation round is
complete, including wait for response wait period
|
static io.restassured.specification.RequestSpecification |
RestApiInterface.evaluateRequestBody(ServiceObject serviceObject,
io.restassured.specification.RequestSpecification request) |
static com.rabbitmq.client.AMQP.BasicProperties |
RabbitMqInterface.evaluateRequestHeaders(ServiceObject serviceObject) |
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"
we replace parameters per authentication type
|
static void |
ExternalInterface.evaluateTestMethod(ServiceObject serviceObject)
set method to call within module.services.method package
|
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 void |
ExternalInterface.ExternalInterfaceRunner(ServiceObject serviceObject)
interface for restful API calls
|
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,
String messageId)
send kafka message
|
static void |
RabbitMqInterface.sendRabbitMqMessage(ServiceObject serviceObject,
String messageId)
send rabbitMq message
|
static void |
ServiceBusInterface.sendServiceBusMessage(ServiceObject serviceObject,
String messageId)
send rabbitMq message
|
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 |
KafkaInterface.testKafkaInterface(ServiceObject serviceObject)
interface for database calls
|
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 |
RabbitMqInterface.testRabbitMqInterface(ServiceObject serviceObject)
interface for database calls
|
static void |
ServiceBus_depricated.testServiceBus(ServiceObject apiObject)
Inject message to inbound queue And dequeues from outbound queue And do
comparisons
|
static void |
ServiceBusInterface.testServicebusInterface(ServiceObject serviceObject)
interface for database calls
|
static List<String> |
RestApiInterface.validateResponse(ServiceObject serviceObject) |
static List<String> |
RestApiInterface.validateStatusCode(io.restassured.response.Response response,
ServiceObject serviceObject)
validate status code
|
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,
Object serviceSteps) |
ServiceObject |
ServiceObject.withContentType(String ContentType) |
ServiceObject |
ServiceObject.withDescription(String Description) |
ServiceObject |
ServiceObject.withErrorMessages(List<String> errorMessages) |
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.withRequest(io.restassured.specification.RequestSpecification request) |
ServiceObject |
ServiceObject.withRequestBody(String RequestBody) |
ServiceObject |
ServiceObject.withRequestHeaders(String RequestHeaders) |
ServiceObject |
ServiceObject.withRespCodeExp(String RespCodeExp) |
ServiceObject |
ServiceObject.withResponse(io.restassured.response.Response response) |
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 © 2020. All rights reserved.