Forum Discussion
Hello
Sorry but your response is very unclear
Please can you explain exactly how to do this, or send a working example?
Please see the screenshot attached
As you can see, the test is already part of the project
When we debug, Project.TestItems.Count is 121 which is correct, but CurrentItem is null
Our tests
You're getting the failure because you're running an individual function not a test item.
To use TestItems.Current you need to run it from the Project page.
- tristaanogre8 years agoEsteemed Contributor
cunderw wrote:
You're getting the failure because you're running an individual function not a test item.
To use TestItems.Current you need to run it from the Project page.
As cunderw, to use TestItems.Current, the test needs to be run from the Project page. One of your earlier posts does indicate that you do have a number of TestItems defined so it might not be a matter of adding your test as a TestItem, but more on the lines of just how you run it.
If you go to your project page and to the test item list, if you highlight the appropriate test item and click the button I've indicated below, you will run THAT test item. This should allow you to test your usage of TestItems.Current then.