Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

ECMA in Parasoft assertion

trilochanadeka
trilochanadeka Posts: 1
edited August 2019 in SOAtest

Hi Team,

What prerequisites(setup) we need to do so that we can use ECMA script in custom assertion. Please help.

Comments

  • jakubiak
    jakubiak Posts: 813 admin

    In the custom assertion, change the language to "JavaScript (Oracle Nashorn)".

  • benken_parasoft
    benken_parasoft Posts: 1,302 ✭✭✭

    The XML and JSON Assertor tools have a "Custom Assertion" that lets you provide a script. Various languages are supported including ECMAScript. In the Language drop down you want to pick the option that says "JavaScript (Oracle Nashorn)". The Oracle Nashorn engine actually implements ECMAScript 6 (ES6).