Mobile testing with JMeter - jmeter

I am trying to record a mobile app(not native one) through Jmeter or BlazeMeter proxy recorder. But as soon as I do the proxy settings in my device, the internet is not working on the device. I get a message as "err_connection_timed_out" .
Please help, I am new to Jmeter testing with mobile applications , any help is highly appreciated.

First Confirm that You have installed CA certificate in mobile.
Before opening the app in mobile start the jmeter proxy server.
If both steps are followed, still you are not able get:
just delete the CA certificate installed in mobile and take CA certificate from your Jmeter and install it in your device.
Then run your recorder. It should work

Related

How to record native iOS app requests in Jmeter?

I have tried recording native iOS app ( developed in Swift and Objective C++ ) in Jmeter using proxy but it didn't worked .
I also tried recording native app ( removing SSL from app ) but it didn't worked either.
For recording HTTPS traffic you need to install JMeter's self-signed certificate onto your mobile device. The file is called ApacheJMeterTemporaryRootCA.crt and you need to pass it somehow to your iOS device (send by email, upload to a web server and open it in your browser, etc.)
The file is being generated under "bin" folder of your JMeter installation when you start HTTP(S) Test Script Recorder
Additionally you will need to switch on "ENABLE FULL TRUST FOR ROOT CERTIFICATES", the setting lives under Settings -> General -> About -> Certificate Trust Settings
Be informed that the certificate has limited life span (7 days by default) so if you imported it a while ago you will need to reinstall the "fresh" version.
Also make sure to turn off the cellular data and configure Wi-Fi adapter to use JMeter as the proxy, given you start the proxy and properly configure your device to use it you should be able to capture HTTP traffic without any extra setup and HTTPS traffic if you have the JMeter's certificate installed.
All the traffic which is not HTTP or HTTPS will not be captured/recorded
More information: Load Testing Mobile Apps Made Easy

I am not able to record Mobile Native Banking apps using JMeter

I am using JMeter 3.3.
I am not able to record traffic from our mobile banking app but I am able to record traffic from simple app which are less secure like weather channel. Can anyone help me here to make my mobile banking app work?
Most probably you need to install JMeter's self-signed certificate onto your mobile device:
Locate ApacheJMeterTemporaryRootCA.crt file (it's being generated in "bin" folder of your JMeter installation when you start HTTP(S) Test Script Recorder)
Transfer it to device somehow (i.e. send it via email and open the attachment on the device side)
Import the certificate to the device, follow your mobile operating system instructions on how to do this
Assuming everything goes well JMeter should be able to intercept, decrypt and record mobile traffic (You might need a 3rd-party application to proxy the secure traffic, i.e. ProxyDroid for Android OS)
You can also consider using a cloud proxy which makes the process of installing the certificate easier, check out A Step by Step Guide to Performance Testing on Native Mobile Apps article for more details.

Record HTTPS requests of a mobile IOS/Android application with JMeter

Is it possible to record httpS requests of a native app (IOS or Android) with JMeter? I tried some ways that I found but, I've not resolved the problem..
Use jmeter 3 with Java 7 or 8, it creates a crt file in jmeter/bin folder. It is the CA that creates the certificates.
Send this file by mail and open it in Android / iOS then install it.
In test script recorder, put in the dedicated field HTTPS domains , the domains you are trying to hit, see:
-http://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder
Restart Ipad/Android and jmeter test script recorder and try again.
to do this, you have to make your device trust the Jmeter Proxy CA.
So, you have to import the Jmeter CA certificate from
$JmeterHome/bin/ApacheJMeterTemporaryRootCA.crt
into the device.
I remember this is an area where things improved a lot recently, so be sure to have the last version installed.
Try deleting ApacheJMeterTemporaryRootCA.crt, JMeter's self-signed certificates have very limited life time (I recall something like 1 week), so if your certificate is older you might have problems installing it into browsers and/or mobile devices or it won't decrypt SSL traffic. The file will be re-created next time you start HTTP(S) Test Script Recorder
There is an alternative way of recording the mobile traffic by using your personal cloud proxy. Moreover, it will perform automatic correlation for you so you won't have to worry not only about SSL certificates, but also about Regular Expression extractor, JMeter Variables, etc. Check out How to Cut Your JMeter Scripting Time by 80% article for details.
If none of the above helps, take the following troubleshooting steps:
Add View Results Tree listener as a child of the HTTP(S) Test Script Recorder. In case of any problems with the recording a request it should display the error details.
Check your mobile device logs during failed certificate installation attempt. You may need to install Android and iOS developer tools for this.
Make sure that your application is really uses HTTP or HTTPS protocols as JMeter supports only these 2.

Receiving this error while doing performance testing via Jmeter for mobile app.**ensure browser is set to accept the JMeter proxy certificate**

I am testing performance of mobile app via jmeter for android mobile app. FOr most of the apps installed in my mobile device, I am receiving below error message.
Software caused connection abort: recv failed
ensure browser is set to accept the JMeter proxy certificate.
Please help me to know how to resolve this error, while testing with mobile app.
Well have you done what the error message says e.g. have you installed the JMeter CA certificate ? look at this guide and check if you have followed the steps correctly [Apache JMeter HTTP(S) Test Script Recorder] (https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf) especially this step :
Return to HTTP(S) Test Script Recorder, and click the “Start” button at the bottom.
This will start the JMeter proxy server which is used to intercept the browser requests.
A file called ApacheJMeterTemporaryRootCA.crt will be generated in jmeter/bin folder.
Install this certificate in your browser, if you don't know how to do it, read “
Installing the
JMeter CA certificate for HTTPS recording
” in : http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_Recorder
When you start JMeter's HTTP(S) Test Script Recorder it generates a dummy certificate in order to be able to decrypt SSL traffic.
Locate ApacheJMeterTemporaryRootCA.crt file in JMeter's /bin folder (it may live in other location if you run JMeter i.e. from desktop shortcut)
Install it onto your device (the easiest way is sending it to yourself via email, open the email on device and click on the attachment)
After certificate installation device should be
You may find Mobile Recorder service easier to use

Jmeter Mobile app not recording with Proxy setting

J-meter version 2.12 and 2.13
OS windows : Windows 7
Android version 4.4
NOTE:Mobile app is our test environment and still under testing phase
J meter recording:
When I set the proxy then the app is not recording in j meter i.e. Am not able
to login to the app itself.
However if I remove the proxy setting then am able to login to app successfully
and can perform the transactions
I tried with the app which are their in play store , most of the app are
recorded with proxy setting
So am a having doubt due to signed apk then the app is recording in j meter are what ?
Am not able to figure whats the problem is . Can anybody please help me.
Our Plan is to record the mobile transactions through j-meter and upload the script to Blaze meter
Thanks,
Prabhakar.Y
Your app may be using HTTPS and Android native network configuration utility may not support HTTPS proxying so the options are:
Perform additional configuration:
Use third-party application like ProxyDroid which supports HTTPS proxying
Install JMeter's ApacheJMeterTemporaryRootCA.crt (it's generated in /bin folder of JMeter installation) onto device
Use Mobile Recorder service instead.

Resources