Questions tagged [visual-studio-test-runner]

Microsoft Visual Studio 2012 (and later) provides an open framework that allows 3rd parties to integrate their test frameworks into the Visual Studio and Team Build experience.

The program name is VSTest.Console.Exe.

Suppose to replace MSTest. See comparison at https://msdn.microsoft.com/en-us/library/ms253138(v=vs.110).aspx#Runner

74 questions
0
votes
2 answers

.testsettings deployment section gets ignored in TFS build

I have a solution with bunch of C# projects with bunch of tests. Some of these tests require few native dlls (provided by related nuget packages). To address this .testsettings file was created that is copying dlls (that nuget coped to $(OutDir)) to…
C.M.
  • 3,071
  • 1
  • 14
  • 33
0
votes
1 answer

Using NUnit3 addins with VS Test Adapter

I created a very simple NUNit3 addin (see code below), but I'm not sure how to actually make it run when I kick off tests using the Visual Studio Test Adapter in VS2015. I've built it into an assembly, but I'm not sure where I need to reference…
0
votes
1 answer

How do I test a Azure AD protected Web API in with Visual Studio Test Adapter?

I've created a multi tenant Web API that works just fine. Now I want to build a native client for testing. The Web API app is defined in one tenant. The test app is defined in another tenant that has given admin consent to the Web API. I want to use…
0
votes
0 answers

Timing problems when testing concurrent execution of two WCF operations in VS TestRunner

I am currently trying to get the hange of WCF. To test the concurrent execution of two operations, when using this ServiceBehavior section: [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode =…
packoman
  • 1,230
  • 1
  • 16
  • 36
0
votes
1 answer

TestManagementHttpClient Create Test Run

I am trying below C# code to create TFS test run. But every time I am getting below error. Though I have given test plan details. I couldnt even find documentations on this. Error An exception of type…
Manivas
  • 11
  • 3
0
votes
1 answer

add servers to Counter Set in loadtest

I want to run load-test from my computer on my Web Application. this application had three servers for database,service & ui my computer is joined to the domain but my servers is not in domain and they are in one WORKGROUP. I installed Test…
0
votes
0 answers

VSTS Visual Studio Test Task does not always copy app.config

I am using Visual Studio Team Service with the new scriptable Build system. There is a Visual Studio Test Task. The problem I am facing is, that the app.configs of a unit-test project are not always deployed into the TestResult...\Out folder. But…
0
votes
1 answer

MS Build TestCategory Filter not working

Environment TFS2013.Update 2 12.0.30324.0 C# Visual Studio 2013 Visual Studio Test Runner Gated Check-In Problem As shown here I decorated my TestMethod like [TestCategory("Gated"), TestMethod()] As shown here I filtered, like …
else42.de
  • 465
  • 5
  • 23
0
votes
1 answer

Visual studio test runner - criteria is filtering all tests

Using VS 2013 and TFS 2013, I have 4 unit tests but I want a TFS build to run only one of them. For this I have assigned [TestCategory("bvt")] as an attribute of the method. I edit the build definition, and within the "Add/Edit Test Run" dialog I…
0
votes
1 answer

How to get the text from webpage using coded ui

I am new for coded ui and I have got stuck for processing message display on webpage. As we used to get text from web page in selenium using method getText(), is such kind of possibility are available in coded ui.? I would appreciate your…
0
votes
0 answers

MSTest -- Can i get the tests to run dynamicly?

i want to call some function once before all test started, and i need to know which tests are going to run. For example, if i selected TestMethod1 and TestMethod3 in my test plan, and run those two testcases, i need to get the test method…
Narutokk
  • 964
  • 1
  • 8
  • 20
0
votes
1 answer

Visual Studio Test Runner doesn't find test and fails with: Some or all identity references could not be translated

I'm trying to execute my tests with a .runsettings file, but the test run fails with the following message: ------ Run test started ------ Some or all identity references could not be translated. Operation is not valid due to the current state of…
jessehouwing
  • 106,458
  • 22
  • 256
  • 341
0
votes
1 answer

Running Remote Powershell Commandlet that wraps a process exits before completion

I have a custom PowerShell commandlet that I have created in C# that spins up some instances of vstest.console.exe and publishes the test results to a .trx file or to tfs. This commandlet works in isolation when using PowerShell locally. However…
-1
votes
1 answer

Extract nested fields in Visual Studio Web load test

Here is an html code I would like to test load and extract data from

Hello StackOverflow

I need the 333…
1 2 3 4
5