录制好后回放成功,但参数化后运行,跳出录制的程序。接着马上转到TestManager,日志信息为Warning
右击playback warning信息,显示:“Unhandled Exception detected during playback. Robot stopped playing back”。
在IBM的官网上查到如下信息,但据它所说的是sqadatapoolclose()的问题,并不如此。
Error: Unhandled exception detected during playback. Robot stopped playing back
Technote (troubleshooting)
Problem(Abstract)
This technote explains how to resolve an unhandled exception that might occur when running IBM® Rational® Robot script with a TestManager datapool.
Symptom
Robot script with a TestManager datapool runs for a second, then TestManager log brings up the following error:
Unhandled exception detected during playback. Robot stopped playing back
Cause
Datapool corruption is one common root cause of this exception. However, other playback scenarios might also produce the same error message.
Resolving the problem
To resolve this error, ensure SQADatapoolClose() is called whenever SQADatapoolOpen() is used in Robot scripts. Specifically each SQADatapoolOpen() call must be followed by SQADatapoolClose(). This would proven Datapool corruption and this unhandled exception. Please contact IBM® Rational Support if there are questions.
录制编写的程序脚本如下:
'$include "sqautil.sbh"
Sub Main
Dim Result As Integer
dim i as integer
dim dp as long
dim uname as string
dim num as string