Network Payload Capture - Setup for iOS device

Step 1: Setting in Portal

  • Go to Portal page → User → Settings → Network Capturing tab 

  • Here, enter the domain name(s) that you wish to capture separated by whitespace or comma. 

  • Moreover, click on the Advanced settings. Here, you can choose data types that you want to capture in your requests/responses by turning them on using toggle buttons.

  • Click Apply. dJQOS8dFZQ4kQWdZ2bHm9MITY8oVhBiA5IC4Cyd54tln62oY4xJHnZjkzQXVE25U0KQhcrsxPLTXmXP780WFC_qwqYoBDX_pV5h3uI_rVpVNAMWqN3aB8v5QNYb59_D58qD0JkEe.pngy5Zn9YLm85ptyG3T1lNe-4gICP4Bw9MDQWIheARGLn3f5H2xkczbunnvvTvxKTDCPZJi8GFxw6aUXPGwUTvAR0ORtDQzRhPC9bUtUjCwwmQ1nOYmD5G2hoMvMbIyRRPtGM7UB2pJ.png

Step 2: Get device UDID

  • Plug the device into a macOS computer. 

  • In the macOS computer, open Finder, choose your iPhone, then click in the header just under your phone’s name until you can see the UDID. Then, right-click and choose Copy UDID.tieLz3Ax4YeA43fSzmXR_Rla7ecOVXHg_K-MyyCog6o3FkL0mi5i6zSfBEK28HN1RigQEr0hBx0xmng67nzrxymLUMKYxpDQ7hrEXzb0WA4HZuLEgTvG2KeP3WDMVnUuyITmilw5.png-bbxV3QwE4-zcFl2MB-6Fgc_41mMR_zCt27Z9U1o5SJRBAbLm5MdChIgYGll5Xrhwh3puosfY56t3Tc_zPrpj1SVt5aK7k2PvCyDIMNpqHczTrPi1njSRgYnpLLYOfAp_nNP82-R.png

Step 3: Install Kobiton Certificate:

First, download Kobiton certificate for Network Payload Capture (NPC):

For setting up NPC for devices on Latest Kobiton platform, a certificate file from Kobiton is required. Contact the Kobiton support team for the download link.

For setting up NPC for devices on Legacy Kobiton platform, a certificate file from Kobiton is required. Contact the Kobiton support team for the download link.

Download Kobiton Certificate by using the macOS computer, you can Airdrop to send the certificate file to your devices.

Step 1: Turn on Airdrop in your iPhone and your macOS computer.
Step 2: Right-click on the certificate file in the macOS computer, choose Share, then choose AirDrop, then choose Accept.P-QF97tS9QrlhHJ7ViWqOExBd7HMUfu6HGROIEnLl3YBXga-fk4ywkeH4c-Y2tDF5Ui--SEVYKgIVAxz0SkP8MEY2IQ4m-q0nUZw3fILJmGRPzyzZUoaD68Bhzw9cBp6jBTXADme.png

Step 4: Download Kobiton Certificate Authority

On the iOS device, go to Settings → General → Profiles → Choose the Kobiton Certificate Authority → select Install on the top right corner of the Screen → Done.xIECheaSWkd01SmeEwfR38rPoiQidjbtvefwZWdBSEtIEQzxiJwSHZXse_ugKX_UkCEC-x2uFFrfNdpYwDZEucws7406__eisEeQYnTre3NmXVjcQ9SgnB2AjC1ODWOrxrx3vGWv.png

QZNNg7dswRBrICrqMR76m4zFjHCb4ZwMj6Ucen1vTpyXBfnxDntyWNjKAmWMILxMD2msY8aHUNr3cONFeYRGaJo9279CcLhwZBexfwOBAWrTglpY0po7BcMrpWnSIgzGAvcY1_It.png

Step 5: Enable Kobiton certificate with full trust for root certificates

  • On the iOS device, go to Settings → General → About → Certificate Trust Settings.

  • Look at the Enable Full Trust For Root Certificate table view and make sure that the Kobiton Certification Authority is ON (otherwise, just tap on the toggle button to turn it on) then your device is ready to go.image-20211130-035116.png

Step 6: Remove any created passcode on the iOS device before moving further

Step 7: Download Apple Configuration 2 in AppStore

  • Do not plug the iOS device into the macOS computer yet.

  • Go to the AppStore or follow the link here to download the Apple Configurator 2 application.

  • Open Apple Configurator 2.

  • In Apple Configurator 2 on the top of your screen, Click on choose Install Automation Tools in the Apple Configurator 2 menu, click Install, then enter your administrator password. nO7g9eUAXjztpu00MZ-tXidab2Crtpi8JUgpl61mV7WyeAhyZSAeWaHte25qS8iFNVXsAVq-FEaF-EJDCvQA0QGn4QPw-dePkB3UIi67M0yF_sgflXJxe_sp6TnxX7uxTHFQRJkS.png

Step 8: Add file config

  • Do not plug the iOS device in this step and do not start Kobiton Desktop App yet. 

  • Go to the path below (In other to get the device UDID, please check step 2 above).

/Users/$(whoami)/Library/Application Support/Kobiton/devices/your-device-udidimage-20211130-035411.png
  • Create a file named config in this folder with the content below:

{"unlockPasscodeEnabled": false, "networkPayloadCaptureEnabled": true}image-20211130-035503.png

Step 9: Testing Network Payload capture

  • Make sure that the macOS computer connects to the same Wifi/Ethernet address as the iOS device.

  • Plug the iOS mobile device into the macOS computer and launch Kobiton Desktop application.

  • Moreover, make sure that the Apple configurator tool is started and running before the test for iOS devices.

  • Start your test session including Manual (or Appium automation) that accesses the domain which is set up to capture payload in step 1. 

  • You can view the payload in the tab Observe Request / Response Payloads on the Session Detail page on the Kobiton portal.TVajiozO9f9DvLSPNZYx3vJYV5WYeduLCyJ6XH5f4tRRZ_pSSboVVBIpj_bGLoIJn_rgLuFYeIGXBYxlcrbHrY11l-7E7tnd6qK--dLTWAhNX5y012yjVL_RwXiXHXdtwZnEIjz9.png

 

 

Was this article helpful?
0 out of 1 found this helpful