Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
565 views
in Selenium by
edited by

Hi, 

 

I made some tests and I want to run this test with NUnit on some computer who doesn't have Visual Studio ? 

I can run test with command: 

Location for MStest : C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

MStest.exe /testcontainer:C:\SeleniumWebdriver\SeleniumWebdriver\bin\Debug\SeleniumWebdriver.dll

 

But when I try to run this test with Nunit I can't ?

Tests - Specflow C#, Visual Studio 2015

app.config:

<specFlow>
  <unitTestProvider name="NUnit"/>
    
  <!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --></specFlow>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
 
Location Nunit: C:\NUnit-3.5.0\bin\net-4.5
 
nunitlite.tests.exe "C:\SeleniumWebdriver\SeleniumWebdriver\bin\Debug\SeleniumWebdriver.dll"
 
Error:
1) Ignored : NUnitLite.Tests.TextUITests.ReportSequenceTest Test needs modification
 
 

 

 

Adding image.

by The go-to Tester (181 points)
Can you post your test case code?
by Contributing Tester (82 points)
edited by
by The go-to Tester (181 points)
Kindly make sure that you have proper NUnit version combinations installed. Let us know your feedback.

1 Answer

0 like 0 dislike
by
Can you make a screenshot? It's hard to understand from text
by Contributing Tester (82 points)
https://postimg.org/image/sswra0mg3/

TestResults:

   <reason>
            <message><![CDATA[One or more child tests were ignored]]></message>
          </reason>
          <test-case id="1126" name="DisplayError" fullname="NUnitLite.Tests.TextUITests.DisplayError" methodname="DisplayError" classname="NUnitLite.Tests.TextUITests" runstate="Runnable" seed="596434268" result="Passed" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.001028" asserts="1" />
          <test-case id="1127" name="DisplayErrors" fullname="NUnitLite.Tests.TextUITests.DisplayErrors" methodname="DisplayErrors" classname="NUnitLite.Tests.TextUITests" runstate="Runnable" seed="1026834909" result="Passed" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.000744" asserts="1" />
          <test-case id="1128" name="DisplayHeader" fullname="NUnitLite.Tests.TextUITests.DisplayHeader" methodname="DisplayHeader" classname="NUnitLite.Tests.TextUITests" runstate="Runnable" seed="1439907847" result="Passed" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.002098" asserts="4" />
          <test-case id="1133" name="DisplayHelp" fullname="NUnitLite.Tests.TextUITests.DisplayHelp" methodname="DisplayHelp" classname="NUnitLite.Tests.TextUITests" runstate="Runnable" seed="845806916" result="Passed" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.008265" asserts="1" />
          <test-case id="1130" name="DisplayRuntimeEnvironment" fullname="NUnitLite.Tests.TextUITests.DisplayRuntimeEnvironment" methodname="DisplayRuntimeEnvironment" classname="NUnitLite.Tests.TextUITests" runstate="Runnable" seed="248890003" result="Passed" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.009270" asserts="4" />
          <test-case id="1129" name="DisplayTestFiles" fullname="NUnitLite.Tests.TextUITests.DisplayTestFiles" methodname="DisplayTestFiles" classname="NUnitLite.Tests.TextUITests" runstate="Runnable" seed="19349138" result="Passed" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.001484" asserts="1" />
          <test-case id="1125" name="DisplayWarning" fullname="NUnitLite.Tests.TextUITests.DisplayWarning" methodname="DisplayWarning" classname="NUnitLite.Tests.TextUITests" runstate="Runnable" seed="1608277337" result="Passed" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.000552" asserts="1" />
          <test-case id="1137" name="ErrorsAndFailuresReportTest" fullname="NUnitLite.Tests.TextUITests.ErrorsAndFailuresReportTest" methodname="ErrorsAndFailuresReportTest" classname="NUnitLite.Tests.TextUITests" runstate="Runnable" seed="530559956" result="Passed" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.003480" asserts="9" />
          <test-case id="1134" name="ReportSequenceTest" fullname="NUnitLite.Tests.TextUITests.ReportSequenceTest" methodname="ReportSequenceTest" classname="NUnitLite.Tests.TextUITests" runstate="Ignored" seed="883850389" result="Skipped" label="Ignored" start-time="2016-10-11 12:39:10Z" end-time="2016-10-11 12:39:10Z" duration="0.000005" asserts="0">
            <properties>
              <property name="_SKIPREASON" value="Test needs modification" />
            </properties>
            <reason>
              <message><![CDATA[Test needs modification]]></message>
            </reason>


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...