Forum Discussion

nginoza's avatar
nginoza
Frequent Contributor
12 years ago

Problem with focus when launching my iPad Application

Hi Everyone,



I am able to launch my iPad using the example in the help file:


function RunGOApp()

{

     var appManagerObj =  Mobile.Device().ApplicationManager;



     // Retrieve application info from the device

    var appObj = appManagerObj.GetApplicationByBundleId("ent.costar.AztecTest");

 

    // Verify whether the application is found



    if (appObj != null)



    // Run the application

       appManagerObj.RunApplication(appObj);

}



The App flashes briefly, then minimizes and my iPad desktop displays. I do see that the app has started but is minimized.



My question is how to launching the app and make is active so I can start executing my functional test?



TIA,



Nathan

 


6 Replies

  • nginoza's avatar
    nginoza
    Frequent Contributor
    Hi All



    The launching of your iOS app will not work even if you have a Ad-Hoc profile.



    You will need a DEV profile.

  • Hi Nathan,

     


    TestComplete supports applications that were signed using the developer provisioning profile.


    Did you use this profile in your app? 

  • nginoza's avatar
    nginoza
    Frequent Contributor
    Hi Tanya,



    Thanks for the feedback. I spoke to the DEV and they said they are working on a DEV signing build. They will do it soon as once they renew the lic. for Apple. I have provided the ids of our 3 ipads for them to include.



    Nate
  • nginoza's avatar
    nginoza
    Frequent Contributor
     Hi Support, All iOS users:



    After 2 months we have still not been successful in accomplishing implementation these documented features in iOS:

     

        Launching a TC enabled iSO app

        Removing an TC enabled iOS app

        Installing TC enabled app from a folder

     

    The way we envisioned this to work was to automate the new iOS builds of the ipa and profile files to a shared foler and TC does the rest.

     

    This way DEVs / QA can then perform a quick build validation test on new builds, then proceed with more focused regression of impacted areas of the new changes in the build using the rest of our scripts.

     

    This is key to our success in using the tool for an end to end solution in our continuous build / deployment / build validation model / QA model.

     

    We have spent numerous hours to incorporate the TC libraries with various profiles.

     

    Our latest attempt to get this working is to perform a UUID signed Adhoc profile build. The built works if the app is opened and in focus but not for the above requirements.

     

    Our DEV is having issues with performing an automated build with a Developer profile that I believe is required to leverage these features mentioned above.

     

    Has anyone been successful in implementing thee feature and if so can be willing to share any info on how they accomplished this Developer signed build?

     

    We have a upcoming project and if this is not done soon our window of opportunity will past and will not be able to spend resources to do this.

     

    Another reason I would like to launch our app from a script is for exception handling to recover from a hard crash caused by the tool or app and continue execution of the rest of the scripts.

     

    Any feedback / comments are greatly appreciated especially on how to create a Developer signed build.

     

    TIA,



    Nathan    

     



     

  • Hi Nathan,

     


    As far as I understand, your team was unable to sign the tested application with the development profile. This is one of the major requirements that can affect the application launch. So, first of all, you need to sign your app with this profile.


     


    Refer to this Apple article - it describes how to create and apply profiles. Does your team have any issues with installing the development profile? Let us know what happens. 


     


    Also, please make sure that your app is compiled by using all the steps from the [url=http://support.smartbear.com/viewarticle/63813/]"Preparing iOS 


    Applications"[/url] article. 

  • nginoza's avatar
    nginoza
    Frequent Contributor


    Has anyone been able to create a Developer signed Adhoc or Enterprise distribution ipa package for use will the scripting methods that allows for installation, removal and launching.



    Dev's keep tell me this is like giving me a car and driving to Hawaii.



    Interested in what other iOS experts opinion on this.