Tests appearing multiple times in a single Test List

3 posts, 1 answers
  1. Nigel
    Nigel avatar
    53 posts
    Member since:
    Jan 2012

    Posted 22 Feb 2012 Link to this post

    Hi,

    Is it possible for the same test script to appear more than once within a test list?  If not, is it possible for one test list to include another (i.e. nested test lists)?  The scenario is that I want to test a Delete User function.  My scripts are quite generic and modular.
    1. I run script (A) that verifies if a user exists by checking they can successfully log on (if they can, then I log them out).
    2. If the user does exist:
      1. I run script (B) that will log on as superuser, delete the user, then log out as superuser.
      2. I then run script (A) again to verify the user cannot log on.
      3. I then run script (C) to create the user again.
      4. I then run script (A) again to verify the user can log on successfully again.
    3. If the user does not exist:
      1. I run script (C) to create the user.
      2. I then run script (A) again to verify the user can log on successfully.

    As you can see, I want to call script (A) multiple times.

    Now, I cannot guarantee that the user will or will not exist prior to starting this test sequence, so you can see that being able to execute the same modular script multiple times in a single test list would be really useful.

    If it is not possible to have the same script multiple times in a test list, or not possible to nest test lists, then I do have alternatives, but not as efficient as being able to re-use scripts like this.


    Thjanks,
    Nigel Edwards, Transition Computing
  2. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 22 Feb 2012 Link to this post

    Hello Nigel,

    Currently it is not possible to include the same test multiple times within the same test list, nor can you nest a test list within another list.

    Your best alternative is to create a master test and call each sub-test in the desired order via the Test as Step feature. Then place that master test in a test list.

    All the best,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Nigel
    Nigel avatar
    53 posts
    Member since:
    Jan 2012

    Posted 23 Feb 2012 Link to this post

    Okay, thanks Anthony. :)
Back to Top