IPhone Rotation Unit Testing

In my iPhone application there are several views and several viewControllers for these views.

I need to check how viewControllers react to device rotation (switching between portrait and landscape orientations).

I found information on the OCMock and google-toolbox-for-mac platforms, but did not find answers on this topic.

In some views, the Landscape / Portrait function may be enabled, and some may not. I need to check the view state after the number of random (or predefined) device spins.

I have no ideas on how to do this without real user action.

Can someone help me in this situation? Thanks.

+3
source share
1 answer

Several possible solutions:

In all cases, you can output the output from these applications and save them in a data file, and then read them during testing to simulate user movement.

+1
source

Source: https://habr.com/ru/post/1716692/


All Articles