-
Notifications
You must be signed in to change notification settings - Fork 11
Feature File: Status Code
Mahmoud A. Zaid edited this page Mar 15, 2019
·
4 revisions
Let's create a feature file and generate our first test case that tests the response status code, the main idea to test the API is defining the endpoint, then create the request, execute the request and finally check the response from the API
you can find the final feature file here
Feature: GetSingleEmployeeApi
This page will contain information about, how to access particular employee data using rest API/employee.
Scenario: Check Get Single employee status
Given Create Request "employee/{id}" with "GET" method
When Create URL segment for "id" with parameter "7337"
And Execute API
Then returned status code will be "200"
Mahmoud A. Zaid
- Introduction
- HTTP Methods
- HTTP Request
- API Parameters
- HTTP Response
- HTTP Status Code
- Methods Examples
- Idempotence