- This topic has 6 replies, 4 voices, and was last updated 10 years, 10 months ago by support-aleksey.
-
AuthorPosts
-
shahafMemberHi,
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
support-octavioMemberHi 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.
shahafMemberHi,
any update regarding this topic?
Thanks,
Shahaf
support-michaelKeymasterupdate, we are investigating a cross platform approach now. It will probably be another week before we can say anything definitive.
shahafMemberHi 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)
support-octavioMemberHi 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.
support-alekseyMemberHi 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.DroidGapI also would recommend you to take a look at JS unit testing frameworks like Jasmine.
-
AuthorPosts