Runtime settings let you set the behavior of your script during replay.
In VuGen, you configure the settings from the Solution Explorer anytime before replay.
In StormRunner, you define runtime settings when you select a script for your test. For more information, see the StormRunner Load Help Center.
The runtime setting's General node allows you to control the pacing and iterations of your test. For general details about the runtime settings, hover over the setting and check the descriptive hint or see the LoadRunner Load Help Center.
To allow you to run tests using parameters with multiple values for various users, we recommend that you enable the Simulate a new user for each iteration option, under the General > Replay runtime settings.
For example, you may want to run the same test on ten different devices. You can define the Device ID as a parameter, and provide ten Device IDs. When this option is enabled, your test will substitute a different Device ID for each iteration.
For details about using parameters in your script, see Enhance scripts.
To set the Mobile Center-specific runtime settings for an individual script, double-click the Runtime Settings node in VuGen's Solution Explorer and select the Mobile Center Setting node.
Note: The settings you configure here affect Load mode. If you save the script in Interactive mode, the TruClient General Settings overwrite VuGen's runtime settings.
Set the options according to the following table:
|Collect data on||
The data metrics to collect during replay: CPU on device, Free memory on device, and Consumed memory on device.
Enable Device logs, to generate logs for each of the devices under test. The device log data is generated by Logcat for Android and Syslog for iOS.
|Application - Replay||
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:
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.
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.
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: