Forum Discussion

cshukusky's avatar
cshukusky
Contributor
12 years ago

Does TestComplete support Rotation?

Hi,



I am looking into the possibility of using TestComplete 10 to automate testing of my company's mobile apps.



A major concern for our apps is rotation (that our app will look good and work correctly both in portrait and landscape).



I am wondering what support TestComplete has for rotation.



In particular, if the device is in landscape, does TestComplete see the app in landscape (and similarly for portrait)?



Also, does TestComplete have anyway to trigger (or simulate) rotation without someone having to physically rotate the mobile device?



Thanks.

- Chris

4 Replies

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 2 rankChampion Level 2
    Hi Chris,



    > In particular, if the device is in landscape, does TestComplete see the app in landscape (and similarly for portrait)?

    Yes, it does. If your tested application is prepared for TestComplete (i.e. compiled with PatchServices,jar as per documentation instructions) and the tests are written using tested application's object model (i.e. tests are not image based), the chances are high that tests will work without any changes for both modes.



    > does TestComplete have anyway to trigger (or simulate) rotation without someone having to physically rotate the mobile device?

    TestComplete has no means to force the device to trigger the rotation or simulate it. But if tested application is prepared for TestComplete, tests are written using application's object model and somebody physically rotate the device, this should not break the tests. (Well, if the device is constantly rotated so that Android Debug Bridge (ADB) delays to transmit this info to TestComplete and TestComplete does not have enough time to refresh the changed information about the size and location of the tested objects, then the tests will eventually fail. But I think that this is too obvious.)