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 ...
501NotImplemented's user avatar
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 ...
kirbycope's user avatar
  • 4,090
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 ...
FDM's user avatar
  • 5,904
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 ...
FDM's user avatar
  • 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. ...
Brian McCarthy's user avatar
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 ...
Michael Freidgeim's user avatar
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"] ...
Bharadwaj Pendyala's user avatar
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 ...
AdrianHHH's user avatar
  • 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 ...
Kate Paulk's user avatar
  • 31.6k
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"))...
Bharat Mane's user avatar
  • 6,785
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 ...
Kate Paulk's user avatar
  • 31.6k
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 ...
JNygren's user avatar
  • 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 ...
Dhiman's user avatar
  • 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-...
ChathuD's user avatar
  • 2,149
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 ...
DEnumber50's user avatar
  • 1,190
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-...
Niels van Reijmersdal's user avatar
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. ...
kirbycope's user avatar
  • 4,090
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....
hxin's user avatar
  • 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 ...
Kate Paulk's user avatar
  • 31.6k
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 ...
Kshetra Mohan Prusty's user avatar
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.
João Farias's user avatar
  • 10.9k
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.
VSD's user avatar
  • 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 ...
501NotImplemented's user avatar
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 ...
Bouke's user avatar
  • 202
2 votes

XUnit test standard output gets truncated on Visual Studio

You need to add an Environment Variable to the machine you are running the tests on. The variable name is _TestExplorer_TestResultMessageMaxLength_ and set the value to however many characters you ...
LightningRider's user avatar
2 votes

Getting "element not interactable: element not interactable" error when trying to upload file using Webdriver.IO

Changing the method from "setValue" to "addValue" helped me resolve the issue. await fileUpload_var.addValue(remoteFilePath)
Seema Nair's user avatar
1 vote

VS 2015: Selenium webdriver reference isn't found

Try Nuget manager or use Package Manager Console with below command: Install-Package Selenium.WebDriver -Version 2.53.1
ChathuD's user avatar
  • 2,149
1 vote

Selenium in VS 2015/C#: Problems with ordered unit test

UPDATE to account for updates to the question: This is a function of the way Microsoft test suites work (there is more information available at https://msdn.microsoft.com/en-us/library/ms182475.aspx)....
Kate Paulk's user avatar
  • 31.6k
1 vote

VSTS 2012 Load/Web Test: Transactions not showing up in the tables tab (Empty table)

Unfortunately, if the table is empty then the data for that table is unlike to be recoverable. You could look in the database and see if one of the tables has the data. The transaction table will ...
AdrianHHH's user avatar
  • 1,453
1 vote

Selenium Webdriver: Finding elements and contents in deep structures

There are multiple ways - You can choose one of the below. Use Firebug, which will help you in finding xpath quickly. Check the static value in parent nodes, and traverse through it. If the xpath is ...
mashkurm's user avatar

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