- Fix STAX exception in replication/externalchangelog_consistency tests due to unknown function paramter
- Added README to explain how to start the STAF daemon and run the tests
1 files added
2 files modified
| New file |
| | |
| | | [1] Prepare run |
| | | |
| | | $ ./build tests-configure |
| | | |
| | | => for the question "Enter java home", the default value is a jre, in some tests we use javac so to avoid |
| | | some errors during the tests enter a path to a jdk |
| | | |
| | | After running this command the following file is created: functional-tests-<hostname>.properties |
| | | |
| | | => if you want to change the list of tests to be executed, edit this file and update the variable: test.plan.custom |
| | | for instance: test.plan.custom=replication,core |
| | | |
| | | [2] Running the tests |
| | | |
| | | $ ./build tests-run |
| | | |
| | | [3] Monitoring the tests |
| | | |
| | | $ ./build staf-gui |
| | | |
| | | or |
| | | |
| | | in your browser open the following file: |
| | | <log_dir>/<hostname>-<timestamp>/reports/results_tmp.xml |
| | | |
| | |
| | | <function-optional-arg name="label" default="''"> |
| | | Friendly label to aid description |
| | | </function-optional-arg> |
| | | |
| | | <function-optional-arg name="knownIssue" default="None"> |
| | | Issue id. Corresponds to an issue number. |
| | | </function-optional-arg> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | </sequence> |
| | | <else> |
| | | <sequence> |
| | | <if expr="knownIssue == None"> |
| | | <tcstatus result="'fail'"/> |
| | | <else> |
| | | <sequence> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : knownIssue } |
| | | </call> |
| | | </sequence> |
| | | </else> |
| | | </if> |
| | | <message level="'error'">'%s Items do not match (%s)' % (label,items)</message> |
| | | <tcstatus result="'fail'"/> |
| | | </sequence> |
| | | </else> |
| | | </if> |
| | |
| | | import java.text.SimpleDateFormat |
| | | |
| | | cal = java.util.Calendar.getInstance() |
| | | cal.add(java.util.Calendar.SECOND,240) |
| | | cal.add(java.util.Calendar.SECOND,600) |
| | | |
| | | dateFormat = java.text.SimpleDateFormat("yyyyMMddHHmmss") |
| | | |