【发布时间】:2022-08-22 16:04:22
【问题描述】:
在 Silktest 工作台中获取桌面应用程序的 captureBitmap() 方法的位图异常
With _desktop.FormsWindow(\"AppMainWindow\")
.CaptureBitmap(\"C:\\Snapshots\\ErrorImage.PNG\")
.PushButton(\"buttonOK\").Click()
End With
例外:
Silk Test Workbench
Playback error in the .NET Script \'TestSuiteDriver\':
SilkTest.Ntf.BitmapNotStableException:
Bitmap failed to stabilize.
在 vb.net 脚本中添加了以下代码。
Agent.SetOption(Options.BitmapMatchCount, 0)
Agent.SetOption(Options.BitmapMatchInterval,0)
Agent.SetOption(Options.BitmapMatchTimeout,0)
但仍然出现异常。
需要在 Silk Test Workbench 中进行配置?
标签: silktest