Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Krauth2017-09-21 09:12:01 +0000
committerMarvin Mueller2017-09-26 10:57:01 +0000
commite55c78873401af2d5336ea5ad2c683f949277e5b (patch)
treed885687a140efa498bbb60d3d70457a7cca4ebf5 /org.eclipse.jubula.documentation
parent247ab4f1988b6f92a284c7c3f30e591d9e584a2c (diff)
downloadorg.eclipse.jubula.core-e55c78873401af2d5336ea5ad2c683f949277e5b.tar.gz
org.eclipse.jubula.core-e55c78873401af2d5336ea5ad2c683f949277e5b.tar.xz
org.eclipse.jubula.core-e55c78873401af2d5336ea5ad2c683f949277e5b.zip
JUB-1896 Adding documentation for ActionHandlers
Change-Id: I7f019e862ea0e0b86c1a10406eedecd14717dd2f Signed-off-by: Marcel Krauth <Marcel.Krauth@bredex.de>
Diffstat (limited to 'org.eclipse.jubula.documentation')
-rw-r--r--org.eclipse.jubula.documentation/developerManual/en/docbook/clientAPI/chapter.xml29
-rw-r--r--org.eclipse.jubula.documentation/developerManual/en/docbook/images/actionhandler-test.pngbin0 -> 17370 bytes
-rw-r--r--org.eclipse.jubula.documentation/developerManual/en/docbook/images/export-om.pngbin23387 -> 21510 bytes
3 files changed, 28 insertions, 1 deletions
diff --git a/org.eclipse.jubula.documentation/developerManual/en/docbook/clientAPI/chapter.xml b/org.eclipse.jubula.documentation/developerManual/en/docbook/clientAPI/chapter.xml
index 57db13ac0..237e9d1eb 100644
--- a/org.eclipse.jubula.documentation/developerManual/en/docbook/clientAPI/chapter.xml
+++ b/org.eclipse.jubula.documentation/developerManual/en/docbook/clientAPI/chapter.xml
@@ -357,7 +357,7 @@
</listitem>
</itemizedlist>
<figure xml:id="test-execution">
- <title>Exectuing a first test</title>
+ <title>Executing a first test</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/test-execution.png" />
@@ -366,5 +366,32 @@
</figure>
</section>
+ <section>
+ <title>Working with Actionhandlers</title>
+ <para>Actionhandlers are a way to execute actions without creating a CAP
+ manually first, they create and validate the CAP internally
+ when a method is called.</para>
+ <para>
+ The idea behind using Actionhandlers is to easier modularize tests.
+ If a parameter of a method is null the action will not be executed,
+ you can therefore create modules where not all actions are executed if the
+ data for them is null.
+ This allows to cover a wide range of potential tests with a single method call.
+ </para>
+ <para>
+ The general setup for API usage is the same as in the previous section.
+ However beign able to execute a test we need to first register the AUT
+ at the AUTRegistry, otherwise upon executing a test an Exception will occur.
+ </para>
+ <figure xml:id="actionhandler-test-execution">
+ <title>Executing a test using an Actionhandler</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/actionhandler-test.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
<xi:include href="sectionConverter.xml"/>
</chapter> \ No newline at end of file
diff --git a/org.eclipse.jubula.documentation/developerManual/en/docbook/images/actionhandler-test.png b/org.eclipse.jubula.documentation/developerManual/en/docbook/images/actionhandler-test.png
new file mode 100644
index 000000000..05092b19e
--- /dev/null
+++ b/org.eclipse.jubula.documentation/developerManual/en/docbook/images/actionhandler-test.png
Binary files differ
diff --git a/org.eclipse.jubula.documentation/developerManual/en/docbook/images/export-om.png b/org.eclipse.jubula.documentation/developerManual/en/docbook/images/export-om.png
index c02016852..2763eb81b 100644
--- a/org.eclipse.jubula.documentation/developerManual/en/docbook/images/export-om.png
+++ b/org.eclipse.jubula.documentation/developerManual/en/docbook/images/export-om.png
Binary files differ

Back to the top