Step 1: Both Laptop and Android Device should be same network, i.e) Both should be in same WIFI.
Step 2: Check the IP of the Laptop,by typing IPCONFIG in the command prompt.
Step 3: In Android Device, goto Settings > WIFI , then Long Press on the connected WIFI, then select the "Modify Network" Option in that.
Step 4: After that tap on the "Advanced Options" , then select the Proxy as "Manual".
Step 5: Next give the IP Address in the "Proxy hostname"(Which is taken from the Laptop Using IPCONFIG) and "Port" as 8888(Default Port for JMeter) and then Save it.
Step 6: Next open the JMeter
1) Click on the Templates in the Menu bar and then select
"Recording"(default) and select OK
2) Then select http(s) Test Script Recorder from the Workbench and Check the port ,
it should be 8888
3) Then click on the Start Button to record the script for the specified App.
4) Check whether the script in recording by clicking on the
Thread > Recording Controller.
5) If it is not recording , then restart both the Device and JMeter.
Note : When user clicks on the Start Button in http(s) Test Script Recorder ,
new popup will open with the certificate(Valid for 7 days) which will be seen in
JMeter > Bin folder.
new popup will open with the certificate(Valid for 7 days) which will be seen in
JMeter > Bin folder.
The above mentioned steps(from Step 6 > Step 3) will work if the Android App is
"HTTP". If the Testing App is with "HTTPS", Then install the Generated Certificate
in the mobile device (Certificate will be seen in the JMeter > Bin folder).

No comments:
Post a Comment