Web validation against a database

How do I write web validation against a database.

What I want to do is compare the response to see if it contains specific text.

 

Thanks,

TomK.




Answer this question

Web validation against a database

  • launchee

    A custom validation rule can be written and added to any request in a web test.  See the following for help with writting custom validation rules.

    http://msdn2.microsoft.com/en-us/library/ms182556.aspx

    Depending on your requirements, you may be able to use the built-in validation rule, called "Find Text", which searches the response for a text string or regex.

    Whether you use a custom rule or a built-in rule, this link will show you how to add it to a request in a web test.

    http://msdn2.microsoft.com/en-us/library/ms182544.aspx

    Thanks,

    Rick


  • Dwaine

    Actually using the built in rule for find text, with the text =

    {{DataSource1.xmltest.results}} work fine for me.

    Populating the data source was pretty easy as well - I just cut & pasted from an existing run of a web test.

     

    TomK



  • Web validation against a database