Android native app scripting with LoadRunner

May 4 2019

There are a lot of ways to generate vugen script for your native android app.  I was using an app which had ssl encryption and used json requests and I followed the below to create script in Vugen. THIS DOESN'T NEED TO ROOT YOUR DEVICE.

1) Install app on a real android device
2) Install HTTPCanary app from playstore
3) Follow the onscreen steps to install the app and install its certificate and allow all the required access
4) From settings define the filter to select the app you want to capture packets
5) Start the recording and leave it to run. This will capture all packets from the test app even when minimized
6) Open the test app and perform transactions.
7) Open HTTPCanary and stop the recording. This will generate multiple captures for the test app. These will be sorted as per time so that helps you to understand the sequence. Each capture contains one request and the corresponding response.
8) Open each capture which will show you the request/response/raw data/headers all in readable format
9) In vugen you can create a web http script and create custom requests.
10) HttpCanary provides all the request header details, request body, host url, get/post method, enc type, content type etc which you need to create the custom request.
11) Run the vugen script and see the magic!!!

Comments

Popular posts from this blog

CI CD Continuous Performance Test Framework with LoadRunner/Jenkins/Bitbucket

LoadRunner integration with HP QC/ALM