Hot answers tagged visualstudio
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
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 ...
4
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 ...
3
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. ...
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
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
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 ...
2
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. ...
2
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 ...
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
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 ...
1
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.
1
The answer to almost all questions about unit testing is "decouple from dependencies".
Refactor your code to decouple the logic (which you want to test) from the interactions with with Excel.
Remember that unit tests should answer the question "does the code I am writing do what I intend it to do" and not "does my program work properly" - that's for ...
1
I haven't done this type of testing, what I would recommend is looking into how you can write office macros that utilise the functions of your add-in to test it's functionality. You should be able to add vba command buttons to a spreadsheet or document or the word toolbar that runs your tests.
I am assuming that as you are testing and adding in VSTO, you ...
1
Microsoft licensing is one of the most complicated things on this planet, especially when you start talking about enterprise agreements. Your best solution is to go straight to the source
You can call 1-800-426-9400, Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist, and you can get more ...
Only top voted, non community-wiki answers of a minimum length are eligible
