Feature: Api Testing for GitHub As a Project
File name: GitHub.feature
Relative path: GitHub.feature
Given
Make a post request with the resource '/user/repos'
Then
Print the response in console
Then
Store Necessary data in the variable
Then
The response status code should be '201'
And
Check Wether the RepoName is stored in variable 'Hello-World-by'
Given
Make a PATCH request with the resource '/repos/jitenderji1137/Hello-World-by'
Then
Print the response in console
Then
Store Necessary data in the variable
Then
The response status code should be '200'
And
Check Wether the updated RepoName is stored in variable 'Updated-Hello-World-by'
Given
Make a PUT request with the resource '/repos/jitenderji1137/Updated-Hello-World-by/contents/README.md'
Then
Print the response in console
Then
Store Necessary data in the variable
Then
The response status code should be '201'
And
Check Wether the sha value is stored in variable