336 questions with Visual Studio Testing tags

Sort by: Updated
1 answer

Net Core 6: Microsoft Fakes and WPF Issue

Hello, I hope I posted in the correct forum... I'm in the progress of migrating our WPF from .Net 4.7.2 to .Net Core 6 I run into issues with our test projects that reference WPF and use Microsoft Fakes Please see my demo repo here: …

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,706 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.
336 questions
asked 2022-08-23T15:47:50.847+00:00
Roy Rosenberg 1 Reputation point
answered 2022-11-18T22:35:55.253+00:00
Roy Rosenberg 1 Reputation point
1 answer

Query regarding App Centre Test Subscription

Does App Centre Test subscription ($99) includes build and distribute features as well ? Please clarify

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.
336 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,368 questions
asked 2022-11-13T12:16:50.827+00:00
Nilesh G 1 Reputation point
answered 2022-11-14T09:58:05.367+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
0 answers

Why Visual Studio 2022 Enterprise unit tests don't work in my new Windows 11 laptop?

Just creating an empty XUnit C# Unit test project fails miserably when trying to run or discover the tests with this error: Microsoft.TestPlatform.VsTestConsole.TranslationLayer.TransationLayerException: C:\Program Files\Microsoft Visual…

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.
336 questions
asked 2022-10-20T10:09:17.043+00:00
Carlos Colomina-Moreno 1 Reputation point
commented 2022-11-08T11:06:22.55+00:00
Carlos Colomina-Moreno 1 Reputation point
1 answer One of the answers was accepted by the question author.

Can't figure out why Assert.AreEqual fails

I have a simple code that finds repeating words in a string(the use of StringBuilder is required). It may be not the most officiant one and certainly not the cleanest, but it does the bare minimum. using System.Text.RegularExpressions; …

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.
336 questions
asked 2022-10-31T16:43:46.767+00:00
Lin 41 Reputation points
commented 2022-11-07T15:44:22.04+00:00
Lin 41 Reputation points
1 answer

MStest doesn't execute unit tests when OutputPath of the project changes

When I change the OutputPath for my unit test project the tests are still discoverable in Test Explorer, but when I try to run them (right-click -> Run) they don't run and I get the error below in Output window. Why it suddenly doesn't find that 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.
336 questions
asked 2022-11-05T00:27:59.567+00:00
Igor M 6 Reputation points
answered 2022-11-07T08:31:27.047+00:00
Anna Xiu-MSFT 27,561 Reputation points Microsoft Vendor
0 answers

I wanna open the freelauncher (from github) forms but i cant, how to fix it?

I wanna open the freelauncher (from github) forms. Exmp of error: in System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes) in Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent…

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.
962 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.
336 questions
asked 2022-11-01T19:02:34.403+00:00
lnrv 1 Reputation point
commented 2022-11-02T06:41:30.863+00:00
Anna Xiu-MSFT 27,561 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Can't figure out why my MSTest won't run

I have a simple program that uses List to store matrixes; this part is used to calculate a number of elements that are more then 3,15. It does what it needs to do but when it comes to testing i'm hit with endless loading with no errors showing. I'm…

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.
336 questions
asked 2022-10-25T17:36:33.373+00:00
Lin 41 Reputation points
accepted 2022-10-30T12:48:21.597+00:00
Lin 41 Reputation points
2 answers One of the answers was accepted by the question author.

Where can I find "Publish items"

Hello, I would like to ask why I do not see the option "Publish files" in the "Add project Output Group" selection. I am trying to make an application according to this video: …

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.
336 questions
asked 2022-07-01T08:16:40.057+00:00
Petr Novak 21 Reputation points
commented 2022-10-26T08:51:52.523+00:00
Bhuven Pillay 1 Reputation point
1 answer

Nunit not stop on break point

Hello everybody I'm going to try explain what it happen. I've one project on Net Core 6, its a library project. In this project I installed Nunit 3.13.3, NUnit3TestAdapter 4.2.1, Microsoft.NET.Test.Sdk 17.2.0, MSTest.TestAdapter…

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.
962 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.
336 questions
asked 2022-06-22T15:17:53.947+00:00
Tomas Garijo 6 Reputation points
commented 2022-10-26T00:47:57.253+00:00
Owen Mortensen 26 Reputation points
0 answers

Unit test: cannot delete a copied file

hi, I am writing an unit test to test a very simple application. The application is very simple. It only have two public APIs: OpenFile API: copy an existing binary file to a new created temp file and read it. CloseFile API: close both files…

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.
336 questions
asked 2022-10-20T21:09:28.203+00:00
Yu Hou 1 Reputation point
commented 2022-10-25T09:52:42.427+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
1 answer

VS 2022 Shims, Stubs, Fakes fail to build

Just upgraded from VS 2012 Pro to VS 2022 Enterprise. Previously functioning Shims, Stubs and Accessors all fail to be created. ("not declared/defined")

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.
336 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.
999 questions
asked 2022-10-17T19:31:05.803+00:00
Robert Hull 6 Reputation points
commented 2022-10-19T13:52:18.287+00:00
Michael Taylor 50,586 Reputation points
0 answers

VSTS WebTest : Fetching Passwords from Azure Key Vault

Hi Experts, In our project we have been asked to not to use test data files (linked with webtests) to store login passwords, instead use Azure Key Vault to ensure enhanced protection of Azure AD passwords. Please let us know if anyone has come across…

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.
336 questions
asked 2022-10-18T15:23:53.593+00:00
navjot sidhu 1 Reputation point
commented 2022-10-19T07:21:22.61+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Microsoft.CodeCoverage.Console.exe don't use my runsettings correctly with Google Test

Hello, I have a full C++ code that is tested with Google test. I generate a code coverage with VS 2022 with the Microsoft.CodeCoverage.Console.exe. The converage works well but I don't manage how to use the runsettings file to filter…

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,612 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.
336 questions
asked 2022-09-29T12:20:35.627+00:00
julian lalu 21 Reputation points
accepted 2022-10-18T14:26:40.067+00:00
julian lalu 21 Reputation points
2 answers One of the answers was accepted by the question author.

Handling of System.Text.Json

I'm currently using Visual Studio Professional 2015. I installed "System.Text.Json" and its accompanying "System.ValueTuple", "System.Threading.Tasks.Extensions", etc. with the NuGet package manager. System.Text.Json…

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.
336 questions
asked 2022-10-12T09:14:45.71+00:00
岩佐渡 21 Reputation points
accepted 2022-10-18T04:16:02.91+00:00
岩佐渡 21 Reputation points
3 answers One of the answers was accepted by the question author.

Azure Load Testing: adding the user.properties file doesn't work

Jmeter has a property file 'user.properties' in which properties can be set and loaded only when jmeter starts up, so not possible to set properties inside a jmx file. I need to add a property for adding extra customized columns in the csv logfile. …

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.
336 questions
asked 2022-05-13T13:07:01.413+00:00
Rogiers Benny (BROGIERS) 21 Reputation points
answered 2022-10-14T20:17:26.783+00:00
Manoj Sarathy Partha Sarathy (INFOSYS LIMITED) 1 Reputation point Microsoft Vendor
1 answer

SSIS Unit Tests

Hi, is there any ready-to-use framework or tool to allow doing unit testing for SSIS projects? I went through some sites where they talk about SSISTester (even a doc from MS dated 2013) but it seems that this tool is not maintained and is broken. I…

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,502 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.
336 questions
asked 2022-09-21T12:06:40.697+00:00
Salam 26 Reputation points
commented 2022-10-07T08:10:33.817+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
1 answer

Migrating CodedUi to APPIUM

I am from Automation testing team. We subscribed Enterprise Edition for Visual Studio and used CodedUI for automation in our project. As CodedUI is reached its end of life, we are planning to migrate to Appium. Is there any alternative way to…

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.
336 questions
asked 2022-10-06T11:43:40.423+00:00
PONNALA Divya 21 Reputation points
answered 2022-10-06T13:57:24.437+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
2 answers

Inconsistent behavior of C# CompareTo()

I'm writing a sorting algorithm in C#. The algorithm is written in one project (call it the "Sort project"). I've built another project (call it the "Scratch project") to use as a baseline to compare the results of CompareTo(). I get…

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,572 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 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.
962 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.
336 questions
asked 2022-09-21T02:32:43.86+00:00
Bob 1 Reputation point
answered 2022-10-01T04:10:34.713+00:00
Bob 1 Reputation point
0 answers

Is there a service for either the Test Explorer or the Test Results?

Many aspects of Visual Studio can be accessed as a service from an extension (as seen here), however I was unable to determine if that was also true for the Test Explorer and/or the Test Results systems. Simply I wish to load test results from an…

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.
336 questions
asked 2022-09-21T19:03:37.163+00:00
Alex Wouters 6 Reputation points
commented 2022-09-22T21:42:12.467+00:00
Alex Wouters 6 Reputation points
0 answers

vtest.console.exe does not find any C++ test in test project Visual Studio 2022 (did in 2019)

I have a solution of 52 projects mixed with C#, MFC and C++/CLI working with Visual Studio 2019. Recently I retargeted it to Visual Studio 2022 and moved all C++ projects to C++20. This solution has two test projects: one .NET only and a second one (the…

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,612 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.
336 questions
asked 2022-09-13T14:04:03.73+00:00
RFOG 1 Reputation point
commented 2022-09-19T13:40:10.95+00:00
Anna Xiu-MSFT 27,561 Reputation points Microsoft Vendor