Hi Arnel, If you want to test your applications, the Crosswalk WebDriver is an alternative instead of Appium.
https://github.com/crosswalk-project/crosswalk-website/wiki/Crosswalk-WebDriver 1. Build XwalkDriver by building the 'xwalkdriver' target and get an executable binary in the build folder named 'xwalkdriver'.(Details referred to ../README.md). You can get it from https://github.com/crosswalk-project/crosswalk-web-driver/tree/master/bin 2. Get Crosswalk for Android from Download page https://download.01.org/crosswalk/releases/crosswalk/android 3. Pakage your app by execute command python make_apk.py --package=`package_name` --manifest=`manifest_file` --arch=`device_architecture` --enable-remote-debugging If you build your app with Cordova method, make sure the remote-debugging is enabled. 4. Install your apk to device. 5. Install Selenium package by executing command pip install selenium 6. Run xwalkdriver binary you get from step 1 on host $./xwalkdriver 7. Execute following commands to test: $ python >>> from selenium import webdriver >>> capabilities = { 'xwalkOptions': { 'androidPackage': 'YOUR_PACKAGE_NAME', 'androidActivity': '.YOUR_ACTIVITY_NAME', 'adb-port': 5037(default option if not selected), } } >>> driver = webdriver.Remote('http://localhost:9515', capabilities) >>> driver.save_screenshot("screenshot.png") >>> driver.title >>> driver.quit() You may need to remote debug Crosswalk Apps in Chrome developer tools as well: https://github.com/crosswalk-project/crosswalk-website/wiki/Remote-Debugging-on-Android 1. Install the webapp (enabled --enable-remote-debugging) on the device and launch it. 2. Open Chrome Browser in the host machine and input "chrome://inspect" in the address bar 3. App will be listed in the inspection page. Click to the button 'inspect' to inspect it 4. Check the element tab of Chrome dev tool. Before debugging your Crosswalk app, make sure the right Google Chrome version is installed on your host, basically the Chrome version should be >= the second number of Crosswalk version, e.g. beta 13.42.319.7, the second number (42 in the above example) represents the upstream Chromium beta release version that the source is based on. Crosswalk Release Chromium/Chrome Version 12 41 13 42 14 43 15 44 BR Belem From: Crosswalk-help [mailto:[email protected]] On Behalf Of Fu, Junwei Sent: Tuesday, May 05, 2015 9:10 AM To: Arnel Celedonio; [email protected] Subject: Re: [Crosswalk-help] Appium tests with Crosswalk-Cordova application We test Crosswalk-Cordova align with Cordova upstream by mobile spec and Junit test. Create Cordova mobile spec refer with https://github.com/apache/cordova-mobile-spec and then migrate Crosswalk-cordova to it refer with https://crosswalk-project.org/documentation/cordova/migrate_an_application.html. Running Unit test from command line: 1. ant debug install 2. adb shell am instrument -w org.apache.cordova.test/android.test.InstrumentationTestRunner Running from within Eclipse: 1. File -> New -> Android Project from Existing Code 2. Select the /test directory 3. Right click the project, and select Debug As -> Android Project 4. Right click the project, and select Debug As -> Android JUnit Project. Thanks, Junwei. From: Crosswalk-help [mailto:[email protected]] On Behalf Of Arnel Celedonio Sent: Monday, May 04, 2015 10:22 PM To: [email protected]<mailto:[email protected]> Subject: [Crosswalk-help] Appium tests with Crosswalk-Cordova application Hi, Do you guys know how or any alternative for this (instead of using appium)? Thanks
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
