<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    jBPM 4 QA
</h3>
<span style="margin-bottom: 10px;">
    modified by <a href="http://community.jboss.org/people/admin">Administrator Administrator</a> in <i>jBPM</i> - <a href="http://community.jboss.org/docs/DOC-13251">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>The jBPM 4 QA can only be accessed from inside the VPN.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-external-small" href="http://hudson.qa.jboss.com/hudson/view/JBPM4/">http://hudson.qa.jboss.com/hudson/view/JBPM4/</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h1>Introduction</h1><p>The hudson jobs are configured to just run a script which is in our svn in the qa subdirectory.&#160; For example the jbpm4-db hudson job is configured to execute the following shell commands:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="padding-left: 30px;"><strong style="font-family: courier new,courier;">cd jbpm4<br/>. qa/hudson-jbpm4-db.sh<br/></strong></p><p>That way the whole QA driver scripts is in our svn.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>All the scripts make a distinction between configurable properties and derived properties.&#160; Configurable properties can be overwritten by providing a <strong style="font-family: courier new,courier;">${user.home}/.jbpm4/build.properties</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The jdbc properties for continuous integration testing are located in <span style="font-family: courier new,courier;"><strong>qa/jdbc/${database}.properties</strong></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The os specific script files should be called from the jbpm4 root directory.</p><h1>Parser compatibility testing</h1><p>Every jPDL process in the test suite is tested against every version of the jPDL parser unless explicitely marked as explicit.&#160; So unless a jpdl process in the test suite contains attribute <strong style="font-family: courier new,courier;">jpdlparser="4.0"</strong>, then the process will be tested with all parsers.&#160; E.g.</p><p>&#160; <strong style="font-family: courier new,courier;">&lt;process name="SomeProcess" jpdlparser="4.6"&gt;</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>To make the testsuite run use a specific parser, use property <strong style="font-family: courier new,courier;">jpdlparser </strong>like this</p><p>&#160; <strong style="font-family: courier new,courier;">mvn -Djpdlparser=4.8&#160; clean install</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>See also JpdlParser and qa\hudson-jbpm4-parsers.sh</p><h1>Manual testing</h1><p>For manual testing, the hudson driver scripts can be leveraged directly or executed step by step on the command line.&#160; As mentioned above, the qa/hudson* testsuite driver scripts should be called from the jbpm 4 root directory.</p><h1>Debugging on JBoss</h1><ul><li>qa\debug.jboss.setup.bat</li><li>qa\debug.enterprise.setup.bat</li></ul><h1>QA Lab Database Cleaning</h1><p>Used Squirel v3.0.2 (<a class="jive-link-external-small" href="http://www.squirrelsql.org/%29,">http://www.squirrelsql.org/),</a> 'drop table' script</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h4>MySQL</h4><span>SET FOREIGN_KEY_CHECKS=0; </span><br/><span> drop table a; </span><br/><span> drop table b; </span><br/><span> SET FOREIGN_KEY_CHECKS=1; </span><br/><h4>Postgres</h4><span>DROP TABLE a CASCADE; </span><br/><span> DROP TABLE b CASCADE; </span><br/><h4>Oracle</h4><span>Connecting to the Oracle DB on the qa lab takes several minutes. It is easier to use the SqlDeveloper tool from Oracle itself (</span><a class="jive-link-external-small" href="http://www.oracle.com/technology/products/database/sql_developer/index.html%29:">http://www.oracle.com/technology/products/database/sql_developer/index.html):</a><span> </span><br/><span> </span><br/><span> DROP TABLE a CASCADE constraints; </span><br/><span> DROP TABLE b CASCADE constraints; </span><br/><span> </span><br/><span> If in the future this work is needed again, it may be better to create a script for it ... so keep your unit tests clean ;-)</span></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="http://community.jboss.org/docs/DOC-13251">going to Community</a></p>

        <p style="margin: 0;">Create a new document in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>