Skip to main content

Best Practices and Tips

Wondering what are the best design patterns and considerations that you should take while developing a test automation framework? This section covers some of the industry's best practices and tips that could be applied for test execution!

Foldable Devices​

  • Change the posture only between commands, never during a gesture.
  • Define the full sequence of postures, because 90° reached from closed can lay out differently from 90° reached from open.
  • Call clearDevicePosture at the end of the test.

For prerequisites, display behavior and known limitations, see Testing on Foldable Devices (iPhone Duo).