Forum Discussion

rkarger's avatar
rkarger
Occasional Contributor
12 years ago

Creating a test item through a script

I'm curious as to whether I can create a test item through a script.  My project needs to search through a folder and add all the tests it finds nightly, and it would be very convenient if upon finding the input file for each test I could add a test item with the specified input and number of times to run automatically.



Thanks.

2 Replies

  • chris_reynolds's avatar
    chris_reynolds
    Occasional Contributor
    Well the Project.TestItems doesn't seem to have an add method so it is unclear how to do it. Which is a shame because it was on my todo list for a test suite.
  • Hi Rebecca,

    I'm curious as to whether I can create a test item through a script.


    Currently, there is no way to do this. We have a suggestion in our database to make it possible to create test items from script, and your request has increased its rating.



    Thank you.

    Ann