Inflectra Customer Forums: Avoid duplicating SpiraTestConfiguration annotation (Thread) 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? 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/2064.aspxthreadId=2064Daiana Lopez (dlopez@yieldstreet.com)testng selenium annotationAvoid duplicating SpiraTestConfiguration annotation 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? Tue, 16 Jul 2019 14:42:19 -04002019-07-22T22:58:46-04:00/Support/Forum/spiratest/issues-questions/2064.aspxmessageId=3629David J (support1@inflectra.com) The sample code uses annotations, so I dont think its possible (unlike .NET attributes, which can b 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 Mon, 22 Jul 2019 22:58:46 -04002019-07-22T22:58:46-04:00/Support/Forum/spiratest/issues-questions/2064.aspx#reply3629