I have a framework that uses python / pytest and I am having an issue with the test project reports.
I use the Page Object Model with a one-time set up fixture in Conftest which grabs the driver from a Webdriver file and passes this into the test Class.
The test class has multiple tests within it.
When I run the test and report this on TestProject, it only shows 1 test with all the steps of all the test methods in that class.
I was under the impression that Test Project reports a test on the driver.quit command so this sort of makes sense but I was also under the impression that it was clever enough to identify when a test_method name changes and then also report this individually as a separate test.
I don’t really want to have to quit the driver at the end of each test method and grab a new instance for each test method as this would slow my tests down quite a bit but I was wondering what is the best around this issue?