Questions tagged [nunittestadapter]

The NUnitTestAdapter extension works with the Visual Studio Unit Test window to allow integrated test execution under Visual Studio 2012, 2013 and 2015

38 questions
1
vote
1 answer

Can I filter NUnit tests based on Property in Visual Studio test explorer

Is it possible to construct a Visual Studio Test Explorer search expression that will actually filter NUnit tests based on the name AND value of a Property attribute? For example, something like Trait:TestSize=Large. I can't seem to figure out how…
1
vote
1 answer

How to click the upload button in selenium c#

May I know, how to find the element for upload button and proceed it with a mouse click by the following HTML code below:

Upload…

Kevin
  • 147
  • 1
  • 1
  • 10
0
votes
0 answers

Problem with compatibility with Visual Studio .runsettings file between VS 2015 and VS 2019

I have added some RunConfigurations to my Visual Studio 2019 test project that uses NUnit testing. Namely, the following:
0
votes
0 answers

An exception occurred while invoking executor 'executor://webtestadapter/v1 error occurring After renaming the Webtest

I refactored the exisitng webtests(VS 2017) and they were running fine. As soon as I renamed them they are showing below error. Then I tried to rename back to the original name but still having this issue. Please help on this. ------ Discover test…
0
votes
0 answers

NUnit test runner doesn't like temporary directories

It seems like the NUnit test runner gets confused if I try to use a randomized temporary directory name in my parametrized test. The test looks roughly like [TestCaseSource(nameof(InputFiles))] public void TestMain(string inputFile, string…
0
votes
2 answers

How do I run NUnit tests in Azure Devops without having the test adapter in every project?

My team has many test projects containing NUnit tests (version 3). We do not use the Visual Studio test runner and we do not have the test adapter (NUnit3TestAdapter) referenced in any of our projects. How can we run our tests in an Azure Devops…
NJS
  • 426
  • 4
  • 15
0
votes
0 answers

NUnit Adapter 3.8.0.0 and Nunit 3.11 does not discover tests in Azure

I have written test scripts in VS2017 which run using NUnit Adapter 3.8.0.0 and Nunit 3.11 locally/test explorer, but when I want to run the same tests in Azure pipelines I get the below error, not sure what this error is pointing to? Starting…
0
votes
1 answer

NUnit Testing of Individual Projects

I use NUnit 2.6.4 to test my code, but would like to switch to using something within Visual Studio 2017. I tried NUnitTestAdapter.WithFramework, but realized that clicking "Run All" (Tests) on Test Explorer windows will build my entire solution in…
John Doe
  • 165
  • 1
  • 4
  • 15
0
votes
0 answers

Name of test in NUnitTestAdapter 2.1.1 NUnit 2.6.4

Is there any way to change test names displayed in Test Explorer for NUnitTestAdapter 2.1.1/NUnit 2.6.4? Currently test name is just method name. Because I have some base classes with tests and multiple inherited classes, it is impossible to figure…
0
votes
1 answer

Can't able to select a specific list that I want in Selenium + C#

Actually, I wanted to select a specific list that I want inside a container. But I try to write with the code below but it is not reflecting: Actions actions = new Actions(driver); IWebElement mainMenu =…
Kevin
  • 147
  • 1
  • 1
  • 10
0
votes
2 answers

Webdriver for IE9 and 10

I would like to ask if there a specific webdriver to run a testcase for internet explorer 9 or 10? or this code driver = new InternetExplorerDriver(); will do to test internet explorer 9 testcases? anyone know?
0
votes
1 answer

Error occur when Testing a testcase using NUnit Framework

class NunitTest { IWebDriver driver; [SetUp] public void Initialize() { driver = new FirefoxDriver(); } [Test] public void openAppTest() { driver.Url ="http://www.demoqa.com"; } [TearDown] public void…
0
votes
1 answer

NUnit Test Adapter 3 cannot seem to find NUnit3 Framework causing Test Explorer to not show Test

I have a project where I have packaged the NUnit3 Framework along with some others into an internal dll. However when I reference the dll in a project I unable to get TEST to show in the Visual Studio 15, Test Explorer. Inside the project classes I…
0
votes
1 answer

Visual Studio error message: NUnit3.TestAdapter.dll is missing

I have an issue with Visual Studio and NUnit Test Adapter which I cannot find the answer for. Every morning and sometimes during the day, when I try to build my solution I get an error message that the dll under NUnit3TestAdapter folder is…
Daphne
  • 21
  • 6
0
votes
2 answers

unit test exception thrown on TFS server

I recently checked in my solution after adding some functionality. Besides that I refactored some unit tests but did not touch any of the unit test framework versions or what not. After checking in to our TFS server the TFS server runs all the tests…
Jeroen
  • 1,625
  • 3
  • 16
  • 28