329 questions with Visual Studio Testing tags

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

How can I unit test EventHandler function?

according to example in https://learn.microsoft.com/en-us/dotnet/api/system.windows.input.mousebuttoneventargs?view=net-5.0 how can I unit test this function private void MouseButtonDownHandler(object sender, MouseButtonEventArgs e) { …

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,289 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 2021-08-31T04:31:28.03+00:00
Weanich Sanchol 21 Reputation points
accepted 2021-09-01T04:44:28.687+00:00
Weanich Sanchol 21 Reputation points
1 answer

Is there any sample or reference about unit testing in wpf project with mvvm framework?

Hello, I'm considering introducing unit test to my wpf app testing. but I'm totally newbie to this. so I want to get example for complete unit testing in wpf app with mvvm framework. if someone pick it to me, I'd be very appreciated. thanks, …

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 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 2021-08-28T11:18:15.27+00:00
c00012 716 Reputation points
answered 2021-08-31T02:36:34.177+00:00
Hui Liu-MSFT 40,661 Reputation points Microsoft Vendor
1 answer

How to unfreeze debugger

Hi all, I'm running in to an issue where my solution freezes when debugging. If I place a breakpoint at the beginning of the solution, it wont freeze and will allow me to either continue or step through just fine. With this solution however, I need 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,628 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 2021-08-11T15:25:13.693+00:00
Chad Williams 1 Reputation point
commented 2021-08-19T08:56:09.783+00:00
PengGe-MSFT 3,336 Reputation points
7 answers

vstest.console not createing Code Coverage report

I have an ASP.net application with unit test and I can't seem to get the code coverage I have checked Code coverage enabled and I have checked Upload test attachments. $(Build.BinariesDirectory)\test*UnitTests*.dll …

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 2021-08-05T21:40:05.37+00:00
Miske, Stephan M 1 Reputation point
commented 2021-08-18T09:21:22.003+00:00
PengGe-MSFT 3,336 Reputation points
1 answer One of the answers was accepted by the question author.

"System.TypeInitializationException" when running xUnit tests in Visual Studio 2019 Version 16.10.4

I am working on Xamarin.Forms project. I have a xUnit test project targeting dotnetcore 3.1. The xunit NuGet version is 2.4.1. When I run the tests I get the error mentioned in the title and all tests fail. The complete test detail summary is as…

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 2021-08-10T00:09:38.653+00:00
paramjit 276 Reputation points
accepted 2021-08-16T11:12:14.78+00:00
paramjit 276 Reputation points
1 answer One of the answers was accepted by the question author.

Does unit test written in CPPUnit and running in Visual Studio 2019 generate a log

The unit test written in CPPUnit and running in VS 2019, gives the following error message " Message: Failed to set up the execution context to run the test " The error is thrown before the execution of the test starts. Since 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.
329 questions
asked 2021-03-20T16:17:49.047+00:00
Ginu Samuel 31 Reputation points
accepted 2021-08-15T10:46:55.84+00:00
Ginu Samuel 31 Reputation points
1 answer One of the answers was accepted by the question author.

Can we set desktop application with different target platform?

I have created windows desktop C++/.NET application in WIndows 10 environment using VS 2019. My application should run in Windows 10, Windows server 2016 and 2019. Is there any way to set/enable my application should support different versions of…

Universal Windows Platform (UWP)
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,628 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 2021-08-12T17:17:12.267+00:00
James J 586 Reputation points
accepted 2021-08-13T01:05:21.407+00:00
James J 586 Reputation points
0 answers

Do we have any web test recorder extension to support recoridng of web test in Edge browser using Visual Studio Enterprise edition

As per Microsoft communication, we heard that browser Internet Explorer service will be deprecated soon and we have to use other browsers like Edge to continue the business operations. we record web test for performance testing purpose using IE supported…

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 2021-08-02T08:44:56.663+00:00
Anusha Alapati 1 Reputation point
commented 2021-08-12T09:48:41.063+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
2 answers

How can I debug loading test data with Microsoft.VisualStudio.TestTools.WebTesting.DataSource?

For our performance tests we are loading test date from a CSV-File. Up until recently this worked fine. But now we get the following error: Could not run Web test 'XXXXX' on agent 'XXXXXX': Could not access table 'Test#csv' in data source 'dsTest' of…

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,289 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 2021-05-28T07:21:35.073+00:00
Martin Krischik 16 Reputation points
answered 2021-07-30T22:19:21.95+00:00
Tore Olav Kristiansen 16 Reputation points
3 answers

Are there any known issues when using Microsoft.VisualStudio.TestTools on “Windows Server 2019 Datacenter”

We have a set of performance and stress test written with the Microsoft Visual Studio Test Tools and recently those test stopped working on all but one of our virtual machines. The virtual machine where the test is still working is still using “Windows…

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 2021-07-09T10:44:15.07+00:00
Martin Krischik 16 Reputation points
answered 2021-07-30T21:29:44.247+00:00
Tore Olav Kristiansen 16 Reputation points
2 answers

Issue in Testing tools in Visual Studio for Mac

I have a problem with visual studio for Mac. Community. The installed version is 8.10.6 (build 10) With a recent update (I don't know which one) the unit tests have disappeared from the toolbar. I attach screenshots. Is it a bug or am I…

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 2021-07-29T15:15:37.237+00:00
Valerix 1 Reputation point
answered 2021-07-30T09:46:46.85+00:00
PengGe-MSFT 3,336 Reputation points
1 answer One of the answers was accepted by the question author.

Intellitest Pex Parameterize Mock

public enum SystemConstants { SystemTypeDocument, ApplicationTypeDocument } public interface ISystemBaseObject { SystemConstants SystemType(); } public class ExploreMockExample { ISystemBaseObject systemBaseObject; public…

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 2021-07-19T14:05:22.587+00:00
Sachin Ambokar 96 Reputation points
accepted 2021-07-20T12:49:19.537+00:00
Sachin Ambokar 96 Reputation points
1 answer One of the answers was accepted by the question author.

DevOps Sprints with different dates for development and testing

Hi Our test team begins, and completes, their testing two weeks after the developers. Generally, there is nothing to test for the first two weeks, and also they need time to test after the developers have completed their development. How can I set…

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 2021-07-12T13:35:49.907+00:00
Alistair 21 Reputation points
accepted 2021-07-12T14:56:26.133+00:00
Alistair 21 Reputation points
1 answer

How to check whether Access Database engine is installed or not?

Hello, I have requirement that I need to check whether Access Database Engine is installed or not through Registry key. Please tell me what is the key do we need to check in regedit? Best Regards, Hari

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 2021-06-04T14:27:00.387+00:00
B-K Hariprasad 1 Reputation point
commented 2021-07-07T16:11:15.103+00:00
Hari Prasad 1 Reputation point
1 answer

NullReferenceException' in Microsoft.TestPlatform.CommunicationUtilities.dll

VS2017 Once I open a project and run 111038-debug-log.txtDebug Unit Tests, the next time I run it, I get NullReferenceException' in Microsoft.TestPlatform.CommunicationUtilities.dll exception and can't run any more Debug Unit Tests. Build/Run…

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 2021-07-01T17:34:46.353+00:00
Matt Ortiz 1 Reputation point
commented 2021-07-06T06:24:55.563+00:00
PengGe-MSFT 3,336 Reputation points
1 answer

How to download Selenium Components for coded ui cross browser

Hi , I write code in visual studios for Coded ui. Now we have to test using Chrome and need to download the selenium componenets for coded ui Cross Browser to run my existing coded ui test cases using Chrome. Could you please help in in downloading…

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 2021-06-18T18:47:34.433+00:00
Anonymous
commented 2021-06-25T02:10:04.2+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
1 answer

How to run Coded UI existing test cases in Chrome

Hi, I installed Selenium Cross Browser into my Visual Studio 2019. I would like to run all my existing test cases which are recorded for IE should now run in Chrome. ( All the test cases are Coded UI) I ran the test case for Chrome browser, the page…

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 2021-06-24T19:03:50.083+00:00
Anonymous
answered 2021-06-25T02:03:29.037+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
1 answer

Error “OdbcParameterCollection only accepts non-null OdbcParameter type objects, not SqlParameter objects” while trying to get values from excel sheet

The test fails with "OdbcParameterCollection only accepts non-null OdbcParameter type objects, not SqlParameter objects" error while trying to get values from the excel sheet (data source for my coded UI tests). …

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,289 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,517 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 2021-06-23T10:26:42.527+00:00
DotNetLearner 1 Reputation point
commented 2021-06-23T18:07:05.637+00:00
Viorel 112.5K Reputation points
2 answers

Visual Studio 2017 Test Explorer: How to set PATH?

How can I set the search path used by Test Explorer (Visual Studio 2017 - version 15.9.33)? Currently, Test Explorer does not list my Test Cases because some of my DLLs cannot be found in the system search path, the DLLs are build by projects of my…

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 2021-06-14T11:20:48.277+00:00
Markus 1 Reputation point
commented 2021-06-21T09:59:40.457+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Visual Studio 2019 - Associate test to test case does not work when using git version control plugin

Hi, I have a git repository on TFS and am using git version control plugin in VS2019. When I want to associate a test to a test case, I get the following error dialog: I have a connection to TFS configured in Team Explorer. But when I…

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 2021-06-17T08:13:41.443+00:00
Yannik Steiger 96 Reputation points
accepted 2021-06-17T09:31:27.24+00:00
Yannik Steiger 96 Reputation points