Quantcast
Viewing all articles
Browse latest Browse all 14708

Re: Test case status change in test lab using Excel macros

There are a couple of ways you can do this. Here is one.

Start by getting a TestSetFactory object. Use its NewList method with a Filter to get a list of the Test Sets you've identified as having the test instances you want to update. Each item in the list will be a TestSet object.

From each respective TestSet in the list, get a TSTestFactory object. Use the NewList method of that object with a Filter to get a list of the Test Instances that you want to update in the individual Test Sets. That list will contain TSTest objects.

In the TSTest object you can update the Status field to the value you want. After setting the Status property, use the Post method of the object to commit the changes to the database.

There are lots of examples in the API documentation of using the NewList method with a Filter for various objects, though not an example specifically for TestSet and TSTest objects. Look at some of the other objects for examples of this. Try working out the code, them come back to us if you have specific questions.

Viewing all articles
Browse latest Browse all 14708

Trending Articles



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