Uses of Class
core.support.objects.ServiceObject
-
Packages that use ServiceObject Package Description core.apiCore core.apiCore.driver core.apiCore.helpers core.apiCore.interfaces core.support.objects core.uiCore.drivers -
-
Uses of ServiceObject in core.apiCore
Methods in core.apiCore with parameters of type ServiceObject Modifier and Type Method Description static voidServiceManager. evaluateOption(ServiceObject serviceObject)set run count for individual test casestatic voidServiceManager. runAfterCsv(ServiceObject serviceObject)runs after each csv filestatic voidServiceManager. runBeforeCsv(ServiceObject serviceObject)runs before each csv filestatic voidServiceManager. runCsvInterface(ServiceObject serviceObject)static voidServiceManager. runInterface(ServiceObject serviceObject)static voidServiceManager. setTestBaseOverride(ServiceObject serviceObject)static voidServiceManager. 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 -
Uses of ServiceObject in core.apiCore.driver
Methods in core.apiCore.driver with parameters of type ServiceObject Modifier and Type Method Description static TestObjectApiTestDriver. getParentTestObject(ServiceObject serviceObject)static StringApiTestDriver. getTestClass(ServiceObject serviceObject)gets the test class based on the csv file name eg.voidApiTestDriver. 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 namestatic booleanApiTestDriver. isCsvTestComplete(ServiceObject service)returns true if all tests in current csv file are completedstatic voidApiTestDriver. setTestId(ServiceObject serviceObject) -
Uses of ServiceObject in core.apiCore.helpers
Methods in core.apiCore.helpers that return ServiceObject Modifier and Type Method Description static ServiceObjectCsvReader. mapToServiceObject(Object[] testData)test data array to service objectMethods in core.apiCore.helpers that return types with arguments of type ServiceObject Modifier and Type Method Description static Map<String,ServiceObject>CsvReader. mapToApiObject(List<Object[]> testCases)maps list of test cases to service object mapMethods in core.apiCore.helpers with parameters of type ServiceObject Modifier and Type Method Description static voidCsvReader. evaluateOption(ServiceObject serviceObject)set run count for individual test casestatic voidMessageQueueHelper. evaluateOption(ServiceObject serviceObject)static StringMessageQueueHelper. generateMessageId(ServiceObject serviceObject, String messageIdPrefix)generate message id if the request body is setstatic StringJsonHelper. 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 StringXmlHelper. getRequestBodyFromXmlTemplate(ServiceObject serviceObject)if request body is empty, return xml template string if request body contains xml tag, replace tag with value eg.static StringDataHelper. 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 StringDataHelper. getServiceObjectTemplateString(ServiceObject serviceObject)returns service object template file as string Template file name is from Template column in csvstatic voidDataHelper. loadDataFile(ServiceObject serviceObject)loads template data info based on value set on request body format: DataFile:file:dataIdstatic voidMessageQueueHelper. 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 requirementsstatic voidMessageQueueHelper. saveOutBoundValues(ServiceObject serviceObject, CopyOnWriteArrayList<MessageObject> filteredMessages, List<String> errorMessages)static StringJsonHelper. updateJsonFromRequestBody(ServiceObject service)static List<String>MessageQueueHelper. validateMessages(ServiceObject serviceObject, CopyOnWriteArrayList<MessageObject> filteredMessages)validate message based on message, header, or topic valites json, xml, or text response -
Uses of ServiceObject in core.apiCore.interfaces
Methods in core.apiCore.interfaces that return ServiceObject Modifier and Type Method Description static ServiceObjectRestApiInterface. evaluateRequest(ServiceObject serviceObject, io.restassured.specification.RequestSpecification request)static ServiceObjectRestApiInterface. evaluateRequestAndReceiveResponse(ServiceObject serviceObject)evaluates the request and stores the response in service objectMethods in core.apiCore.interfaces with parameters of type ServiceObject Modifier and Type Method Description static voidAuthentication. authenticator(ServiceObject serviceObject)interface for restful api callsstatic voidAzureInterface. 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 callsstatic voidAzureInterface. azureUploadToFileShare(ServiceObject apiObject)static voidRabbitMqInterface. connectRabbitMq(ServiceObject serviceObject)static ResultSetSqlInterface. DataBaseInterface(ServiceObject serviceObject)interface for database callsstatic io.restassured.response.ResponseRestApiInterface. evaluate(ServiceObject serviceObject)static ResultSetSqlInterface. evaluateDbQuery(ServiceObject serviceObject)evaluaes the sql statementstatic voidKafkaInterface. evaluateOption(ServiceObject serviceObject)static voidRabbitMqInterface. evaluateOption(ServiceObject serviceObject)static voidRestApiInterface. evaluateOption(ServiceObject serviceObject)sets the header, content type And body based on specificationsstatic voidServiceBusInterface. evaluateOption(ServiceObject serviceObject)static voidSqlInterface. evaluateOption(ServiceObject serviceObject)static io.restassured.response.ResponseRestApiInterface. 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.RequestSpecificationRestApiInterface. 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 responsestatic ServiceObjectRestApiInterface. evaluateRequest(ServiceObject serviceObject, io.restassured.specification.RequestSpecification request)static ServiceObjectRestApiInterface. evaluateRequestAndReceiveResponse(ServiceObject serviceObject)evaluates the request and stores the response in service objectstatic booleanRestApiInterface. evaluateRequestAndValidatePagination(ServiceObject serviceObject)static io.restassured.response.ResponseRestApiInterface. 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 periodstatic ResultSetSqlInterface. evaluateRequestAndValidateResponse(ServiceObject serviceObject)evaluate request and validate response retry until validation timeout period in secondsstatic io.restassured.specification.RequestSpecificationRestApiInterface. evaluateRequestBody(ServiceObject serviceObject, io.restassured.specification.RequestSpecification request)static com.rabbitmq.client.AMQP.BasicPropertiesRabbitMqInterface. evaluateRequestHeaders(ServiceObject serviceObject)static io.restassured.specification.RequestSpecificationRestApiInterface. 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 typestatic ObjectExternalInterface. evaluateTestMethod(ServiceObject serviceObject)set method to call within module.services.method package supports single commandstatic ResultSetSqlInterface. 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 emptystatic ObjectExternalInterface. ExternalInterfaceRunner(ServiceObject serviceObject)interface for restful API callsstatic com.microsoft.azure.storage.file.CloudFileDirectoryAzureInterface. getCloudfileDirectory(ServiceObject apiObject)sets the location of the azure file directory from option columnstatic io.restassured.response.ResponseRestApiInterface. RestfullApiInterface(ServiceObject serviceObject)interface for restful API callsstatic voidRestApiInterface. saveOutBoundValues(ServiceObject serviceObject)static voidKafkaInterface. sendKafkaMessage(ServiceObject serviceObject, String messageId)send kafka messagestatic voidRabbitMqInterface. sendRabbitMqMessage(ServiceObject serviceObject, String messageId)send rabbitMq messagestatic voidServiceBusInterface. sendServiceBusMessage(ServiceObject serviceObject, String messageId)send rabbitMq messagestatic voidAuthentication. setURI(ServiceObject serviceObject)sets base uri for api callstatic io.restassured.specification.RequestSpecificationRestApiInterface. setURI(ServiceObject serviceObject)sets base uri for api callstatic voidKafkaInterface. testKafkaInterface(ServiceObject serviceObject)interface for database callsstatic voidTestPrepare. 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 callsstatic voidRabbitMqInterface. testRabbitMqInterface(ServiceObject serviceObject)interface for database callsstatic voidServiceBus_depricated. testServiceBus(ServiceObject apiObject)Inject message to inbound queue And dequeues from outbound queue And do comparisonsstatic voidServiceBusInterface. testServicebusInterface(ServiceObject serviceObject)interface for database callsstatic List<String>RestApiInterface. validateResponse(ServiceObject serviceObject)static List<String>RestApiInterface. validateStatusCode(io.restassured.response.Response response, ServiceObject serviceObject)validate status codestatic voidTestPrepare. waitForSeconds(ServiceObject apiObject) -
Uses of ServiceObject in core.support.objects
Fields in core.support.objects declared as ServiceObject Modifier and Type Field Description ServiceObjectTestObject. activeServiceObjectServiceObjectTestObject. serviceObjectFields in core.support.objects with type parameters of type ServiceObject Modifier and Type Field Description Map<String,ServiceObject>TestObject. apiMapMethods in core.support.objects that return ServiceObject Modifier and Type Method Description static ServiceObjectTestObject. getApiDef(String key)gets api object from api keywords each keyword is associated with a api call use api keywords csv files for definitionsServiceObjectServiceObject. setServiceObject(Object[] testData)ServiceObjectServiceObject. 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)ServiceObjectServiceObject. withContentType(String ContentType)ServiceObjectServiceObject. withDescription(String Description)ServiceObjectServiceObject. withErrorMessages(List<String> errorMessages)ServiceObjectServiceObject. withExpectedResponse(String ExpectedResponse)ServiceObjectServiceObject. withHeaderMap(String testcaseId, ArrayList<String> header)ServiceObjectServiceObject. withInterfaceType(String InterfaceType)ServiceObjectServiceObject. withMethod(String Method)ServiceObjectServiceObject. withOption(String Option)ServiceObjectServiceObject. withOutputParams(String OutputParams)ServiceObjectServiceObject. withParent(String parent)ServiceObjectServiceObject. withRequest(io.restassured.specification.RequestSpecification request)ServiceObjectServiceObject. withRequestBody(String RequestBody)ServiceObjectServiceObject. withRequestHeaders(String RequestHeaders)ServiceObjectServiceObject. withRespCodeExp(String RespCodeExp)ServiceObjectServiceObject. withResponse(io.restassured.response.Response response)ServiceObjectServiceObject. withRunFlag(String runFlag)ServiceObjectServiceObject. withTcComments(String TcComments)ServiceObjectServiceObject. withTcIndex(String tcIndex)ServiceObjectServiceObject. withTcName(String tcName)ServiceObjectServiceObject. withTcType(String testType)ServiceObjectServiceObject. withTemplateFile(String TemplateFile)ServiceObjectServiceObject. withTestCaseID(String testCaseID)ServiceObjectServiceObject. withTestSuite(String testSuite)ServiceObjectServiceObject. withUriPath(String UriPath)Methods in core.support.objects with parameters of type ServiceObject Modifier and Type Method Description static TestObjectTestObject. 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 -
Uses of ServiceObject in core.uiCore.drivers
Methods in core.uiCore.drivers with parameters of type ServiceObject Modifier and Type Method Description voidAbstractDriverTestNG. setupApiDriver(ServiceObject apiObject)
-