New features
TestRunner, Power Test Cloud
Add new extra parameters
config-compressedLayoutHierarchy
for uiautomator testing. If compression is enabled, the layout hierarchy derived from the Accessibility framework will only contain nodes that are important for uiautomator testing. Any unnecessary surrounding layout nodes that make viewing and searching the hierarchy inefficient are removed. This general configuration can solve some issues with webviews, for example after a scroll or a screen change, an element may not be present in the dump even though it is visible on the screenCode Block # for Test Runner in job.yml extras: config-compressedLayoutHierarchy: true config-screenbrightness: "127"
Code Block # for Greenspector CLI gspt testbench custom-tests --testsSuite launch:./testweb.testgb --monitoredPackage "com.android.chrome" --iterations=1 -e config-compressedLayoutHierarchy="true" ...
GDSL
Add new command
takeScreenshot.
Code Block takeScreenshot,mytestfile
This example takes a screenshot an save it in the file mytestfile.png in the screenshot directory of the tests results
Add new command setCompressedLayoutHierarchy
Code Block setCompressedLayoutHierarchy,true
This is the same effect than the new extra parameters
config-compressedLayoutHierarchy
describe upper but you can change the value at any time during the test.Add new command
setWaitForIdle
Code Block setWaitForIdle,false
This command has the same effect as the existing additional parameter config-waitForIdle. By default, uiautomator waits for an idle state between each automation action. Sometimes when animations are present on the screen, the idle state does not occur and uiautomator fails to find the element in time. You can disable/ enable at any time the wait for idle, for example to ignore the idle state of an animation. Please pay attention if you disable the default wait for idle, uiautomator tests run faster and tests can fail.
Improvements
GDSL
You can now pass a file name to the
dump
command.Code Block dump,mydumpfile
In this example, the dump will be saved in the file mydumpfile.uix in the dump directory of the tests results
Dashboard
...
campaign
Note |
---|
Please you need to update dashboard campaign binary and the template definition.yml. You can get new version in the module page of your Greenspector web interface. |
Change some environmental impact parameter names in definition.yml.
userdistributions
,networkdistributions
andserverdistributions
are respectively transformed intouseroptions
,networkoptions
andserveroptions
The dashboard calls a new version of the Impact API to generate an environmental footprint assessment. You can now configure the network repartition (2g-3g, 4g-5g, fiber, xdl)
...
Standardizes logs (adding timestamp on each line, translating all logs in English)
Improves logs by removing error on Windows and Mac OS when trying to automatically open the HTML report on a new tab of your browser and trying to generate PDF report. These features are only available on Linux
Improves logs error when definition.yml format is not correct
Fixed bugs
TestRunner, Power Test Cloud
Fixes saving measurement (“An internal error occurred while saving the result”) which can sometimes occur when the dumpsys iteration succeeds while the normal iteration fails
Dashboard campaign
...
Fixes truncated step names on charts when the report is built with Windows environment by applying a default font available for all Windows.
...