Part 2 - Visual Studio
Visual Studio is a rich, integrated development environment for creating stunning applications for Windows, Android, and iOS, as well as modern web applications and cloud services. It offers options to integrate with external tools. In this section we’ll show you to add a new external integration that uses explorer.exe to locate and display the runresults.html file that get stored with every project’s test execution.
Check out part 1 which covers Eclipse
Creating a Visual Studio External Tools entry
1. Start Visual Studio 2015 (also works with VS 2012 and 2013) and from the main window select
Tools -> External Tools…
2. In the External Tools dialog click Add and set the following fields:
Title: HTML Results
Initial directory: <leave blank>
See screenshot below:
3. Click OK
4. In the External Tools dialog, select Move Up until the HTML Result item is first in the list.
You’ve now created a menu item on the Tools menu that will show the results for a LeanFT test that was run.
5. Test this new menu item by:
a. Load an existing test that was previously run (and has a runresults.html file)
File-> Open -> Project/Solution… LeanFt_Exercise1.sln
b. From the main Tools menu select Tools->HTML Results
6. You should see the results of that test appear in the Explorer window.
Creating a One-Click Results Button in Visual Studio
1. In Visual Studio, select the pulldown next to the OIC and Mobile Center buttons to:
Add or Remove Buttons -> Customize
2. In the Customize dialog select Add Command…
3. In the Add Command dialog select Tools->External Command 1
Since we moved our HTML Results command into the first position in the list it is now associated with External Command 1.
4. Click OK. You’ll see the changes in the Customize dialog shown below.
5. Select Modify Selection and name this new button Results.
6. Move the button down to the bottom position with the Move Down
7. Click Close
8. Test your new Results button by clicking it from the Visual Studio menu.
9. You can now see any LeanFT test’s results with the click of a button!
This blog post shows how you can simply create a button to display LeanFT's test results with just 1 click. This can help you when running your tests and allow you to quickly and easily access your local test results
If you would like to try LeanFT for yourself, take a look at the LeanFT Trial web site.
You can learn more about LeanFT in the LeanFT Help Center
Thanks to Mark for providing this article!
Feel free to leave a comment in the box below.