Automation Work
Automation Work
Project Structure
lib
All required libs '. class'
Scripter Backend
Test Scenarios and Abstarct Testcases
Run
Ant Build. xml
src
JUNIT Testcases 9
....
Start
Gives the backup to old files Then Deletes all exsting documents and Creates new diretories ifany thing is necessary for execution Compiles all source files and copies these generated class files with required libraries into 'build.dir'
delete files mkdir dirname javac * Apache JEXL Library java.nio.*, java.util.regex.* PL/SQL Reflection API, Apache JEXL API, Java Util Reflection API Google GSON API, XML Dom Parser, Refelction API, and XStream API Apache HTTP Client, and Selenium Web Driver Apache HTTP Client, and Selenium Web Driver XPath Assertion XPath Assertion JDBC, PL/SQL, Date Utility XML Transformations
build
All class file information configuration.xlsx
ConfigurationHandler
ConfigurationHandler.class will be intiated at start ofthe execution. and provides required inputs to execution environment
FetchIdentifiers.class SQL Query Writing Random Function Calling DataGenerator.class DataReplacement.class ObjectConverter.class RequestSender.class ResponseReciever.class Assertion.class ResponseChecker.class DBChecker.class ReportGenerator.class
Fetches the identifiers from existed abstract test cases and stores the identifiers into mapping.xlsx Writes the sql queries to get the db data, and declares the function calls ofExpression.class to generate the required new data into mapping.xlsx Executes sql queries from mapping.xlsx in selected DB Environment, implements the Expression.class functions to generate the new data, and stores generated data into data.xlsx in key, value (Identifier, Generated string) format
models
model files
testdata
mapping.xlsx data.xlsx
Parses the abstract data input java object and replaces the each identifier by newly generated string from 'data.xlsx'
Converts the real data input java object to required string format and stores generated string into 'request.file'
server_requests
file.request
Captures the response string from application and stores it into response.file as an output object
server_responses
file.response
Verifies the *SLA response time ofapplication for given request, and checks the response content is in expected format or not
Checks the response message content, and verifies content with expected output object
Cross verifies request and response content with End level DB Data Generates the report, report includes test scenario details, environment credentials, request content, response content, SLA time duration checks, assertion checks information, db checks information, and application log in detail
testreport
htmlreports > index.html xmlreports