Forum Discussion
Hi,
I'm not sure that I understand you scenario. Could you describe it in detail?
If you do not want to change orientation, you may just not use the "SetOrientation" method in your tests.
BTW, there is the "ResetOrientation" method in TestComplete. Perhaps, it will be useful for you.
Thanks for the reply.
Test case say "Oriention should not be changed if orientation setting is disabled."
How do we check for this scenario.
Thanks
Suvidh
- AlexKaras8 years agoChampion Level 3
Hi Suvidh,
If Not desktop.GetOrientation = soPortrait Then ...
(See Example section of the https://support.smartbear.com/viewarticle/75375/ or https://support.smartbear.com/viewarticle/70224/ help topics)
Does this help?
- suvidhshetty8 years agoContributor
Hi Alex,
If I disable oriention then my verification will be I need to change the orientation and check that orientation has not changed.
can this be achived.
Thanks
Suvidh
- AlexKaras8 years agoChampion Level 3
Suvidh,
I hope that I got what you are looking for...
You need to disable device orientation, do something in your tested application and check that the orientation is the same. Right?
If my guess is correct, then you may try ShellExecute method provided by TestComplete and execute adb command that will disable automatic device orientation. E.g. http://stackoverflow.com/questions/25864385/changing-android-device-orientation-with-adb
Is this what you are looking for?
Related Content
Recent Discussions
- 26 minutes agodhundley