Basic use help

8 posts, 0 answers
  1. Darren
    Darren avatar
    6 posts
    Member since:
    Apr 2013

    Posted 17 Apr 2013 Link to this post

    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?
  2. Alan
    Alan avatar
    6 posts
    Member since:
    Aug 2011

    Posted 17 Apr 2013 Link to this post

    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.
  3. Darren
    Darren avatar
    6 posts
    Member since:
    Apr 2013

    Posted 18 Apr 2013 Link to this post

    Thank you for your reply :)
    Can you explain how you create steps to execute tests please.
    Thanks
  4. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 18 Apr 2013 Link to this post

    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
  5. Alan
    Alan avatar
    6 posts
    Member since:
    Aug 2011

    Posted 18 Apr 2013 Link to this post

    Sorry... apologies that my help wasn't entirely helpful.  I should have included pointers as Velin did.
  6. Mark
    Mark avatar
    17 posts
    Member since:
    Feb 2013

    Posted 18 Apr 2013 Link to this post

    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. 
  7. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 19 Apr 2013 Link to this post

    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
  8. Darren
    Darren avatar
    6 posts
    Member since:
    Apr 2013

    Posted 19 Apr 2013 Link to this post

    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!
Back to Top