3

Imagine you have a sequence of web tests in Visual Studio, recorded individually i.e., Login, Event A and Event B.

To do both Event A and Event B you need to login. Is there a way for tests Event A and Event B to inherit Login test?

I'm calling it inheritance, but don't know if that is the correct term please correct me if I'm wrong.

This way my tests can be almost modular.

Any ideas?

1 Answer 1

2

The simple answer is yes. You can right click on the test case in the web test editor and select "Add call to web test" and it will call that web test. Any context parameters that are required by your "Login" test can be set in the other test or in the load test and will be used by Login when executed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.