my image

my image

Tuesday, December 4, 2012

Mobile performance testing

Performance Testing - Mobile devices - Part 1

Many companies and users realised the power of building websites for mobile needs, smartphones and mobile devices could be found with many people all over the world, therefore we need to be sure if the servers of these sites will be able to handle the multiple requests of many mobile devices.

Let's show one case of how to face this challenge :

In any case the servers need performance testing to make sure that no crash or slowness could bother the users when multi users use the website, imagine 1000 users ask your servers for the same source ??
even asking for different source could be risky!!

Performance test for servers that handling mobile website applications.

LoadRunner Mobile TruClient protocol

How to use:
LoadRunner Mobile TruClient protocol, give us an easy way to creating script by recording the business process on the computer while simulating real environment of mobile browser.

Open Vugen -> Create new script -> Select TruClient Ajax - Mobile protocol

Select the device you want to simulate, when the device been selected you will see the user agent and the window size of the selected mobile device.

User Agent definition: The client or application which initiates a request to a Web server or other Internet application.

Example for iPhone browser User Agent:
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Mobile/7D11

Example for Iphone screen size:
320 X 480
Start recording the business process using TruClient technology, when start recording then 2 windows of firefox will be opened, first window show the record/replay and functionality tools, the second window simulate the mobile browser, by entering the mobile website URL into the second browser the site will be rendered and ready for recording.

Now.. click on start record in the first window and all that's left to do is to perform the business process, then you will see the record engine creating steps in real time into the first window in the left side.

After finish the business process click on stop recording.

Replay the recorded script by clicking on replay button in the left side window, and watch the replay performing real action into the browser while moving from step to another.

You can use TruClient Toolbox functionality, like: (wait step, Loops, Javascript coding, transactions, and more...)

When the script ready and passed the replay test, then you can move it to the Controller.
The Controller used to schedule the test scenario and watching the monitors in realtime, and more.

You can schedule the script to run with X users, for X time, ofcurse there are many options that I will write about them in detailed post about Controller. (later)

Screenshot of real running Mobile TruClient script: 
After the script finish running it's time to get the analyzed report, the report will opened into Analysis to give the users the ability to handle the reports.

1 comment:

  1. Thank you for provide us valuable information and services, we also testing tool service provider our services are Load testing tool, Performance testing tool and more much for more information about us you can visit our website