Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.software.testing > #514
| Newsgroups | comp.software.testing |
|---|---|
| Date | 2014-04-08 14:55 -0700 |
| References | <a4606d64-671f-4d88-a8d5-7b8f030668c6@googlegroups.com> |
| Message-ID | <53fc7913-3dd4-4ec7-bcf9-59a70f4a1bd8@googlegroups.com> (permalink) |
| Subject | Re: need REST API test automation harness/tool |
| From | brandonwanamaker.emma@gmail.com |
On Thursday, August 16, 2012 7:33:39 AM UTC-5, Asher Vilensky wrote:
> Does anybody know of a tool to automate REST API testing? Let me give a brief example of what I'm looking for. Right now I'm using both Poster (FireFox add-on) or curl to do something like this:
>
>
>
> Post: http://host:8080/<some path>/<API name>/<parameters>
>
>
>
> Content to send (json):
>
> {
>
> "Name":"Asher-1",
>
> "Address1":"some St",
>
> "City":"some city",
>
> "Zipcode":"00000",
>
> "ContactPhone":"11231231234"
>
> }
>
>
>
>
>
> I'm doing this manually. What I'd like to do is automate the above with different parameters and different json's. Also, I have many different API's to test. So the question is if anybody knows of an automated test tool that can do this. I'm already familiar with things like Selenium and other GUI-based tools. I'm NOT looking for that.
>
> Thanks.
Have you tried FrisbyJS? http://frisbyjs.com/
You can even be more specific, but in this example, it's a simple GET verifying my default fields are there and are returning the proper type of data:
var frisby = require('/usr/local/bin/node_modules/frisby/lib/frisby');
var URL_AUTH = 'https://myauthenticatingurl.com/api'
frisby.create('Members')
.get(URL_AUTH + '/members')
.expectStatus(200)
.expectHeaderContains('content-type', 'application/json')
.expectJSONTypes('0', {
'status': String,
'confirmed_opt_in': function(val){ expect(val).toBeTypeOrNull(Boolean); },
'account_id': Number,
'fields': {
'first_name': String,
'last_name': String
},
'member_id': Number,
'last_modified_at': String,
'member_status_id': String,
'plaintext_preferred': Boolean,
'email_error': function(val){ expect(val).toBeTypeOrNull(Boolean); },
'member_since': String,
'bounce_count': Number,
'deleted_at': function(val){ expect(val).toBeTypeOrNull(String); },
'email': String
})
.toss();
Back to comp.software.testing | Previous | Next — Previous in thread | Next in thread | Find similar
need REST API test automation harness/tool Asher Vilensky <dorfa1@gmail.com> - 2012-08-16 05:33 -0700
Re: need REST API test automation harness/tool jasnow1@gmail.com - 2012-08-16 06:03 -0700
Re: need REST API test automation harness/tool Asher Vilensky <dorfa1@gmail.com> - 2012-08-16 11:54 -0700
Re: need REST API test automation harness/tool jasnow1@gmail.com - 2012-08-16 12:28 -0700
Re: need REST API test automation harness/tool Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-08-16 21:17 +0000
Re: need REST API test automation harness/tool jasnow1@gmail.com - 2012-08-16 14:58 -0700
need REST API test automation harness/tool "dumitru.corobceanu" <dumitru.corobceanu@gmail.com> - 2012-08-16 15:49 -0700
Re: need REST API test automation harness/tool Asher Vilensky <dorfa1@gmail.com> - 2012-08-17 04:40 -0700
Re: need REST API test automation harness/tool Asher Vilensky <dorfa1@gmail.com> - 2012-08-17 05:54 -0700
Re: need REST API test automation harness/tool Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-08-18 08:12 +0000
Re: need REST API test automation harness/tool "dumitru.corobceanu" <dumitru.corobceanu@gmail.com> - 2012-08-23 13:37 -0700
Re: need REST API test automation harness/tool merrin.kurian@gmail.com - 2012-12-19 05:14 -0800
Re: need REST API test automation harness/tool srinidhi23@gmail.com - 2013-09-09 04:51 -0700
Re: need REST API test automation harness/tool matti.hjelm@gmail.com - 2013-10-06 15:03 -0700
Re: need REST API test automation harness/tool yashwanthpanji@gmail.com - 2014-03-21 01:40 -0700
Re: need REST API test automation harness/tool markdrury <markdrury@gmail.com> - 2013-01-02 14:34 -0800
Re: need REST API test automation harness/tool frank.schroeder@gmail.com - 2013-05-27 01:49 -0700
Re: need REST API test automation harness/tool leonardaye@gmail.com - 2013-07-18 03:06 -0700
Re: need REST API test automation harness/tool srinidhi23@gmail.com - 2013-09-09 04:52 -0700
Re: need REST API test automation harness/tool TomKes <tomkessler3@gmail.com> - 2013-10-03 17:20 -0700
Re: need REST API test automation harness/tool huntgathergrow@gmail.com - 2014-04-08 14:52 -0700
Re: need REST API test automation harness/tool brandonwanamaker.emma@gmail.com - 2014-04-08 14:55 -0700
Re: need REST API test automation harness/tool Fletcher Wason <minottech@gmail.com> - 2015-03-30 18:47 -0700
csiph-web