Mobile QA Zone

A Mobile Application Testing Community

Blackberry simulator configuration for z10

Hi 

  Friends today i share my experience in configuring blackberry z10 simulator for os version 10,normally we will directly execute simulator by clicking on phone model under "Research in Motion Directory", But for this version they made difficult :( okay let me come to the steps

First download your blackberry setup here i take z10 from here

Minimum system requirements

  • Processor: Intel dual core 2.0 GHz or higher or an AMD Athlon 4200+ or higher
  • Virtualisation: It is recommended that your CPU supports Intel Virtualisation Technology extensions (VT, VT-x, vmx) or AMD Virtualisation extensions (AMD-V, SVM). To enable virtualisation, see Virtual machine acceleration in Improving performance.
  • Disk Space: 10 GB of free disk space
  • Memory: 4 GB of Memory
  • Graphics: GeForce 8800 GT or higher or an ATI Radeon HD 2600 or higher
  • Virtual machine: For Windows and Linux systems, download VMware Player. For Mac systems, download VMware Fusion.

Before you begin, you must download and install a virtual machine player.

Download VMware Player.   Download VMware Fusion

Installing the simulator

1. Download the BlackBerry simulator setup application for your operating system..

BlackBerry 10 Dev Alpha Simulator.    BlackBerry PlayBook 2.1 Simulator

2. Run the simulator setup application and follow the instructions.

3. Perform the following steps to start the simulator for your operating system:

  • Start VMware Player.
  • Click Open a Virtual Machine.
  • Navigate to the folder where you installed the simulator, select the BlackBerry10Simulator.vmx file or the BlackBerryPlayBookSimulator.vmx file. Click Open.
  • Click Play virtual machine.
    Note: The BlackBerry 10 Dev Alpha Simulator starts as a BlackBerry 10 Dev Alpha device. If you do not have a supported graphics card, you can click inside the simulator window before it starts and select BB10DevAlphaSafe as your screen type to continue without supported graphics. However, you cannot test an app that requires OpenGL ES 2.0 on a simulator that has been started in BB10DevAlphaSafe mode. For example, you cannot test a Cascades app on the simulator in BB10DevAlphaSafe mode. You must test Cascades apps on the simulator with the default screen type of BB10DevAlpha.

On Mac:

Open a Finder window and double-click BlackBerry10Simulator-BB10_n_nn or BlackBerryPlayBookSimulator-n.n.n to start the simulator in VMware Fusion.

Configuring the simulator

Find the IP address of the simulator
To test applications in the simulator, you must provide the IP address of the simulator to the tool you use to deploy your app. You can view the simulator’s IP address by clicking the icon that appears to the right of the clock on the status bar.

Note: To display the IP address, the simulator must be in Development Mode. Development Mode is enabled by default.

Configure snapshots of your simulator

By default, VMware Player sets your Player Preferences to Suspend the virtual machine when you close VMware Player. When you suspend a virtual machine, VMware Player takes a snapshot of its current state. If you do not want snapshots to be stored on your computer, on the File tab in VMware Player, click Player Preferences and change these preferences.

Switch between landscape and portrait modes

By default, the BlackBerry 10 Dev Alpha Simulator starts in portrait orientation and the BlackBerry PlayBook Simulator starts in landscape orientation. To rotate the orientation, click the bottom-right corner of the bezel. To return to the default orientation, click the bottom-right corner of the bezel again.

Telnet or FTP to the simulator

You can also SSH, Telnet, or FTP into the simulator using the IP address of the simulator and a devuser account with a devuser password.  You will not require SSH keys and you do not have to use BlackBerry-connect. To FTP to the simulator, you can use FileZilla or any FTP application.  To Telnet to the simulator, you can use Putty or any other Telnet application.

Note: You do not need a password to SSH to the simulator.

Improving performance

Multiple processor cores

By default, a virtual machine is created with one processor core. For optimal performance, you can set the number of processor cores of the virtual machine to two.

Note: Before you can change the virtual machine settings, you must turn off your virtual machine.

  1. In VMware Player, select your virtual machine.
  2. On the Virtual Machine tab, select Virtual Machine Settings.
  3. Click the Hardware tab, and select Processors.
  4. In the Number of processor cores drop-down list , click 2. Click OK.

Virtual machine acceleration

Virtual machine acceleration improves the performance of the simulator by allowing multiple operating systems to simultaneously share x86 processor resources using virtualisation extensions. To use these extensions with the simulator and significantly improve the execution speed of your app, your CPU must support one of the following virtualization extensions technologies:

  • Intel Virtualization Technology extensions (VT, VT-x, vmx)
  • On Linux, AMD Virtualization extensions (AMD-V, SVM)

Note: Virtualisation extensions are enabled through your computer’s BIOS and are usually turned off by default. Check the documentation for your operating system to find out how to enable virtualisation extensions. Usually you can find the settings either under CPU or Security.

Using the controller

The controller setup application is installed into a controllers folder when you run the simulator setup application.

Connect the controller to the simulator

  1. Obtain the IP address of the simulator.
  2. On Windows or Linux, navigate to the folder where you installed the simulator and run controller.exe. On Mac, browse to the location where you installed the simulator, choose View package contents on the .vmware file, and extract the controllers folder. Double-click the controller application.
  3. On the Connection menu, click Connect.
  4. Enter the IP address of the simulator and click Connect.
  5. On the status bar at the bottom of the main controller window, verify that the controller displays Connected to .

Set the orientation of a device

By default, the simulator orients the device face up as if the device is lying flat on a table with the screen upwards and the bottom edge facing South.

  1. In the Device menu, select Orientation and select the Set RPY option from the drop-down list.
  2. Enter the degree of orientation around each axis in the Roll, Pitch, and Yaw fields or select a preset orientation from the Presets drop-down list.
  3. Click Apply.

Note: The transition from the current position to the new position will be smoothed to emulate real-world conditions.

Simulate holding a device and tilting it

The controller provides a virtual joystick that simulates the same motion as holding a device by its sides and tilting it. For example, moving the joystick upwards tilts the top edge of the device backwards and the bottom edge forwards.

  1. In the Device menu, select Orientation and select Tilt on Z-Axis.
  2. Click and drag the black circle to tilt your device.

Rotate the device around a single axis

Rotating on the X axis lets you simulate rotating from left to right while the device is flat. Rotating on the Y axis lets you simulate rotating a device from top to bottom. Rotating on the Z axis lets you simulate rotating a device from front to back.

  1. In the Device menu, select Orientation and select Rotate About an Axis.
  2. Select an axis from the dropdown list.
  3. Drag the slider or the knob to rotate the device.

Set a specific GPS location

You can set the GPS location of your simulator by specifying latitude, longitude, and altitude. Latitude and longitude are specified in degrees as signed decimals, and altitude is specified in meters above mean sea level as an unsigned decimal.

You can also choose a preset location from the drop-down list. For example, Waterloo, ON, Canada is available as Latitude = 43.481928, Longitude = -80.54075, Altitude = 329.0.

  1. In the Device menu, select Location and select GPS Position.
  2. Enter the GPS location in the Latitude, Longitude, and Altitude fields or select a preset location from the Presets drop-down list.
  3. Click Apply.

Travel along a route

You can use the controller to test navigation and mapping applications using the NMEA Route Playback. The controller provides a continuous stream of GPS updates to the simulated device. You will see events being sent in the log as the controller plays the route (approximately one per second by default, but you can specify other timing in your route file).

  1. In the Device menu, select Location and select NMEA Route Playback.
  2. Browse to a NMEA route. The controller provides preset NMEA routes but you can provide your own route. The route must consist of one  NMEA sentence  per line. The controller supports the Global Positioning System Fixed Data format, known as GGA format, and the Recommended Minimum Specific GPS/Transit Data format, known as RMC format.
  3. Press Play.
  4. Click Pause to stop playback at a specific position. Click Play to resume from the same position.
  5. Click Stop to stop playback. Click Play to start the route from the beginning.

Troubleshooting your simulator

Can I use the BlackBerry 10 Dev Alpha Simulator if I don’t have the correct graphics card?

Yes. Safe mode was added to the simulator to support BlackBerry 10 users who do not have a video card that is compatible with VMware. If you do not have a supported graphics card, you can click inside the BlackBerry 10 Dev Alpha Simulator window before it starts and select BB10DevAlphaSafe as the screen type. While in safe mode, the simulator uses a software implementation of OpenGL ES 1.0 or 1.1. You can use safe mode for Adobe Flash, Android, and web apps. You cannot use safe mode for Cascades apps which need OpenGL ES 2.0.

How do I debug a networking issue?

You might have networking issues when there are IP address conflicts. You’ll need to get the IP address of the simulator to determine if there are conflicts with your host machine. Use these tips to resolve your networking issue.

  • Make sure that the VM NAT service and VM DHCP service are running on your machine.
  • If you have a VPN or VLAN running, make sure it does not conflict with VMware.
  • Ensure that your VMnet8 adaptor is running. Get the IPV4 address for the adaptor and ping it to make sure it is running. The IP address should be in the 192.168.* range, if it’s in the 169.* range then try disabling and enabling the adapter.
  • If you’re running VMware Workstation, you can use the vm_run tool to figure out which IP address is assigned to the guest OS.
  • Try switching from NAT to Bridged mode in the Hardware tab of your Virtual Machine Settings.
  • Find the vmnetdhcp file on your system. This file will contain all the IP addresses assigned by the vmware DHCP server. Check for conflicts.

Why do I receive an error code 8 when I sideload and launch an application?

If you receive the error message Unable to start due to error 8, it is most likely because the app wasn’t built for the x86 platform.  Rebuild the app for the x86 platform and try again.

Apart from this if you get ftp connection refused at error logs , view this following thread

Source : Google,BB App developers,

Hope it helps

C.vignesh

Views: 465

Tags: Blackberry, tips, z10

Comment

You need to be a member of Mobile QA Zone to add comments!

Join Mobile QA Zone

© 2014   Created by Anurag Khode.

Badges  |  Report an Issue  |  Terms of Service

Welcome to Mobile QA Zone, a Next Generation Software Testing Community.Invite your friends to join this community.Write to us to become a featured member.