Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Application Program Interviews:AutoCADBEA WeblogicBioinformaticsBizTalk ServerBug Tracking ToolsBugzillaClarify CRMCoding StandardsComputer Aided Design (CAD) DesignerCVSGIMPJMXLINQLoadRunnerMagentoMATLABMicrosoft AccessMicrosoft ExcelMicrosoft OfficeMicrosoft OutlookMicrosoft WordModel View Controller (MVC)OLAPOOADQuickbookRational RobotRDFSchemaSiebelSilkTestSVGTest PlanTesting ToolsUnity 3D DeveloperVRMLWCF SDKWPFXML DOMXPointer
Copyright © 2018. All Rights Reserved
SilkTest Interview Question:
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
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.