Sunday, November 23, 2014

IPAD/Mobile/Tablet - Native/ Web Applications Script recording with Neoload/Loadrunner

Here is the approach on script recording with load testing tools for Native/Mobile applications on iPAD/Mobile/Tablet.

1. Ensure your tool & mobile/tab/ipad on which application is deployed should be in the same network.

2. Grab the machine ip address and port of the tool with which you want to capture.

3. provide the ip address and port in the proxy settings of the mobile/ipad/tab.

4. install required certificate of the tool in mobile/ipad/tab.

5. Start capture with tool.

6. Navigate the application in mobile/ipad/tab and observe the script capture in the tool.

Proceed with executions, once the required business flows are captured.

Mobile applications performance testing

Nowadays mobile applications are growing rapidly. Most of the customers in different verticals are transforming their applications to mobile/tablets.

Also number of users across globe, using the applications growing at tremendous rate. This leads the mobile application performance significant.

Variety of applications including Web,Native and Hybrid on various OS such as iOS,Android are deployed.We need to have a startegy/solution on how to approach for mobile performance testing.

First look at the pointers to test :

How to Capture a script with selected tool.

Load pattern (Geographies/Bandwidth)

Metrics to monitor

Analysis pattern

Thursday, November 20, 2014

How to download proxyroot.cer for loadrunner script proxy recording.



When loadrunner is required to record a script via proxy recording mode, we need to have proxyroot.cer to be installed on the devices where application is installed.

1. Open Vugen and start proxy recording.

2. provide the port number to which it has to listen.

3. Ensure the IE proxy setting should be same before starting and during start recording.

4. open browser and provide http://:port(provider in Vugen)/prxoyroot.cer.

5. if the above one able to turn up change .cer to .dat i.e http://:port(provider in Vugen)/prxoyroot.dat.

6. if it is downloaded as .cer save it in the same format. if it is downloaded as .dat change the format to .cer after saving on the drive.

SSL protocol error when attempting to connect with host "abc.def.com" in Loadrunner

In Loadrunner some times we might face error while replaying scripts such as :

SSL protocol error when attempting to connect with host "abc.def.com"

The possible solution might be use web_set_sockets_option("SSL_VERSION", "TLS"); just before the request where the particular error is occurred.

Wednesday, November 19, 2014

IPAD application trace capture with Fiddler

Nowadays , Users are tending towards usage of applications on mobile and PADs. So, the performance of applications deployed on IPAD also considered to be important.

As a process of validating performance we need to capture trace also. Here is the approach to capture trace through fiddler.

Steps

1. Open fiddler and ensure settings in connections are proper.

2. Open IPAD --> Settings -->WiFi.

3. under WiFi go to Manual and provide proxy details. place the ip address of the machine in which fiddler is installed and port as 8888.

4. Now start trace capture in Fiddler and access the application in IPAD. Observe trace is captured in Fiddler.

Sunday, November 16, 2014

How to add many client browsers in launch client option in Neoload

There is a scenario for me to test with Safari browser. But when i see launch client there is only one option as "Internet explorer".

But, Here i found the solution for this -

First install the required browser in your system laptop/desktop.

Navigate to Recording preferences --> Browsers --> Add .

Provider path of exe , Name and version associated to it.

Click to start recording and verify in Launch client combobox. Now you are able to the respective browser.

Thursday, November 6, 2014

Java script code bit for URL encoding in Neoload

Some cases if we need to have javascript code snippet for URL encoding in neoload, you can try the code.


var str1 = context.variableManager.getValue("variable name");

function urlencoding(str1) {
str1 = (str1 + '').toString();
return encodeURIComponent(str1)
.replace(/!/g, '%21')
.replace(/'/g, '%27')
.replace(/\(/g, '%28')
.replace(/\)/g, '%29')
.replace(/\*/g, '%2A')
.replace(/%20/g, '+');
}

var str2 = urlencoding(str1);

context.variableManager.setValue("newvariable",str2);

Sunday, November 2, 2014

Globalising variables files in Neoload

Variable files can be accessed from anywhere in the network across various neoload scripts.

Create a file in .CSV format and placed in the network drive which is accessible.

Define a variable in the variable manager assign it to the file path that is mapped through file browser.

So that the variable across various scripts can use same data in the network.