Coded web test

The coded web test generates the code for the sequence of web-test requests. The main advantage is to add more complex features such as looping, adding more requests, or adding any additional logic to the test using the .NET programming languages C# and Visual Basic. The recorded web test is simple, but the coded web test gives more flexibility.

It is suggested practice that the web test should be recorded and then converted to coded web test by defining the data sources, extraction rules, validation rules, and binding the form post fields to the data source. This can let the tool generate the basic code and concentrate on customizing it with additional features.

The other advantage of coded tests is full control of the test execution. ...

Get Software Testing using Visual Studio 2012 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.