I got a logic problem. I have a test Suite with Selenium Python + TestRails. When a test fails, all the subsequent tests fails as well(even the tests that does not fails). I know the reason, my problem is found out the solution.
I am using this method:
if self._resultForDoCleanups.failures:
result_flag = False
elif self._resultForDoCleanups.errors:
result_flag = False
else:
result_flag = True
The resultForDoCleanups.failures and errors kepp the old stuff from codes executed before. I want to know if there is a way to clean up this instances or other solution.
My suite is simples:
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(excluirServico))
suite.addTest(unittest.makeSuite(exportarGravacoes))
unittest.TextTestRunner().run(suite)
Thanks for the help guys.