[jbosstools-issues] [JBoss JIRA] (JBIDE-15904) Test Cordova combinations

Vlado Pakan (JIRA) jira-events at lists.jboss.org
Fri Nov 8 09:16:03 EST 2013


    [ https://issues.jboss.org/browse/JBIDE-15904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921722#comment-12921722 ] 

Vlado Pakan edited comment on JBIDE-15904 at 11/8/13 9:15 AM:
--------------------------------------------------------------

1. Install Android tooling from JBoss Central
2. After required restart JBT dialog asking to install new Android SDK should appear. Install latest available Android API.
3. Open Java Perspective
4. Open Window > Android SDK Manager and install Android SDK Build Tools 19, ARM EABI v7a System Image 19, Android Support Library 19
5. Restart Eclipse
6. Open Window > ADROID Virtual Device Manager and add some device (Nexus 7, Android 4.4 - API Level 19, ARM)
7. Try to start added device to see if it works
Java JDK has to available
8. Create default Hybrid Mobile applicatio. Menu New > Other > Mobile > Hybrid Mobile (Cordova) Application.
Specify Project name, Application and ID. ID has to have form ???.???.???... e.g. org.jboss.tool.cordova

Test case 1:
1. connect android device enabled for development
2. right click on created project and Menu Run As > Run on Android Device. ASSERT: Application is deployed and started on device.
3. right click on created project and Menu Run As > Run on Android Emulator. ASSERT: Application is deployed and started on Android Emulator.
4. change index.html file of created project save and run project again on Android Device and Android Emulator. ASSERT: Chagnes are deployed. Already running Android Emulator instance is used no new Android Emulator is started
It could be needed to unlock screen on Device/Emulator

Test case 2:
1. Add another Android Virtual Device
2. Open Run As configuration of <cordova-project> run on Adnroid Emulator
3. Select newly added AVD as Virtual Device
4. Choose Apply and Run
ASSERT: <cordova-project> runs on newly created Virtual Device
Test modification of Run As configuration of <cordova-project> run on Adnroid. I'm not able to provide more details on this one because I do not have available any Android device today.
Will update description later

Test case 3:
1. Open <cordova-project>/www/config.xml file with Cordova Configuration Editor
2. Select second tab Platform Properties and choose Add... to add Feature
3. Select org.appache.cordova.device-motion plugin in opened Cordova Plugin Discovery dialog and choose finish
ASSERT: Feature Acceleroimeter was added to config.xml Features on 2nd. tab and also to config.xml source
ASSERT: org.appache.cordova.device-motion plugin was added to <cordova-project>/plugins directory and it has not empty content

Test case 4:
ASSERT: project https://github.com/vpakan/cordovatestprojects/tree/master/cordova-accelerometer can be imported and runs properly. 
Try to click oon Accelerometer link within cordova application to see if accelerometer data are read.
Test it with CordovaSim, Android Device and Android Emulator
ASSERT: Open new clean workspace and import <cordova-project> from previously used workspace. Follow checks written above

Test case 5:
Try to use accelerator application to be able to check if Cordova API works
1. Select <cordova-project>
2  Right click on it and choose Export > Mobile > Export Native Platform Project
3. Export to all available platforms
ASSERT: No errors occured during export
For Android only:
4. <android-sdks>/tools/android avd
5. Run Android Emulator
6. Build application ant -f <exported-cordova-project>/android/build.xml debug
7. Install .apk file to running emulator <android-sdks>/platform-tools/adb install <exported-cordova-project>/android/bin/<appname>-debug.apk
8. Verify application running on emulator

Test case 6:
Try to use accelerator application to be able to check if Cordova API works
1. Select <cordova-project>
2  Right click on it and choose Export > Mobile > Export Mobile Application
3. Export to all available platforms
For Android only:
4. <android-sdks>/tools/android avd
5. Run Android Emulator
6. Install .apk file to running emulator <android-sdks>/platform-tools/adb install <exported-cordova-project>/android/bin/<appname>-debug.apk
7. Verify application running on emulator

                
      was (Author: vpakan):
    1. Install Android tooling from JBoss Central
2. After required restart JBT dialog asking to install new Android SDK should appear. Install latest available Android API.
3. Open Java Perspective
4. Open Window > Android SDK Manager and install Android SDK Build Tools 19, ARM EABI v7a System Image 19, Android Support Library 19
5. Restart Eclipse
6. Open Window > ADROID Virtual Device Manager and add some device (Nexus 7, Android 4.4 - API Level 19, ARM)
7. Try to start added device to see if it works
Java JDK has to available
8. Create default Hybrid Mobile applicatio. Menu New > Other > Mobile > Hybrid Mobile (Cordova) Application.
Specify Project name, Application and ID. ID has to have form ???.???.???... e.g. org.jboss.tool.cordova

Test case 1:
1. connect android device enabled for development
2. right click on created project and Menu Run As > Run on Android Device. ASSERT: Application is deployed and started on device.
3. right click on created project and Menu Run As > Run on Android Emulator. ASSERT: Application is deployed and started on Android Emulator.
4. change index.html file of created project save and run project again on Android Device and Android Emulator. ASSERT: Chagnes are deployed.
It could be needed to unlock screen on Device/Emulator

Test case 2:
1. Add another Android Virtual Device
2. Open Run As configuration of <cordova-project> run on Adnroid Emulator
3. Select newly added AVD as Virtual Device
4. Choose Apply and Run
ASSERT: <cordova-project> runs on newly created Virtual Device
Test modification of Run As configuration of <cordova-project> run on Adnroid. I'm not able to provide more details on this one because I do not have available any Android device today.
Will update description later

Test case 3:
1. Open <cordova-project>/www/config.xml file with Cordova Configuration Editor
2. Select second tab Platform Properties and choose Add... to add Feature
3. Select org.appache.cordova.device-motion plugin in opened Cordova Plugin Discovery dialog and choose finish
ASSERT: Feature Acceleroimeter was added to config.xml Features on 2nd. tab and also to config.xml source
ASSERT: org.appache.cordova.device-motion plugin was added to <cordova-project>/plugins directory and it has not empty content

Test case 4:
ASSERT: project https://github.com/vpakan/cordovatestprojects/tree/master/cordova-accelerometer can be imported and runs properly. 
Try to click oon Accelerometer link within cordova application to see if accelerometer data are read.
Test it with CordovaSim, Android Device and Android Emulator
ASSERT: Open new clean workspace and import <cordova-project> from previously used workspace. Follow checks written above

Test case 5:
Try to use accelerator application to be able to check if Cordova API works
1. Select <cordova-project>
2  Right click on it and choose Export > Mobile > Export Native Platform Project
3. Export to all available platforms
ASSERT: No errors occured during export
For Android only:
4. <android-sdks>/tools/android avd
5. Run Android Emulator
6. Build application ant -f <exported-cordova-project>/android/build.xml debug
7. Install .apk file to running emulator <android-sdks>/platform-tools/adb install <exported-cordova-project>/android/bin/<appname>-debug.apk
8. Verify application running on emulator

Test case 6:
Try to use accelerator application to be able to check if Cordova API works
1. Select <cordova-project>
2  Right click on it and choose Export > Mobile > Export Mobile Application
3. Export to all available platforms
For Android only:
4. <android-sdks>/tools/android avd
5. Run Android Emulator
6. Install .apk file to running emulator <android-sdks>/platform-tools/adb install <exported-cordova-project>/android/bin/<appname>-debug.apk
7. Verify application running on emulator

                  
> Test Cordova combinations
> -------------------------
>
>                 Key: JBIDE-15904
>                 URL: https://issues.jboss.org/browse/JBIDE-15904
>             Project: Tools (JBoss Tools)
>          Issue Type: Task
>    Affects Versions: 4.1.1.Beta1
>            Reporter: Max Rydahl Andersen
>            Assignee: Vlado Pakan
>            Priority: Blocker
>             Fix For: 4.1.1.CR1
>
>
> Use this jira to collect results from testing:
>  1)
>   Run On Android Emulator. On windows, Linux and Mac (in that prio order).
>   
>   Run On Android Device: On windows, Linux and Mac (in that prio order)
>   
>   The more SDK version we cover the better with the above two. I do not think
>   we can cover all so we should start with latest and make our way down.
>   
>   2)
>   Changes on the Run configurations for Run on Android...
>   
>   3)
>   Install Cordova Plugin:
>   
>   Offline, windows, Linux, Mac
>   
>   4)
>   Share project via git. Import existing project.
>   
>   5)
>   Export native platform project
>   
>   6)
>    Export Mobile Application
>   	windows, linux, mac

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list