Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
870 views
by Contributing Tester (78 points)
edited by
Commonly used API Testing tools.Whether that tool is having to track the test case result in dashboard.

4 Answers

1 like 0 dislike
by Master (1.2k points)
selected by
 
Best answer
At this point of time, I can think of two possible tools I use for REST automation.

1. REST-Assured (http://rest-assured.io/)

REST Assured brings the simplicity of using these languages into the Java domain. For example if your HTTP server returns the following JSON at “http://localhost:8080/lotto/{id}”:

{
   "lotto":{
      "lottoId":5,
      "winning-numbers":[2,45,34,23,7,5,3],
      "winners":[
         {
            "winnerId":23,
            "numbers":[2,45,34,23,3,5]
         },
         {
            "winnerId":54,
            "numbers":[52,3,12,11,18,22]
         }
      ]
   }
}
You can easily use REST Assured to validate interesting things from the response:

@Test public void
lotto_resource_returns_200_with_expected_id_and_winners() {
    
    when().
            get("/lotto/{id}", 5).
    then().
            statusCode(200).
            body("lotto.lottoId", equalTo(5),
                 "lotto.winners.winnerId", containsOnly(23, 54));

}
2. JMeter(http://jmeter.apache.org/download_jmeter.cgi)
Even though, JMeter was created for load testing, we can use it for functional API testing as well.

JMeter includes all the functionality you need to test an API such as parameterization, plus some extra features that can be taken advantage of to enhance your API testing efforts.
by Contributing Tester (78 points)
Sir,Thank you for your answer. Could you give me some opinion about SoapUI. Is it used right now.I want to do the API Testing and i need to view the testcase result in dashboard. Whether i can achieve using these open source tool as REST-Assured, JMeter and SoapUI
by Master (1.2k points)
There are two things you should consider.

If your API is REST API, I would go with REST-Assured. As, you can build it through CI and visualize the report.
If your API is SOAP API, you can go with SOAP UI. But, down the line, it is not free and has to be purchased in the future.

So, depending on your API type, you can choose the tool. Since you asked, opensource, I did not suggest SOAP UI.

Conclusion, REST-Assured for the REST API and SoapUI for SOAP API
by Master (1.2k points)
JMeter is not yet good with reporting
by Contributing Tester (78 points)
Sir,Thank you for spending your valuable time to give the answer.
1 like 0 dislike
by Expert (748 points)
1> Rest assured (open  source tools)

following plugin need to be downloaded here:

json-schema-validator,json-path,rest-assured &testng in dependencies

2> Jmeter (load testing) but you can test rest api

best site to learn : www.artoftesting.com
0 like 0 dislike
by
I just found this list and thought it might help

Top 10 API testing tools - https://medium.com/@alicealdaine/top-10-api-testing-tools-rest-soap-services-5395cb03cfa9

They include several options for API testing:

- SoapUI (Free & Paid)

- Postman (Free & Paid)

- Katalon Studio (Free)

- Apigee (Free trial & Paid)

- JMeter (Free)

- Rest-Assured (Free)

- Assertible (Free & Paid)

- Karate DSL (Free)
0 like 1 dislike
by
I have an application with cordapp with the API methods like GET,POST,PUT

Could you please help me  how to write the test case for the API methods and as well as

its better could you provide the step by step how i can write the entire test case for my cordapp application.
by Master (1.2k points)
Hi Ankit,

Kindly post this as a separate question. And, every new issue/problem you are facing should be a new question.

You can ask a question at, https://softwaretestingboard.com/q2a/ask

-Mayur


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...