360 questions with Visual Studio Testing tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Visual Studio 2022 17.12.4 can't connect test runner process

After upgrading visual studio 2022 to 17.12.4, for .net 8 test project which is using MSTest and Xunit at same time, it always fails to execute tests from test explorer. The error message is like below: "Unable to connect to testing platform runner…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-02-07T02:18:20.4766667+00:00
Shi, Jason (Shanghai) 50 Reputation points
answered 2025-03-06T09:13:03.8833333+00:00
Shi, Jason (Shanghai) 50 Reputation points
2 answers One of the answers was accepted by the question author.

How to do unit testing on node.js web application in visual studio?

I created a project in Visual Studio 2022. I created a node.js web application using the "Blank node.js web application" template. I want to create a unit test. What is the recommended way to do that? I hit problems following an article that…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2024-01-28T19:45:56.46+00:00
Wayne Roseberry 20 Reputation points
edited an answer 2025-03-05T14:15:03.2433333+00:00
Alberto Martin 0 Reputation points
0 answers

Random MessageBox when executing tests

Hello, we are running vstest.console in Visual Studio 2022 Enterprise Edition on a Hyper-V Windows 11 24H2 virtual machine, and we randomly get the blocking messagebox you see in the screenshot below, does anyone know the cause of that and how to fix…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-03-05T08:23:21.96+00:00
Lorenzo Zambelli 45 Reputation points
commented 2025-03-05T09:24:24.74+00:00
Tianyu Sun-MSFT 33,391 Reputation points Microsoft External Staff
0 answers

"Value does not fall within the expected range" error when editing XAML with VS 2022

Hi, I'm using Visual Studio 2022 to develop some WPF/XAML applications - i've previously been developing C# and python - and am now seeing an intermittent error when editing XAML files that i have not seen before: A popup that says: "Value does…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-03-01T02:31:13.1333333+00:00
Felgryn 0 Reputation points
commented 2025-03-04T13:08:02.6433333+00:00
Tianyu Sun-MSFT 33,391 Reputation points Microsoft External Staff
1 answer

Unit tests cannot run

What is causing this error? Building Test Projects Starting test discovery for requested test run ========== Starting test discovery ========== You must install or update .NET to run this application. App:…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-01-28T14:45:03.52+00:00
ammamm 0 Reputation points
commented 2025-02-05T09:08:40.0633333+00:00
Anna Xiu-MSFT 30,926 Reputation points Microsoft External Staff
1 answer

How to save/print "Compare with ..." output in Visual Studio?

Need to store code changes for each application change that will occur. Visual Studio 2022 "Compare with ..." produces the output I need to store but I don't know a way to print/export (save to a file) the compare window. Screenshots are not an…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,108 questions
asked 2025-02-01T00:00:07.2133333+00:00
Steiner, Thomas 0 Reputation points
edited a comment 2025-02-01T08:07:04.7066667+00:00
Viorel 120.4K Reputation points
1 answer

Azure DevOps server 2022 - View execution of in-progress tests orchestrated with Maven

We are executing selenium tests using maven and the output of our task is a very standard JUNIT output. We do see a tab added to out build output with the test results which is helpful, now we need the output as we run the tests, how can we achieve that?…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-01-29T16:12:37.0466667+00:00
Nicolas Wright 0 Reputation points
answered 2025-01-30T04:52:13.08+00:00
Anna Xiu-MSFT 30,926 Reputation points Microsoft External Staff
1 answer

Azure DevOps: How to export test results (outcome) to Excel?

How to export test results (outcome) to Excel in Azure DevOps? Google returns: "To export test results from Azure DevOps, you can use the built-in functionality within the Test Plans section, which allows you to export test cases and results…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-01-28T02:21:43.17+00:00
Isac, D 0 Reputation points
answered 2025-01-28T04:08:38.9066667+00:00
Anna Xiu-MSFT 30,926 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

How to set up encryption keys for a software implementation

To properly set up encryption keys for a software implementation, you must first determine whether you need to use symmetric or asymmetric algorithms. Symmetric algorithms require the creation of a key and an initialization vector (IV), while asymmetric…

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
287 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
74 questions
asked 2024-07-29T13:54:05.25+00:00
John Gaspar 20 Reputation points
edited the question 2025-01-27T04:27:40.4333333+00:00
Rakesh Gurram 12,650 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

How to execute in parallel C++ tests written with the Microsoft Unit Testing Framework ?

We are writing C++ tests with the help of Microsoft Unit Testing Framework (https://learn.microsoft.com/en-us/visualstudio/test/how-to-use-microsoft-test-framework-for-cpp?view=vs-2022#run-the-tests) Tests are running fine, it works within Visual…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,878 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-01-15T10:58:01.3766667+00:00
Julianis 20 Reputation points
accepted 2025-01-17T08:05:23.63+00:00
Julianis 20 Reputation points
0 answers

How to fix LNK1181 error (including libs)

Severity Code Description Project File Line Suppression State Details Error LNK1181 cannot open input file 'C:\6money\libs.obj' Dll1 C:\6money\Money\Dll1\LINK 1 Hello, I'm currently facing an issue when trying to link the lua54.lib library in my…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,447 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,878 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,031 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-01-15T17:57:11.9633333+00:00
Yuri 0 Reputation points
commented 2025-01-17T07:12:29.2533333+00:00
Minxin Yu 13,001 Reputation points Microsoft External Staff
1 answer

How to use VSTest.Console.exe to get code coverage for changed files only

Visual Studio Enterprise's Analyze Code Coverage function supports Changeset Report. I want to be able to get a code coverage changeset report i.e. report for only the changes files in my current branch from the command line by using VSTest.Console.exe.…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-01-08T12:37:00.34+00:00
Alex 0 Reputation points
edited a comment 2025-01-16T07:05:50.0533333+00:00
Tianyu Sun-MSFT 33,391 Reputation points Microsoft External Staff
1 answer

Creation of test suites

When creating a test suite you specify an area path and select functional requirements. When you open the created suite the area path is not the same as you specified before creating the suite, Why? There is no information in the suite from which…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2025-01-13T13:23:15.99+00:00
Stig Larsson 0 Reputation points
answered 2025-01-14T03:27:08.72+00:00
Anna Xiu-MSFT 30,926 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Is there a way to bulk import test cases with the summaries included (for example the descriptions) in Azure DevOps?

Hi All, Apologies if this is the incorrect tag for this question. I know understand there is a way to just import the test plans, however is there a way to bulk import test cases with the summaries included (for example the descriptions field on the…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2024-04-24T14:39:34.47+00:00
Mohammed Zahid 20 Reputation points
commented 2024-12-02T15:13:49.8533333+00:00
pH 0 Reputation points
1 answer

"The ordinal 345 not found in the DLL" error

I am facing an issue with a Visual Studio solution that contains a development project and a newly added unit test project to test this development project. The unit test project compiles without any issues, but when I run it, I get the following error…

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,031 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2024-10-24T14:44:35.6+00:00
chedli zaafouri 0 Reputation points
answered 2024-10-24T15:25:27.7166667+00:00
RLWA32 47,521 Reputation points
0 answers

why I cannot login server for hotmail email by python?

i got error when logging in the server by python coding for hotmail account even I created a new one. server.login('******@hotmail.com', 'password')

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2024-10-04T14:25:49.2466667+00:00
friend 0 Reputation points
commented 2024-10-10T09:17:04.22+00:00
Friend 0 Reputation points
0 answers

Microsoft Fakes and real object constructor

I'm using .NET 4.8 and Microsoft Fakes to create Shim object for unit testing. This class (KRSampleManager) is using Lazy initialization to create an instance and implements IDisposable interface. namespace SampleManager { public class…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,333 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2024-10-01T09:08:03.5166667+00:00
Raja, Kushal 0 Reputation points
commented 2024-10-03T04:51:34.86+00:00
Raja, Kushal 0 Reputation points
1 answer

TUnit Test is not showing in the Test Explorer

I created this simple test: namespace TestingApplication {     public class TestsExample     {         [Test]         public async Task TestExample()         {             var sum=Add(3,5);             await Assert.That(sum).IsEqualTo(3);         }     …

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2024-09-25T00:53:37.0866667+00:00
Muhammad Ghozlan 0 Reputation points
commented 2024-10-01T07:22:42.2066667+00:00
Anna Xiu-MSFT 30,926 Reputation points Microsoft External Staff
1 answer

How to Retest Without Losing Previous Results in Azure Test Plans?

Hi everyone, I’ve already set up my Test Suite, Test Plans, and Test Cases. However, I’m trying to figure out how to run the same tests again while keeping the results from the previous runs intact. Any tips on how I can achieve this without overwriting…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2024-09-12T14:55:46.9566667+00:00
Seriouspike 0 Reputation points
commented 2024-09-14T06:34:41.6+00:00
Seriouspike 0 Reputation points
1 answer

Config file based pipeline trigger

ADO pipeline stages has to trigger based on config file  Config file :-  Ex:-  triggerBlackDuck = true triggerBSP = false triggerSonarQube = true triggerCoverity = true triggerBuildSDK = false I have 5 stages in my pipeline, Based on…

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
360 questions
asked 2024-09-05T06:02:29.46+00:00
Pigelati, Mohan (Contractor) 0 Reputation points
answered 2024-09-05T07:41:26.09+00:00
Tianyu Sun-MSFT 33,391 Reputation points Microsoft External Staff