<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: pytest-spiratest - how to obtain test case id of test within Class (Thread)</title><description>  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]    </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spiratest/issues-questions/1941.aspx</link><item><guid isPermaLink="false">threadId=1941</guid><author>Johnny Cage (npshopinguk@gmail.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">python</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> pytest</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> automation</category><title>pytest-spiratest - how to obtain test case id of test within Class</title><description>  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]    </description><pubDate>Tue, 27 Nov 2018 17:17:34 -0500</pubDate><a10:updated>2018-11-28T13:32:06-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1941.aspx</link></item><item><guid isPermaLink="false">messageId=3449</guid><author>Johnny Cage (npshopinguk@gmail.com)</author><title> Fixed by modifying  pytest-spiratest  package </title><description> Fixed by modifying  pytest-spiratest  package </description><pubDate>Wed, 28 Nov 2018 13:32:06 -0500</pubDate><a10:updated>2018-11-28T13:32:06-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1941.aspx#reply3449</link></item></channel></rss>