Is it advisable to use JavaScript ?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2019
09:59 PM
12-23-2019
09:59 PM
Is it advisable to use JavaScript ?
Hi all,
My question is "How to get a json post request body from REST test step into JavaScript test step"
I'm using licensed SOAP UI pro in Ready api, I want to test a json web service using JavaScript.
But I couldn't find any code for it. I want to get the request body from a REST request test step and then hit that request to URL and assert the results. I configured database using DATASOURCE test step. My URL's both input and output are in json format. I'm able to perform all this using Groovy Script but I'm new to JavaScript, please help me.
Thanks in advance.
Solved! Go to Solution.
Labels:
- Labels:
-
Scripting
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2019
11:02 AM
12-24-2019
11:02 AM
Hi @Revanth_Kumar,
I'm afraid i cant help with the JavaScript, but im curious. Whats the need for using JavaScript over groovy?
In fact, from your description it sounds like the embedded functionality supports what you need (so you wouldnt even need any scripting), so i'm intrigued!!
why bother with JavaScript over the more popular/easier to use options?
Cheers,
Rich
I'm afraid i cant help with the JavaScript, but im curious. Whats the need for using JavaScript over groovy?
In fact, from your description it sounds like the embedded functionality supports what you need (so you wouldnt even need any scripting), so i'm intrigued!!
why bother with JavaScript over the more popular/easier to use options?
Cheers,
Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
