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

Tests appearing multiple times in a single Test List

2 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nigel
Top achievements
Rank 2
Nigel asked on 22 Feb 2012, 03:07 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 22 Feb 2012, 04:52 PM
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
0
Nigel
Top achievements
Rank 2
answered on 23 Feb 2012, 09:36 AM
Okay, thanks Anthony. :)
Tags
General Discussions
Asked by
Nigel
Top achievements
Rank 2
Answers by
Anthony
Telerik team
Nigel
Top achievements
Rank 2
Share this question
or