Forum Discussion

Raghav21's avatar
Raghav21
New Contributor
23 days ago

Tear down script not executed when project is executed from testEngine.

As part of our current project effort we have a teardown script that pulls out the runner data to pull out the execution data and push to a porta using a endpoint.

We have come up with a groovy script library file that can do this activity.

In our tearDown script we are trying to just invoke the function in the script library.

This works fine with the desktop version of readyapi, but when the same project is executed through jenkins on testEngine the function or the tearDown script is not triggered.

Could someone help out unnderstand what could be possible issues, and also suggest some resolution that helps us out.

Thanks 

1 Reply

  • fart's avatar
    fart
    New Member

    I’d first check whether the Groovy library is available in the TestEngine environment, since it works from the ReadyAPI desktop. Also check the TestEngine/Jenkins logs to see if the teardown is being skipped or if the library call is failing silently. Testing the teardown with a simple log message before calling the library could help narrow it down.