Inflectra Customer Forums: Integration with Visual Studio and Spira Team (Thread) Can we execute test cases from visual studio (.NET) with NUnit/Selenium and get the results (Execution Status: pass/fail) updated in Spira ? (Assuming that we have created a testSet of type: Automated, and Automation tab fields automation engine etc. updated for the Testcase) 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/spirateam/issues-questions/422.aspxthreadId=422suresh policharla (suresh.polich@gmail.com)Integration with Visual Studio and Spira Team Can we execute test cases from visual studio (.NET) with NUnit/Selenium and get the results (Execution Status: pass/fail) updated in Spira ? (Assuming that we have created a testSet of type: Automated, and Automation tab fields automation engine etc. updated for the Testcase) Fri, 09 Nov 2012 13:16:35 -05002012-11-13T17:30:53-05:00/Support/Forum/spirateam/issues-questions/422.aspxmessageId=801David J (support1@inflectra.com) Hi Suresh There are two separate things that need to be sorted out: 1) Indepdendent of Remo Hi Suresh There are two separate things that need to be sorted out: 1) Indepdendent of RemoteLaunch, you need to have the Selenium .NET coded tests execute and report back to SpiraTeam 2) RemoteLaunch needs to be able to initiate the tests using the Command-Line extension. What extension do you have loaded into RemoteLaunch currently? You cannot use the Selenium one because that's designed for the situation when RemoteLaunch calls Selenium directly rather than from .NET code. To fix the first issue first, can you please make sure that the Add-In is loaded correctly in NUnit and when you right-click on the SpiraTest NUnitAddIn dll and choose Properties (in Windows Explorer), it is not listed as "Blocked", if so, click Unblock. Once we can get the tests to report back, then we can look at the RemoteLaunch issue. Regards Adam Fri, 09 Nov 2012 15:23:36 -05002012-11-09T15:23:36-05:00/Support/Forum/spirateam/issues-questions/422.aspx#reply801messageId=804suresh policharla (suresh.polich@gmail.com) Thanks adam, for the clarification. (I am clear now with I even tried with the First one. (I hav Thanks adam, for the clarification. (I am clear now with I even tried with the First one. (I have unblocked NUnit Addin). But Still ,I dint see the execution status updated for the given test case in Spira Team site. Following is the code I wrote. using System; using NUnit.Framework; using Inflectra.SpiraTest.AddOns.SpiraTestNUnitAddIn.SpiraTestFramework; using OpenQA.Selenium; //using OpenQA.Selenium.Firefox; using OpenQA.Selenium.IE; using Selenium; namespace SeleniumSampleTest { /// /// Sample test fixture that tests the NUnit SpiraTest integration with the /// Selenium-RC .NET Driver /// [ TestFixture, SpiraTestConfiguration("http://localhost/SpiraTeam", "fredbloggs", "fredbloggs", 1, 1,12, SpiraTestConfigurationAttribute.RunnerName.Selenium) ] public class GoogleTest2 { private static ISelenium selenium; private IWebDriver browser; [SetUp] public void SetupTest() { browser = new InternetExplorerDriver(); browser.Navigate().GoToUrl("http://www.google.com"); } [TearDown] public void TeardownTest() { browser.Close(); } /// /// Sample test that searches on Google, passes correctly /// [Test, SpiraTestCase(18)] public void GoogleSearch2() { IWebElement txtbox = browser.FindElement(By.Id("gbqfqw")); txtbox.SendKeys("spira"); IWebElement btnSearch = browser.FindElement(By.Name("btnG")); btnSearch.Click(); var results = browser.FindElements(By.XPath("//a")); Assert.IsTrue(results.Count > 0); } } I ran the above test case from my solution as well as from Nunit. Spira Configuration: Selenium is the - Selenium Webdriver configured in Administration tab. - Suresh Sun, 11 Nov 2012 19:12:12 -05002012-11-11T19:12:12-05:00/Support/Forum/spirateam/issues-questions/422.aspx#reply804messageId=806suresh policharla (suresh.polich@gmail.com) Hi Adam, I am successful after following your instructions. Thanks for the support. But one last t Hi Adam, I am successful after following your instructions. Thanks for the support. But one last thing, this is working from NUnit.exe (GUI), which is returning back the results to Spira and not When I run from Visual Studio. - Suresh Tue, 13 Nov 2012 17:30:53 -05002012-11-13T17:30:53-05:00/Support/Forum/spirateam/issues-questions/422.aspx#reply806