Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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 am calling it inheritance but don't know if that is the correct term please correct me if I am wrong.

This way my tests can be almost modular.

Thank you in advance for any support you give.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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