Forum Discussion
AlexKaras
12 years agoCommunity Hero
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.)
> 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.)