Automated Test Framework (ATF) from Scoped App is not working ("jasmine" is not defined)

leosanchez
Tera Contributor

Hi there,

I'm kind of new in SNOW, and I'm trying to use the ATF to perform some server-side unit tests. I've read this similar post, but it is not "exactly" answered what I want to know.

I've created a new Scoped App and a new test inside that given app. This new test is an exact copy of the already existing sample test "Jasmine Successful Test", having a "Run Server Side Script" test step, except for the Application, which is Global in the sample test and my application in the new one.

I can run the sample test perfectly and it passes. But when trying to run the new one, I get this error (full log attached):

: org.mozilla.javascript.JavaScriptException: ReferenceError: "jasmine" is not defined. (sys_atf_step.ef6c29a24f0832007bc83879b110c7f8; line 48):

...

02:30:43.69: Unexpected exception:: java.lang.SecurityException: Encountered scriptable of unknown type Object in x_87196_ppltr_test:

...

02:30:43.70: Encountered scriptable of unknown type Object in x_87196_ppltr_test: java.lang.SecurityException: Encountered scriptable of unknown type Object in x_87196_ppltr_test: com.glide.script.RhinoEnvironment.checkScriptableAccess(RhinoEnvironment.java:548)

...

Is there something I am missing?

Is it the ATF limited to the Global scope only?

In such a case, how to share tests between instances? This documentation post states that you can use update sets, but I don't think it is a very useful way...

Any information would be highly appreciated.

Thanks and regards,

Leo Sánchez

10 REPLIES 10

Hi Eduardo,



According to my earlier post, yes, PRB677472 was fixed in Jakarta. If you continue to have issues please reach out to customer support.