Inflectra Customer Forums: pytest-spiratest - how to obtain test case id of test within Class (Thread) Here is part of my spira.cfg: [test_cases] test_example = 1 TestClass.test_example = 2 The problem is ConfigParser set all capital letters to lowercase by default. Therefore Its not possible to obtain test case id of TestClass.test_example within pytest-spiratest, because config[test_case_ids] contains lowercase testclass.test_example. if test_name in config[test_case_ids]: test_case_id = config[test_case_ids][test_name] else: test_case_id = config[test_case_ids][default] en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/spiratest/issues-questions/1941.aspxthreadId=1941Johnny Cage (npshopinguk@gmail.com)python pytest automationpytest-spiratest - how to obtain test case id of test within Class Here is part of my spira.cfg: [test_cases] test_example = 1 TestClass.test_example = 2 The problem is ConfigParser set all capital letters to lowercase by default. Therefore Its not possible to obtain test case id of TestClass.test_example within pytest-spiratest, because config[test_case_ids] contains lowercase testclass.test_example. if test_name in config[test_case_ids]: test_case_id = config[test_case_ids][test_name] else: test_case_id = config[test_case_ids][default] Tue, 27 Nov 2018 17:17:34 -05002018-11-28T13:32:06-05:00/Support/Forum/spiratest/issues-questions/1941.aspxmessageId=3449Johnny Cage (npshopinguk@gmail.com) Fixed by modifying pytest-spiratest package Fixed by modifying pytest-spiratest package Wed, 28 Nov 2018 13:32:06 -05002018-11-28T13:32:06-05:00/Support/Forum/spiratest/issues-questions/1941.aspx#reply3449