Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

ATF - Problem in reading a scoped table

Shan C
Giga Guru

Hello all - I am trying to read the table sn_hr_le_activity which is in Human Resources: Lifecycle Events (LE), and getting this error:

Evaluator.evaluateString() problem: java.lang.SecurityException: onerror undefined, maybe missing global qualifier: 	com.glide.script.PackageParent.get(PackageParent.java:77)

 

I have 2 tests and one reusable test:

Test1 (only 1 step)           -> WORKING

- Reusable Test (RT1)

Test2 (more steps)           -> NOT WORKING, Getting above error.

- Impersonating as User1

- Do some form filling and submit

- Reusable Test (RT1)

 

Reusable Test - RT1

- Impersonating as User2

- Run a Server-Side script (only this step stays in LE application, all other steps in Global)

 

Above are my scenarios. I had this Server-Side script step in Global as well but got the issue:

Source descriptor is empty while recording access for table
then moved to the LE application and it's good.
Appreciate any inputs.
2 REPLIES 2

Kieran Anson
Kilo Patron

You need to keep all the rest steps as part of a test in the same scope. You'll run into a fair few issues with trying to cross scopes. 

 

Recommendation, build the test in a single scope.

 

Define a cross scope record to allow access from the scope, to the HR LE scope

Shan C
Giga Guru

I have tried that as well by keeping the test and steps everything in LE scope, and hitting same issue.

 

Then, I have tried replacing the steps directly inside the step instead of calling the reusable step, and it worked. ATF is having issues when exiting the reusable test and running another step in scoped application.


Seems this is an defect in ATF module or maybe another limitation to add to the list. At least, I have this working in some way now.