Skip to content

Commit

Permalink
testng-eclipse testng-team#124: doc for launch configuration runtime …
Browse files Browse the repository at this point in the history
…options
  • Loading branch information
ntan-ebates committed Oct 16, 2015
1 parent 9a0f557 commit ebe6f7a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions doc/eclipse.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,26 @@ <h3><a name="eclipse-create-launch">3 - Launch configuration</a></h3><p>Once you
<img border="0" src="http://testng.org/pictures/launch.png" />
</p>
<p>You should change the name of this configuration and pick a project, which
can be selected by clicking on the <tt>Browse...</tt> button at the top of the window.</p><p>Then you choose to launch your TestNG tests in the following ways:</p><h4><a name="eclipse-launch-class">4.2.1 - From a class file</a></h4><p>Make sure the box near <tt>Class</tt> is checked and then pick a class from your
can be selected by clicking on the <tt>Browse...</tt> button at the top of the window.</p>
<p>
<ul>
Runtime options:
<li><b>Log Level</b>: specify the value (0-10) for different verbose log level</li>
<li><b>Verbose</b>: check it to enable the runtime TestNG verbose log</li>
<li><b>Debug</b>: check it to enable more runtime TestNG debug info</li>
<li><b>Serialization Protocol</b>: the serialization protocol used for commuincating between TestNG Eclipse Plugin and TestNG runtime.
By default it's "Object Serialization", the other option is "String Serializatio" but is deprecated.</li>
<li><b>Add the POM's JVM Arguments when launch</b>: for maven based project, we normally define maven-surefire-plugin for test phase and maven-failsafe-plugin for integration test phase, there might be having the testing runtime JVM arguments defined in the "argLine" element of the maven plugin configuration. If you check this option, TestNG Eclipse Plugin will try to recognize the JVM arguments in "argLine", add them to TestNG runtime JVM arguments when lauch.<br/>
Be note that, if there's multiple "argLine" element in the pom.xml, the first presence will be used. If it's not the desired behaviour, you can simply uncheck this option, and type your JVM arguments on the "Arguments" tab next to this "Test" tab.</li>
</ul>
</p>
<p>Then you choose to launch your TestNG tests in the following ways:</p><h4><a name="eclipse-launch-class">4.2.1 - From a class file</a></h4><p>Make sure the box near <tt>Class</tt> is checked and then pick a class from your
project.&nbsp; You can click on the <tt>Browse...</tt> button and pick it directly from a
list.&nbsp; This list only contains classes that contain TestNG annotations:</p><p align="center">
<img border="0" src="http://testng.org/pictures/classes.png" />
</p>


<h4><a name="eclipse-create-groups">3.2 - From groups</a></h4>
<p>If you only want to launch one or several groups, you can type them in the
text field or pick them from a list by clicking on the <tt>Browse...</tt> button&nbsp;
Expand All @@ -109,7 +123,7 @@ <h4><a name="eclipse-create-xml">3.3 - From a definition file</a></h4>
<p align="center">
<img border="0" src="http://testng.org/pictures/suites.png" />
</p>

You can type the regex on the filter text field to narrow down to suite definition files matching your search from a long list of files.

<h4>
<a name="eclipse-create-method">3.4 - From a method </a>
Expand Down
Binary file modified pictures/launch.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 modified pictures/suites.png
100755 → 100644
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 ebe6f7a

Please sign in to comment.