0
votes

In JMeter, use Templates > Recording Unfold Workbench > HTTP(S) Test Script Recorder and start recorder A certificate authority file is generated in jmeter/bin folder called ApacheJMeterTemporaryRootCA.crt Install it in Android Connected my device in to desktop by advance setting in wifi But its not recording my action in desktop............. How to find whether my device is connected but desktop?

1
Hello @Mohana Priya, welcome to StackOverflow! We'd love to help, but your question gives us very little information. Please consider reading how to make a minimal, verifiable, and complete question, and editing your question accordingly.AJF
Please add a little more details about what you have done so far.Adnan

1 Answers

0
votes

First use JMeter Recording Template Then start JMeter's HTTP(S) Test Script Recorder, it will generate in jmeter/bin folder, a file called ApacheJMeterTemporaryRootCA.crt . Copy file to your android device and install it as CA Certificate. See How do I install a user certificate? thread for more details.

The certificate has limited life time (defaults to 7 days) but you can extend it by setting in user.properties

proxy.cert.validity=Number of days

Now the problem you'll face in Android >= 7.0 is that applications only use by default System installed Certificates.

So you'll need to ask developper of application to modify the APK, see why here.

Edit manifest and add :

android:networkSecurityConfig="@xml/network_security_config"

You'll get:

 <?xml version="1.0" encoding="utf-8"?>
 <manifest ... >
     <application android:networkSecurityConfig="@xml/network_security_config"
                ... >
    ...
     </application>
 </manifest>

Then add in res/xml/network_security_config.xml this:

 <?xml version="1.0" encoding="utf-8"?>
 <network-security-config>  
       <base-config>  
             <trust-anchors>  
                 <!-- Trust preinstalled CAs -->  
                 <certificates src="system" />  
                 <!-- Additionally trust user added CAs -->  
                 <certificates src="user" />  
            </trust-anchors>  
       </base-config>  
 </network-security-config>

Note that this is needed whatever tool you use (Neoload, LoadRunner, ...)

For full details read: