Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Populating the Test Lab with the folders and test cases from the Test Plan

$
0
0

Several times questions have come up about populating the Test Lab module based on the Test Plan.  The questions vary, but here is one solution to the question - "is there a way to copy the entire Test Plan contents into the Test Lab so that folders and test sets are automatically created, and test sets populated with test cases"

 

In this solution a custom button is added to the Test Plan module.  When that button is clicked, whatever folder is currently highlighted in the Test Plan module, and its descendats, will be recreated in the Test Lab.  The lowest level folder in the heirarchy will become a Test Set and that Test Set will be populated with Test Instances for the Test Cases that were in the folder in the Test Plan.

 

Attached is the set of instructions including code.  The code is based on another posting I had found on a forum.  The code did not work in my environment (ALM v11.0), so I modified it.  It worked in ALM 11.0 SP2.

 

After following the instructions you should see a button in the Test Plan module toolbar for copying test plan folders and cases to the Test Lab.

 
Here are some caveats:
  • If you execute the copy function, then remove a test case from one of the copied folders in the Test Plan and re-execute the function, the corresponding Test Instance will be removed from the Test Set in the Test Lab.
  • If you execute the copy function, then remove a folder in the Test Plan and re-execute the function, the corresponding Folder/Test Sets are not removed from the Test Lab, but corresponding Test Instance will be removed from the Test Set in the Test Lab.
  • If you re-execute the procedure, Test Instances created by a previous copy execution will not be overwritten.
  • If you rename a folder in the Test Plan and re-execute the copy function, a new folder/test set with that name will be created in the Test Lab.
  • I did not test it for users with different privileges, so I don't know what will happen if a user that doesn't have rights to create folders/test sets or add tests to a test set tries to use it.

 

*** Post edited.  Attachment removed.  See later reply in this thread for new attachment.


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>