Hi Ndiaye,

You can also directly invoke the image URL and use <verifyContent> with a 
reference file that stores the expected image.  Here's a snippet of code to do 
this:

    <storeXPath description="get src url of the logo image"
       xpath="//i...@id=&quot;myImage&quot;]/@src"
       property="customImageURL"/>
 <invoke url="#{customImageURL}"/>
 <verifyContent referenceFile="path/to/originalImage.jpg" />
 <previousResponse/>

In the code above, I'm using an XPath which references an image tag on the 
current page with the HTML Id "myImage", then grabbing it's src URL.  Change 
the XPath to fit your needs.  After verifying the image matches the reference 
file, Webtest returns to the previous page, so you can continue verifying 
content.

Cheers,

John Spann | Associate Software Engineer

Citrix Online Division
Citrix Systems, Inc.
6500 Hollister Avenue
Goleta, CA 93117 USA
www.citrix.com

Phone: 805.690.3489
Cell: 805.729.0008
Email: [email protected]


On 3/18/09 9:03 AM, "Basim Baassiri" <[email protected]> wrote:

if you are on *mix system you can get a baseline md5sum of the image and any 
change in checksum will indicate a change

On Wed, Mar 18, 2009 at 11:45 AM, Ndiaye Arona 
<[email protected]> wrote:


Hi,



Is there any possibility to verify the integrity of an image, I mean to able to 
get error when some pixels changent on the image, or the size change



thanks

Mise en garde concernant la confidentialite : Le present message, comprenant 
tout fichier qui y est joint, est envoye a l'intention exclusive de son 
destinataire; il est de nature confidentielle et peut constituer une 
information protegee par le secret professionnel. Si vous n'etes pas le 
destinataire, nous vous avisons que toute impression, copie, distribution ou 
autre utilisation de ce message est strictement interdite. Si vous avez recu ce 
courriel par erreur, veuillez en aviser immediatement l'expediteur par retour 
de courriel et supprimer le courriel. Merci!

Confidentiality Warning: This message, including any attachment, is sent only 
for the use of the intended recipient; it is confidential and may constitute 
privileged information. If you are not the intended recipient, you are hereby 
notified that any printing, copying, distribution or other use of this message 
is strictly prohibited. If you have received this email in error, please notify 
the sender immediately by return email, and delete it. Thank you!
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to