create account

API testing using postman - Part 2(Running in jenkins) by webguru

View this thread on: hive.blogpeakd.comecency.com
· @webguru ·
API testing using postman - Part 2(Running in jenkins)
<center><a href='https://d.tube/#!/v/webguru/do2h8ti9'><img src='https://ipfs.io/ipfs/QmfHNJRhgNJLhPFoE97qxL8Ehw4jA7mtfXkXPPAU1JFMtP'></a></center><hr>

In this tutorial, we are building API test suite in Postman and Running it Command Line(Newman) and running in Jenkins.

API calls Collection include mainly three things:

HTTP headers
HTTP Request  (POST,GET,PUT,DELETE )
Status Code/ Response Code

Status Code/Response Code - There are many status/response code, from them we can verify the response.
200 - OK, The request was successful.
201 - Created, The request was successful and data was created.
204 - No Content, The response is empty.
400 - Bad Request, The request could not be understood or was missing required parameters.
401 – Unauthorized, Authentication failed or user does not have permissions for the requested operation.
403 - Forbidden, Access denied.
404 - Not Found, Data was not found.
405 - Method Not Allowed, Requested method is not supported for the specified resource.
500 - Internal Server Error.
503 - Service Unavailable, The service is temporary unavailable.

Link: jsonplaceholder.typicode.com/posts

Download: http://getpostman.com

API TESTING is a type of software testing that involves testing

 application programming interfaces (APIs) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security. 


Steps to set environment variable.

Click on Manage Environment.
Click on ADD
Write down the Name of Environment.
Fill key & value, You can pass key = variable and value is your host IP address.

<hr><a href='https://d.tube/#!/v/webguru/do2h8ti9'> ▶️ DTube</a><br /><a href='https://ipfs.io/ipfs/QmVtjWLW5rPq3ZsMdLrDoFNUQFQKejYdG6ex7zLVAFtRtV'> ▶️ IPFS</a>
👍  , , ,
properties (23)
authorwebguru
permlinkdo2h8ti9
categorysteemit
json_metadata"{"video":{"info":{"title":"API testing using postman - Part 2(Running in jenkins)","snaphash":"Qmcj9jfpXBayHnYyq37RRF8E1rhJyyH4SmCwXA3vmRuoGU","author":"webguru","permlink":"do2h8ti9","duration":988.682448,"filesize":29564261,"spritehash":"QmaYQvZxT3vkxy8inzxy5dAD7na7MfFeBd6fngEPMAaP5K"},"content":{"videohash":"QmVtjWLW5rPq3ZsMdLrDoFNUQFQKejYdG6ex7zLVAFtRtV","video480hash":"QmR7Pp8xe8UnQtPskqM7H6ZsZny9VNbCJ67MyYPS8C8BMF","magnet":"","description":"In this tutorial, we are building API test suite in Postman and Running it Command Line(Newman) and running in Jenkins.\n\nAPI calls Collection include mainly three things:\n\nHTTP headers\nHTTP Request (POST,GET,PUT,DELETE )\nStatus Code/ Response Code\n\nStatus Code/Response Code - There are many status/response code, from them we can verify the response.\n200 - OK, The request was successful.\n201 - Created, The request was successful and data was created.\n204 - No Content, The response is empty.\n400 - Bad Request, The request could not be understood or was missing required parameters.\n401 – Unauthorized, Authentication failed or user does not have permissions for the requested operation.\n403 - Forbidden, Access denied.\n404 - Not Found, Data was not found.\n405 - Method Not Allowed, Requested method is not supported for the specified resource.\n500 - Internal Server Error.\n503 - Service Unavailable, The service is temporary unavailable.\n\nLink: jsonplaceholder.typicode.com/posts\n\nDownload: http://getpostman.com\n\nAPI TESTING is a type of software testing that involves testing\n\n application programming interfaces (APIs) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security. \n\n\nSteps to set environment variable.\n\nClick on Manage Environment.\nClick on ADD\nWrite down the Name of Environment.\nFill key & value, You can pass key = variable and value is your host IP address.","tags":["steemit","education","api","technology"]},"_id":"dc747f425016f78315768d640c92db53"},"tags":["steemit","education","api","technology","dtube"],"app":"dtube/0.6"}"
created2018-01-25 07:12:15
last_update2018-01-25 07:12:15
depth0
children0
last_payout2018-02-01 07:12:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,781
author_reputation680,559,343
root_title"API testing using postman - Part 2(Running in jenkins)"
beneficiaries
0.
accountdtube
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id32,128,851
net_rshares1,826,577,596
author_curate_reward""
vote details (4)