Test your application

You now have a complete Hello World-style application and you’ll want to check that it looks and works as you expected. You do this by running the app in the PC-based emulator included in the SDK. This section explains how.

Please note that the video shows the Nokia Asha SDK 1.0 — the steps and actions are still applicable to the Nokia Asha SDK 1.2.

  1. Build the project; on the Run menu click Build Main Project (or press the F11 key)
  2. Run the application in the emulator; on the Run menu click Run Main Project (or press F6)
  3. Test your application to make sure it behaves as expected

More testing: You may wish to check out these tools, which can help with testing:

Step-by-step – Test your application

Step 1 — Build your application

The first step towards running your app is to build the project, to check that there are no errors in the code. To do this, on the Run menu click Build Main Project (or press the F11 key). The NetBeans IDE will now build the project and provides a progress indicator in the bottom right hand of the IDE window. You can also observe the progress of the build by opening the Output view, as shown below, from the Window menu by pointing to Output and clicking Output (or using the CTRL+4 keyboard shortcut).

Java Getting Started figure 11

Step 2 — Run your application in the emulator

If there are no errors in the build, and there should not be in this simple example, the project can now be run in the emulator. To do this, on the Run menu click Run Main Project (or press F6). The emulator opens and the application starts, as shown below.

Java Getting Started figure 12

Step 3 — Test your app

You can now test the app to confirm it behaves as you expected.

Once testing has finished, the app can be closed.

Tip: You may want to leave the emulator open if more testing is planned. Leaving the emulator open improves the speed at which an app is loaded.

Now deploy the app to see it running on your Nokia Asha platform phone ›