-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
241 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[Report] | ||
order = F44AE3793CA,F44AE3793D0,F44AE39D478 | ||
title = quickdemo | ||
showtlogo = -1 | ||
dateformat = yyyy-mm-dd | ||
timeformat = HH:MM | ||
timezone = Australia/Brisbane | ||
showstarttime = -1 | ||
showendtime = -1 | ||
font = Rasa | ||
fontsize = 12 | ||
percentile = 90 | ||
|
||
[F44AE3793CA] | ||
name = Template | ||
parent = TOP | ||
type = note | ||
changed = 1678765507.0670521 | ||
note = Define your template by adding sections and configuring the section settingsx12Each section can be:x12 - Note (like this) section, free textx12 - Heading, usefull for grouping sectionsx12 - Contents like a table of contents or figuresx12 - Data Table, with data from test resultsx12 - Data Graph, for graphical representation of test resultsx12x12Each section can also have sub sectionsx12x12The cover page and overall report settings can be found on the settings pane of the Report item abovex12 | ||
|
||
[F44AE3793D0] | ||
name = Test Result Summary | ||
parent = TOP | ||
type = table | ||
changed = 1678765508.1276302 | ||
colours = 0 | ||
datatype = ResultSummary | ||
sql = SELECT r.result_name 'Result Name', round(min(rp.elapsed_time),3) 'Minimum', round(avg(rp.elapsed_time),3) 'Average', round(percentile(rp.elapsed_time, 90),3) '90x37ile', round(max(rp.elapsed_time),3) 'Maximum', round(stdev(rp.elapsed_time),3) 'Std. Dev.', count(rp.result) as 'Pass', count(rf.result) as 'Fail', count(ro.result) as 'Other' FROM Results as r LEFT JOIN Results as rp ON r.rowid == rp.rowid AND rp.result == 'PASS' LEFT JOIN Results as rf ON r.rowid == rf.rowid AND rf.result == 'FAIL' LEFT JOIN Results as ro ON r.rowid == ro.rowid AND ro.result <> 'PASS' AND ro.result <> 'FAIL' GROUP BY r.result_name ORDER BY r.sequence | ||
|
||
[F44AE39D478] | ||
name = 90x37ile | ||
parent = TOP | ||
type = graph | ||
changed = 1678765549.428324 | ||
order = F44AE3B7CF7 | ||
isnumeric = 1 | ||
datatype = Metric | ||
sql = SELECT MetricTime as 'Time' , MetricValue as 'Value' , PrimaryMetric as 'Name' FROM MetricData WHERE MetricType == 'Summary' AND SecondaryMetric == '90x37ile' ORDER BY MetricTime | ||
metrictype = Summary | ||
secondarymetric = 90x37ile | ||
|
||
[F44AE3B7CF7] | ||
name = 90x37ile Data | ||
parent = F44AE39D478 | ||
changed = 1678765594.7107954 | ||
type = table | ||
colours = 1 | ||
datatype = Metric | ||
sql = SELECT PrimaryMetric , min(CAST(MetricValue AS NUMERIC)) AS 'Minimum' , round(avg(CAST(MetricValue AS NUMERIC)),3) AS 'Average' , round(percentile(CAST(MetricValue AS NUMERIC), 90),3) AS '90x37ile' , max(CAST(MetricValue AS NUMERIC)) AS 'Maximum' , round(stdev(CAST(MetricValue AS NUMERIC)),3) AS 'Std. Dev.' FROM MetricData WHERE MetricType == 'Summary' AND SecondaryMetric == '90x37ile' GROUP by PrimaryMetric | ||
metrictype = Summary | ||
secondarymetric = 90x37ile | ||
isnumeric = 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# | ||
# A hook script to update the version numbers | ||
# post-commit | ||
OS=`uname -s` | ||
|
||
# git rev-parse --abbrev-ref HEAD | ||
version=$(git rev-parse --abbrev-ref HEAD) | ||
# version=$(git tag -l v* |tail -1) | ||
# echo "version: $version" | ||
if [[ "$version" =~ v[0-9]\. ]]; then | ||
# echo "version: $version" | ||
# numver=$(echo $version | sed -E 's/v(.*)/\1/') | ||
# numver=$(echo $version | sed -E 's/v(.*)-.*/\1/') | ||
numver=$(echo $version | sed -E 's/v([^-]*)/\1/') | ||
# echo "numver: $numver" | ||
|
||
if [ "$OS" == 'Darwin' ]; then | ||
sed -i '' -e "s/version *= *\"[^\"]*\"/version = \"${numver}\"/" $(find . -name "*.py") | ||
# Version Test | ||
sed -i '' -e "s/# Version .*/# Version ${numver}/" $(find . -name "*.py") | ||
else | ||
sed -i -e "s/version *= *\"[^\"]*\"/version = \"${numver}\"/" $(find . -name "*.py") | ||
sed -i -e "s/# Version .*/# Version ${numver}\"/" $(find . -name "*.py") | ||
fi | ||
|
||
|
||
# git commit -m "Update version to ${version}" | ||
if ! git diff-index --quiet HEAD --; then | ||
# echo "commit: Update version to $version" | ||
git add $(find . -name "*.py") | ||
git commit -m "Update version to ${numver}" | ||
fi | ||
# else | ||
# echo "version ($version) not pattern 'v[0-9]\.'" | ||
fi | ||
|
||
|
||
|
||
# if [[ "$date" =~ "[0-9]\{8\}" ]]; then | ||
# echo "Valid date" | ||
# else | ||
# echo "Invalid date" | ||
# fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.