cancel
Showing results for 
Search instead for 
Did you mean: 

How to omit parameters in a REST request

SOLVED
Community Hero

Re: How to omit parameters in a REST request

First get it working, later you can look for the way to convert into library script.
Please show screen shot of your test case with custom properties?



Regards,
Rao.
Frequent Contributor

Re: How to omit parameters in a REST request

Ok, here is the screenshot but the response is not complete and I can't copy it:

 

errormessage.png

 

and in attachement the error message after debugging.

Community Hero

Re: How to omit parameters in a REST request

Have you placed the jar file from the link provided in earlier reply? And restarted the tool?


Regards,
Rao.
Community Hero

Re: How to omit parameters in a REST request

Please defined the custom properties for the test case level not at the groovy script test step level.


Regards,
Rao.
Frequent Contributor

Re: How to omit parameters in a REST request

@nmrao yes

 

jarInbin.png

Community Hero

Re: How to omit parameters in a REST request

The error posted will be thrown only when the tool is not started then.


Regards,
Rao.
Frequent Contributor

Re: How to omit parameters in a REST request

@nmrao 

my bet, I've added the parameters on testcase level. Furthermore, I've re-restarted ReadyAPI one more time. I've added a new webservice, deleted the old one and added new request to the testcases without parameters pre-configured

 

parametersTC.pngparametersTC2.pngI still got the error message...?

Community Hero

Re: How to omit parameters in a REST request

Looks you are confused.

Earlier you showed a screen shot copying jar file under Open source directory. Now showing ReadyAPI where the script is copied.

Please go thru the earlier posts one more time.


Regards,
Rao.
Frequent Contributor

Re: How to omit parameters in a REST request

ooh ok, I know what you mean. I've copied the jar in the "Program Files (x86)" instead of "Program Files" itself.

 

Ok done and restarted ReadyAPI. Another error message occurs:

"Groovy.lang.MissingPropertyException: No such property: headers for classSmiley Frustratedcript1

erro at line: 20"

Community Hero

Re: How to omit parameters in a REST request

Please take the script from git again. Fixed it.


Regards,
Rao.
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors