It may happen that the bitmap might fail to stabilize the
error in silk test. It is quite a frequently occurring problem but needs to be
addressed seriously.
Most of the times you might have been asked for or required
creating a test case that can be straight-forward put to use in carrying out
the bitmap verification.
You set down to create such a test case and go for the
verification of the full window while the recording is in progress.
During the
execution of the test case all of a sudden you get an error as stated below:
“Error: bitmap failed to stabilize”
Finding such an error can even be a nightmare for you and
sometimes the whole quality assurance team may fail to think of a solution for
this. You won’t even find solution for this in the silk test documentation.
- There are situations that the bitmap issue might be stated in
a described state.
- It is only when there is some instability in the
verified windows that is to say that some element of the screen is experiencing
frequent changes.
- In such a situation, the stable copy of the bitmap is captured
by the silk test automation tool.
- If in case it could not get the window tested
within a specific time interval, then it generates an exception saying “E _
BITMAP _ NOT _ STABLE”.
- Different approaches to such a situation might be used by the
different quality assurance engineers.
- You need to set the below mentioned
options to 0 in the 4test code:
Agent. Set option ( OPT _ BITMAP _ MATCH _ COUNT, 0 )
Agent. Set option ( OPT _ BITMAP _ MATCH _ TIME OUT, 0 )
Agent. Set option ( OPT _ BITMAP _ MATCH _ INTERVAL, 0 )
- Another way of doing this is going to the options
menu, then agent, then bitmap and change the required values.
- Another error
occurs while capturing image via the capture bitmap method.
- In some cases when
this method was executed the silk test was observed giving the following error:
“bitmap region size (some coordinate) is not valid”
- In such a case the getrect method can be used for obtaining
the coordinates of the bitmap.
- The getrect method returns the following:
- X coordinate of the active bitmap
- Y coordinate of the active bit map
- Width of the active image
- Height of the active image
- For capturing an image, one requires two coordinates of the
image i.e., (x1, y1) and (x2, y2).
- Here the
coordinates correspond as follow:
1. First co-ordinate is for the top left corner of the image whereas
1. First co-ordinate is for the top left corner of the image whereas
2. The second coordinate points to the right
bottom corner of the image.
- You can
even take help of the identify object feature of the silk test workbench for
discovering these coordinates.
- To avoid these errors it is
necessary that you fix the screen resolution in the first go itself i.e., using
the first script itself using the following function:
Maximize()
- Once this function has been implemented, and then you should
go for capturing the screen shot.
- If this is not done then there are chances
that the screen size may keep on changing i.e., it may expand or shrink
according to the settings that you made for the previous scripts.
- This may also
cause the coordinates to shift on the screen which may cause the script to
capture something else than what was expected.
- However, the getrect method can
return both absolute as well as the relative methods.
No comments:
Post a Comment