Verify the scrennshot for the specified rectangle inside the subitem against a specific image using a color tolerance. This methods will use the UIElement of the control to perform the image verification
'Declaration
Public Overloads Function VerifyControlImage( _
ByVal As String, _
ByVal As String, _
ByVal As Rational.Test.Ft.Script.Subitem, _
ByVal As Rectangle, _
ByRef As String, _
ByVal As Double _
) As Boolean
public bool VerifyControlImage(
string ,
string ,
Rational.Test.Ft.Script.Subitem ,
Rectangle ,
out string ,
double
)
Parameters
- expectedFileName
- Expected image (png format)
- outputLocation
- in case the verification fail, save the expected, actual, difference, and an html file that shows all three. This parameter contains the folder where these files will be stored.
- item
- Subitem to compare
- rect
- Rectangle to compare
- logURL
- link to the result html if the comparison fail
- Tolerance
- color tolerance
Return Value
true if the comparision passed, false otherwise
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2