Posts

Showing posts from July, 2020

[Part-5] Practicing API Testing with Sample APIs

Image
Below are few resources we can use for practicing API Testing.                                   https://jsonplaceholder.typicode.com/ https://fakerestapi.azurewebsites.net/ https://reqres.in/ https://any-api.com/ https://rapidapi.com/ https://www.onlinetool.in/fake-rest-api https://gorest.co.in/ https://swapi.dev/ https://dog.ceo/dog-api/ https://httpbin.org/ Recently, I read the post from Alan Richardson,  Thingifier Practice REST API Testing    https://apithingifier.herokuapp.com/ REST API Testing with VTiger CRM -  https://www.vtiger.com/docs/rest-api-for-vtiger   If you know any other sample APIs for testing practice, please comment.

[Part-4] Running Postman Collection through newman-reporter-htmlextra

Image
In Part-1: We have configured postman collection to run through newman.  https://testingeduindia.blogspot.com/2020/07/running-postman-collections-through.html I have tried a tool to generate html report after running the tests through newman using  newman-reporter-htmlextra This was developed by Danny Dainton.  Github:  https://github.com/DannyDainton/newman-reporter-htmlextra/ A HTML reporter for Postman's Command Line Runner, Newman. Includes Non Aggregated Runs broken down by Iterations, Skipped Tests, Console Logs and the handlebars helpers module for better custom templates. This reporter comes with a dashboard style summary landing page and a set of different tabs which contain the detailed request information. There are also a few optional configuration flags available, to tailor the final report in a number of different ways. Installation Steps: In the command prompt, run the below command. npm install -g newman-reporter-htmlextra This is to install newman-reporter-htmlextr

MOT Blog: Testing is like .....

Image
This post is inspired by the  MOT bloggers club initiative Testing is like… Based on my analogy,  "Testing is like a Sport.." Everyone can play a sport like Cricket, Caroom, Chess. But to become good at a sport, you need to read a lot and practice.             Deliberate practice should be part of our routine. Courtesy: James Clear - Atomic Habits Book   Recently, I started playing "Chinese Checker" game.  We can also use Heuristics and Tree Search Algorithms to play and win the game. Researching for "How to win game in 13 steps" can help, But Practice is the Key. No matter, what background - we need to learn continuosly. In my childhood days, a neighbour used to read books on Chess. I used to think, Why? Later I have realized, you will become better when you learn from others. - Mentor/Books/Pairing/Practice with a Team The same way in Testing, we learn from a mentor, testers - in/outside company, books, online resources. I attend weekend testing sessions

[Part-3] Running Postman Collections through CI/CD Tool

Image
If you have missed to read Part - 1 and Part -2, Click below links. Part 1 - Running Postman Collections through Newman https://testingeduindia.blogspot.com/2020/07/running-postman-collections-through.html Part 2 -  Configuring the Postman Collection with Newman Dependencies https://testingeduindia.blogspot.com/2020/07/part-2-configuring-postman-collection.html I have pushed the postman-collections to github. https://github.com/srinivasskc/postman-api-testing-collection-1 Now, Running Postman Collections through CI/CD Tool. Download Jenkins https://www.jenkins.io/download/ Jenkins Generic Java Package (.war) -- 2.222.3 Download Jenkins War LTS  - Windows to below folder C:\Installers\Jenkins 

[Part-2] Configuring the Postman Collection with Newman Dependencies

Image
In previous blog post, we have exported Postman Collection, which includes our set of requests and tests. Part-1 Link: https://testingeduindia.blogspot.com/2020/07/running-postman-collections-through.html   Now, we will navigate to the folder where Postman Collection is saved via command line  and create a node project. Command: npm init