vendredi 28 août 2015

Is it possible to Unit Test a Coded WebTest request and assert based on the response?

I have written a framework for performance testing in C# for Visual Studio Web Performance Testing.

I have written a Unit Test class to test the base classes but I would also like to add a unit test each request so I can ensure the WebTests are working as expected by adding a WebTestPlugin to obtain the Response Status Code.

So far I have been unsuccessful and before I pull my hair out I thought I would ask if it is possible, unfortunately Google has not answered my question.

I can provide code if required but just imagine trying to write a unit test for a webtest yield return result.

Thanks in advanced for any help given.

Aucun commentaire:

Enregistrer un commentaire