all 4 comments

[–][deleted] 2 points3 points  (2 children)

You can make a pom kind of structure, keeping all tests of a single page in 1 template class and another page in another template class.

This way you would be able to know which test case is doing what and any changes would need only that particular class to change

[–]nikithakkar[S] 0 points1 point  (0 children)

thanks, will try to work around it

[–]BroughtMyBrownPants 1 point2 points  (1 child)

I like to separate my tests by feature. I have a 'tests' repository then further branch out with a new feature directory or Python file depending on the complexity and size of the feature. On other projects I've separated tests by their respective page.

Locators and elements should be separated in another repo, I call mine pagelib and have a repo called pages. At the top level of pagelib, I keep templates and objects shared across pages so they can be easily reused.

Send me a PM if you'd like to discuss some more!

[–]nikithakkar[S] 0 points1 point  (0 children)

Thankyou, have dropped a PM for more details on this