ttop/cuanto — pull request #12 by dunse (2012-09-16 16:06:51+00:00)
Title: Update on 137

Changes:
* TestOutput max size is now configurable in cuanto-config.properties (maxTestOutputLength)
Defaults remains 10000.
Truncated output appends "\u001e\u001e" characters before insertion in DB.
To maintain the "Truncated" text for previously inserted outputs, an update script would be required to add "\u001e\u001e" to all Test Output strings in DB longer than 9998. (Not included in this pull request)

* Added two api calls which pass trending data in to a graph engine such as Flot:
* /cuanto/api/getAllTestRunStatsGraph?projectKey=[&startDate=2012-09-16][&endDate=2012-09-16][&noTime=true]
Returns an array of dateExecuted and results
If noTime=true is provided summary of results will be returned instead.

* /cuanto/api/getAllFailedTestCaseHistoryGraph?projectKey=[&startDate=2012-09-16][&endDate=2012-09-16][&label=]
Returns number of faults per testCase for specified project.
label can be set to any testCase property to customise the response's label.
This is useful as a blame chart to show which testCase caused the most errors.

Example to display all three graph types using Flot:
```html

Cuanto Flot Graph Example

Trend results

Results summary

Blame chart

```