Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Create keywords and tools for starting recording power measurement and extracting measurement data from the measurement agent. This PR does not yet apply the power measurement keywords. Application examples can be found in:
https://github.com/leivos-unikie/ci-test-automation/tree/power_measurement_test
https://github.com/leivos-unikie/ci-test-automation/tree/power_measurement_test2
IP address to measurement agent can be given from command line or from test_config
Login credentials to measurement agent have been added to ghaf-infra (https://github.com/tiiuae/ghaf-infra/pull/327/files). Running locally would require that you provide the credentials as variables via command line and comment out the respective line in variables.robot.
Use keyword
Start recording power
anywhere to start recording power measurement results on the measurement agent. (This will start power_mesurement.py script on RPi power logger https://github.com/tiiuae/ghaf-power-measurement)Use keyword
Stop recording power
to stop recording power measurement results on the measurement agent.Use keyword
Get power record
with filename argument to copy the power record file to test agent.Power measurement keywords are filled with
Run Keyword And Ignore Error
to prevent any potential errors causing any tests, setups or teardowns to fail. This enables usage of power measurement in ci-test-automation so that the test setups missing power measurement HW are not affected.The power measurement tooling monitors also measurement frequency:
A warning of unusually low measurement frequency will be shown in the power plot in case of drop in the measurement frequency. This can help in detecting any problems in the measurement hardware.