Forum Discussion

bhawani_prasad's avatar
bhawani_prasad
Occasional Contributor
10 years ago

Android Emulator - Object spy

Hi 

I am using the Test Complete tool  - Trail version, For Android test automation...



1. Object spy does not highlight any items in the app. - Hybrid app( amzon app). just highlight the full emulator.



2. How can we automate android native app in test complete? kindly suggests.



Regards,

Bhawani prasad



6 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Bhawani,



    Object Spy will not be able to get tested application internals if the tested application is not prepared (i.e. not linked with PatchServices.jar with the corresponding initialization call as per mentioned help topic). Non-prepared applications are subject for image-based tests only.



    P.S. Correction to this my statement:

    > 2. TestComplete currently does not support testing of the native Android applications but only Java-based ones.



    Correction: Native applications can be tested only using image-based approach and cannot be prepared at the moment so that TestComplete can access their internals.
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)
    Hi Bhawani,

     


    When using image-based testing (for the app that isn't properly prepared), the objects aren't visible in the object tree. As a result, you cannot explore them in the Object Spy or Object Browser windows. However, you can highlight stored objects from TestComplete - use the Image Repository editor for this.

  • bhawani_prasad's avatar
    bhawani_prasad
    Occasional Contributor
    Thanks Alex for the Quick response. 

    Regarding the Object spy with Amazon app - From the Test complete tutorial - it is qualified for the image based testing.

    I am also able to record and play the script with Amazon app. But when highlight the Object spy, it does not peek inside the application in the emulator, it just highlights the emulator window . I am using Android Emulator 4.1.2 (Intel Atom x86).

    Kindly suggest..