This README would normally document whatever steps are necessary to get the application up and running.
This repository contains code for Assurity API automation task.
This is a maven project and contains all the dependencies in pom.xml file present at root folder. We need to ensure that we resolve all the dependencies before executing the test case. This can be done following one of the below steps:-
- Go to the project path containing pom.xml on a terminal and run this command - mvn clean install -U -DskipTests.Please ensure you have maven installed on your machine.
- Open this maven project in an IDE like IDEA intellij or eclipse which will resolve the maven dependencies.
Once we are done with above step successfully ,we can run our test case by one of the following ways mentioned in below section.
- Open this project in an IDE. Right click on suite.xml file present under src->test->resources->suiteXMLs. And select 'Run suite.xml'.Please ensure you have testNG plugin installed in your IDE.
- You can also run the test case by right clicking directly on the test case and select 'Run testcasename'.
- Go to the project path on your terminal and run command :- mvn clean install -DSuiteXmlFile=suite.xml
-
Database configuration:- Not Applicable
-
Deployment instructions:- NA
- src->main->resources :-
- apiEndPoints.properties:- All api endpoints which are being used in testing are listed here.
- env.properties:- All environment configuration related information is present here. For now we have api base URL listed here.
- log4j.properties :- logging configuration is present here.
Default testNG output file is present at /AssurityAPITest/target/surefire-reports/index.html
- Writing tests:- Please sync with repo owners/developers and discuss cases which are yet to be automated. Pull request need to be raised and code review comments need to be incorporated later.
- Other guidelines:- N/A
- Repo owner or admin:- ritesh.vashisth@yahoo.com