===== Continuous Values =====
Several values of all supported value type are created and transferred to ULS
in regular time intervals (each minute). Values are based on
* the second of the hour
* the second of the day
* the second of the week
* the second of the month
Mainly the LOB-based values are only generated each 10 minutes or just once every hour.
-----
==== Setup ====
Create a crontab to make the "continuous_values" script execute every minute. The script generates all values.
cd /etc/cron.d/
vi uls_test_suite
* * * * * uls /home/uls/testsuite/test_suite_1_8_0/continuous_values > /home/uls/testsuite/test_suite_1_8_0/continuous_values.log 2>&1
Check the log file, it must have size zero (no output, no errors).
-----
==== Interactive Verification ====
Verify, that the generated ULS value files are transferred to the ULS-server
and that their content is stored correctly. Be sure, that the script ran
already for more than one day!
Use a webbrowser, login as ULS user "AmieAction" (full rights on "ULS", read-only on "Woodlark"),
chose the correct time interval ("yesterday" if the script runs already for more than a day
or explicit iso time interval) and check all values for domain "ULS" and for domain "Woodlark".
The values have following structure (section, teststep):
* 200 Continuous Hourly Values
* 210 Integer Values
* 220 Float Values
* 230 Text Expressions
* 240 Files
* 300 Continuous Daily Values
* 310 Integer Values
* 320 Float Values
* 330 Text Expressions
* 340 Files
* 400 Continuous Weekly Values
* 410 Integer Values
* 420 Float Values
* 430 Text Expressions
* 440 Files
* 500 Continuous Monthly Values
* 510 Integer Values
* 520 Float Values
* 530 Text Expressions
* 540 Files
The continuous values are spread over different sources (servers) and hence over different domains.
The values are produced for each time interval (hourly, daily, weekly, monthly):
* x10 Integer Values
* Ramp '#'
* Cosine '[]' (open and closed bracket)
* Steps '[#]'
* x20 Float Values
* Voltage 'V'
* Normalized Gaussian Distribution 'MB/s'
* Percentage '%'
* Energy '[E]': Wh, kWh, MWh
* Temperature '[E]': °Rø, °F, °C, K
* x30 Text Expressions
* Proportional Expression ' ' (blank)
* proportional expressions separated by blank line for same time stamp '[N]'
* Monospaced Expression '_' (underline)
* monospaced expressions separated by blank line for same time stamp '_N'
* x40 Files
* Three Rolling Wheels 'image'
* Three Rolling Wheels 'file'
* Spirograph 'image'
* Spirograph 'file'
Crosscheck all details with the contents of the reports below.
-----
==== Report ====
Different reports are defined and checked to ensure correct
incoming values and a correct reporting function.
-----
=== Report 'Continuous Values - Counts and Last Values' ===
As user "AmieAction" create a report with pattern-based report details.
* click on //reports// and {{:uls:testsuite:version_180:edit_reports_button.png?nolink|}}
* create a new report "Continuous Values - Counts and Last Values"
* then //edit// and {{:uls:testsuite:version_180:append_autodetails.png?nolink|}}
:!: be sure to remove any possible blanks of the expressions when entering them in the report detail text boxes.
{|
! name
| $#) Counts of all Continuous Values
|-
! sections:
| *Continuous*Values
|-
! period:
| yesterday
|-
! display:
| count
|}
Add another report detail, click on {{:uls:testsuite:version_180:append_autodetails.png?nolink|}}:
{|
! name
| $#) Last Values of all Continuous Values
|-
! server:
| testsrv*
|-
! sections:
| !changes,!events
|-
! period:
| yesterday ((same as in the first report detail))
|-
! display:
| last values
|}
Use {{:uls:testsuite:version_180:show_report.png?nolink|}} to show the report.
Click //reports -> Continuous Values - Counts and Last Values// to see the same results.
Go to //administration -> edit mail reports// and send the "Continuous Values - Counts and Last Values" report to your e-mail address.
Use:
* (x) landscape
* [x] send now
(Alternatively, if, e.g. e-mail is not configured,
you may write the report to a directory (if defined as notification destination)
and check the generated pdf document)
It should look like {{:uls:testsuite:version_180:continuous_values_-_counts_and_last_values_2014-02-20.pdf|this}}.
There may be more entries in the report if it is generated after having defined combi-details.
Verify also page numbering and correct page breaks.
-----
=== Report 'Continuous Values - Manual Selection' ===
As user "SystematicGuy" create a report from interactive choice.
The continuous values must have been generated for at least two days,
yesterday should be covered completely.
* go to //main menu -> yesterday -> Woodlark -> testsrv22 -> 300 Continuous Daily Values -> 320 Float Values//
* click on //Percentage// to verify a sine curve
Use {{:uls:testsuite:version_180:add_to_report_button.png|}} to add that to a new report:
{|
!name
| Sine Curve
|-
! description
| Manually added.
|}
{|
! report
! description
! append
|-
| Continuous Values - Manual Selection
|
| [x]
|}
That should look like:
{{:uls:testsuite:version_180:continuous_values_manual_selection_add_page_to_reports.png|}}
Go to //reports// and click on //Continuous Values - Manual Selection// to verify the correct output.
* go to //main menu -> yesterday -> ULS -> testsrv11 -> 300 Continuous Daily Values -> 340 Files//
* click {{:uls:testsuite:version_180:details_selection_button.png|}}
* chose "Spirograph / IMAGE"
* display: last values
* click {{:uls:testsuite:version_180:ok_button.png|}} and {{:uls:testsuite:version_180:add_to_report_button.png|}} to append the output to the existing report
* use "Spirograph" as name
* append the report detail to the existing report "Continuous Values - Manual Selection"
The resulting report should look like {{:uls:testsuite:version_180:continuous_values_-_manual_selection_2014-02-20.pdf|this}}.
-----
=== Report 'Continuous Values - Best Overview' ===
The contiuous values must have been generated for at least one whole day.
The report will change its appearance over time, especially the weekly and monthly values
may differ in representation depending on the day of the week or month.
This report shows many values as graphs or tables as an overview.
Values are spread over different sources and domains.
The time intervals are chosen for the best representation of the specific values.
The report is created by using the textmode.
As user "SystematicGuy"
* go to //administration -> edit reports//
* create the new report "Continuous Values - Best Overview"
* click //edit// (be sure to edit the right report, double check the report name!)
It should look like :TODO:
Verify also page numbering and correct page breaks.
-----
==== Retention ====
Set the [[uls:testsuite:version_180:retention]] for some values to a longer period.
-----
==== Combined Details ====
Combined details can be used to make calculations on details or build relations between details of one teststep.
It may be used in reports and favorites, but not
-----
=== group based combined details on [E] ===
As user "TheSpyder":
* go to //administration -> combi details -> group autocombidetails -> AllRounders//
{|
! teststep
! detail
! unit
! expression
! active
! remark
|-
| 220 Float Values
| Recalculated Energy
| Wh
| $VALUE_OF('Energy/[E]@Wh')
| [x]
|
|}
* go to //main menu -> today -> ULS -> testsrv11 -> 200 Continuous Hourly Values -> 220 Float Values//
* verify that the detail "Recalculated Energy" is shown in the table
{|
! Test
! Description
! Result
! Notes
|-
| CDET 010
| group based combined details on [E], definition and correct propagation
| style="color:green" | passed
|
|}
* verify also, that a diagram can be produced by clicking on the table heading
{{:uls:testsuite:version_180:testsrv11_200_chv_220_fv_recalculated_energy.png|}}
{|
! Test
! Description
! Result
! Notes
|-
| CDET 012
| group based combined details on [E], graphical representation
| style="color:green" | passed
|
|}
-----
=== Combi Details on % ===
-----
=== Complex Combi Details ===
-----