Problem with the VerifyBitmap
Submitted by: AdministratorUsing VerifyBitmap function for comparing the Position, Borders, Color etc.
For Example:
Window.VerifyBitmap("Position.bmp",[Rect])
Window.VerifyBitmap("Border.bmp",[Rect])
Window.VerifyBitmap("Color.bmp",[Rect])
Running the script if any one of the verification failed, script is terminating at that point itself, without running remaining lines in the script.
Is it possible to make script run completely even though any of the verification failed? Want to see all the failed verified results in result window.
Answer1:
Put all the verification statements in individual do...except.....You can keep except part blank or display your error message here.....
Answer2:
That is how below three functions will work.
VerifyBitmap()
VerifyProperties ()
Verify ()
that should be last statement of your testcase and cleanup code you put after that but, that will get executed only when testcase pass. You can put it in except block so that it will get executed even testcase fails also Like below
do
//
//
//your statements
//
//
VerifyBitmap()
except
// your remaining statements those need to be executed only when testcase fails.
Or
use SYS_CompareBitmap() instead of VerifyBitmap()
Submitted by: Administrator
For Example:
Window.VerifyBitmap("Position.bmp",[Rect])
Window.VerifyBitmap("Border.bmp",[Rect])
Window.VerifyBitmap("Color.bmp",[Rect])
Running the script if any one of the verification failed, script is terminating at that point itself, without running remaining lines in the script.
Is it possible to make script run completely even though any of the verification failed? Want to see all the failed verified results in result window.
Answer1:
Put all the verification statements in individual do...except.....You can keep except part blank or display your error message here.....
Answer2:
That is how below three functions will work.
VerifyBitmap()
VerifyProperties ()
Verify ()
that should be last statement of your testcase and cleanup code you put after that but, that will get executed only when testcase pass. You can put it in except block so that it will get executed even testcase fails also Like below
do
//
//
//your statements
//
//
VerifyBitmap()
except
// your remaining statements those need to be executed only when testcase fails.
Or
use SYS_CompareBitmap() instead of VerifyBitmap()
Submitted by: Administrator
Read Online SilkTest Job Interview Questions And Answers
Top SilkTest Questions
☺ | How to search for html link? |
☺ | How to read .xls file contents without using the ddt wizard? |
☺ | Need help regd. silk test runing thr .bat file on cmd prompt? |
☺ | How to launch 2 web application windows simultaneously thru Silktest? |
☺ | Can SilkTest run on Mac? |
Top Application Program Categories
☺ | AutoCAD Interview Questions. |
☺ | Microsoft Office Interview Questions. |
☺ | Microsoft Outlook Interview Questions. |
☺ | Microsoft Excel Interview Questions. |
☺ | WPF Interview Questions. |