facebook

Automatic testing

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #344249 Reply

    shahaf
    Member

    Hi,

    Is there a way to perform automatic testing using mobi (something similar to selenium which is a web browser automation tool)?
    I would like to define several flows, document them in a script or an automatic tesing tool and to repeat these tests every time I make a change in my code.

    Is there a way to do that in Mobi?
    If not, is there a tool you can recommend for that purpose?

    Thanks,
    Shahaf

    #344252 Reply

    Hi shahaf,

    I am not that familiar with mobile testing tools and methods. I have kicked the question to our team members and will follow up with you as son I as I get more info.

    #344663 Reply

    shahaf
    Member

    Hi,

    any update regarding this topic?

    Thanks,
    Shahaf

    #344670 Reply

    support-michael
    Keymaster

    update, we are investigating a cross platform approach now. It will probably be another week before we can say anything definitive.

    #345442 Reply

    shahaf
    Member

    Hi Octavio,

    We are trying to use monkeyrunner to automate testing of our Android mobi deployments.
    However, we are unable to determine what is the activity name (marked with yellow) and package name (marked with blue) to use when invoking the application 🙁

    Any idea?
    We used the package name which appear in the Android deployment wizard. Is this the relevant package?

    monkeyrunner link:
    http://developer.android.com/tools/help/monkeyrunner_concepts.html

    # Installs the Android package. Notice that this method returns a boolean, so you can test
    # to see if the installation worked.
    device.installPackage(‘myproject/bin/MyApplication.apk’)

    # sets a variable with the package’s internal name
    package = ‘com.example.android.myapplication’

    # sets a variable with the name of an Activity in the package
    activity = ‘com.example.android.myapplication.MainActivity’

    # sets the name of the component to start
    runComponent = package + ‘/’ + activity

    # Runs the component
    device.startActivity(component=runComponent)

    #345462 Reply

    Hi shahaf,

    I have kicked this question to the dev team and will provide feedback asap. In the meantime you might investigate how monkeyrunner works with cordova/phonegap apps as that is the type of app MobiOne generates.

    #345699 Reply

    Hi shahaf,

    good tool for expecting these values is ‘apktool’ (https://code.google.com/p/android-apktool/) you can decomptess apk file with it and check AndroidManifest.xml for required values.

    As for your questions
    – yes, the package name you enter in MobiOne Build Wizzard on Digital Signature page
    – the main activity for Cordova 2.2 and 2.9.x RTE is always ‘com.genuitec.mobione.build.template.android.Main’, however
    – webview hosting activity is org.apache.cordova.DroidGap

    I also would recommend you to take a look at JS unit testing frameworks like Jasmine.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Automatic testing

You must be logged in to post in the forum log in