ATF- How to get values from another 'Run server side script' .

Reina Fujita
Tera Contributor

We have applied an ACL to an Incident table and want to obtain the number of records that a specific user can view.

I succeeded in getting the number of records of one 'run server side script'.
But, I need to call that value from another 'run server side script'.

 

Q:If more than one script exists, can the value obtained by the previous script be used (called) by other scripts?

 

Concrete content to be realized)
・The number of records of Incident is acquired by posing as one user (A).
・Assume another user to retrieve the number of incident records and verify that the number of records that can be viewed is the same as A

 

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @Reina Fujita,

 

You need to create Output variables, assign values to it and use in another test steps.

Add output variables to scripted steps 

Passing data from one automated test step to another 

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

View solution in original post

2 REPLIES 2

Sagar Pagar
Tera Patron

Hi @Reina Fujita,

 

You need to create Output variables, assign values to it and use in another test steps.

Add output variables to scripted steps 

Passing data from one automated test step to another 

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

Thank you for your reply.
It worked, thanks.