<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: C# - The SpiraTestConfiguration "Named Parameters" options throw errors for nullable keywords.  (Thread)</title><description>&#xD;
Hi all,   Using a SpiraTestConfiguration with all of the parameters, e.g.,   SpiraTestConfiguration("https://fakeurl.spiraservice.net", "FakeUserAccount", "FakeUserPassword", TestDataVerification.ProjectId, TestDataVerification.ReleaseNumber, TestDataVerification.TestSetId)  I am able to successfully report results to the server. When I attempt to provide named parameters, e.g.   SpiraTestConfiguration(             Url = "https://HeyURLHERE.spiraservice.net",             Login = "MyAutomationAccount", // Not actual username             Password = "MyAutomationPassword", // Not actual password             ProjectId = TestDataVerification.ProjectId, // public const int ProjectId             TestSetId = TestDataVerification.TestSetId // public const int TestSetId             // ^^ Error here: 'TestSetId' is not a valid named attribute argument because it is not a valid attribute parameter type                    )  I'm greeted by a compile time error, "'TestSetId' is not a valid named attribute argument because it is not a valid attribute parameter type". It is listed as a parameter type, so am I wrong in assuming that I should be able to provide an assignment to it?   Any help is welcome, it's very appreciated. Thank you.  </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/958.aspx</link><item><guid isPermaLink="false">threadId=958</guid><author>Daniel Baldwin (dbaldwin@vocera.com)</author><title>C# - The SpiraTestConfiguration "Named Parameters" options throw errors for nullable keywords. </title><description>&#xD;
Hi all,   Using a SpiraTestConfiguration with all of the parameters, e.g.,   SpiraTestConfiguration("https://fakeurl.spiraservice.net", "FakeUserAccount", "FakeUserPassword", TestDataVerification.ProjectId, TestDataVerification.ReleaseNumber, TestDataVerification.TestSetId)  I am able to successfully report results to the server. When I attempt to provide named parameters, e.g.   SpiraTestConfiguration(             Url = "https://HeyURLHERE.spiraservice.net",             Login = "MyAutomationAccount", // Not actual username             Password = "MyAutomationPassword", // Not actual password             ProjectId = TestDataVerification.ProjectId, // public const int ProjectId             TestSetId = TestDataVerification.TestSetId // public const int TestSetId             // ^^ Error here: 'TestSetId' is not a valid named attribute argument because it is not a valid attribute parameter type                    )  I'm greeted by a compile time error, "'TestSetId' is not a valid named attribute argument because it is not a valid attribute parameter type". It is listed as a parameter type, so am I wrong in assuming that I should be able to provide an assignment to it?   Any help is welcome, it's very appreciated. Thank you.  </description><pubDate>Wed, 23 Jul 2014 17:42:35 -0400</pubDate><a10:updated>2014-12-16T15:58:35-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx</link></item><item><guid isPermaLink="false">messageId=1749</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> &#xD;
&#xD;
&#xD;
Hi Daniel  I think the issue is that the expected parameters are camelCase not PascalCase, i.</title><description> &#xD;
&#xD;
&#xD;
Hi Daniel  I think the issue is that the expected parameters are camelCase not PascalCase, i.e. use testSetId = XXX instead of TestSetId = XXXX    SpiraTestConfiguration(             url = "https://HeyURLHERE.spiraservice.net",             login = "MyAutomationAccount", // Not actual username             password = "MyAutomationPassword", // Not actual password             projectId = TestDataVerification.ProjectId, // public const int ProjectId             testSetId = TestDataVerification.TestSetId // public const int TestSetId                  )   Regards  Adam </description><pubDate>Fri, 25 Jul 2014 20:38:11 -0400</pubDate><a10:updated>2014-07-25T20:38:11-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1749</link></item><item><guid isPermaLink="false">messageId=1751</guid><author>Daniel Baldwin (dbaldwin@vocera.com)</author><title>Hey Adam, thanks for the response.   Unfortunately using camelCase produces a different error, "...S</title><description>Hey Adam, thanks for the response.   Unfortunately using camelCase produces a different error, "...SpiratestConfigurationAttribute does not contain a definition for testSetId"  All of the other named parameters are in PascalCase. I believe the issue has to do with TestSetId being a nullable type (int?) instead of just an int.  &#xD;
&#xD;
</description><pubDate>Mon, 28 Jul 2014 17:31:22 -0400</pubDate><a10:updated>2014-07-28T17:31:22-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1751</link></item><item><guid isPermaLink="false">messageId=1961</guid><author>Gangotri Sikheria (gangotrisikheria@gmail.com)</author><title>    Hi   Adam,                 Is Spira Configuration support function parameter, because right now </title><description>    Hi   Adam,                 Is Spira Configuration support function parameter, because right now i am not able to run my spira test with function parameter in c#                 my code is :                    [Test, SpiraTestCase(418)]               [TestCaseSource(typeof(AdminModel), "UserValidation")]                  public void PublicAdminSpira(string userName, string password)                   {                      var page = this.OpenPage (this.AdminModel.LoginPagePath);                      page.Maximize();                      page.FillInForm(userName, password, false);                      page.Login();                      page.Logout();                                               }                   i have pass two parameter value and run through nunit, than its not shows passed /failed status in spira test ID.                 now if i am not user parameter and run through nunit than it shows status with spira test id as passed/failed for example-          [Test, SpiraTestCase(418)]                  public void PublicAdminSpira()             {                var page = this.OpenPage (this.AdminModel.LoginPagePath);                page.Maximize();                page.FillInForm("username", "passwored", false);                page.Login();                page.Logout();                             }     please replay...  Thanks  Gangotri        &#xD;
&#xD;
     </description><pubDate>Fri, 12 Dec 2014 08:09:39 -0500</pubDate><a10:updated>2014-12-12T08:09:39-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1961</link></item><item><guid isPermaLink="false">messageId=1965</guid><author>Jim R (donotreply5@kronodesk.net)</author><title>&#xD;
Hi Daniel  Yes that could be the case.  Regards Jim &#xD;
&#xD;
</title><description>&#xD;
Hi Daniel  Yes that could be the case.  Regards Jim &#xD;
&#xD;
</description><pubDate>Fri, 12 Dec 2014 16:49:20 -0500</pubDate><a10:updated>2014-12-12T16:49:20-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1965</link></item><item><guid isPermaLink="false">messageId=1966</guid><author>Jim R (donotreply5@kronodesk.net)</author><title>&#xD;
Hi Gangotri  Could you please log this as a new thread.  Regards Jim&#xD;
&#xD;
&#xD;
&#xD;
</title><description>&#xD;
Hi Gangotri  Could you please log this as a new thread.  Regards Jim&#xD;
&#xD;
&#xD;
&#xD;
</description><pubDate>Fri, 12 Dec 2014 16:49:30 -0500</pubDate><a10:updated>2014-12-12T16:49:30-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1966</link></item><item><guid isPermaLink="false">messageId=1972</guid><author>Gangotri Sikheria (gangotrisikheria@gmail.com)</author><title>&#xD;
 Hi Jim, &#xD;
&#xD;
       I have already logged new thread for the same, please replay as soon as possib</title><description>&#xD;
 Hi Jim, &#xD;
&#xD;
       I have already logged new thread for the same, please replay as soon as possible, because i have to use this in my current automation.         Thanks    Gangotri Sikheria  </description><pubDate>Tue, 16 Dec 2014 06:18:33 -0500</pubDate><a10:updated>2014-12-16T06:18:33-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1972</link></item><item><guid isPermaLink="false">messageId=1973</guid><author>Gangotri Sikheria (gangotrisikheria@gmail.com)</author><title>&#xD;
Hi Jim,&#xD;
&#xD;
    I have also logged tared as well as new  help desk ticket ticket id is:  TK17176   </title><description>&#xD;
Hi Jim,&#xD;
&#xD;
    I have also logged tared as well as new  help desk ticket ticket id is:  TK17176              Thanks    Gangotri  </description><pubDate>Tue, 16 Dec 2014 06:40:29 -0500</pubDate><a10:updated>2014-12-16T06:40:29-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1973</link></item><item><guid isPermaLink="false">messageId=1974</guid><author>Kat A (elise.brooks@inflectra.com)</author><title> Hi Gangotri,     Jim already replied a few days ago. See &#xD;
&#xD;
  https://www.inflectra.com/Support/Fo</title><description> Hi Gangotri,     Jim already replied a few days ago. See &#xD;
&#xD;
  https://www.inflectra.com/Support/Forum/spiratest/issues-questions/1104.aspx .     Regards,  Elise </description><pubDate>Tue, 16 Dec 2014 14:40:21 -0500</pubDate><a10:updated>2014-12-16T14:40:21-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1974</link></item><item><guid isPermaLink="false">messageId=1978</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>&#xD;
&#xD;
&#xD;
Hi Gangotri We have checked and our Add-In does not support such parameterized tests.  Since N</title><description>&#xD;
&#xD;
&#xD;
Hi Gangotri We have checked and our Add-In does not support such parameterized tests.  Since NUnit 3.0 (in alpha) is getting rid of the entire plugin system we are looking at ways to replace our current add-in once NUnit 3.0 has been released, so no changes are planned to the current add-in at this time.  Regards  Adam </description><pubDate>Tue, 16 Dec 2014 15:58:35 -0500</pubDate><a10:updated>2014-12-16T15:58:35-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/958.aspx#reply1978</link></item></channel></rss>