329 questions with Visual Studio Testing tags

Sort by: Updated
1 answer

What is Run Test -> With Custom Parameters in Visual Studio for Mac

Without the ability to set a .runsettings file in Visual Studio for Mac, unit testing is very much a chore. However, there is an option on the right click menu called Run Test With -> Custom Parameters. This looks promising as it allows you to specify…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,402 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 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.
329 questions
asked 2023-06-15T03:59:45.5533333+00:00
Yndigo 0 Reputation points
commented 2023-06-19T16:14:16.2533333+00:00
Yndigo 0 Reputation points
0 answers

Error VS2022 Windows 11 vs. VS2022 Windows 10

New computer running windows 11, installed VS 2022 community and tried to run solution generated in VS2022 community on a windows 10 computer. In debug, error generated on windows 11 computer but not on windows 10…

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.
329 questions
asked 2023-06-13T12:38:52.52+00:00
William 41 Reputation points
commented 2023-06-14T06:22:36.8533333+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

c# selenium tests on azure download and confirm report files exist

We have a group of tests in Selenium/C# which click on download report buttons and then validate the report has been created in the local file. We now wish to deploy these tests with our main test suite which runs on azure in a release pipeline. At the…

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.
10,292 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.
329 questions
asked 2023-06-07T07:56:07.95+00:00
Kev Martin 20 Reputation points
accepted 2023-06-09T08:36:59.42+00:00
Kev Martin 20 Reputation points
1 answer

How to do this in Visual Studio Testing Explorer?

I know I can do this when I run test via command line : dotnet test myproject.csproj /p:IsTest=true What if I want to pass that /p:IsTest=true when I run test via Visual studio's Test Explorer? How can I do this? The Goal: What I want to do is,…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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.
329 questions
asked 2023-05-23T07:31:38.3033333+00:00
Wasenshi Winkung 0 Reputation points
answered 2023-05-24T19:16:15.0766667+00:00
Wasenshi Winkung 0 Reputation points
4 answers One of the answers was accepted by the question author.

How to view log output while tests are running in VS 2019 Professional?

My goal is to view log output in Visual Studio 2019 Pro, for all unit tests, while the tests are running. I tried log4net. The log writes to an output file, via log4net.Appender.FileAppender, so I know log4net is configured and running. However,…

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.
329 questions
asked 2020-12-28T11:46:27.797+00:00
AdamLeffert-5988 71 Reputation points
commented 2023-05-22T10:21:11.99+00:00
super richmann 1 Reputation point
1 answer One of the answers was accepted by the question author.

Malfunctioning NumericUpDown tools

My NumericUpDown entries behave differently on the same form. All have one decimal point. ,Net Framwork 4.7.2 in VS/VB 2019 Pro. Some take direct entry (i.e. "2.3" typed in directly works). The others either quit with the first digit…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 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.
943 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.
329 questions
asked 2023-05-15T17:49:29.76+00:00
Stephen H. Jones 20 Reputation points
commented 2023-05-19T16:29:58.8+00:00
Stephen H. Jones 20 Reputation points
1 answer

Need Visual Studio 2017 15.9.0 or older installer of Visual Studio 2017 15.9.X

Hi , We need Visual Studio 2017 15.9.0 or older installer of Visual Studio 2017 15.9.X apart from latest one to test in our environment. Can we know where do we get it ?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 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.
329 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.
972 questions
asked 2023-05-11T12:03:43.6966667+00:00
Ramesh Arumugam 21 Reputation points
commented 2023-05-16T08:46:47.24+00:00
Anna Xiu-MSFT 25,806 Reputation points Microsoft Vendor
1 answer

Beginners' questions in VS

1.I wrote code, and created a test project on it. I made a "reference" between them. And yet when I run the test the system does nothing. The test explorer shows that there are 3 tests that have not been run but does not execute them. Do you…

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.
329 questions
asked 2023-05-10T09:57:06.9133333+00:00
Microsoft Lecturer 0 Reputation points
commented 2023-05-16T08:33:57.14+00:00
Anna Xiu-MSFT 25,806 Reputation points Microsoft Vendor
1 answer

C# Test Unit DataRow max number of arguments reduced from MSTest 2.x to MSTest 3.x

Hello, I have unit tests with 30 parameters which where working last year. Now VS (17.6.0 Preview 2) doesn't compile and fires (I precise again this code was running well with all these arguments last year): Erreur CS1729 'DataRowAttribute' ne contient…

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.
10,292 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.
329 questions
asked 2023-04-03T16:21:25.2366667+00:00
edited an answer 2023-05-02T16:46:23.4066667+00:00
0 answers

Why would MemoryMappedFile.CreateNew in Global space fail with UnauthorizedAccess even with Visual Studio being run as admin?

VS 2019 16.11.24 targeting Framework 4.7.2 Windows 10 Unit tests are failing on a call to MemoryMappedFile.CreateNew("Global/someName") with "System.UnauthorizedAccessException : Access to the path is denied.". Running Visual Studio…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 questions
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.
10,292 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.
329 questions
asked 2023-04-20T21:16:14.34+00:00
Jeff Bailey 0 Reputation points
commented 2023-04-27T00:01:31.6533333+00:00
RLWA32 40,756 Reputation points
3 answers

Getting error (MyClassName).MyClassInitialize has wrong signature. The method must be static, public, does not return a value and should take a single parameter of type TestContext.

I'm running in VS 2022 with .NET Framework 4.8 I'm referencing NuGet packages MsTest.TestAdapter and MsTest.TestFramework 2.2.10. I'm getting this error for a lot of tests (MyClassName).MyClassInitialize has wrong signature. The method must…

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.
10,292 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.
329 questions
asked 2022-11-25T18:27:45.147+00:00
John Mann 41 Reputation points
answered 2023-04-26T14:10:59.5866667+00:00
Jude Dennis 0 Reputation points
2 answers

Visual Studio 2022 cannot find Web Service (ASMX )

Using the most recent version of MS Visual Studio 2022. After downloading multiple templates referring to Forum Question (How to add web service asmx file in vs 20220) I am still not able to find "Web Service (ASMX)" What more is required in…

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.
943 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.
329 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.
972 questions
asked 2022-03-22T18:56:12.2+00:00
MicrosoftGCIaccount 11 Reputation points
commented 2023-04-19T11:31:23.91+00:00
Adam Short 0 Reputation points
0 answers

Can I use Microsoft.CodeCoverage.Console to instrument and collect code coverage for a windows service using .net 4.8?

The Microsoft.CodeCoverage.Console documentation indicates that all .net code can be instrumented and code coverage collected but I get this error on the command line: Microsoft.CodeCoverage.Console.exe instrument Blah.Service.exe Unable to…

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.
329 questions
asked 2022-10-23T12:46:15.903+00:00
John Hoffman 1 Reputation point
commented 2023-04-19T09:22:55.1866667+00:00
77780164 76 Reputation points Microsoft Employee
1 answer

Associating test cases in Visual Studio, how to fix VS30063: You are not authorized to access https://dev.azure.com

I have been trying to associate test cases to an automated test plan in Azure devops. I follow the same steps outlined here: https://learn.microsoft.com/en-us/azure/devops/test/associate-automated-test-with-test-case?view=azure-devops I have been able…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 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.
329 questions
asked 2023-04-18T23:24:51.43+00:00
Eric Christensen 0 Reputation points
answered 2023-04-18T23:28:27.82+00:00
Eric Christensen 0 Reputation points
1 answer One of the answers was accepted by the question author.

visual studio,why some Method never show in hint list?

It took a long time to find out why the CheckAccess Can't use in my project, The reason is below. just want to know why? It's so unreasonable

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,402 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,678 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 questions
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.
10,292 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.
329 questions
asked 2023-03-25T03:14:23.25+00:00
兰树豪 381 Reputation points
commented 2023-04-17T03:26:12.0333333+00:00
兰树豪 381 Reputation points
1 answer

Cant see typescript spec files in test explorer

I have solution with c# projects. On of these c# projects containt angular application. There are many tests files with tests. (sometest.spec.ts) - jasmine/karma is used. Problem is that in test explorer i can see only c# tests. I think that…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 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.
329 questions
asked 2023-04-13T15:13:23.0533333+00:00
Juraj Jakubov 21 Reputation points
edited an answer 2023-04-14T03:28:00.2433333+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Gitlab Extension in Visual Studio

Is there any extension's for GitLab in Visual Studio 2022 community edition.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
176 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.
943 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.
329 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.
972 questions
asked 2023-04-07T11:23:48.7966667+00:00
Ganesh Aravind Dhanmjaya Shetty 20 Reputation points
accepted 2023-04-11T13:14:48.5133333+00:00
Ganesh Aravind Dhanmjaya Shetty 20 Reputation points
1 answer One of the answers was accepted by the question author.

Can't find Targetserverversion as Sql server 2016 in VS 2022

Hi, I have SQL 2016 and VS2022, recently upgraded visual studio to VS2022 and trying to edit the package compatible with version 2016. But, I can't find the targetserverversion as SQL 2016, only I can see SQL 2017, 2019, 2022. Please suggest the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,631 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,459 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.
329 questions
asked 2023-04-07T11:24:07.33+00:00
Sarojkumar 20 Reputation points
accepted 2023-04-10T03:06:12.1866667+00:00
Sarojkumar 20 Reputation points
0 answers

Error on Visual Studio

System.Collections.Generic.KeyNotFoundException: Unable to find UniqueTest VSTestAdapter I needed assistance on this error. When I run Test Automation. The Test does not show me message about the test I am running.

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.
943 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.
329 questions
asked 2023-04-04T08:38:35.49+00:00
Khoza, Eli (LNG-CPT) 0 Reputation points
commented 2023-04-05T03:41:37.0566667+00:00
Anna Xiu-MSFT 25,806 Reputation points Microsoft Vendor
1 answer

Could not run Code Coverage with VS2019 Enterprise

I'm not able to run unit test with code coverage using Visual Studio 2019 Enterprise. I have Version 16.11.21 running on my system. Observed the following error message: Failed to set up the execution context to run the test

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.
329 questions
asked 2023-03-21T19:33:06.3466667+00:00
Levina Lioe 0 Reputation points
edited a comment 2023-04-04T13:47:01.0233333+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor