9 votes
Accepted

API Testing tools in C#

You can use the combination of any unit testing framework (like NUnit, MSTest, XUnit) with additional nuget packages for the work with REST API itself RestSharp (http://restsharp.org/) Probably the ...
6 votes

API Testing tools in C#

Writing an API test in Visual Studio can be done with: NUnit or MSTest as your Test Runner ** NUnit and the TestAdapter are available on Nuget An http client, like .Net's HttpClient ** This is in the ...
  • 4,070
5 votes
Accepted

Selenium C# - How to wait with WebDriverWait using the element as parameter instead of a locator?

The easiest way is to create your own ExpectedConditions class with methods accepting a WebElement as parameter, for example: Wait.Until(MyConditions.ElementIsVisible(element)); With the ...
  • 5,904
4 votes
Accepted

Load testing selenium scripts in visual studio

I would recommend looking into Visual Studio load test tool. You will need an Ultimate license. This tool will make it much easier to do all the things necessary to create a useful performance test ...
4 votes

Coded UI vs Protractor

If it is an Angular application I would go for Protractor EDIT: Protractor was made for Angular Apps. You don't have deal with elements not being visible yet due to page loads. Protractors deals ...
  • 193
4 votes
Accepted

Parallel Execution in Selenium with Visual Studio

Disclaimer: the answer is assuming you're using the MsTest unit test framework. Solution 1 The easiest way to run parallel tests is simply to activate this flag here: An important note here: this ...
  • 5,904
4 votes
Accepted

What are the differences between Microsoft Test Manager MTM, Team Foundation Server TFS & Visual Studio Test Professional VSTS?

If you are a programmer you need Microsoft Visual Studio Enterprise which is $5,999/user/first year and includes Team Foundation Server online access & Microsoft Test Manager stand alone app. ...
3 votes

How to choose between tcm.exe, mstest.exe and vstest.console.exe

There are a few pages that describe the differences between newer VSTest.Console.Exe and older MSTest.exe. Choose and configure a test runner VStest support recent features, including Fakes. However ...
3 votes

Selenium Webdriver: Finding elements and contents in deep structures

In order to find the specific h2 tag you are trying to locate you can find them in below ways: Through name as an element locator. Using relative xpath syntax is : //tagname[@attribute="value"] ...
3 votes

How To Move Test Explorer Window To Vertical Bar In Visual Studio 2015

Just drag the tab (the bit that has the words "Test explorer") towards the middle of the window. As you drag it, expect to see a wireframe of possible locations and drag the tab to the wanted place in ...
  • 1,453
3 votes
Accepted

What are the Differences in Test Management with TFS vs MTM for 2017 vs 2012?

A lot. The last I heard, MTM will be deprecated once the test-specific functionality of the TFS web portal is available. Create backlog items (in TFS) - the UI is a lot better, and there's been a ...
  • 31.2k
3 votes

Javascript : click() method doesn't click the link

You can use XPath, linkText or className to locate your Link object. By XPath: driver.findElement(By.xpath("//li[@title='This is test']")); By linkText: driver.findElement(By.linkText("TestLink"))...
  • 6,769
3 votes
Accepted

TFS Selenium C# Visual Studio 2017

First up, your boss is going to want to see this information in a convenient form. TFS allows this without much extra work on your part. Pro You can use TFS (if it's a recent enough version) to set ...
  • 31.2k
2 votes

Coded UI vs Protractor

Have you looked into TestComplete? We use it at my company and have found it to be very versatile and the SmartBear folks are excellent to work with. http://smartbear.com/product/testcomplete/...
2 votes

Where can I find ".browser" files for the latest browsers

Although I have never used the Visual Studio load test functionality I think it works in the following way: You specify some browser types and the load testers does HTTP calls with those browser user-...
2 votes
Accepted

redirect containing + is not being encoded properly by visual studio

I had got the same issue with web performance test in Visual Studio 2013. Some redirects in my application contains a white space in their url <h2>Object moved to <a href="/Error/SubErr.aspx?...
2 votes

Web performance test does nothing

The answer was buried in some MSDN documentation that was challenging to reach via Google. Also ... don't forget to enable the test tool. Might have to check a couple places.
2 votes

How to store security certificate exception for webtest

I found the answer to my own question. Hope this helps others. What is needed is to force the underlying System.Net ServicePointManager to negotiate downlevel security. This can be done in a webtest ...
  • 41
2 votes
Accepted

Transaction Response Times in Visual Studio

For Transaction Response Time to populate, you will need to create Transactions. Once you have your .webtest (let say after recording it via VSTS 2013), then in the webtest file you will need to group ...
  • 4,580
2 votes

Alternative to Ranorex that integrates in Visual Studio

CodedUI seems to be the only solution. Because Coded UI is the new testing framework from Microsoft so,it will 100% support the visual studio too. And; support SAP-No idea support Java applications-...
  • 2,099
2 votes

VS 2015: Selenium webdriver reference isn't found

The project reference for "WebdirverTest" in the UnitTest project's references does not include any libraries that are in "WebdirverTest", it only includes references to classes within that project. ...
  • 4,070
2 votes
Accepted

C# + Visual Studio : Can I create multiple selenium test through unit test project type in one solution?

Functional tests need a way to get run in batches. The unit-testing frameworks help with this, also they include assert functions to verify results. So the unit-testing framework is reused as test-...
2 votes

How to get test results data to members of my team that don't have a Visual Studio License?

Visual Studio offers a lot of different ways to grab the summary information from the application and paste it into other microsoft programs like excel/word. I would recommend going to Paste into word ...
  • 1,190
2 votes
Accepted

How to use .xlsx Excel files as Data Source for Coded UI test?

Here is the Attributes: Data Source Types and Attributes Excel, ".xlsx" format [DataSource("System.Data.Odbc", "Dsn=Excel Files;Driver={Microsoft Excel Driver (*.xls)};dbq=|DataDirectory|\\data....
  • 523
2 votes

What is the max user load that can be taken by VS 2013 for a load test

It depends. VS2013 does not place any limits on the number of virtual users. That said, there are trade-offs. You may want to use distributed load tests if: Your application or the test processing ...
  • 31.2k
2 votes

C# Selenium - How to write a conditional statement with multiple elements/xpaths

I am not a C# guy, I can help you with a basic idea how you can achieve this with pseudo-code, then you can translate the same in C#. Add all the check boxes to list. Loop thru the list to check ...
2 votes

Selenium with C#

The standard package manager for C# / .Net is NuGet More details on the setup and management process for Visual Studio here.
  • 10.2k
2 votes

Running sql query via automation tests in Visual studio vs SQL server management studio returns different results

I was able to resolve this by embedding a CAST(expression as varchar(max)) in my sql query and then run the query via automation test in visual studio.
  • 97
2 votes
Accepted

How to get Visual Studio to break on Selenium Exceptions?

VS lists the exceptions from the CLR or the languages that are supported by IDE. Selenium is a 3rd party library and therefore is not present there. In short - you can't manually add it to the IDE ...
2 votes

Install Microsoft Test Manager Tool only

Microsoft Test Manager isn't part of the free Visual Studio Community edition and has to be paid for. It also isn't part of Visual Studio 2019 anymore. Seems Microsoft decided moving test case ...
  • 202

Only top scored, non community-wiki answers of a minimum length are eligible