Skip to content

Commit

Permalink
testng-eclipse testng-team#124: doc for preferences and properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ntan-ebates committed Oct 16, 2015
1 parent ebe6f7a commit 3ab66aa
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions doc/eclipse.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ <h3>Table of Contents</h3>
<br>
&nbsp;&nbsp;<a class="summary" href="#eclipse-quickfixes">8 - Quick fixes</a>
<br>
&nbsp;&nbsp;<a class="summary" href="#eclipse-preferences">9 - Preferences and Properties</a>
<br>
&nbsp;&nbsp;<a class="summary" href="#eclipse-workbench-preferences">9.1 - Workbean Preferences</a>
<br>
&nbsp;&nbsp;<a class="summary" href="#eclipse-project-properties">9.2 - Project Properties</a>
<br>
&nbsp;&nbsp;<a class="summary" href="#testng-xml"></a>

<!--
Expand Down Expand Up @@ -282,7 +288,45 @@ <h4>Automatically importing <tt>asserts</tt></h4>
<img border="0" src="http://testng.org/pictures/quickfix-import.png" />
</p>

<h3><a name="eclipse-preferences">9 - Preferences and Properties</a></h3>
<h4><a name="eclipse-workbench-preferences">9.1 - Workbench Preferences</a></h4>
TestNG workbench preferences:
<p align="center">
<img border="0" src="http://testng.org/pictures/preferences.png" />
</p>
<p>
The preferences here are shared among projects and launch configurations.
<ul>
<li><b>Output directory</b>: the path where to store the output including temp files, report files, etc. By default, the path is relative to each project except you check the option <b>Absolute ouput path</b> below.</li>
<li><b>Disalbe default listeners</b>: disable the default listeners when launch testng runtime</li>
<li><b>Show view when test complete</b>: active the TestNG result view when the test complete</li>
<li><b>Use Project TestNG jar</b>: It's default to be checked which means TestNG Eclipse Plugin will use the project TestNG jar (for example, the TestNG version managed with maven) when launch TestNG runtime. Otherwise, the TestNG eclipse plugin embedded TestNG version will be used.<br/>
When to check this option?
<ul>
<li>you want it behviour as close as running outside IDE, e.g. with maven surefire plugin, since the Plugin embedded version of TestNG most likely different with the version of your project.</li>
<li>you don't want the Plugin embedded plugin and it's dependent libs (e.g. snakeyaml, etc.) pollute your TestNG runtime classpath.</li>
</ul></li>
<li><b>Template XML file</b>: the absolute path of the template xml file used to genernate the custom test suite xml before launch</li>
<li><b>Excluded stack traces</b>: </li>
<li><b>Pre Defined Listeners</b>: </li>
</ul>
</p>

<h4><a name="eclipse-project-properties">9.2 - Project Properties</a></h4>
Project level properties:
<p align="center">
<img border="0" src="http://testng.org/pictures/project_properties.png" />
</p>
<p>
Here are properties on each project level, it will override the same properties if defined in <a class="summary" href="#eclipse-workbench-preferences">TestNG workbench preferences</a>
<ul>
<li><b>Output directory</b>: for example, in the figure above, I prefer to put the output to maven 'target' directory rather than the default one under project root</li>
<li><b>Watch testng-result.xml</b>:</li>
<li><b>Template XML file</b>: see in <a class="summary" href="#eclipse-workbench-preferences">TestNG workbench preferences</a></li>
<li><b>Use Project TestNG jar</b>: see in <a class="summary" href="#eclipse-workbench-preferences">TestNG workbench preferences</a></li>
<li><b>Pre Defined Listeners</b>: see in <a class="summary" href="#eclipse-workbench-preferences">TestNG workbench preferences</a></li>
</ul>
</p>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
Expand Down
Binary file added pictures/preferences.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pictures/project_properties.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3ab66aa

Please sign in to comment.