How can i validate images

Hi

I have to validate the images in the response. Do you know any way please help me.

kaja


Answer this question

How can i validate images

  • Vijey Ashok

    You can use validation rules to check for the images in the response.  To add a validation rule, right click on the request and choose Add Validation Rule.  We provide a fwe out of the box.  You could use the FindText rule to search for the name of your image in the response. 

    If you need to control the validation in a differen way, you write your own validation rules.  To do this, extend the

    Microsoft.VisualStudio.QualityTools.WebTestFramework.ValidationRule class.  After writing the rule, add the project that the rule is in as a reference to the test project.  Now when you choose add validation rule, your rule will appear in the list.



  • ananda vardhana

    Thank you very much Slumley
    So we can't validate the visible ness of the images no


  • How can i validate images