I have two tests, one is a login test and another then selects the appropriate menu options once the user has logged in.
I have set the base url for the first test which is http://localhost:4547/SelfService/Default.aspx. The second test nees to continue where the first test ended. Im unsure how to do this?
I have both tests within a test list, is this the correct method?
7 Answers, 1 is accepted
One way to do this is to create a third script (script C) that calls each of the tests instead of having a test list call the two tests.
Script C would have two steps...
1) Execute test 'login'
2) Execute test 'select menu options'
Then make a test list that only calls Script C.
Can you explain how you create steps to execute tests please.
Thanks
There are several ways you can execute several tests together.
1) One of the ways is exactly the test lists that you have used. They are very good option, especially if you have to manage with a lot of tests and if you want to schedule them for future execution.
2) Another option is to use Test as Step function. Alan suggested you to create a third test, where you can add two steps that execute your other 2 tests. You can read more about how to use Test as Step function in this article.
3) If you use coded step, you can add this line of code to execute the test you want:
this.ExecuteTest("YourTest.tstest");
Please let me know if you have any questions.
Greetings,
Velin Koychev
the Telerik team
Test Studio Trainings
Thank you for sharing your experience with us. I agree with you that it is a good idea to experiment with the features that Test Studio provides.
As you said, Create Test as Step is a very good option to use. If you find out that you can reuse some of the steps into other tests, it will help you to extract them into a new test and that new test will be inserted as a Test as Step.
Velin Koychev
the Telerik team
Test Studio Trainings
I have to say that Telerik have been excellent with all their support so far, I'm very impressed. Keep up the great work!