Testing mobile applications

You can use the mobile browser simulator to emulate various mobile devices and test your mobile applications without the need to install the device vendor SDK.

About this task

Important: The Mobile Browser Simulator supports the following web browsers:
  • Firefox version 3.6 and later.
  • Chrome 17 and later.
  • Safari 5 and later

For more information about the mobile browser simulator, see Mobile browser simulator.

Procedure

  1. In Eclipse select Window > Preferences > General > Web Browser > Use external web browser.
  2. Right-click your Application folder name and select Run As > Run on Mobile Browser Simulator.

What to do next

After your web page is running in the mobile browser simulator, you can view how your page renders in different devices.
Task information iconSwitching devices
Task information iconAdding devices

Switching devices

Before you begin

To view your web application in the simulated devices by using the appropriate style sheets, ensure that you Enable user agent switching.

Procedure

In the simulator, click the device list and then select the device that you want to simulate.
Switching the device in the Mobile Browser Simulator.

Adding devices

Before you begin

To view your web application in the simulated devices by using the appropriate style sheets, ensure that you Enable user agent switching.

Procedure

In the simulator, click Add Device and then select the device that you want to simulate.
Tip: You can customize the list of device options that are available in the mobile browser simulator.
  1. Select Windows > Preferences > Web > Target Devices.
  2. Add your custom device to the current list of target devices, and then start the simulator again.

Results

The custom device that you added is now available as an option from the Add Device list in the simulator.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: ttest.html