|
If you are creating web content with
IBM Websphere Studio
and are targeting mobile devices, you can test your content with Openwave
mobile browser simulators without leaving Websphere Studio.
You do this by configuring Websphere Studio to take advantage of the command-line arguments supported by Openwave SDKs 4.1.1, 6.1, and 6.2.x. (These Openwave SDKs are available for download on the Phone Simulator page.) Openwave SDK 4.1.1 contains a simulator for Openwave mobile browser 4.1, which adheres to the WAP 1.1 standard and renders content in WML. SDK 6.1 and 6.2.x contain Openwave mobile browser 6.1 and 6.2.x respectively, which adhere to the WAP 2.0 standard and render content in XHTML Mobile Profile and CSS. You can use any combination of simulators, depending on your needs and the target devices for your market. For details on browser capabilities and device deployments, see Supported Phones. On the Openwave side, this document describes integrating and working with SDK 6.1, but you can easily substitute the paths and names for SDK 4.1.1 or SDK 6.2.x to work with those simulators instead. On the IBM side, the rest of this document describes Websphere Studio
Application Developer (WSAD), but similar steps can be taken with the other
tools in the Websphere Studio family, including Eclipse.
Requirements
Integrating an Openwave simulator with WSAD Configure the Openwave simulator as the Web Browser in WSAD.
Testing with the Openwave simulator To test your applications with the Openwave simulator in WSAD, select Run on Server or Debug on Server . These options are available in the toolbar or by right-clicking your content page. The Openwave simulator starts with two windows: the phone information window and the main simulator window. Either window may launch minimized or in the background, so you may have to bring it to the foreground. As you debug and make changes, you can again select Run on Server to update the running simulator and pass it the URL you are currently working on. This way you can test your current page or move between pages.
You can also navigate using the Openwave simulator itself, selecting links or
entering URLs in the simulator's "Go" field.
Controlling a running simulator with WSAD You can create menu items in WSAD that send command-line arguments to a running Openwave simulator. The simulator features a number of command-line arguments, such as
Notes In SDK 6.1, you can optionally start the simulator without the Phone Information
window by adding the In SDK 4.1.1, because of an issue with the phone information window, you have to launch the simulator outside of WSAD and then use the Run on Server command to refresh content. The integration instructions use the There are some Openwave simulator command-line arguments that you can only use
when you start the simulator, and there may be some that you want to set as
defaults (for example, the default language or default simulator configuration
file, or "skin"). In these cases, you can start the simulator using a batch
file with all the arguments you need. One way to to this is to edit the batch
file called when you start the simulator using its Start menu item, |