How to use GlideScopedEvaluator in ATF and pass input script to GlideScopedEvaluator.

neerajsharma27
Tera Contributor
Hello,
 
I have written a custom step configuration to run a custom input script. This step will take script input for example "u_custom_input_script" and execute it. I have used the method eval() in this. Challenge is that ATF Tests in the global scope are running successfully with this step configuration but when i am writing an ATF test in Scoped application, it is throwing error that eval() method can not be used in scoped applications and GlideScopedEvaluator() should be used instead.
 
GlideScopedEvaluator() uses Gliderecord object as parameter which i am unable to pass from inputs.u_custom_input_script.
 
Please suggest.
 
Step configuration - Step execution Script
neerajsharma27_0-1710240074028.png

 

sample step input script
neerajsharma27_1-1710240207333.png

 

scoped application runtime error

neerajsharma27_2-1710240275735.png

 

@Chuck Tomasi 

0 REPLIES 0