The validation feature helps you to check the programming logic of the <ahref="?action=doc&page=CryptoBox&weblang=en">CryptoBox</a>. A lot of test cases are defined to verify as many functions of the <ahref="?action=doc&page=CryptoBox&weblang=en">CryptoBox</a> as possible.
The current state of the <ahref="?action=doc&page=CryptoBox&weblang=en">CryptoBox</a> is represented by ten single values (e.g.: <i>box is configured</i>, <i>IP of the box</i>, <i>current language setting</i>, ...), which are invisibly a part of each html page (as comments). The returned status of every request is compared to the predicted value of the test case.
Similar test cases are pooled into test groups (e.g.: <i>initialization</i>, <i>configuration</i> and <i>mounting</i>).
</p>
<h2id="Validate">Validate</h2>
<p>
Run <i><ahref="/trac/cryptobox/browser/trunk/scripts/validate.sh">scripts/validate.sh</a>]</i> to conduct all tests of all groups. See <i>scripts/validate.sh help</i> for other actions.
</p>
<p>
The results will be saved in <i>validation/report</i>.
</p>
<p>
In addition to every single retrieved page, a html page called <i>summary-?.html</i> is created, which contains the state checks of all tests in a group.
</p>
<h2id="Howtocreateatest">How to create a test</h2>
<p>
All test cases can be found in <i>validation/test-cases</i>.
</p>
<p>
Every test consists of the following files:
</p>
<tableclass="wiki">
<tr><td>input.curl</td><td>the configuration file for the <i>curl</i> request