Version

VerifyScreenShot(String,String,Subitem,Rectangle,String,Double) Method

Verify the scrennshot for the specified rectangle inside the subitem against a specific image using a color tolerance. This methods will use the screen to perform the image verification
Syntax
'Declaration
 
Public Overloads Function VerifyScreenShot( _
   ByVal expectedFileName As String, _
   ByVal outputLocation As String, _
   ByVal item As Rational.Test.Ft.Script.Subitem, _
   ByVal rect As Rectangle, _
   ByRef logURL As String, _
   ByVal Tolerance As Double _
) As Boolean
public bool VerifyScreenShot( 
   string expectedFileName,
   string outputLocation,
   Rational.Test.Ft.Script.Subitem item,
   Rectangle rect,
   out string logURL,
   double Tolerance
)

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
Requirements

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

See Also