Record the script Configure runtime settings Enhance your script Run test Set up the environment

Get started with performance testing

Use TruClient technology together with your performance testing tool to record and run performance tests for mobile apps on devices hosted by Mobile Center.

This section describes how to configure TruClient's General settings specific to Mobile Center. For general TruClient information, see the TruClient Help Center.

Prepare your environment

To prepare your Mobile Center environment for running a LoadRunner/TruClient test:

  1. Make sure you have access to a machine with Mobile Center.
  2. Ensure that your version of TruClient supports your Mobile Center version. For details, see My product matrix.
  3. Ensure that cookies are enabled on your Internet browser.

Back to top

Open the General settings

The TruClient General Settings dialog box lets you set the Mobile Center server preferences globally, so that you do not need to configure them separately for each test.

To open the TruClient General Settings dialog box:

Back to top

TruClient General settings for Mobile Center

The settings you define in the TruClient General Settings dialog box will be applied globally to all TruClient - Native Mobile scripts. You will only need to configure these settings once. All subsequently created scripts, will automatically inherit these settings, even after you close VuGen or TruClient. Server exceptions, however, must be configured for each script.

In VuGen, if you save your script while in TruClient's Interactive mode, the settings from the General Setting dialog box, overwrite the runtime settings values in the Solution Explorer.

Setting Description
Server Connection
  • Use secured connection. If you want TruClient to automatically detect whether the server is secure or not, use the default setting, Automatic. If you must use a secure connection, select True.
  • Server URL:Port. The IP address and port of your Mobile Center server. The default ports are 8080 for non-secure servers, and 8443 for secure servers. For example, 123.45.67.89:8080.
  • User name/Password. The credentials with which to connect to the Mobile Center lab.

If you are using a secure connection and your certificate is not signed by a trusted authority, you need to add a server exception to each script. For details, see Add server exceptions.

In VuGen, click Check Connection to validate the settings.

Collect data on

The data metrics to collect during replay: CPU on device, Free memory on device, and Consumed memory on device. You can also enable Device logs, for generating logs for each of the devices under test. The device log data is generated by Logcat for Android and Syslog for iOS.

Application - Management

Initial Replay: Whether to restart or install your applications before the first replay.

Iteration. What to do with your applications before and after each iteration: Restart, Install, or Delete.

Reinstalling apps ensures their compatibility with the current version of Mobile Center. This option may not be available if you are using Amazon as a source lab.

You can also set your preferences in the Mobile Center Wizard.

For example, if your test runs multiple iterations, and you only want to install the apps for the first iteration, but not on subsequent iterations, configure the settings as follows:

Initial Replay section:
Select Enable from the drop-down list for the Restart application and Install application options.

Iteration section:
Clear the Install application before execution option. Note that this option is only effective if the Simulate a new user for each iteration option is enabled in VuGen's Replay Runtime settings.

Tip: You can manually install the application after executing the configuration flow by selecting Reinstall the application from the Restart/Reinstall toolbar drop-down .

Application - Typing

Typing Simulation Mode. How to simulate key strokes, as defined in the Type action for web elements.

  • DOM Events. (default) Simulates typing at the web page level, without relying on the device keyboard.
  • Device Events. Triggers a device level operation for each key stroke, more accurately simulating a user's action.
Network Virtualization

Lets you enable network virtualization, and select a predefined or user-defined network profile. For details, see Run tests with Network Virtualization.

Beginning with Mobile Center version 2.20, TruClient integration uses the NV 9.12 predefined network profiles. If your script uses profiles from previous versions, they may fail. For details, see Define NV profiles.

Transactions

Allows you to customize transaction names by adding a suffix to help you identify them after a test run.

The suffix can be one or more of the following:

  • OS type
  • Device ID or name
  • Application identifier or name
Mobile Center Tab

Run on start. Runs the entire configuration flow in the TruClient Mobile Center tab when the TruClient browser opens. When disabled (default) , TruClient will automatically connect with the Mobile Center server, but not execute any of the configuration steps.

If you disable this option, you can execute the flow in the following ways:

  • When you click Replay , TruClient automatically executes the flow before running the steps.
  • If you manually run steps using the Play … Step options in the right-click menu, you need to execute the flow using the Execute configuration flow button before running the steps.

Back to top

 

Useful links for performance testing

Additional help centers

LoadRunner and Performance Center blog posts

Back to top

See also: