This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to fix Bitmap failed to stabilize error on Silk Test

getting below exception on captureBitmap() method for desktop application

Silk Test Workbench

Playback error in the .NET Script 'TestSuiteDriver':

SilkTest.Ntf.BitmapNotStableException:
Bitmap failed to stabilize. 

i have added the below code in vb.net script. 

Agent.SetOption(Options.BitmapMatchCount, 0)
Agent.SetOption(Options.BitmapMatchInterval,0)
Agent.SetOption(Options.BitmapMatchTimeout,0)

but still getting exception. 

need to configure something in silk test workbench?  please help...

  • 0  

    Hi

    Generally setting those options should address the problem.

    Are you trying to capture the image as a PNG or BMP (you can do this by simply changing the file extension in the CaptureBitmap call)?

    Try using the alternate image format to check if this changes the behaviour, however if the problem persists, open a support case so that an engineer can inspect the problem.

    Regards
    Robert

  • 0 in reply to   

    Hi RobertM,

    used the below code for capture image and also modified different values for Agent options

    Agent.SetOption(Options.BitmapMatchCount, 0)
    Agent.SetOption(Options.BitmapMatchInterval,0)
    Agent.SetOption(Options.BitmapMatchTimeout,0)

    With _desktop.FormsWindow("AppWindow")

         .CaptureBitmap("C:\CapturedImage\SampleImage.PNG")

         .PushButton("btnOK").Click()

    End With

    tried with .PNG and .BMP format. but the exception is not resolved.

  • 0 in reply to 
    "SilkTest Open Agent" is a background process running locally when silk test workbench tool is opened.

    Stopped the already running open agent, and re-run the new Open Agent process and executed the script. It fixed the "BitmapNotStableException".