rcruzado23 / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Improved (simplified) Testing #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Whilst integrating testing using Groovy/Java is great, not everyone uses
Java :)

It would be great if I could knock up some simple tests that allow me to
simply check the response from a request. Something like the following as a
file that can be saved or loaded:

[Response]
Status:200|201|404
Content-Type:application\/xml|application\/xhtml\+xml
ValidateXSD:/my/xml/schema.xsd

I should be able to use simple boolean logic and/or Regular Expressions to
check header values, and I should be able to validate the response against
an XSD or RNG file. I should be able to quickly create a test file to check
the response against. If any of the specified rules fails, I should get a
breakdown of what it was checkign, and what the actual result was.

Something nice and simple like that would be awesome (and easily
automatically generated by other tools: e.g. PHP)

Original issue reported on code.google.com by m...@stickyeyes.com on 18 Feb 2008 at 3:03

GoogleCodeExporter commented 8 years ago
Either this, or some simple documentation on how to use the testing abilities 
for us
non-java types!

Original comment by m...@stickyeyes.com on 18 Feb 2008 at 3:03

GoogleCodeExporter commented 8 years ago
This is an interesting proposition. I wonder why I always end up thinking 
complex!! 
Anyways, think this feature can be developed as part of the existing 
infrastructure: 
by transparently generating Groovy script internally for the test written in 
such "super" script. Thanks for the input.

Original comment by subwiz on 18 Feb 2008 at 3:38

GoogleCodeExporter commented 8 years ago

Original comment by subwiz on 18 Feb 2008 at 3:38

GoogleCodeExporter commented 8 years ago
Cheers! (logged into the right account now: I posted the previous suggestion)

Original comment by omarshar...@gmail.com on 18 Feb 2008 at 3:49

GoogleCodeExporter commented 8 years ago
If I could wrap the saved request xml file up with this as well.... now that 
would
rock (automated testing: call the request XML file + check the results = sweet)

Original comment by omarshar...@gmail.com on 18 Feb 2008 at 3:51

GoogleCodeExporter commented 8 years ago
Tutorial on using the Testing abilities added:

http://code.google.com/p/rest-client/wiki/TestingTutorial

Original comment by subwiz on 18 Feb 2008 at 4:44

GoogleCodeExporter commented 8 years ago
Will not be able to include this feature in this release. Removing 2.1 label.

Original comment by subwiz on 29 Feb 2008 at 10:51

GoogleCodeExporter commented 8 years ago
Hi,

is there a way I can use this tool from command line? I wish to run multiple 
tests
with (input query, expected output) as part of regression of our web services. 
If you
have any other suggestions, kindly let me know thanks,

Kamran

Original comment by kmha...@gmail.com on 29 Jan 2009 at 12:05

GoogleCodeExporter commented 8 years ago
Issue: 78 has the details (I have implemented a basic one today).

Original comment by subwiz on 29 Jan 2009 at 5:28

GoogleCodeExporter commented 8 years ago
Closing this as we have Groovy support for this.

Original comment by subwiz on 7 Dec 2013 at 3:48