331 questions with Visual Studio Testing tags

Sort by: Updated
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.
951 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.
331 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 26,646 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.
331 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,811 Reputation points Microsoft Vendor
1 answer

Azure Devops-Visual studio Test Task , Fails to recognize Automated Test cases from Test Suite

I Have some automated Test cases (with automated Tag) to be run from Pipeline by using a Visual studio test task. Test cases are maintained in a sperate test plan and if it is imported to the current testing plan , Automated testing will work If the same…

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.
331 questions
asked 2023-03-29T14:11:37.9433333+00:00
Anonymous
answered 2023-03-30T02:40:36.5466667+00:00
Tianyu Sun-MSFT 27,811 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to automate testing for WPF application and wcf services?

Hello! I want to test an WPF application in Visual Studio -Test Explorer, but nothing happens. Can you suggest an open source/ free application for automated tests which supports WPF and/ or WCF services? Best regards,

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,381 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.
331 questions
asked 2023-03-22T11:48:15.5866667+00:00
B M-A 361 Reputation points
accepted 2023-03-25T20:02:14.25+00:00
B M-A 361 Reputation points
1 answer One of the answers was accepted by the question author.

I keep getting a "Could not find the module Az.Accounts with given version." error with a very simple DevOps release pipelines

I'm testing a very simple release pipeline that simply copies part of a project's repo in Azure DevOps to an Azure Windows VM. I've gone through the Deployment Group setup several times, registering and installing the agent, along with installing 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.
331 questions
asked 2023-03-16T20:47:42.9366667+00:00
Steve Mandras 21 Reputation points
commented 2023-03-20T17:38:09.9+00:00
Steve Mandras 21 Reputation points
3 answers

Could not load file or assembly 'Azure.Core, Version=1.0.2.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified

Describe the bug We are implementing some changes in our Web load test and performance testing project (in Visual Studio) to enable webtests to fetch passwords from an encrypted SQL DB by using master key stored in Azure key vault. For this we have…

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.
331 questions
asked 2023-03-14T00:01:05.7033333+00:00
Navjot 46 Reputation points
commented 2023-03-20T13:46:49.1+00:00
Anna Xiu-MSFT 26,646 Reputation points Microsoft Vendor
1 answer

Unit test cases failing for async method

Hi Team, I have one method like below. private async string ProcessMonitor_OnProcessStopped(object sender, ProcessDetails processDetails) { await Task.Delay(500); return "Value"; } and i am writing the unit test case for the above method. Since…

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,381 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.
331 questions
asked 2023-03-17T07:02:50.9733333+00:00
Sunil A M 171 Reputation points
edited the question 2023-03-20T07:05:44.37+00:00
Jack J Jun 24,311 Reputation points Microsoft Vendor
1 answer

Breakpoint does not work during the test either with NUnit and MSTest. Visual Studio 2022, Net 6

Hi, I've created test project in my solution and when I want to debug my code set breakpoint it doesn't work when I click debug and it whole flow looks the same when I click run. I don't have idea what should I do. I tried everything what I found in…

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.
331 questions
asked 2022-10-10T20:14:38.603+00:00
Andrzej 26 Reputation points
edited a comment 2023-03-14T15:13:58.7066667+00:00
Damian 0 Reputation points
1 answer

HOW TO FIX THE EDIT AND CONTINUE OPTION IN C#? WHEN I PRESS START ITS NOT SHOWING OUTPUT

StreamJsonRpc.RemoteInvocationException: New debugging session can't be started until the existing one has ended. at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__139`1.MoveNext() --- End of stack trace from previous location where exception was…

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,381 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.
179 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.
331 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.
976 questions
asked 2023-03-11T07:15:02.8133333+00:00
Naseer.syed 5 Reputation points
answered 2023-03-13T03:42:48.0766667+00:00
Anna Xiu-MSFT 26,646 Reputation points Microsoft Vendor
1 answer

Modular programming, running an external application .exe from a menu item of my own app

Hi everybody, first at all, many thanks for reading my post. I’ve developed an application to graph mathematical functions and expressions. This application has been developed using Visual C++ ’22 in a Windows 10 environment. This has been implemented…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,696 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,562 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.
179 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.
331 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.
976 questions
asked 2023-03-04T22:56:28.6733333+00:00
brickoff 0 Reputation points
answered 2023-03-06T05:27:31.7133333+00:00
YujianYao-MSFT 4,281 Reputation points Microsoft Vendor
0 answers

Ejecutar WebAPI desde VisualStudio

Saludos a todos. Recientemente cree un proyecto ASP.NET Core Web API, la aplicación se creo sin problemas junto con el ejemplo Weatherforecast. Al ejecutarlo desde VisualStudio (F5) funciona perfecto, el navegador se levanta y se muestra la interfaz de…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,239 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.
951 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.
331 questions
asked 2023-02-22T20:53:59.9166667+00:00
Esteban Andrade Cambronero 0 Reputation points
commented 2023-02-28T16:34:51.4933333+00:00
Esteban Andrade Cambronero 0 Reputation points
2 answers

TextPatternRange.GetText() UIAutomation throws AccessViolationException on Windows 11

TextPatternRange.GetText() method throws AccessViolationException on Windows 11 TextPatternRange is giving problem in Win 11 and working absolutely fine in Win10. Even we have updated our Win 11 to Edition Windows 11 Enterprise Version 22H2 Installed…

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.
331 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,417 questions
asked 2023-02-01T08:47:43.0066667+00:00
Varun Kumar 0 Reputation points Microsoft Employee
edited the question 2023-02-28T11:15:20.85+00:00
Varun Kumar 0 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How do I Open Test Explorer with a Keyboard Shortcut?

Is there a way to open the Test Explorer window with a keyboard shortcut? I can't find this option.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,696 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.
331 questions
asked 2023-02-21T07:24:02.1166667+00:00
Jason Hunter 21 Reputation points
accepted 2023-02-22T13:45:19.2133333+00:00
Jason Hunter 21 Reputation points
1 answer

How to exclude certain lines by regex in runsettings file

I have many asserts scattered around the codebase to check for invalid situations. I want to exclude them in code coverage reports but I have not figured out how to do so. In gcovr I can do something like --exclude-lines-by-pattern '.*assert.*'. It would…

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.
331 questions
asked 2023-02-10T03:59:55.8033333+00:00
Haowen Liu 0 Reputation points
commented 2023-02-14T09:59:50.6533333+00:00
Tianyu Sun-MSFT 27,811 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022)

Why I can't Fake-Mock "System" in .net core 6.0(VS Enterprise 2022), I don't know what happened?   I was trying to use "using System.Fakes; " , But it alert "missing an assemly reference" after following …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,239 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,696 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.
331 questions
asked 2023-01-31T10:06:39.3233333+00:00
Angelina Jolie 20 Reputation points
commented 2023-02-14T02:52:02.38+00:00
Angelina Jolie 20 Reputation points
2 answers

Using Visual Studio licenses for test development on MS SQL Server

Having a Visual Studio license enable me to develop on a non-licensed standard MS SQL Server/Enterprise instance? If so, can I promote the data being collected into this environment from a production line, into a licensed production MS SQL Server…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,894 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.
331 questions
asked 2023-02-08T20:20:02.59+00:00
Bob Lalone 0 Reputation points
commented 2023-02-13T05:52:41.4466667+00:00
Seeya Xi-MSFT 16,451 Reputation points
1 answer

How to analyze indefinite project loading of UnitTest project in Visual Studio 2022

When I switch between branches where some project/solution files have been changed, Visual Studio reloads projects files. Whenever the same UnitTest (NUnit) project is loaded, Visual Studio starts to consume as much memory as it gets (16GB and more)…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,696 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,381 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.
331 questions
asked 2023-02-06T21:09:47.1666667+00:00
Tobias 0 Reputation points
answered 2023-02-07T09:44:48.68+00:00
Anna Xiu-MSFT 26,646 Reputation points Microsoft Vendor
0 answers

Linq select new Not Covered %100 in Unit test

Hi Everyone, In unit tests linq select not cover exactly, ı am shared two picture downside. First one result of foreach and select new coverage result. It is exactly made same job. foreach cover %100 but linq select not Second Picture is about record…

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,381 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.
331 questions
asked 2023-02-06T14:07:12.48+00:00
OZBEKHAN POLAT 0 Reputation points
commented 2023-02-06T14:44:30.97+00:00
Reza Aghaei 4,936 Reputation points MVP
0 answers

How can I call a method of the original class from the its fake class method

I created a fake assembly called MyProject.Web.Customer.Fakes from the project MyProject.Web.Customer. I am trying to call Read method of the MyProject.Web.Customer from its fake object from the test method.The fake class there is a method I have given…

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.
331 questions
asked 2023-02-02T05:06:24.5466667+00:00
Polachan Paily 0 Reputation points
commented 2023-02-03T03:12:42.9866667+00:00
Anna Xiu-MSFT 26,646 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to execute e2e test in visual studio

Hello, I want to know how to execute e2e test in VS 2022 Check the screen shot above.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,696 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.
331 questions
asked 2023-01-30T08:25:14.2166667+00:00
accepted 2023-01-31T02:14:35.0633333+00:00