Questions tagged [visualstudio]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 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=&...
user avatar
0 votes
0 answers
46 views

Unit Testing in C++ CLI Windows Forms Application

I have built an application using C++ CLI in Windows Forms Application. I need to create unit tests for this. I tried searching everywhere on the internet but nowhere there is a way to do it. ...
user avatar
-1 votes
2 answers
69 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 ...
user avatar
1 vote
1 answer
234 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: ...
user avatar
1 vote
1 answer
1k 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?
user avatar
0 votes
1 answer
2k 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('...
user avatar
0 votes
1 answer
262 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 ...
user avatar
0 votes
1 answer
106 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....
user avatar
  • 3
0 votes
1 answer
69 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 ...
user avatar
  • 97
0 votes
1 answer
87 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 ...
user avatar
  • 505
0 votes
1 answer
55 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 !
user avatar
  • 505
1 vote
0 answers
209 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 ...
user avatar
1 vote
2 answers
458 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: ...
user avatar
-1 votes
2 answers
59 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 ...
user avatar
2 votes
1 answer
248 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()); ...
user avatar
  • 23
2 votes
1 answer
3k 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....
user avatar
  • 21
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="...
user avatar
  • 209
1 vote
1 answer
417 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 ...
user avatar
0 votes
0 answers
275 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:...
user avatar
1 vote
2 answers
697 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; ...
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 ...
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 ...
user avatar
13 votes
4 answers
25k 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 ...
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 ...
user avatar
1 vote
1 answer
111 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 ...
user avatar
1 vote
2 answers
2k 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 = ...
user avatar
1 vote
3 answers
3k 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;...
user avatar
  • 11
0 votes
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, ...
user avatar
  • 163
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 ...
user avatar
-2 votes
1 answer
118 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 ...
user avatar
  • 505
3 votes
2 answers
203 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 ...
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 ...
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 ...
user avatar
4 votes
1 answer
5k 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 ...
user avatar
  • 505
4 votes
2 answers
13k views

Parallel Execution in Selenium with Visual Studio

How to run test scripts in parallel for Selenium WebDriver with Visual Studio and C# ?
user avatar
  • 463
0 votes
2 answers
286 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 ...
user avatar
5 votes
1 answer
648 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 ...
user avatar
  • 1,453
2 votes
1 answer
538 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: ...
user avatar
  • 1,347
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[...
user avatar
  • 73
1 vote
1 answer
157 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.
user avatar
  • 463
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 ...
user avatar
  • 523
0 votes
1 answer
32 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 ...
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, ...
user avatar
  • 241
1 vote
1 answer
111 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 ...
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 ...
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 .
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 ...
user avatar
5 votes
4 answers
660 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 ...
user avatar
1 vote
1 answer
215 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 ...
user avatar
  • 176
1 vote
0 answers
45 views

Which test method is running/executing at the moment?

I'm on Appium with C#, I have 60 test methods written on different classes. I'm running the tests via Visual Studio test explorer. When I click run all test button at the "Test explorer" it will ...
user avatar
  • 2,093