Forum Discussion

smslca's avatar
13 years ago

Can I use Java Code instead of JavaScript in JavaScript Test

Hi All,

I am Using SOAPUI 4.0.1. SOAPUI will use rhino engine so that it will convert the javascript code into java code & it will execute the code. Suppose if I use Java instead of JavaScript will it work?

Example: I would like to extract some data from an Excel file. If I write code in java to do this functionality will it work?

Thanks in advance.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Yes, basically. Just use Groovy instead of JavaScript. Groovy is virtually backwards compatible with Java.

    Also, to make things a lot easier, try soapUI Pro which have built-in support for Excel files.

    Regards

    Henrik
    SmartBear Software