I have a test footest.py which runs with mysql database, and the same test runs on psql database, is there a way to distinguish this difference in an XML result file between the two tests.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why not trying to create a
base_test_class.pywith a base test classclass BaseSQLTest(unittest.TestCase)that contains all your tests, and 2 other filesmysqltest.pyandpsqltest.pythat contains 2 inherited classes (class MySQLTest(BaseSQLTest)andclass PSQLTest(BaseSQLTest)) for your MySQL and PSQL tests.Doing this will split your tests in the resulting XML.