Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

UI Expand
titleInstall a HAR certificate


Info
iconfalse

Note: Clear the browser cache on the device before performing the following steps in the Java utility.

This section explains how to use procedure walks you through using the sample Java utility to set up up HAR files for mobile testing before attempting to capture mobile network traffic of web or mobile applications. You can also view this (soundless) video to follow along.


Multimedia
namehar-installation.mp4
width900

To install a HAR certificate: 

  1. Log in to your Perfecto cloud and open the device in the Manual Testing view.
  2. In the Java utility, provide the following required details:
    • Perfecto Cloud URL: Your cloud URL, for example https://demo.app.perfectomobile.com.
    • User Security Token: Your security token for the Perfecto cloud. See also Generate a Perfecto security token.
    • Device Session ID: The session ID as copied from the device in the Perfecto cloud. For more information, see Share a session with an IDE script.

      Expand
      titleClick to view image


    • Transaction Name: A meaningful name for the current screen, such as AndroidCertificateInstall.
    • Output Folder: The local folder to which to download and where to store HAR reports.
    • Proxy: Select if you need to connect through a proxy to enable the Proxy Host and Proxy Port. Then provide the required information. For more information, see Identify proxy host and proxy port through Netstat. If your proxy requires credentials, provide them in the User Name and Password fields.
  3. Click Install Certificate.

    Expand
    titleClick to view image


  4. Wait for the confirmation and click OK.
  5. Following the instructions in the install wizard. For more details, follow the instructions in Set up HAR Files for mobile testing.
  6. When the certificate is successfully installed on the device, click Finish.
    The configured device is now ready to capture transactional network traffic.

...

UI Expand
titleCapture transactional network traffic


Info
iconfalse
titleNotes
  • The following steps apply to web and mobile applications. 
  • Before capturing the traffic of a native or hybrid application, make sure the application allows 3rd-party software to capture the traffice. For details, contact your developer.

This section explains how to use procedure walks you through using the sample Java utility to capture mobile network traffic of web or mobile applications. You can also view this (soundless) video to follow along.


Multimedia
namehar-capture.mp4
width900

Anchor
Tnt
Tnt
To capture transactional network traffic:

  1. Log in to your Perfecto cloud and open the device in the Manual Testing view.
  2. In the Java utility, provide the following required details:
    • Perfecto Cloud URL: Your cloud URL, for example, https://demo.app.perfectomobile.com.
    • User Security Token: Your security token for the Perfecto cloud. See also Generate a Perfecto security token.
    • Device Session ID: The session ID as copied from the device in the Perfecto cloud. For more information, see Share a session with an IDE script.

      Expand
      titleClick to view image


    • Transaction Name: A meaningful name for the current screen, such as AndroidLaunchApp.
    • Output Folder: The local folder to which to download and where to store HAR reports.
    • Proxy: Select if you need to connect through a proxy to enable the Proxy Host and Proxy Port. Then provide the required information. For more information, see Identify proxy host and proxy port through Netstat. If your proxy requires credentials, provide them in the User Name and Password fields.
  3. Click Start. An information message displays.

    Expand
    titleClick to view image


  4. Click OK to close the message. A progress bar indicates the progress of the installation. When done, a success message displays.

    Expand
    titleClick to view image


  5. Click OK to close the message.
  6. Perform transation operation on the device. When done, click Stop. A success message appears.

    Expand
    titleClick to view image


  7. Click OK to close the message.
  8. Repeat these steps for each transaction you want to capture. Make sure to update the Transation Field each time. For example, if you already captured the laucnh app flow and want to capture the login flow, enter AndroidLoginApp as a transation name, as shown in the following image.

    Expand
    titleClick to view image


To download the HAR file:

  1. Close the device.
  2. Click Download HAR.
  3. To confirm that the device is close, click Yes.

    Expand
    titleClick to view image

    The Java Utility automatically downloads the HAR file with the values provided in the Transaction Name field into the selected output directory. When the report generation is complete, a success message displays. 

    Expand
    titleClick to view image


  4. Click OK to close the message.
  5. Navigate to the output folder. A subfolder exists for each transaction captured. Each transaction folder contains a .zip file that includes the .har file.

    Expand
    titleClick to view image


  6. Extract the .zip file and load any available HAR viewer for analysis. The following sample image schos http://www.softwareishard.com/har/viewer/.

    Expand
    titleClick to view image


...