## page was renamed from Process/Merges/TestPlans/cordova * '''Test plan for component''': HTML5 * '''Component Checklist''': https://wiki.ubuntu.com/Process/Merges/Checklists/system-apps * '''Trunk URL''': * lp:ubuntu-html5-theme * lp:unity-webapps-qml * lp:cordova-ubuntu * lp:cordova-ubuntu-tests * '''Ubuntu Package URL (LP)''': * http://launchpad.net/ubuntu/+source/ubuntu-html5-theme * http://launchpad.net/ubuntu/+source/unity-webapps-qml * http://launchpad.net/ubuntu/+source/cordova-ubuntu * http://launchpad.net/ubuntu/+source/cordova-ubuntu-tests == Test Plan == '''This test plan is not supposed to be complete; use it to guide your manual testing so they dont miss big functional areas that are part in the component; also this should be used as guideline to inspire the exploratory testing which should be adapted smartly based on the real content of a MP''' == Test Case: Creating a new HTML5 application == === Procedure === * Open the Ubuntu SDK IDE (Qt Creator) * Go File > New Project > Ubuntu > HTML5 App * Name the new project and save in a directory * The project should be created an opened, and the default index.html page displayed by defaut == Test Case: Running a new HTML5 application == === Procedure === From a project created with the above procedure * Go Build > Run without deployment * Verify that the app launches on the desktop where the IDE is used * Go Build > Ubuntu > Install Application on Device * Verify that the app launches when launching it from the attached Ubuntu phone == Test Case: Use the HTML5 inspector to debug applications == === Procedure === From a project created with the "Creating a new HTML5 application" procedure * Add an "--inspector" argument to the Exec line of the desktop file if not already present, * Go Build > Run without deployment * Verify that the app launches on the desktop where the IDE is used * Search for a line similar to "Inspector server started successfully. Try pointing a WebKit browser to http://192.168.0.101:9221" in the Application Output log of QtCreator, * Browse with a WebKit based browser to the IP:Port stated above (chromium or google chrome will do), * Make sure that you can inspect the page, == Test Case: Make sure that Ubuntu APIs are available to an application == === Procedure === From a project created with the "Creating a new HTML5 application" procedure * Replace the content of the "index.html" and "app.js" files found in the default project by the ones found here http://bazaar.launchpad.net/~webapps/unity-webapps-qml/trunk/files/head:/examples/api-bindings/download-manager/www/, * Go Build > Run without deployment * Verify that the app launches on the desktop where the IDE is used * Make sure that the application runs as expected and that you can interact with it properly, e.g. for the download manager example, make sure that you can download the two files shown (by clicking the 2 buttons), == Test Case: Make sure that Ubuntu Online Accounts APIs are working properly == === Procedure === * bzr branch lp:ubuntu-sdk-tutorials * cd ubuntu-sdk-tutorials/html5 * From there, in QtCreator, successively: * Open the oa-1.ubuntuhtmlproject project in html5-example-online-accounts, * Make sure that you have a facebook account listed on the device, * Run on the device making sure that you can access your facebook account and its details, * Open the oa-2.ubuntuhtmlproject project in html5-example-online-accounts-facebook-albums, * Make sure that you have a facebook account listed on the device, * Run on the device making sure that you can access your facebook account and if you have photos that you can see some of them, == Test Case: Make sure that Ubuntu Content Hub APIs are working properly == === Procedure === From a project created with the "Creating a new HTML5 application" procedure * Replace the content of the "index.html" and "app.js" files found in the default project by the ones found here http://bazaar.launchpad.net/~webapps/unity-webapps-qml/trunk/files/head:/examples/api-bindings/content-peer-picker/www/, * Go Build > Run without deployment * Verify that the app launches on a device * Press on the button at the top, and make sure that the Content picker UI appears over the HTML5 application and that you can interact with it, == Cordova API support test cases == === On the desktop and phone === * Install Mobile Spec Suite application. * Run Mobile Spec Suite. * Mobile Spec Suite is loaded. * Run Camera test (manual). * Application is able to capture a photo with the camera. * Run Device motion test (manual). * Run In-app browser test (manual). * Run automatic tests. * Run Battery status test. * No failures must be returned. * Run Device. * No failures must be returned. * Run Media capture. * No failures must be returned. * Run Dialogs. * No failures must be returned. * Run Splashscreen test. * No failures must be returned. * Run Media test. * No failures must be returned. * Run Globalization test. * No failures must be returned. * Run Network information test. * No failures must be returned. === On the device === * Install Mobile Spec Suite application. * Run Mobile Spec Suite. * Mobile Spec Suite is loaded. * Run automatic tests. * Run Vibration test. * No failures must be returned. == Dependents/Clients == N/A == Examples == N/A