Tag Info

Hot answers tagged

9

To start let me be completely transparent and state that I do work at Microsoft. However, in my role I nor my team uses Coded UI, but I do teach the basics of coded UI in some of my classes. Rather than comparing the features of each tool set I would recommend including other factors in your decision such as: As a general rule of thumb we try to minimize ...


5

you could use a plugin, although there is a simpler way. You can create a CSV file with the list of usernames and passwords you want to iterate through and then create a datasource. When you execute the web test, it will iterate through all of the items in the CSV file, one line for each test execution. Based on what you outlined above I would probably ...


5

Just use Coypu. It is a wrapper for Selenium/Watin etc., so you can easily swap to another framework later on, and it's heavily maintained. I wouldn't use any other layer. Much more maintainable. As it is available via Nuget und references the Nuget Selenium package, you always stay up-to-date via a simple UpdatePackages from within VS. Combine that with ...


5

I am using Selenium 2/Webdriver with Visual Studio and MSTEST. Really MSTEST and NUNIT have pretty much equivalent functionality. Unless you want to really get crazy, either should have everything you need for the purposes of executing your automated tests. MSTEST is the command line version of the built in test harness for visual studio. One limitation ...


4

Currently, my setup is Visual Studio 2010, Selenium 2, SpecFlow or StoryQ, and NUnit. Since Visual Studio is what I'm most comfortable in, I wouldn't have it any other way. Selenium/Webdriver's libraries work great in there as well. As far as NUnit within, it also works great. Typically, for simiplicity sake, I create each class as it's on test fixture. ...


4

To start with, according to the MSDN documentation I found with a quick search, each tool is optimized for a specific kind of test automation. tcm.exe - Team Foundation Server/MTM test cases associated with automation - this runs the test cases, rather than directly running the tests and automatically updates the test case status (I think - I'm not that ...


3

Like any other form of automated test, it depends on how you're invoking them and the environment you need to run. If you need a UI user session (which is the common setup) then you're probably not going to be packaging them with the unit tests. Some of the factors to consider are: CodedUI tests are slower than unit tests because they interact with the ...


3

If you have to support multiple versions for your software product I would keep the tests with in the same repository. Then the tests will version with the application itself. Which will make you able to run the tests for older versions with ease. Also you will want your developers to run and maintain the tests. For example when they need to change the ID ...


3

The click I was simulating had a js onclick event to change the page, obviously vsts doesn't support javascript. So to get round this I removed the request to click and then added a get request which mimic'd what the onclick event was trying to achieve.


3

I would suggest getting the latest Selenium2(webdriver) release from http://seleniumhq.org/download/ The following are the dll's needed to use webdriver in a solution Add these from the package as a reference in your solution explorer: webdriver.dll Castle.Core.dll, Ionic.Zip.dll, Newtonsoft.Json.Net35.dll, Selenium.WebDriverBackedSelenium.dll, ...


3

I have used Coded UI Tests, but used Selenium Webdriver much more extensively. In my answer I will completely ignore the record and playback capabilities of both because I would not advocate using either except to familiarize yourself with the tool. In addition, I won't comment on features that one has vs the other because they are very nearly identical. ...


3

Well Coded UI Tests are hardly "new", though they were new to me as a framework when I was starting to use them early on. I put them in the category of "record and playback" but with extensibility they do add more on once you are able to get some abstraction in your tests and be able to modify the scripts to become more like a proper coded and programmed ...


3

Lyndon is half right. To clarify - Visual Studio web performance tests (coded or otherwise) will not ever execute JavaScript - either in a browser or by any other means. The article Anicho references states "You can use coded a Web performance test to simulate the logic typically performed by JavaScript" You can craft them however to execute xmlhttp ...


3

web test Plugins was my solution I can write some code to iterate or go through a data set quite easily. Example: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.VisualStudio.TestTools.WebTesting; namespace SampleRequestPlugins { public class DynamicUsername : WebTestPlugin { static int ...


2

There's a couple of ways that you could do this. The easiest would be to create a variable that the value goes into when you first get it. Because there's bound to be (and have been) cases where they need to be separated out a bit more, I typically write the value into an xml file that is used as a data source in the tests that will use this value. ...


2

The simple answer is yes. You can right click on the test case in the web test editor and select "Add call to web test" and it will call that web test. Any context parameters that are required by your "Login" test can be set in the other test or in the load test and will be used by Login when executed.


2

it might help someone. As My mistake assuming that visual Nunit will show the test in test View but it will show tests by selecting View-> otherwindows-> Visual Nunit. Then It will display all your tests. Also If you want to see all you nunit tests in test View just like mstest then you have to install nunit for VS.


2

Have you looked at using a coded web performance test. Haven't tried this before, but hoping to get to trying this out next week. Microsoft specifically mentions that it is able to execute javascript.


2

TFS=Team Foundation Server. All things microsoft that require storage and integration get run through this. VS=Visual Studio. All things that are "visualized" are pushed through this. MTM=Microsoft Test manager. This manages all tests. So with this then TFS stores everything and synchronizes it. VS is a method to visualize things in order to interact ...


2

I would recommend JMeter as: Price JMeter: free and open source MSVS: Test Professional costs around $2000 per developer. OS supported JMeter: any MSVS: Windows only Protocols supported JMeter: HTTP, FTP, JDBC, SOAP, TCP, JMS, SMTP, POP3, IMSP MSVS: HTTP However if your company has Microsoft products based development infrastructure, like Team ...


2

Use profile setting for browsers: firefoxProfile.setPreference("browser.helperApps.neverAsk.saveToDisk","text/csv"); Browser initialize FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("browser.helperApps.neverAsk.saveToDisk","text/csv"); IWebDriver webDriver = new FirefoxDriver(profile);


2

I also suggest reading these great MSDN docs: Binding a Data Source to a Web Performance Test How to: Set Credentials on a Web Performance Test You can set the credentials for any Web site that uses basic authentication or Integrated Windows authentication. Web sites that contain personal information often require user authentication before ...


2

Are you using Visual Studio Express? If so, perhaps the workaround described in this SO thread will work for you: http://stackoverflow.com/questions/13348613/nunit-runners-via-nuget-on-visual-studio-2012-express-doesnt-work Edit: The selected answer, which reveals the limitation of Visual Studio Express + Nunit As I've found out Visual Studio Express does ...


2

I assume your web application is for external customers (so your users can use web app in many browsers and operating systems outside of your control). Which is very interesting challenge - exactly what we are doing :-) You are excellently positioned to use new future W3C standard for browser automation, Selenium Webdriver (Se 2). (In a way, you ...


2

A lot depends on what you want the front-end automation to do. Given that you've got a lot of web forms with code behind, I'd honestly consider starting with the unit test framework built into Visual Studio, and using that to test the data handling (I'd recommend taking a look at Channel9's TechEd videos for an idea of what you can do with Visual Studio ...


1

This is how I approached a similar situation in validating a PDF creation service. Convert the doc -> PDF using an automated method you control. This will be your oracle. Use your conversion process under test Do a file comparison between the two PDFs That method seems to me the easiest to implement, but it may not meet your test needs. Another ...


1

In my instance I have been doing Coded UI for about 2 years and have found that Coded UI does more in the background for you than some other products. i have also used QTP and Rational Robot and some free tools. The default Object and step repository is a bit of a pain and I would recomend abstracting it out, mainly because it tries too hard to recognise ...


1

You can have more than one ".testsettings" file. On a recent project we used three Local.testsettings - for test development and low load tests driven entirely from one computer. Agent.testsettings - for testing with a controller plus two agents, for bigger loads. Cloud.testsettings - for running tests on Visual Studio Online. To switch between the three ...


1

The short answer is "yes". Some of the places you can look are Microsoft's Channel9 site, in the TechEd presentations. Some that I know are particularly useful are: Microsoft Test Manager - http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/DEV-B327#fbid=P-tUCSTcUQ5 Visual Studio Premium or higher includes the install for MTM. This video covers ...


1

Are you referring to getting a repository created for your load test executed? If you are referring that then you can find the script at following location on you disk: C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE by the name of loadtestrepository run the script and you will get a separate DB created on the SQL Server. If you are referring ...



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