History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-332
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Assignee: Marc Guillemot
Reporter: Marc Guillemot
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
WebTest

Provide a <countWebtestResults.../> task

Created: 04/Oct/07 07:45:12   Updated: 16/Oct/07 11:05:08
Affects Version/s: 2.5
Fix Version/s: 2.6


 Description   
If you want to run all the tests, format the results and then make the build fail if some tests failed, you have to extract the number of failed tests from the xml result file. This can be done for instance using xmltask

WebTest should include a new task for this purpose and include it in webtest.xml default execution. This could look like:
<readWebTestResults [propertyNbSuccess="myProp1"] [propertyNbFailed="myProp2"] [failIfNoSuccessfull="yes/no"]/>

Such a task would remove the need for custom solutions and should evolve to stay in sync with the format of the xml result file.

 All   Comments   Change History      Sort Order:
Comment by Dierk Koenig [04/Oct/07 11:09:45]
agreed, but I would rather name it after its intention (instead of how it is works)
how about:

<resultCount [successProperty="myProp1"] [failedProperty="myProp2"] [faiIOnUnsuccessful="yes/no"]/>

regards
Dierk

Comment by Marc Guillemot [15/Oct/07 17:14:27]
Changed issue's title to reflect current decision on task name.

Comment by Marc Guillemot [16/Oct/07 11:05:08]
Implemented in build 1623.

This should now be used in webtest.xml too but this doesn't belong to this issue.