372 questions with Developer technologies | Visual Studio | Testing tags

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

Fallback fonts for Asian languages

Can anyone tell me how to determine the fallback fonts for Japanese, Korean, Traditional Chinese and Simplified Chinese in Windows 7? I found a link from 2005 that answers the question but it may be out-of-date

Developer technologies | Visual Studio | Testing
asked 2022-01-26T02:03:00.2+00:00
NyNative 21 Reputation points
accepted 2022-01-26T17:06:44.91+00:00
NyNative 21 Reputation points
1 answer

Writting Unit test for SQLDataReader

Below is the code which I want to write the unit test. If create the mock object for SqlDataReader - its throwing an error "Parent does not have a default constructor. The default constructor must be explicitly defined.'" Testclass also…

Developer technologies | Visual Studio | Testing
Developer technologies | C#
asked 2022-01-26T13:06:39.137+00:00
Ramya Gollapudi 1 Reputation point
answered 2022-01-26T15:37:25.407+00:00
Michael Taylor 60,346 Reputation points
0 answers

Under scenarion folder Instead of 'Test Name' displaying '.dll' in visual studio 2019

Open the loadtest -> the scenarios present in the load test will not list the name of the webtest – instead it just says the .dll file name.

Developer technologies | Visual Studio | Testing
asked 2022-01-24T03:44:32.46+00:00
Vignesh Nallamuthu 1 Reputation point
commented 2022-01-25T09:36:52.233+00:00
Tianyu Sun-MSFT 34,456 Reputation points Microsoft External Staff
2 answers

Does it make sense to use an Azure Function to run integration tests?

Important disambiguation: Here I am NOT trying to test my Azure Function. Rather, I am investigating the possiblity of using an Azure Function to test my other code. I am developing an Azure web application in C#. I want to have really good coverage…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,952 questions
Developer technologies | Visual Studio | Testing
asked 2022-01-20T12:42:00.05+00:00
Claus Appel 1 Reputation point
answered 2022-01-24T15:07:34.407+00:00
sadomovalex 3,636 Reputation points
0 answers

run powershell on target machine task is over but it still continues to run. How shall i end it ?

I am trying to run a powershell script which triggers a python script for testing using selenium. Once my testing is ending and giving lastexitcode as 0, the powershell task on devops should also end but it still continues to connect to virtual machine.…

Developer technologies | Visual Studio | Testing
asked 2022-01-10T16:39:59.68+00:00
Rajvi Dalal 1 Reputation point
commented 2022-01-12T07:01:37.777+00:00
Rajvi Dalal 1 Reputation point
1 answer One of the answers was accepted by the question author.

Find Test Cases associated with a Test Suite in Dev Ops

I ran a query to find all Test suites in our current sprint. When I click on a test suite, it doesn't take me to the list of test cases in that suite. Is there a way to click on a test suite from the query to find the test cases? I have a test suite…

Developer technologies | Visual Studio | Testing
asked 2022-01-07T19:46:10.28+00:00
Amy Petrone 21 Reputation points
accepted 2022-01-09T22:28:12.8+00:00
Amy Petrone 21 Reputation points
0 answers

Unable to generate any tests

Selecting code and choosing "Create Unit Tests" responds with the above error message in the status bar. Have written over a thousand unit tests over the past several years with no issue. All existing tests run. VS 2012 Premium Update 5, .Net…

Developer technologies | Visual Studio | Testing
Developer technologies | Visual Studio | Other
asked 2022-01-06T20:09:45.743+00:00
Rob Hull 1 Reputation point
commented 2022-01-07T08:19:38.957+00:00
Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Does a unit text need a Main( )

Dear All, I am a C# beginner. I copy from YouTUBE (https://www.youtube.com/watch?v=HYrXogLj7vg), it shows an error "Program does not contain a static 'Main' method suitable for an entry point". My question is does a unit text need a…

Developer technologies | Visual Studio | Testing
Developer technologies | C#
asked 2021-12-28T10:53:29.703+00:00
BenTam 1,781 Reputation points
accepted 2021-12-29T13:56:22.123+00:00
BenTam 1,781 Reputation points
0 answers

What type of tests should I use for my CRUD RestAPI project?

Hi there! I'm working on simple and templated RestAPI project with SQL and Tests. Resently I've done my integration tests and I would like to also create a unit tests for this project. Is it right that I'll create a unit tests for a project with SQL, or…

Developer technologies | Visual Studio | Testing
asked 2021-12-23T23:26:59.177+00:00
sodamnfoolish 1 Reputation point
commented 2021-12-24T04:35:59.423+00:00
Tianyu Sun-MSFT 34,456 Reputation points Microsoft External Staff
1 answer

Visual Studio 2022 ( Performance - Load Testing) - Business Central 365

Subject :- Visual Studio 2022 ( Performance - Load Testing) - Business Central 365 Hello , I would like to know which version of visual studio load test will be feasible for ERP Business Central 365 -> I have tried with the trial version…

Developer technologies | Visual Studio | Testing
asked 2021-12-22T12:38:21.27+00:00
Ragul Vishvakumar Vijaya Kumar 1 Reputation point
answered 2021-12-23T06:35:22.503+00:00
Tianyu Sun-MSFT 34,456 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

Getting The unit test adapter failed to connect to the data source or to read the data erro while executing test cases using ADO Pipeline

I am using Test data from ADO test cases. While executing the Test cases suing ADO pipeline task. After every 6-7 days I am getting error - "The unit test adapter failed to connect to the data source or to read the data." For temporary…

Developer technologies | Visual Studio | Testing
Developer technologies | .NET | Other
asked 2021-12-21T05:53:23.743+00:00
ADO User 21 Reputation points
accepted 2021-12-22T09:58:31.083+00:00
ADO User 21 Reputation points
0 answers

Partial Code Coverage in Google test for ASSERT and EXPECT

I have the following sample piece of code in google test project: TEST(methodName, testcase) { EXPECT_EQ(1, 1); EXPECT_TRUE(true); } When I analyze code coverage in visual studio 2019 enterprise, I am getting partial code coverage …

Developer technologies | Visual Studio | Testing
Developer technologies | C++
asked 2021-12-15T09:34:12.213+00:00
NewCodee 1 Reputation point
commented 2021-12-20T01:48:09.1+00:00
Tianyu Sun-MSFT 34,456 Reputation points Microsoft External Staff
1 answer

How to close a dialog from a unit test in c#?

[TestMethod] /// <summary> /// Tests Whether the line no setup is /// opening or not from spec view /// </summary> /// <remarks> /// </remarks> public static void SetSizeSpecLineNumber() { bool actual =…

Developer technologies | Visual Studio | Testing
Developer technologies | C#
asked 2021-12-17T12:52:54.59+00:00
arun 1 Reputation point
answered 2021-12-17T14:38:10.6+00:00
Adam Jachocki 46 Reputation points
0 answers

VSTO Globals Returns Null When Called Across Projects

I have a VSTO workbook which has been developed over the last few years, there is a lot of code in it. We are migrating this to a cloud based solution. I want to develop some automated testing to ensure the results from the cloud solution match…

Microsoft 365 and Office | Development | Other
Developer technologies | Visual Studio | Testing
Microsoft 365 and Office | Excel | For business | Windows
Developer technologies | Visual Basic for Applications
asked 2021-12-11T13:09:31.743+00:00
Erik P 1 Reputation point
commented 2021-12-11T20:16:15.52+00:00
Viorel 122.9K Reputation points
0 answers

How to do xUnit testing of Asp.net Core WebApi with Interface class

I'm playing unit testing my api is developed with interface classes. they are developed through auto generated controllers by selecteting template of Api with EF. So is there any option to perform unit testing without interface class. Ive seen so many…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | Visual Studio | Testing
asked 2021-12-04T12:57:52.917+00:00
Prathamesh Shende 441 Reputation points
commented 2021-12-04T13:07:12.447+00:00
AgaveJoe 30,126 Reputation points
0 answers

GPU Usage performance tests run from the command line

Hi Team, I've been trying to run GPU Usage tests from a command line for a while now. So far I've been able to generate .diagsession files from agent configuration files by following the steps described in "Measure application performance from…

Developer technologies | Visual Studio | Testing
asked 2021-11-25T08:26:16.663+00:00
Maja 1 Reputation point
commented 2021-12-02T09:18:20.997+00:00
Maja 1 Reputation point
1 answer

Factors affecting the size of pdb files

I want to know what factors are related to the size of the pdb file (source code size? header file size? dll file size?). Is there a related approximate formula or ratio? Or how to compress pdb file? Thanks in advance

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Testing
Community Center | Not monitored
asked 2021-11-30T07:20:15.713+00:00
dylan_fy 1 Reputation point
answered 2021-11-30T12:02:01+00:00
RLWA32 49,666 Reputation points
0 answers

(.Net Core) In MSTest unit test method, how to execute the Startup class so that the static property of a Service is initialized when calling Controller method?

Hi, I am using MSTest Framework in Unit Tests project (.NET Core 3.1) for testing Web API project (.NET Core 2.1). In the Web API project, in Startup class, a static property of a Service is initialized & then used in a Controller method. In…

Developer technologies | Visual Studio | Testing
Developer technologies | C#
asked 2021-11-29T17:18:50.967+00:00
Vivek Gupta 1 Reputation point
commented 2021-11-30T07:57:11.24+00:00
Vivek Gupta 1 Reputation point
1 answer

VS2022 and Coded UI Maps - Cannot open UI Maps made in prior versions of VS

In VS2022, I cannot open UI maps that were made in my SLN in prior versions of VS. The maps were opening fine in VS2019, but when I try to open them in VS2022 (double-clicking them in the solution explorer), the following dialog appears: If I…

Developer technologies | Visual Studio | Testing
asked 2021-11-23T14:47:56.363+00:00
ORNS 1 Reputation point
answered 2021-11-23T16:01:01.723+00:00
Michael Taylor 60,346 Reputation points
1 answer

Linking an object file to a Test Project

I want to link an object file to a native test project (all C++ if that matters). This is well documented. See for example Use the Microsoft Unit Testing Framework for C++ in Visual Studio. Unfortunately I can't make it work. I always get a linker…

Developer technologies | Visual Studio | Testing
asked 2021-11-04T04:15:36.06+00:00
NumericalFunctional 21 Reputation points
commented 2021-11-23T10:04:07.633+00:00
PengGe-MSFT 3,381 Reputation points