(This post was written by Mark Steffensen, Sr. Manager, ADM Field Excellence)
Part 1 - Eclipse
Eclipse is an open source integrated development environment (IDE). It contains a base workspace and an extensible plug-in system for customizing the environment. Its primary use is for developing Java applications, but it may also be used to develop applications in other programming languages through the use of plugins. Eclipse also 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 gets stored with every project’s test execution.
Check out part 2 of this article which covers Visual Studio
Creating an Eclipse External Tools entry
1. Start Eclipse Mars (also works with previous versions) and from the main window select the Run -> External Tools… -> External Tools Configurations… option.
2. In the External Tools Configurations dialog, select Program and then select the
New Launch Configuration button.
3. Set the following values:
Name: HTML Results
Location: C:\Windows\explorer.exe
Arguments: ${project_loc}\RunResults\runresults.html
4. Click Apply and Close.
5. Under the Run -> External Tools menu you can now see the HTML Results option:
Creating a One-Click Results Button in Eclipse
1. Next we’ll create a one-click button. From the Run -> External Tools menu select Organize Favorites…
2. In the Organize External Tools Favorites dialog, select Add…
3. In the Add External Tools Favorites dialog select the Checkbox for HTML Results and click OK.
4. Click OK in the Organize External Tools Favorites
5. You now have a one-click button to display HTML results!
Test your button by opening a test, clicking into the code section and selecting HTML Results from the Favorites button
Summary:
This blog post shows how you can simply create a button to display LeanFT's test results with just 1 click in Eclipse. 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.