Javascript in SoapUI

javascript, soapui

Solution

To switch a project to JavaScript, click on the project, travel to the window in the bottom left hand corner. Select the script language field and update it to JavaScript.

As far as what you can do with it, you can really do anything. You can create a script step or assertion. Some examples would include creating a script to create variables or looping through a response to verify information. I didn't find much on using JavaScript with soapUI either, and ended up sticking with Groovy. I found it to be powerful and extendable via Java if needed.

If you want a specific example on how to do something. I'd recommend asking a more specific question with what you have tried so far.

Problem

Javascript in SoapUI How to's? In SoapUI, you are allowed to write Groovy Scripts ! but since even javascript is also supported in SoapUI how can we write a javascript in SoapUI Is there a simple example which would explain this in much detail.Is there any simple code for automating the process of testing using javascript.

Original source