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.
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
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…
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,
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…
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…
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…
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…
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…
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…
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…
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…
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.
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…
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 …
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…
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)…
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…
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…
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.