Record a native application in tunnel mode

Some native applications cannot be recorded in proxy mode. When the mobile device does not support the definition of a proxy or when the application cannot use the defined proxy, it is necessary to use the tunnel mode. This mode makes it possible to record any mobile application, either web or native, standard or customized, for any platform in any version.

The communication between the mobile device and the server is recorded through the NeoLoad Tunnel function which makes it possible to launch the NeoLoad Recorder without using the NeoLoad proxy. On one side, the Tunnel simulates the web server for the mobile device, and on the other side, it processes the requests and responses with the web server. The Recorder catches the transactions to build the scenario. NeoLoad allows the filtering of the recording to skip or include some requests in order to get an accurate scenario.

EN_tunnelrecord

You can start recording an application with:

Warning: Before recording the scenario, it is recommended to close all HTTP client applications (other Web sessions, Twitter client, and so on). NeoLoad records all the HTTP flows going through the machine. It is necessary to close HTTP clients or define exclusion rules in NeoLoad to avoid unwanted requests in the recording.The Start Recording dialog makes it possible to define the new recording.

To record in tunnel mode, the tunnel mode option must be selected.

It is recommended to uncheck the Start client option as the mobile device itself generates the traffic. As soon as the record is started in NeoLoad, the mobile application can be used. NeoLoad catches the HTTP traffic of the recorded application to create the test scenario content.

A click on the OK button closes the Start Recording dialog and displays the Tunnel mode recording wizard to prepare the recording.

EN_tunnelrecordwizard1

A click on the Detect servers button starts the native application discovery function.

EN_tunnelrecordwizard2

The Detecting servers bar shows the IP address of the NeoLoad Controller. Without closing the bar, the IP address of the DNS server of the device must be modified to reroute transactions toward the NeoLoad Controller:

  1. The IP address of the DNS server of the mobile device must be noted down to reset the device after the recording process.
  2. In the Wifi parameters of the mobile device, it is necessary to switch the IP address of the DNS server with the IP address of the NeoLoad Controller shown in the Detecting servers bar.
  3. The device must be restarted to save the change.

At that moment, the application on the mobile device must be started to have NeoLoad detect the servers used in the application. On the mobile device, every action in the scenario must be performed to have the Detecting servers bar analyze the application.

A click on the Stop server detection process icon closes the Detecting servers bar and updates the Tunnel mode recording wizard. The Servers list step displays all the application servers and domains to record:

The servers list can be modified with the Add and Remove buttons. It can be modified subsequently too at the end of the scenario record or in the Design section.

In the Tunnel mode recording wizard, clicking the Next button launches the Configuration check step.

EN_tunnelrecordwizard4

When issues are raised, it is necessary to correct them before starting the true record of the application:

Once IPs and ports are ready, clicking Back in the Tunnel mode recording wizard makes it possible to restart the Configuration check step. When the configuration is ready, a click on the Finish closes the wizard.

The Recording of Virtual User bar is displayed to record the mobile application. To make sure the DNS server is used when recording the application, the mobile device must be restarted.

779_1

Browsing the application and performing every action of the scenario automatically create the record in NeoLoad. When all the actions are done, a click on the Stop Recording icon stops the recording and closes the recording bar. The Post-recording Wizard opens up to help configure the recorded scenario. For more information, see Post-recording wizard. Subsequently, the scenario can be edited and improved in the Design section of the NeoLoad Controller. For more information, see User Paths.

When the recording is over, the original IP address of the DNS server must be set back on the mobile device before restarting it to save the change.

  1. Connect your mobile device in Wifi to the same network as your NeoLoad Controller.
  2. In the Design section of NeoLoad, click Start Recording.
  3. In the Start Recording dialog, specify a new Virtual User.
  4. To record in tunnel mode, select the Tunnel mode option.
  5. To record from your mobile device, uncheck the Launch browser option. Click OK.
  6. In the Tunnel mode recording wizard, click Detect servers.
  7. The Detecting servers box gives you the IP address of the NeoLoad Controller.
  8. On your mobile device, change the Wifi parameters:
  9. On your mobile device, start your application. Browse the application as expected in your scenario.
  10. Click the Stop server detection process icon.
  11. In the Tunnel mode recording wizard, rectify the servers list and the record configuration. Click Finish. The Recording of Virtual User bar is displayed.
  12. Restart your mobile device. Start your application. Browse the application as expected in your scenario.
  13. Click the Stop recording icon.
  14. Reset the IP address of the DNS server of the mobile device. Restart the device.
  15. Configure your scenario further in the Post-recording wizard.