http://www.proxy-sniffer.com
Recording HTTP/S Traffic
from any iPhone and iPad
by using "Pure Cloud"
Version 5.0-K
English Edition
Table of Contents
1 Abstract ... 3
1.1 How Much Does It Cost? ... 4
2 Step by Step Instructions ... 5
2.1 Step 1: Install ProxySniffer on your Notebook or Desktop Computer ... 5
2.2 Step 2: Launch (Start) a "Pure Cloud" Machine ... 5
2.3 Step 3: Login into the "Pure Cloud" Machine and Copy the ProxySniffer Root Certificate to D:\MyTests ... 6
2.4 Step 4: Import the ProxySniffer Root Certificate into your iPhone or iPad ... 7
2.5 Step 5: Configure the Proxy Settings on your iPhone or iPad ... 10
2.6 Step 6: Record HTTP(S) Traffic from the iPhone or iPad ... 11
3 Further Steps ... 15
3.1 Post-Process the Recorded Data ... 15
3.2 Verify the Proper Functionality of your Load Test ... 15
3.3 Rent Powerful Cloud-based Load Generators and Perform Large Load Tests ... 15
4 Reset the Configuration on the iPhone or iPad ... 16
5 Terminate (Stop) the "Pure Cloud" Machine ... 18
1 Abstract
This manual explains step by step how to record HTTP(S) traffic from any iPhone and iPad by using an Apica ProxySniffer "Pure Cloud" machine that runs in the Amazon EC2 cloud.
After the recording of a Safari Web browser session, or the recording of HTTP/S traffic generated by any iOS application, has been done the captured data can be automatically converted into a load test program. Such a load test program can then be executed from cloud-based load generators that are able to simulate 200,000 virtual users or even more.
You need:
- An iPhone or an iPad – connected to the Internet (by any provider, WLAN or 3G/4G), from which the HTTP(S) traffic will be recorded. - An Amazon AWS Account (register at aws.amazon.com if you don’t have such an account).
- A notebook or a desktop computer running Windows or Mac OS X, connected to the internet, used to start and access an Apica ProxySniffer "Pure Cloud" machine on Amazon EC2.
Note that your notebook or a desktop
computer is only used to start and access the "Pure Cloud" machine. All
other tasks like recording and post-processing of load tests, starting of load generators and performing of load tests can be made from the "Pure Cloud" machine. Even when you stop (terminate) your "Pure
Cloud" machine all of your data are safely
stored on a cloud-based disk and can be re-used when you start later another "Pure
1.1 How Much Does It Cost?
The recording of HTTP(S) traffic from an iPhone or iPad do not require to purchase a ProxySniffer license, and you can also execute small load tests with up to 20 virtual users form a "Pure Cloud" machine for free. This means that you have only to pay for the "basic" Amazon AWS costs that are:
Between 1.00 and 1.90 USD * (+ I/O: USD 0.14 per 1 million I/O requests) per month for a cloud-based Data Disk. Between 1.14 and 1.60 USD * per hour for running a "Pure Cloud" machine.
* = depending on the geographic location the Amazon data center. The amount is charged by Amazon.
Recording of HTTP(S) traffic from an iPhone or iPad and executing small load tests is inexpensive. However, keep in mind that you have manually to terminate (stop) your "Pure Cloud" machine after you have performed your load test (in order to avoid unnecessary Amazon AWS costs).
Additional costs occur if you wish to rent strong cloud based load generators. Further information about cloud-based load generators is available at
2 Step by Step Instructions
2.1 Step 1: Install ProxySniffer on your Notebook or Desktop Computer
Download the ProxySniffer installation kit from http://www.proxy-sniffer.com/download_en.html. You require ProxySniffer version 5.0-K dated from November 18, 2012 (or a newer version).
After that start on your local notebook or desktop the "ProxySniffer Console" and then start the "ProxySniffer GUI".
2.2 Step 2: Launch (Start) a "Pure Cloud" Machine
Click on the "Pure Cloud" icon in the ProxySniffer GUI and follow the instructions described in "Pure Cloud" Manual:
http://www.proxy-sniffer.com/en/doc/ProxySnifferPureCloud_Slides.pdf
If you don’t have a "Pure Cloud" data disk you have first to create such one before you can launch a "Pure Cloud" machine.
Note: When launching a "Pure Cloud" machine you must enter an arbitrary password used for accessing the machine and you must manually enable the checkbox "Enable Proxy Recorder (port 7999 and 7997 - HTTP and HTTPS/HTTP Proxy". All other checkboxes should also be enabled:
2.3 Step 3: Login into the "Pure Cloud" Machine and Copy the ProxySniffer Root Certificate to D:\MyTests
After your "Pure Cloud" machine is started login into the machine by using the user account PrxUser and the password that you have configured when launching the machine. Then copy on the "Pure Cloud" machine the file root.cer from C:\ProxySniffer to D:\MyTests (which is your cloud-based disk).
Note: in case if you have created your own root
certificate as described in the installation manual you should first upload your files root.cer and privkey.der and replace them in C:\ProxySniffer. After that reboot the "Pure Cloud" machine before you copy the file root.cer to D:\MyTests.
2.4 Step 4: Import the ProxySniffer Root Certificate into your iPhone or iPad
Start the Safari Web browser on your iPhone or iPad and enter http://<DNS name of Pure Cloud Machine>:81/MyTests/root.cer
To authenticate yourself against the WebDAV server running on the "Pure Cloud" machine enter the user account PrxUser and the password that you have configured when launching the machine.
2.5 Step 5: Configure the Proxy Settings on your iPhone or iPad
Configure as Proxy Server the DNS name of your "Pure Cloud" machine and configure the Proxy Port 7997.
2.6 Step 6: Record HTTP(S) Traffic from the iPhone or iPad
Logon again into your "Pure Cloud" machine by using Remote Desktop, then start the ProxySniffer GUI on that machine and start the recording by clicking at the icon in the ProxySniffer toolbar:
Then switch to your iPhone or iPad and perform the steps that you want to record.
Note: during recording we recommend that you always insert a "Page Break" at the ProxySniffer GUI on the "Pure Cloud" machine - each time before
3 Further Steps
3.1 Post-Process the Recorded Data
Please to read the Proxy Sniffer User's Guide starting from chapter 4.2.
http://www.proxy-sniffer.com/en/doc/ProxySnifferUsersGuideV50En.pdf
Normally you have to post-process the recorded data before converting them into a load test program.
We recommend that you also take a look at the manual about Handling of Dynamically-Exchanged Session Parameters.
http://www.proxy-sniffer.com/en/doc/HandlingDynamicSessionParameterEN.pdf
3.2 Verify the Proper Functionality of your Load Test
You can perform small load tests directly from the "Pure Cloud" machine for free. This allows you to verify the proper functionality of your load test before you spent money for renting powerful cloud-based load generators.
3.3 Rent Powerful Cloud-based Load Generators and Perform Large Load Tests
To rent powerful cloud-based load generators follow the instructions in the Generating Load from the Cloud Handbook.
http://www.proxy-sniffer.com/en/doc/GeneratingLoadFromTheCloudEN.pdf
Keep in mind that you should start the cloud-based load generators always from your "Pure Cloud" machine (don't start them from your local notepad or desktop computer).
4 Reset the Configuration on the iPhone or iPad
After the recording of a load test has been done you should reset the configuration on the iPhone or iPad.
B) Un-install the ProxySniffer Root Certificate on the iPhone or iPad:
Note: in case if you have used your own root certificate – created as described in the installation manual – there is no need to un-install your root
certificate. However, if you have installed the generic ProxySniffer root certificate we strongly recommend that you un-install this certificate to keep your iPhone or iPad secure.
5 Terminate (Stop) the "Pure Cloud" Machine
After the load test has been performed – and after you have acquired and analyzed the load test results – you shouldn't forget to terminate (stop) your "Pure Cloud" machine in order to avoid unnecessary Amazon costs. All of your data are safely stored on the cloud-based data-disk and can be re-used when you start later another "Pure Cloud" machine.
After the "Pure Cloud" machine has terminated you can also delete the cloud-based data-disk. However, in such a case all of your data are lost. Note that the Amazon costs are only between 1.00 and 1.90 USD per month for a cloud-based data disk. Therefore it's not recommended that you frequently delete and re-create cloud-based disks.
To verify that all cloud-based machines, load generators and data-disks are stopped you take a look at the bottom of the window where a corresponding statistic is displayed:
Note: All menus provide context specific help text, available using the Help Icon:
6 Manufacturer
Ingenieurbüro David Fischer AG, Switzerland | A company of the Apica Group
Product Web Site: http://www.proxy-sniffer.com