Page tree

Versions Compared

Key

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

On iOS 9 and up (full control mode), at some scenarios, SeeTest may fail to perform actions( i.e open object-spy ) on a page that contains a very large number of elements,

...

  • Node-based dump (recommend).

  • Set Dump parameters.

  • Dump by grid sampling.

Node-based dump

This ability should be configured per application using its bundle identifier.

...

If the Node-based dump method did not work you can use this method to define a specific dump parameters to limit the element's numbers.

...

  • Depth - Define the depth of the element hierarchy tree.

  • Total - Define the total amount of elements in the dump.

  • Children - For each element (node) what are the max nodes successors node's successors (children).
     


To use this method you will need to add to the app.property file the property: ios.non-instrumented.dump.parameters= <depth>,<total>,<children> for example:


Info

ios.non-instrumented.dump.parameters=20,1000,50

  
You can use this property in run-time (for specific tests) by using the command: setProperty() with the property ios.non-instrumented.dump.parameters for example:


Info

client.setProperty("ios.non-instrumented.dump.parameters", "20,1000,50");


Improvements in the non-instrumented dump

From STA 10.3 the 'Class' property has changed and now is more informative. 

To go back to the older dump - add to the app.property file the property: 'xcelement.type.include=false'


Dump by grid sampling :

Create dump by sampling grid of points, SamplesX refers to how many samples on X-Axis when a device is in portrait orientation when in Landscape the samples on each axis will switch.

We recommend try first default value which is 5,12,5,true,false and if it does not create the expected dump only then try other values.

to use this method add to app.properties the following property:

ios.dump.grid.sampling_<bundleId>=<SamplesX>,<SamplesY>,<Depth>,<Hybrid(optional)>,<FrontMostAppFocused(optional)>

optional parameters:
Hybrid: combines the grid sampling and the traditional dump method, which can improve performance.
FrontMostAppFocused: ignore results from elements that belong to another pids, such widgets, _UIRemoteView elements, and other apps.