Thomas_Fuller
15 years agoOccasional Contributor
What is the best way to reuse a login step?
Hi,
I have a series of tests which all require the "authenticate" web service to be called before they are executed. I also have a test case which is called "authenticate" with valid data and verifies that the results returned by the server are correct.
What I'd like to do is reuse this test case for other test cases that require authentication instead of copying the authentication test step all over my project (which is messy and if it changes the modification will need to be reflected everywhere).
Can you please provide me with some guidance regarding what is the most appropriate way to achieve what I'm looking to do?
FYI: I have tried using a "Run TestCase" test step however it appears to lose the session even though I have "Maintain HTTP session" enabled on both test steps.
Thanks for your help,
Tom
I have a series of tests which all require the "authenticate" web service to be called before they are executed. I also have a test case which is called "authenticate" with valid data and verifies that the results returned by the server are correct.
What I'd like to do is reuse this test case for other test cases that require authentication instead of copying the authentication test step all over my project (which is messy and if it changes the modification will need to be reflected everywhere).
Can you please provide me with some guidance regarding what is the most appropriate way to achieve what I'm looking to do?
FYI: I have tried using a "Run TestCase" test step however it appears to lose the session even though I have "Maintain HTTP session" enabled on both test steps.
Thanks for your help,
Tom