Rerun fail test case - MsTest
Hi Team I need to rerun the fail test case automatically using mstest in my automation project (selenium /C#) I have few solutions as below but i am not finding the exact one . If any one has already worked ,pls help me out on this. sol1 : using…
How does time in diagnostics session counters file is calculated?
Hi, I need exact values of performance of my program from performance profiler, for documentation of my program, the problem, I need values that have been collected from my program in order to data organize and document it, I have already extracted the…
Is there a work around to use VSTest task to run the tests on a mac agent
We want to publish the test results to azure devops test cases which were run through a azure devops yaml pipeline.For running tests on a windows platform we are using VSTest task where the task itself will take care of publishing the results to the…
Is there a way to change the preprocessor directive based on the testEnvironment of a unit test?
Hello, I'm a developer using remote configurations for unit tests. I'd like the preprocessor to change every time I modify the environment defined in the testEnvironment.json file from the Test Explorer. Is there a way to do this? thank you.
Test Explorer does not find UnitTests in the newly created Angular/React project (.esproj)
I have created a new Angular project using Visual Studio 2022. This automatically creates a demo project that also contains a test file with some tests (app.component.spec.ts). My problem is that the test explorer does not find the tests. I have rebuilt…
Test cases not discovered/How to show output of Discover Tests in Test Explorer
I'm writing unit tests for a c++ project using Visual Studio, Test Explorer, and google test. I have two classes to test 'Strategy' and 'StockThread'. If I declare my class of type Strategy, none of the test cases are discovered by Test Explorer and I…
Not getting 'Apple Two step authentication' window while adding a new apple developer account-Xamarin
I am trying to add a new apple developer account in my visual studio.I am getting a dialogue box after entering the login credentials.But no devices are listed or my phone number is not showing here to send a verification OTP.How can I proceed with…
Visual Studio Remote Testing - Add additional docker run arguments
I'm using the remote testing feature from Visual Studio to execute my unit tests on a Linux container. For this, I have the following Dockerfile.test FROM mcr.microsoft.com/dotnet/sdk:6.0 RUN mkdir /usr/local/temp RUN wget https://aka.ms/getvsdbgsh…
How can I combine Queries?
I've been struggling with Xamarin ever since I started using it. The queries are very restrictive and when you get to cross platform testing it's getting more and more difficult to manage. My first question amongst several hundred is how can we build…
What is the latest version of Visual Studio Test Professional?
Have been issued new license from employer for Visual Studio Test Professional. When looking at downloads available on my Microsoft Visual Studio Subscription, the latest available is Visual Studio Test Professional 2017. This does not seem right and I…
xUnit succeeded without finishing the test - Visual Studio Debugger crashes - Visual Studio Community Version 17.6.0
Hi there, in a Windows Form the constructor of a form instantiates a class derived from ComboBox. This class just changes the background overriding OnEnter and OnLeave if (Enabled) Backcolor = System.Drawing.Color.FromArgb... and then call the base…
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…
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…
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…
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,…
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,…
![](https://techprofile.blob.core.windows.net/images/PmFWCOnqikSTfpsJdU76kQ.png?8D8F9C)
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…
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 ?
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…
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…