<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Avoid duplicating SpiraTestConfiguration annotation (Thread)</title><description> Hi,   Im trying to report my tests result back using selenium, java and testng.  I found out that in order to do that, I should repeat the following code on ALL my test classes:   @SpiraTestConfiguration( url = https://demo.spiraservice.net/xxxxxx, login = administrator, password = xxxxxxxx, projectId = 5, runner= RunnerName.TestNG )     is there any way to avoid this? and just using this annotation once in the class where I have the after and before hooks? </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/2064.aspx</link><item><guid isPermaLink="false">threadId=2064</guid><author>Daiana Lopez (dlopez@yieldstreet.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">testng</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> selenium</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> annotation</category><title>Avoid duplicating SpiraTestConfiguration annotation</title><description> Hi,   Im trying to report my tests result back using selenium, java and testng.  I found out that in order to do that, I should repeat the following code on ALL my test classes:   @SpiraTestConfiguration( url = https://demo.spiraservice.net/xxxxxx, login = administrator, password = xxxxxxxx, projectId = 5, runner= RunnerName.TestNG )     is there any way to avoid this? and just using this annotation once in the class where I have the after and before hooks? </description><pubDate>Tue, 16 Jul 2019 14:42:19 -0400</pubDate><a10:updated>2019-07-22T22:58:46-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/2064.aspx</link></item><item><guid isPermaLink="false">messageId=3629</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> The sample code uses annotations, so I dont think its possible (unlike .NET attributes, which can b</title><description> The sample code uses annotations, so I dont think its possible (unlike .NET attributes, which can be variables).  You can modify the jUnit plugin source code too get its mapping from another source (e.g. JSON) file if that is preferable. We ship the full source code.  Regards  David </description><pubDate>Mon, 22 Jul 2019 22:58:46 -0400</pubDate><a10:updated>2019-07-22T22:58:46-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/2064.aspx#reply3629</link></item></channel></rss>