Create the Karate Test Suite for Endpoints.
- Karate API Testing
- Contract Verification
- Integration Testing
- Create a WorkOrder.feature class in the features folder of the test directory.
- Create the following scenarios to perform a GET, POST, & PUT for WorkOrders.
- Create a GET request to retrieve a workOrder.
- Confirm the following fields from the GET response:
- WorkOrderNumber
- CustomerId
- TechnicianCode
- Confirm the response status is 200.
- Confirm the following fields from the GET response:
- Create a POST request with all the required fields for a workOrder.
- Confirm the following fields from the POST response:
- WorkOrderNumber
- CustomerId
- TechnicianCode
- Confirm the response status is 201
- Confirm the following fields from the POST response:
- Create a GET request to retrieve a workOrder.
- Create a PUT request with updated ‘customerId’ and ‘technicianCode’ fields for a workOrder.
- Confirm the following fields from the PUT response:
- CustomerId
- TechnicianCode
- Confirm the response status is 200
- Confirm the following fields from the PUT response:
- Create a Technician.feature class in the features folder of the test directory.
- Create the following scenarios to perform a GET request for a Technician.
- Create a GET request to retrieve a technician.
- Confirm the following fields from the GET response:
- TechnicianCode
- TechnicianFirstName
- TechnicianLastName
- Confirm the response status is 200.
- Confirm the following fields from the GET response:
- Create a GET request to retrieve a technician.
- Create a Product.feature in the features folder of the test directory.
- Create a GET request to retrieve a product.
- Confirm the following fields from the GET response:
- Quantity
- UnitCost
- Taxable
- Confirm the response status is 200.
- Confirm the following fields from the GET response:
- Create a GET request to retrieve a product.
- Push WorkOrder test suite into the Github repository.
- Push Technician GET endpoint karate test suite into the Github repository.
- Push fixes of Product GET endpoint Karate test suite into the Github repository.
Testing Assignment 3 Grading
Score: / 5 points
- Create a new Karate test suite for WorkOrder POST, PUT & GET endpoints. (3pt)
- Create a new Karate test suite for Technician GET endpoint. (1pt)
- Fixes in existing Karate test suite for product GET endpoint. (1pt)
Feedback: