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 ...
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 ...
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
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 ...
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 ...
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 ...
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"))...
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 ...
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 ...
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 ...
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
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
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. ...
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 ...
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....
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 ...
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.
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.
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 ...
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)
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 ...
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 ...
1
vote
Selenium Webdriver: Finding elements and contents in deep structures
Locators are best used with the PageObject pattern and the @FindBy annotation.
Selenium WebDriver provides a number of different locator strategies and which you choose depends largely on the context. ...
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
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
visualstudio × 118automated-testing × 32
selenium-webdriver × 30
c# × 29
load-testing × 24
performance × 18
mtm × 7
tfs × 7
browser-automation × 5
test-management × 4
selenium-webdriver-c# × 4
mstest × 4
manual-testing × 3
coded-ui-tests × 3
specflow × 3
tfs2010 × 3
jmeter × 2
test-automation-framework × 2
xpath × 2
appium × 2
protractor × 2
unit-tests × 2
tools × 2
android × 2
test-strategy × 2