October 2023

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 screen

    # for Test Runner in job.yml extras: config-compressedLayoutHierarchy: true config-screenbrightness: "127"
    # 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.

    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

    This is the same effect than the new extra parameters config-compressedLayoutHierarchydescribe upper but you can change the value at any time during the test.

  • Add new command setWaitForIdle

    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.

    In this example, the dump will be saved in the file mydumpfile.uix in the dump directory of the tests results

Dashboard campaign

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 and serverdistributions are respectively transformed intouseroptions, networkoptions and serveroptions

  • 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)

You can also use new optional settings for the server configuration (PUE and reqnetwork) :

  • 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.