Does Visual Studio Test Essentials/Test Runner run web & load tests? - visual-studio

Looking at Amit Chatterjee's Blog post on the upcoming Visual Studio Test Essentials product and in the image he has (below) he basically he says that all the blue blocks will be in Test Essentials, while all the green will be in Visual Studio Test Edition.
(source: msdn.com)
I see Test Runner is on the blue block side - does that mean that I can create the web & load tests (green blocks) in Visual Studio Test Edition, and then using Test Runner in Test Essentials to actually run them?

The answer is yes - You will be able to create the test in Visual Studio Test Edition and use Test Runner to execute them.

Related

Load Test option disappeared

In a Visual Studio Enterprise 2015 Web Performance and Load Test Project, I have lost the ability to add a Load Test. The option is usually right below Unit Test...
Instructions to create a Load Test:
https://www.visualstudio.com/en-us/docs/test/performance-testing/run-performance-tests-app-before-release#create-a-load-test
I found the solution in vs 2017 installer. Apparently not all parts are installed. If you want to install web performance test template project:
run vs 2017 installer
go to Individual components -> Debugging & testing
select Web performance and load testing tools
Repairing Visual Studio solved the problem. I am not sure what caused it in the first place

Has anyone integrated NUnit with Visual Studio 2010?

Has anyone integrated NUnit with Visual Studio? I'm trying to set up a build pipeline like this one. But, I'm pretty new to .NET and I'm still understanding how things work. There are many resources in the internet on NUnit + VS, and I'm confused.
I'd recommend you to use Resharper.
As some say, "It just works".
Disadvantages/side effects of this choice in your case could be:
1. Resharper is not free;
2. Running unit-tests is minor part of Resharper - it also includes tons of other features, which you maybe do not need for now(but you can disable most of them in setttings).
Free solution is - Visual Nunit 2010 Visual studio extension. Free and does exactly what you want.
UPDATE
How to add NUnit to your project.
I've found this tutorial. Follow it step-by-step, I've found it helpful and complete for .NET novices.
The only difference is that in Running Unit-Tests section for running tests author uses test runner tool that is distributed within NUnit itself, but you can use ReSharper runner as described in JetBrains' docs
I'm using this:
http://visualstudiogallery.msdn.microsoft.com/c8164c71-0836-4471-80ce-633383031099
Which works quite well for me. You can access it within VS2010 from View->Other Windows->Visual NUnit
I used TestDriven until it was no longer free, I used Resharper but felt it slowed down my machine too much, I tried the VisualNUnit extension but it appeared to spawn multiple processes of itself that would keep a hold on some of my DLLs, I added NUnit itself as a command under Visual Studio Tools (and also with a toolbar button and some macros in Visual Studio to start the current test and attach) but that cost some effort to set up and didn't feel smooth enough after being spoiled with tools like TestDriven. Eventually I tried NCrunch... I am hooked ever since, and I have even started to favor it over TestDriven! the next tool on my "NUnit bucket list" will be the NUnit extension for Visual Studio 11.
PS: NCrunch should work on your Visual Studio 2010 and the homepage has a very decent demo video.
First download and install the NUnit
Step 1: Open Visual studio
Step 2: Open your project
Step 3: Select Properties from Solution Explorer
Step 4: Select Debug option in the properties window
step 5: select 'Start external program' under the section 'Start Action'
Step 6: Select the path of the NUnit file
Step 7: Save it.
After that when you debug your project NUnit will open.
Setting up Visual C#2010 Express with NUnit
The original and still quite ok test runner.
Test Driven .net
Used to be free, but now costs a small fee unless you're a student or open source developer.
Visual Studio 2011(BETA) is compatible with 2010 and provides test runners out of the box. Refer to Visual Studio 11 Beta Unit Testing – What’s New and Visual Studio 11 Beta - Unit Testing Plugins List. For continuous integration (CI) server U can use TeamCity and also run those test on the server.

Selenium C# Auto generated Code for Visual Studio 2010

I would like to test a Website UI.
Is it possible to record all Website clicked elements using Visual Studio 2010 (just like Selenium IDE does)?
Is there a integration between Visual Studio 2010 and Selenium in order to use Selenium auto generated C# code inside VS2010?
thank you
The way I have done this is record the test in Selenium IDE and save as C# and NUnit. NUnit asserts are almost identical to MSTest unit tests. I then paste into a Visual Studio unit test and hand modify the small number of deficiencies.
The Selenium equivalent in VS is inside the Team System / Test edition component.
The allows you to capture a "webtest" by clicking a workflow inside IE and then (if you want) running a series of these webtests as a "loadtest".
All the webtests can be run on their own or you can link a few of them together to approximate a Selenium Test Suite.
You can add a new Format for export using Options->Formats->Source (button). Copy the existing C# (Remote Control) entry and alter the java to output MSTest tests. It's pretty easy.

Debugging code that's being tested in Visual Studio 2010

I am having some problems with a given test, that I'd like to debug the code that is being tested, while the test runs.
Is this possible?
If yes, how can I just debug this one test? I can only see options for running or the whole solution, or the whole set of tests in the current context or all impacted tests. I'd like to just run this one test, if possible!
I'm running Visual Studio 2010.
Put a breakpoint in the test and run the test with debug - use the test explorer to select just that test and "run selected".
See this MSDN page (How to: Run Automated Tests from Microsoft Visual Studio).

Export Visual Studio test results in some document / report format?

It is possible to export/print Visual Studio test results in some document format, maybe including test details?
Thanks
I don't know MSTest all too good, but you can run the Visual Studio tests via the Gallio framework (which is free, you can get it here), and that gives a very nice (and very detailed) test report.
HTH!

Resources