Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TestRunner, Power Test Cloud

  • Add 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 can may solve some issues with webviews. For instance, 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 screen

    Code 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 Adds new command takeScreenshot.

    Code Block
    takeScreenshot,mytestfile

...

  • Add new command setCompressedLayoutHierarchy

    Code Block
    setCompressedLayoutHierarchy,true

    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

    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.

...

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.

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

...