nimrecorder 7.2.65 scripts Sub routine Print_Screen no longer shows a hardcopy of the error when a script fails
search cancel

nimrecorder 7.2.65 scripts Sub routine Print_Screen no longer shows a hardcopy of the error when a script fails

book

Article ID: 268878

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

The new nimrecorder 7.2.65 no longer prints a hard copy of the error when a script fails. It captures the screen but not the error.

The same script has been used for previous versions without issues.

With previous versions of nimrecorder:

 

With nimrecorder 7.2.65

 

Below is the subroutine.   

Subroutine is called for all failure code.
Sub Failure(target$, id$, OP_REF$, message$)
errormsg$= TargetAppName$ + ":  " + message$ + " during step:  " + target$ + ".  " + OP_REF$
nimQoSStop()
nimQoSSendNull(target$)
nimAlarm(2, errormsg$, target$, id$) '*****Uncomment this line to enable alarming*****
nimEnd()
MsgFrame(errormsg$, 1)
Print_Screen()
RemoveFrame(1)
Clean_Up()
EndSub

 

Environment

Release : 20.4

Nimrecorder  7.2.65 

Cause

Nimrecorder 7.2.65 is 100% new - instead of a fat client app it's a webapp. WinTask includes the Nimrecorder script editor which is now also a webapp.

Everything has changed even the Help interface, functions, how to use it, etc.

Resolution

Adding a pause of 3 seconds between MsgFrame() and Print_Screen() corrected the issue and now the error is properly captured.

'Subroutine is called for all failure code.

Sub Failure(target$, id$, OP_REF$, message$)

                errormsg$= TargetAppName$ + ":  " + message$ + " during step:  " + target$ + ".  " + OP_REF$

                nimQoSStop()

                nimQoSSendNull(target$)

                nimAlarm(2, errormsg$, target$, id$)      '*****Uncomment this line to enable alarming*****

                nimEnd()

                MsgFrame(errormsg$, 1)

                pause 3

                Print_Screen()

                RemoveFrame(1)

                Clean_Up()

EndSub