- Download Java SDK 1.8 https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
- Select Start -> Computer -> System Properties -> Advanced system settings -> Environment Variables -> System variables -> PATH. set the JAVA_HOME
- Prepend C:\Program Files\Java\jdk1.6.0_27\bin; to the beginning of the PATH variable.
- Install Maven https://maven.apache.org/download.cgi
- set the MAVEN_HOME path similar to JAVA_HOME
Down load the below project https://github.com/rajith2020/cox into youre local system. 1.open the eclipse 2.Click File menu 3.In file menu click Import 4.A window is open Now click General Folder 5.Now click Existing project into workspace 6.Then click the select from root directory 7.Browse the loaction where you dowloaded the project
1.Go to testrunner class right click run as JUnit test
1.Run->cmd->(Go the path where it present) 2.mvn test 3.Check the output created in the (API_Automation-main\test-outout) -->Look into Result file
Feature: getting the list of vechiles and datasetId using different combination Scenario: 1 get list of all the vechiles Given provided the valid API When A user perform get request to get "datasetId" Then A user perform get request to get "vehicleIds" using "datasetid" Then Verify the response code is 200 Scenario: 3 Get 500 when you not pass the datasetId details Given provided the valid API When A user perform get request to get "datasetId" Then A user perform get request to get "vehicleIds" not using "datasetid" Then Verify the response code is 404 Scenario: 2 Get list of all vechclie details Given provided the valid API When A user perform get request to get "datasetId" Then A user perform get request to get "vehicleIds" using "datasetid" Then Verify the sigle vechle pulled using datasetid and vehicleid Then Verify the response code is 200
System installed with eclipse with maven project and assocaited depedences and plugin are added in pom.xml file