7

I am a manual tester and my responsibility is the web, mobile application testing in which I need to test a web service but I have not used any automation tools yet.

Please suggest me a manual way to perform web service testing. Thanks in advance.

The web service is REST.

6
  • We have used REST type of Web service. Commented Aug 12, 2015 at 10:01
  • 1
    In case of REST you need a browser plugin (or Fiddler or other tool) to manage the different type of messages to the server. To handle the JSON files, XML files manually will be a nightmare very quickly, so I suggest that invest a little time to learn how to use these tools. Commented Aug 12, 2015 at 10:05
  • 2
    GET requests can be tested with just Web browser, POST, DELETE, PUT request will require tool, e.g. Postman plugin for browser or curl command line tool. There's no way to do this without any tool because you're actually mimicking a machine, a programmed client.
    – dzieciou
    Commented Aug 12, 2015 at 10:06
  • 1
    Very carefully with magnets, a bit of copper coil, a stop watch, and direct access to the ethernet cable...
    – atk
    Commented Aug 12, 2015 at 15:23
  • 1
    @atk Luckily, any normal gigabit ethernet port is backwards compatible to 10BASE-T... but it may still require some training. And an assistant with Parkinson disease, taking care of the clock, will surely help! Commented Mar 31, 2017 at 17:18

6 Answers 6

12

For the REST service testing Postman and HttpMaster are good tools. It supports dynamic parameters, validation of response data, various data viewers, etc. If you are looking for performing load testing of the REST services than Grinder and JMeter open source tools can be considered.

This data is taken from the post

Tools for REST webservice testing

2
  • +1: I use cURL command-line tool.
    – dzieciou
    Commented May 2, 2017 at 12:46
  • I'm suspicious of clicking on that "Grinder" link ¬_¬ Commented Jun 5, 2017 at 11:43
2

I would suggest using an open source tool such as http://www.soapui.org/

This will allow you to send requests to your end points and, in turn, see the responses. Should you choose to extend your test from manual into automated (ie run the same test again along with other tests) then SoapUI also gives you that option.

2
  • I think he suggested that his application use REST not SOAP. So, I dont think SoapUI is suitable for this case.
    – scorpion
    Commented Aug 13, 2015 at 3:08
  • 1
    SoupUI can be used for any restful services, not just Soap. If you wish it also supports (HTTP GET, POST, DELETE, PUT). They are renaming the product to ReadyAPI to avoid this confusion.
    – ECiurleo
    Commented Aug 13, 2015 at 9:11
1

cURL.

I recommend using this command-line tool for the following reasons:

Here's an example of curl command:

curl http://httpbin.org/post --data "some-data" -v

together with HTTP Request sent:

* Hostname was NOT found in DNS cache
*   Trying 23.21.245.14...
* Connected to httpbin.org (23.21.245.14) port 80 (#0)
> POST /post HTTP/1.1
> User-Agent: curl/7.37.1
> Host: httpbin.org
> Accept: */*
> Content-Length: 9
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 9 out of 9 bytes

and HTTP Response received:

< HTTP/1.1 200 OK
< Connection: keep-alive
* Server gunicorn/19.7.1 is not blacklisted
< Server: gunicorn/19.7.1
< Date: Tue, 02 May 2017 12:39:15 GMT
< Content-Type: application/json
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Credentials: true
< Content-Length: 387
< Via: 1.1 vegur
<
{
  "args": {},
  "data": "",
  "files": {},
  "form": {
    "some-data": ""
  },
  "headers": {
    "Accept": "*/*",
    "Connection": "close",
    "Content-Length": "9",
    "Content-Type": "application/x-www-form-urlencoded",
    "Host": "httpbin.org",
    "User-Agent": "curl/7.37.1"
  },
  "json": null,
  "origin": "88.221.209.14",
  "url": "http://httpbin.org/post"
}
* Connection #0 to host httpbin.org left intact
0

As already mentioned here, there are lot of open source tools like SOAP UI etc.. and plugins like POSTMAN, RESTCLIENT etc... which can be used to send GET/POST request and check response. Other than these, if you are comfortable using java, you can write a simple code using httpclient library to send GET/POST request and validate the response. At the same time you can create a simple Data Driven test where you can have variety of requests, this will help you in increasing the test coverage.

If its works for you, I can post a simple example also.

0

You want to test the web service manually, and unfortunately it is only possible with some interface. Web services are not visible and only applications can communicate with this. So my suggestion is test the Applications that are using the web services. Doing so you will be indirectly test the web services.

0

Firefox has a rest posting addin. You can also use Excel VBA httppost capability.

1
  • 2
    You need to provide more information to make this a good answer.
    – Kate Paulk
    Commented Aug 19, 2015 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.