This is a migrated thread and some comments may be shown as answers.

Basic use help

7 Answers 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 17 Apr 2013, 09:22 AM
I am new to this so I apologise in advance.
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

Sort by
0
Alan
Top achievements
Rank 2
answered on 17 Apr 2013, 08:55 PM
Hi Darren,

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.
0
Darren
Top achievements
Rank 1
answered on 18 Apr 2013, 08:42 AM
Thank you for your reply :)
Can you explain how you create steps to execute tests please.
Thanks
0
Velin Koychev
Telerik team
answered on 18 Apr 2013, 01:28 PM
Hello Darren,

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
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Alan
Top achievements
Rank 2
answered on 18 Apr 2013, 01:56 PM
Sorry... apologies that my help wasn't entirely helpful.  I should have included pointers as Velin did.
0
Mark
Top achievements
Rank 1
answered on 18 Apr 2013, 05:37 PM
I use the second option that Velin mentioned quite often. For example, I have a login test that gets me to a post login state. At this point I can either create new steps to get to a specific location or add another test that does post navigation steps that I've already recorded. It makes life easier for quick test creation when you start to get a nice library of grouped steps in tests that you can just plug into a test.  I recommend doing some experimentation with this feature as well as using the right click option to "create test as step" option. 
0
Velin Koychev
Telerik team
answered on 19 Apr 2013, 02:26 PM
Hi Mark,

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.

Kind regards,
Velin Koychev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Darren
Top achievements
Rank 1
answered on 19 Apr 2013, 04:11 PM
Thank you for all your help guys, I really appreciate it. I now have the functionality I require from your help :)
I have to say that Telerik have been excellent with all their support so far, I'm very impressed. Keep up the great work!
Tags
General Discussions
Asked by
Darren
Top achievements
Rank 1
Answers by
Alan
Top achievements
Rank 2
Darren
Top achievements
Rank 1
Velin Koychev
Telerik team
Mark
Top achievements
Rank 1
Share this question
or