Testing REST webservices [closed]

2019-01-10 03:19发布

My organization is working on building RESTful webservices on JBoss appserver. The QA team is used to testing SOAP webservices so far using SoapUI. SoapUI has a new version that has REST capabilities. We're considering using that.

  1. Are there any publicly available RESTful services available on the net for free that someone could test ?
  2. What tools are available(and used) for testing RESTful web services ?

24条回答
何必那么认真
2楼-- · 2019-01-10 03:29

To test a REST service you can try REST Assured which makes it very simple to test REST services and validating the response in Java (using JUnit or TestNG).

查看更多
一夜七次
3楼-- · 2019-01-10 03:29

I know it is very old question, but could be helpful to others. Just to answer your first question you can check here to get some REST webservices to test.

Fiddler and Poster plug in Firefox can be use to test any REST web services. SoapUI also comes with RESTful webservices support.

查看更多
神经病院院长
4楼-- · 2019-01-10 03:32

I'm currently investigating wsclient CLI app for this purpose (http://wso2.org/library/3362). It is quite promising, and can be used to hack a quick test from a bash shell. Of course, as many mentioned here, many of the tools that come with a *nix system will do the job with a tidbit of coding/scripting

查看更多
啃猪蹄的小仙女
5楼-- · 2019-01-10 03:32

OnionTest still beta , but quite useful

查看更多
祖国的老花朵
6楼-- · 2019-01-10 03:33

Check out Postman - https://chrome.google.com/webstore/detail/fdmmgilgnpjigdojojpjoooidkmcomcm/. This is a tool I have been working on over the past several months and lately from the feedback that I have been getting it's becoming quite useful for large REST projects while helping with basic REST endpoint testing.

The code for this is available on Github as well. https://github.com/a85/POSTMan-Chrome-Extension

查看更多
\"骚年 ilove
7楼-- · 2019-01-10 03:34

CURL Gets you halfway there. The other half is checking the headers, response codes and entity content to make sure its good. You could use a variety of tools for that (in shell scripting land, piping the header and contents to files, and diffing them might just do the trick). It wouldn't be that difficult to further refine the toolset, maybe stacking curl up with the unit-testing framework of your choice.

I built a rest webservice testing panel with AJAX. It wasn't that difficult at all actually. You have some security issues to work out (i.e. making sure that you have the test suite on the same server, or maybe signed Javascript.)

查看更多
登录 后发表回答