Add subfolder under test folder to classify tests


#1

Hello:
So we are getting many tests under our subfolder “tests”. I would like to start adding subfolders under the tests folder to further classify the tests for one functionality or what server the test hits. When I try to add a subfolder under tests, basically package uitest.tests; goes red. How do I successfully add subfolders?
Thanks!
Michele


#2

HI @micheleaz!
If you create a test directly in the subfolder, you will get no errors, because the package declaration is pointing out that subfolder. if you move a test file from one folder to another, the package will go red as you said, because it is now pointing to a different location.
All you need to do is to change the package declaration eather by clicking the quick-fix icon, or by manually adjusting the path :slight_smile:

ezgif-6-ed3efff75525


closed #3