Forum Discussion

psm_oliveira's avatar
psm_oliveira
Occasional Visitor
9 years ago

Ready! API 1.4.1 - failure in groovy script after upgrade

Hi;

This groovy script lines...

helper.getTestSuiteByName('Set Up Test Case - Clean Up Logs')
            .run(null, false)

... are failing on 1.4.1 with error:

java.lang.NullPointerException error at line: 3


If we run the test suite from soapUI 1.4.1 manually: Works sucessfully

If we downgrade to version 1.3.1: All works sucessfully


If there a work arround to make this work also in 1.4.1?

Cheers;

1 Reply

  • Hi,

     

    You should be able to work around this by providing a context object instead of null.

     

    Try

     

    helper.getTestSuiteByName('Set Up Test Case - Clean Up Logs')
                .run(new StringToObjectMap(), false)

     

    Regards,

    Anders

    Ready! API developer