Service Virtualization

 View Only

Tech Tips: Test Case Fails When Deployed to Linux 

Jul 21, 2017 05:43 PM

Issue
I have a test case that utilizes a JavaScript step in my project that runs fine locally, but fails when deployed on Linux servers:

javax.script.ScriptException: TypeError: Cannot load script from {{LISA_RELATIVE_PROJ_ROOT}}/Data/myJSfileExtract1.js in <eval> at line number 9
at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:467)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:451)

 

Environment
All Supported DevTest releases on Linux.

 

Cause
1. The custom jar files you are using with this test case were not in /hotDeploy, they were in the DEVTEST_HOME/lib folder.
2. All custom jar files should be in your DEVTEST_HOME/hotDeploy folder.
3. All 3rd party jar files (not overlaying anything we deliver) should be in your DEVTEST_HOME/lib/shared folder.

 

Resolution
Once your custom jar files this test needed were move from DEVTEST_HOME/lib to DEVTEST_HOME/lib/shared, the issue was resolved.


KB Article ID : TEC1246205

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.