New features
TestRunner, Power Test Cloud
Adds 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 may solve some issues with webviews. For instance, 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
Adds 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 during the test, 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 note that you need to update dashboard campaign binary and the template definition.yml file to benefit from the following new features. You can get new version in the module page of your Greenspector web interface. |
Changes 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 a an environmental footprint assessment. You can now configure the network repartition (2g-3g, 4g-5g, fiber, xdl)
Code Block |
---|
environmentalinput: networkdistributionnetworkoptions: networklocations: france: 50 # % users in france world: 50 # % users in another part of the world (not in France) networktypes: gsm2g3g: 25 # % users in 2G/3G gsm4g5g: 25 # % users in 4G/5G wiredfibre: 25 # % users in fiber wiredxdsl: 25 # % users in adsl/xdsl |
You can also configure use new optional settings for the server description configuration (PUE and reqnetwork) :
Code Block |
---|
serverparameters: # optionalenvironmentalinput: serveroptions: serverlocations: france: 20 # % server in France numberofserversworld: 1 [number of servers used by the service]80 # % server in another part of the world (not in France) servertypes: complexserver: 70 # % complex server peakserverloadsimpleserver: 30 50# [% CPU maximum on servers] simple server # parameters: # optional # pue: 1.755 # [PUE Data Centeroptional - data center PUE, minimum 1.0] serverbandwidth: 43.42 [Gb/s server bandwidth# datainput: # optional # reqnetwork: 200 # [optional - number of http requests. (if non specified, it is deducted from the number of data exchanged on network during the scenario] |
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.
...