ATF shows Error message: This step failed because the client error 'Exception while running script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 01:53 AM
Hi friends, I am having trouble with ATF. I have created some steps:
1. Impersonate user: A
2. Open a Catalog Item
3. Set Variable Values
4. Order Catalog Item
5. Impersonate user: B
...... And some other steps
When clicking 'Run test', it shows a pop-up and I clicked 'Run test' to continue.
And it returns FAILURE status at the step: Order Catalog Item with the message below:
This step failed because the client error 'Exception while running script engine process: java.lang.NullPointerException: Cannot invoke "com.glideapp.workflow.model.pojos.WorkflowActivity.getAttributes()" because "activity" is null: com.glideapp.workflow.model.WorkflowPaths.addExpectedActivities(WorkflowPaths.java:289)
com.glideapp.workflow.model.WorkflowPaths.getPositivePaths(WorkflowPaths.java:264)
com.glideapp.workflow.stages.WorkflowStageList.findForwardPath(WorkflowStageList.java:850)
com.glideapp.workflow.stages.WorkflowStageList.getStageFuture(WorkflowStageList.java:787)
com.glideapp.workflow.stages.WorkflowStageList.createStageStates(WorkflowStageList.java:208)
com.glideapp.workflow.stages.WorkflowStageList.createStageStates(WorkflowStageList.java:160)
com.glideapp.workflow.engine.ContextCreator.create(ContextCreator.java:76)
com.glideapp.workflow.engine.WorkflowManager.createFlows(WorkflowManager.java:152)
com.glideapp.workflow.engine.WorkflowEngine.runEngine(WorkflowEngine.java:107)
com.glide.policy.AScriptEngine.process(AScriptEngine.java:34)
com.glide.script.ScriptEngines.lambda$run$0(ScriptEngines.java:106)
java.base/java.util.Optional.ifPresent(Optional.java:178)
com.glide.script.ScriptEngines.lambda$run$1(ScriptEngines.java:104)
java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
com.glide.script.ScriptEngines.run(ScriptEngines.java:103)
com.glide.script.GlideRecord.runEngines(GlideRecord.java:1419)
com.glide.script.GlideRecord.runScriptsAndEngines(GlideRecord.java:1400)
com.glide.script.GlideRecord.insert(GlideRecord.java:5294)
com.glide.script.GlideRecord.insert(GlideRecord.java:5224)
com.glideapp.servicecatalog.RequestNew.copyCartForRequest(RequestNew.java:361)
com.glideapp.servicecatalog.RequestNew.copyCart(RequestNew.java:289)
com.glideapp.servicecatalog.RequestNew.copyCart(RequestNew.java:280)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:569)
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:151)
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:300)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2976)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)
com.glide.caller.gen.sys_script_include_8f3a2778c0a8002700fbde5ad148abe3_script.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:22)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3058)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2981)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)
com.glide.caller.gen.sys_script_include_8f3a2778c0a8002700fbde5ad148abe3_script.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:22)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3058)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2981)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)
com.glide.caller.gen.sys_script_include_8f7c12e3c0a80027007eb8eb23c66455_script.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:22)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3058)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2981)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)
com.glide.caller.gen.sys_script_include_8e70b716c0a8002700ab3bfd8c8b2fed_script.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:22)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3058)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2981)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)
com.glide.caller.gen._refname_.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:22)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:3058)
org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2981)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1720)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)
com.glide.caller.gen._refname_.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:22)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:731)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:4024)
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:173)
com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:412)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:223)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:141)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:132)
com.glide.script.Evaluator.evaluateString(Evaluator.java:104)
com.glide.processors.ScriptedProcessor.process(ScriptedProcessor.java:84)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:762)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:313)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:187)
com.glide.processors.ProcessorRegistry.lambda$processWithRollbackRecording$0(ProcessorRegistry.java:408)
com.glide.rollback.recording.RollbackRecorder.execute(RollbackRecorder.java:67)
com.glide.processors.ProcessorRegistry.processWithRollbackRecording(ProcessorRegistry.java:404)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:173)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:58)
com.glide.sys.Transaction.run(Transaction.java:2734)
com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:35)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
java.base/java.lang.Thread.run(Thread.java:840)
' was detected on the page being tested. See failing Test Logs. To ignore these errors in the next test run, use 'Add all client errors to warning/ignored list' links.
I have investigated the reason for this, but I can not find the reason and solution for this. Can anyone here help me the guidance for this issue? Thank you so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 06:52 AM
Hi @LinhN
Just uncheck fail on server error and run
*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
*************************************************************************************************************
Regards
Shaqeel
***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
***********************************************************************************************************************
Regards
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 07:02 PM
Could you explain why we uncheck the checkbox to avoid this error? I have tried to uncheck this but it still returned the error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 03:08 AM
Then add the error to ignore list and run.
It will be present in the result related link.
Regards
Shql
***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
***********************************************************************************************************************
Regards
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 06:25 AM
Can you say what are you testing and/or provide screen shots of your test steps?