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) { …
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, …
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…
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 …
"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…
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…
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…
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…
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…
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…
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…
Intellitest Pex Parameterize Mock
public enum SystemConstants { SystemTypeDocument, ApplicationTypeDocument } public interface ISystemBaseObject { SystemConstants SystemType(); } public class ExploreMockExample { ISystemBaseObject systemBaseObject; public…
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…
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
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…
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…
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…
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). …
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 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…