Versions Compared

Key

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

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

    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

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

Improvements

GDSL

  • You can now pass a file name to the dump command.

    Code Block
    dump,mydumpfile

Dashboard campaign :

  • Change some Environmental impact parameters 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 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)

Code Block
environmentalinput:
  networkoptions:
    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 use new optional parameters settings for the server configuration (PUE and reqnetwork) :

Code Block
environmentalinput:
  serveroptions:
    serverlocations:
      france: 20 # % server in France
      world: 80 # % server in another part of the world (not in France)
    servertypes:
      complexserver: 70 # % complex server
      simpleserver: 30 # % simple server
    # parameters: # optional
    #   pue: 1.5 # [optional - data center PUE, minimum 1.0]
    # 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.

...