Skip to main content

Questions tagged [visualstudio]

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Beginning of 2025, what are the most recent/best unit testing frameworks?

Starting next year, I will be assigned writing tests for some new applications, that will be developed by my department (now, I'm working here as a software developer). I would like to prepare myself, ...
Dominique's user avatar
  • 261
0 votes
1 answer
192 views

Can't find a specific element generated in DevExpress

I am attempting to find an element using this code: try { new WebDriverWait(wdriver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementExists(By.Id("messageGrid_TL"))); ...
Majkl's user avatar
  • 473
0 votes
2 answers
1k views

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

Following is the page source of file upload section. Following is my code in Visual Studio Code const remoteFilePath = await browser.uploadFile(filePath); let fileUpload_var = $('//input[@type=&...
Ramkrishna Bhandare's user avatar
-1 votes
2 answers
164 views

New to automated testing (C#, Selenium/Tosca, .NET, Visual Studio)

After working 4 years as manual tester, I now want and have to learn "how to do test automation" after joining a new company. My new team is currently developing a new web app in Visual ...
Sigi Sixx's user avatar
2 votes
1 answer
656 views

XUnit test standard output gets truncated on Visual Studio

When I run Xunit tests via Visual Studio’s Test Explorer and click on the “Output” link, a new tab with the test’s log is opened in Visual Studio. The log is truncated - the following message appears: ...
Abraham E. Mejia's user avatar
1 vote
1 answer
3k views

Install Microsoft Test Manager Tool only

I have Visual Studio Community 2015 on my laptop, but it seems Microsoft Test Manager (MTM) is not installed while installing it. How can I get it alone without reinstalling Visual Studio?
user48019's user avatar
0 votes
1 answer
6k views

How to fix : BoDi.ObjectContainerException : Interface cannot be resolved: TechTalk.SpecFlow.UnitTestProvider.IUnitTestRuntimeProvider('nunit')

I am trying to build task in Azure pipeline. Observed error : OneTimeSetUp: BoDi.ObjectContainerException : Interface cannot be resolved: TechTalk.SpecFlow.UnitTestProvider.IUnitTestRuntimeProvider('...
Narendra Chandratre's user avatar
0 votes
1 answer
837 views

Run series of tests using one browser instance - Selenium web-driver c# i

I developed a series of unit tests in Visual Studio 2019, C# Selenium. How can run back to back with one browser instance? For example, the first test is going through a series of steps and creates a ...
Sarah A's user avatar
1 vote
1 answer
171 views

How to get Visual Studio to break on Selenium Exceptions?

Below are the categories of exceptions that I can choose to break on in Visual Studio (2019). Where should I go to find the Selenium/WebDriver Exceptions? I want to tell VS to break on all OpenQA....
Ken's user avatar
  • 13
0 votes
1 answer
144 views

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

I am running some database automation tests in C#.The results of the same sql query are different in visual studio(executed via automation tests) and SQ Server Management studio(Manually).The ...
VSD's user avatar
  • 97
0 votes
1 answer
210 views

Selenium Is Unable To Locate A Web Element – C#

I get an error message on trying to run this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TechTalk.SpecFlow; using ...
OA345's user avatar
  • 545
0 votes
1 answer
145 views

In Visual Studio 2019, The Name Of The Scenario In Test Explorer Is Different From The Test That I Want To Run

The test scenario in Test Explorer is different from what I have in my V/S Project. I have tried re-starting Test Explorer to no effect. Thanks !
OA345's user avatar
  • 545
1 vote
0 answers
307 views

Visual Studio Standalone Profiling

I'm trying to automate the profiling of a Visual Studio Native C++ Project (2015 and / or 2019). To do so I'm using the standalone profiling tools of Visual Studio VSPerf (and related) and ...
Alphastrick's user avatar
1 vote
2 answers
694 views

How to handle with webdrivers in visual studio code Protractor?

I was getting an error WebDriverError: unknown error: cannot determine loading status from unknown error: missing or invalid 'entry.level' (Session info: chrome=76.0.3809.100) (Driver info: ...
Arslan Khan Afridi's user avatar
-1 votes
2 answers
68 views

Selenium with C#

I am new to C# with selenium and visual studio,I have some experience only in Selenium with java in eclipse. Here my doubt is that in eclipse we used to configure the packages for every new projects ...
swamynathan's user avatar
2 votes
1 answer
311 views

Unable to pass dynamic xpath in repository file?

My code is : for (int z = 0; z < rows.size(); z++) { rows.get(z).findElement(By.xpath("//*[@class='ng-scope'][" + (z + 1) + "]//*[@placeholder='Stop Name']")).sendKeys(shuttleObj.getStopArea()); ...
Samira's user avatar
  • 23
3 votes
1 answer
6k views

Selenium code generates error messages the likes of CS0246 & CS0103

I am getting lots of CS0246 Code error messages in Visual Studio after trying to run the Selenium code below. I have chosen the ASP.Net Core file to programme the code in. The file is called LoginTest....
Dave's user avatar
  • 31
2 votes
1 answer
2k views

What is needed at a minimum to have vstest.console to run using .net 4.6.1 on VS 2017

Sorry if I have asked similar questions. But I went back to basics. I created a simple application in Windows 2017. Unit Test Project (.Net Framework) in .NET 4.6.1. Just one test to see if "test="...
Greg P's user avatar
  • 209
1 vote
1 answer
458 views

TFS Selenium C# Visual Studio 2017

I have recently joined a company and they use TFS. I am an automated tester so I have setup MS Unit framework, selenium and c# within VS2017. I am comfortable in doing this standalone because its ...
Hyper3146's user avatar
0 votes
0 answers
295 views

webtest Request failed: The request was aborted: Could not create SSL/TLS secure channel

I have developed some webtests in VS2017 pointing to a test site which on my local machine run and pass as expected When running these on our test rig I get a "Request failed: The request was aborted:...
LiamHarries's user avatar
1 vote
2 answers
856 views

Can not find getPageSource method in visual studio 2017

I am using Visual Studio 2017 and found that class ChromeDriver does not contains method getPageSource(). Does anybody knows why? using System; using System.IO; using OpenQA.Selenium.Chrome; ...
Marcos Guerrero Wilson's user avatar
0 votes
1 answer
2k views

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

I have a problem and having trouble to finding a solution. Problem Statement: Navigate to a webpage and check if three checkboxes are selected. If not, I'd like to select them (if only one is ...
hungryhippos's user avatar
1 vote
1 answer
1k views

How to use the page object model pattern in C# without deprecated libraries

What can I use as an alternative option to the soon-to-be deprecated OpenQA.Selenium.Support.PageObjects library? I still want to make sure I encapsulate the elements and be able to assemble the ...
Ezequiel Marquez's user avatar
13 votes
4 answers
28k views

API Testing tools in C#

I'm looking at writing at automated tests to cover regression testing in respect of Restful API's. I have familiarity with how to do this in Java using Rest Assured, however the company I currently ...
Andy Tilston's user avatar
0 votes
1 answer
1k views

Selenium with C# "Element is no longer valid" exception being thrown when repeating steps

I am repeatedly getting a very annoying problem when automating my test cases using Selenium/C# in Visual Studio. This test is designed around validating search criteria text. In order for me to test ...
hungryhippos's user avatar
1 vote
1 answer
152 views

White Label Website Automated Testing

My company is in the process of setting up a white label website, in which there are slightly different user journeys. These journeys, for the most part, use the same functionality but I'm wondering ...
Matthew Jones's user avatar
1 vote
2 answers
3k views

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

I have link with below properties on my Webpage: <li class="XXXX" title="This is test"> TestLink </li> I am trying with below code for clicking on above link with Javascript: var a = ...
Gitanjali's user avatar
1 vote
3 answers
4k views

How to automate KendoUI dropdown with selenium webdriver and C#

Cannot make it work, need help, I don't know how to automate KendoUI drop-down with Selenium using C#. Sendkeys doesn't work for KendoUI. Here is my HTML: <div style="background-color: #e6e6e6;...
Sarah's user avatar
  • 11
1 vote
1 answer
2k views

Best practices for exception handling with Selenium

I've been searching on google for best practices regarding exception handling, however I did not have much success besides using try-catch. My framework is set with a EventFiringWebDriverwhich, ...
elgato's user avatar
  • 173
2 votes
2 answers
3k views

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

What are the Differences in Test Management with Team Foundation Server, Visual Studio, & Microsoft Test Manager for 2017? testing activities processes as of 2012 are: Create backlog items (in ...
Brian McCarthy's user avatar
-2 votes
1 answer
140 views

Creating A Folder In Visual Studio 2015 Adds It As A Sub-Folder Of An Existing Folder [closed]

New folder is not displayed as a separate folder. Instead, it is created as a sub folder of an existing one Please, has anyone encountered this problem ? In M/S Visual Studio, a new folder is created ...
OA345's user avatar
  • 545
3 votes
2 answers
212 views

Environment parameters for VSTS Cloud-based load tests

We're developing a web service using Azure and VSTS and I'd like to run some load tests as part of the CI/CD process. However, I'm struggling with being able to set the service url for our various ...
Ross Aubrey-Smith's user avatar
1 vote
1 answer
2k views

How can I test iOS & Android mobile applications using Microsoft Visual Studio?

Here I have some test cases on Microsoft Test Manager (MTM), and those test case I have to execute on a real iPhone device but when I use Run & Record test of MTM to execute test cases its record ...
Nitin Rastogi's user avatar
6 votes
1 answer
6k views

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

Recently I got Visual studio Enterprises Subscription from my company and I was asked to prepare the system for testing, With the help of support team somehow I manage to set up the system but during ...
Nitin Rastogi's user avatar
4 votes
1 answer
6k views

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

Does anyone know how to move the Test Explorer window to the "small vertical bar" in MS Visual Studio pls ? I am using MS Visual Studio 2015. I have attached a screen shot. I have checked the ...
OA345's user avatar
  • 545
4 votes
2 answers
14k views

Parallel Execution in Selenium with Visual Studio

How to run test scripts in parallel for Selenium WebDriver with Visual Studio and C# ?
Majkl's user avatar
  • 473
0 votes
2 answers
298 views

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

We want to load test a web application for 550 users using VS 2013 ultimate. A machine is a high-end machine with 32GB RAM and 6 cores processor. Is one machine enough for a load test of 550 users? or ...
SriAnjani's user avatar
5 votes
1 answer
679 views

IP Addresses of agents used when load testing

How can I find the IP addressses used by the agent computers in a Visual Studio load test? When using Microsoft's cloud based load testing service I see the status message that This load test will run ...
AdrianHHH's user avatar
  • 1,453
2 votes
1 answer
569 views

Unable to run tests for Appium on Visual Studio 2015 due to Timeout

I am trying to run my script on Appium and I always fail tests because of an error on my unit test: Test Name: Addition Test FullName: AppiumTest2.UnitTest1+BasicScenarios.Addition Test Source: ...
Marj's user avatar
  • 1,357
7 votes
2 answers
24k views

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

I have a big problem, and I don't find the solution. I have 2 classes: Components_BI.cs with this component: [FindsBy(How = How.XPath, Using = "//*[@id='body-container']/div/div[1]/div/div/button[...
Vajdy's user avatar
  • 73
1 vote
1 answer
162 views

Tests are not running in order

Why are tests not running in the order that is set inside test suite in Visual Studio Online? We have Microsoft Visual Team Services builds, Visual Studio Test Agent is deployed to virtual machine.
Majkl's user avatar
  • 473
3 votes
1 answer
6k views

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

I want to use ".xlsx" format Excel file as Data Source in my hand coding Coded UI test. The best information I get is found in MSDN: Creating a Data-Driven Coded UI Test, which has useful information ...
hxin's user avatar
  • 523
0 votes
1 answer
36 views

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

I'm not asking if the load and web testing tool is good. Please don't start a flame war. I have load test results that I been to make available to others, some with versions of VS without load ...
BanksySan's user avatar
  • 151
2 votes
1 answer
1k views

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

I'm using unit tests in VS to create my tests, and naturally I ran into the challenge that unit tests should not be dependant on the run order. However, since my tests are actually functional tests, ...
Hfrav's user avatar
  • 241
1 vote
1 answer
118 views

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

I just ran a test for around 150 users for almost over an hour. After the test I find that the transaction response times are not generated in the Tables tab. I can however notice them on the summary ...
VARUN MANOHARAN's user avatar
3 votes
5 answers
5k views

Selenium Webdriver: Finding elements and contents in deep structures

I've got a fair basic grasp about how Selenium works, and I'm comfortable at a beginning level using it in VS and C#. However, when it comes to finding things in pages which are not straight-forward ...
Hfrav's user avatar
  • 241
-1 votes
1 answer
1k views

For Test Scripts , Coded UI Option not available in Visual studio 2015 [closed]

I have tried installing VS2015 community edition and professional edition both. In the tutorials , there is a option for CodedUI available in Visual C# > Test .
user3251882's user avatar
3 votes
1 answer
2k views

Issue executing Selenium/C# Test script via MS Test & Command Line Arguments

I have created my test script using Selenium 3, C# and for the browser Firefox v49. When I run my test using Visual Studio 14 it works properly and executes accordingly, but I want to use MS Test ...
user3701556's user avatar
5 votes
4 answers
676 views

Looking for an alternative testing software

A few years ago we converted from Excel spreadsheets to TFS 2013. MTM (Microsoft Test Manager) was bundled at the time and had out of the box compatibility with TFS. Recently we have been looking at ...
user23076's user avatar
1 vote
1 answer
222 views

WebTest Plugin not used when the Webtests are in a folder

Following a problem I had with TLS connection I found out that when a WebTest is located inside a folder it wont use the custom WebTestPlugin that is set in the WebTest. Is there a fix for this ...
Amorphis's user avatar
  • 186