Highlighted
Honored Contributor.
Honored Contributor.
1271 views

Mobile Performance Testing

Hello Experts,

I need some help/suggestion on Mobile Performance Testing. We have sceanrio/scope to do the Mobile Performance Testing , i need some help on how to approach for testing.

1)For Mobile test, how can we record teh script? Do we need emuliator or simulator? if so, how do we get it and how to install and record the script.

2)Did anyone used SMP protocol ? I need help on how to start and record teh script.

3)WHat are the thing to consider while doing the Mobile Performance Testing. What should be our Test Strategry.

Please advise.

0 Likes
6 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Mobile Performance Testing

Hello,

1) You can find all the answers here: http://lrhelp.saas.hpe.com/en/latest/help/WebHelp/Content/VuGen/t_HowToSelectAProtocol.htm
The best approach is to use proxy recording, or create a script from a PCAP file

2) SMP product documentation (in some versions) include the instructions for creating LR scripts. For example here: http://scn.sap.com/docs/DOC-40965 
LR docs: http://lrhelp.saas.hpe.com/en/latest/help/WebHelp/Content/VuGen/tocs/toc_SAP_mobile_platform.htm

3) This is a pretty generic question, but the most important thing is to properly emulate the network conditions. These can greatly affect the app performance. Use built-in Network Virtualization integration.

Hope this helps. Best Regards,

Igor Markov
R&D Manager, Performance Engineering Core
0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Mobile Performance Testing

Hello Igor

Thanks for the information. I have few more questions.

I referrd the link you provide(http://lrhelp.saas.hpe.com/en/latest/help/WebHelp/Content/VuGen/t_HowToSelectAProtocol.htm) 

under Web HTTP/HTML section it says: "A protocol enabling you to develop scripts using mobile devices or mobile device emulators communicating with servers over HTTP". 

Mobile device emulators should be installed on Client side machines(like laptop) or do we need to have Mobile phone, install the emulator, record the sceanrio, zip the file and open the in Vugen on laptop?

I am going through the online doucmentation ,but still not clear on how to start the scripting for Mobile devices. I am looking some thing like details steps on where to begin with scripting. 

Client is based on SAP application and i guess SMP protocol will be prefered as client server communication. I did not use this protocol before and when i refer the HP documentation on SMP protocol, it is mentioned as script recording is disabaled and we need to "Add the location of the SAP.Mobile.LoadRunner.dll"

Generated .cs files can include objects from external .dlls. To successfully replay the script, include a reference to these .dlls in Runtime Settings > .NET > Shared DLLs.

How and from where we can get the DLLs?

I was trying to refer the http://scn.sap.com/docs/DOC-40965 , but it doesn't seems to be valid URL. 

Can you please advise further.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Mobile Performance Testing

Hello,

First you need to understand the architrcture and the underlying protocol of your mobile application.. If it uses HTTP (like 99%) of mobile apps, you can simply use proxy recording mode. Proxy recording is much simpler than using an emulator. You just use VuGen as a proxy, configured mobile device to work with it, and all the communicatio nfrom mobile devices goes through VuGen and thus is being recorded. Step by step instructions are in the product documentation: http://lrhelp.saas.hpe.com/en/latest/help/WebHelp/Content/VuGen/t_HowToRecordViaAProxy.htm

Re: SMP - this protocol is relevant only if indeed your app is based on SMP framework. Not every SAP app is based on SMP, you need to know what communication protocol is being used to record it (again, in most cases it's HTTP). In case of SMP, the script recording is provided by SMP and not by LR, and therefore I've provided SAP links. The link http://scn.sap.com/docs/DOC-40965 works just fine for me, but you can also check this one: http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01931.0230/doc/html/den1345124609233.html

The SMP DLL(s) are provided by SMP.

Regards,

Igor Markov
R&D Manager, Performance Engineering Core
Highlighted
Honored Contributor.
Honored Contributor.

Re: Mobile Performance Testing

Hello Igor,

Thanks for the input. I will try to follow the Proxy recording documentaion. 

You mentioned " configured mobile device to work with it", which means we need to have Mobile device and have it configured,right?

Can you please provide the details on what we need to configure on Mobile devices?

Can we pratice the Mobile protocol scripting on our phone and configure the phone with Vugen. Can you guide me on this.

 

Thanks a lot for your prompt response.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Mobile Performance Testing

Hello Igor,

Can you please advise.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Mobile Performance Testing

Well, if you are going to record a mobile device traffic with VuGen as a proxy, it means that first of all you need to start proxy recording in VuGen (for example IP: ABCD, port 8888). Then you want your mobile device to send all its traffic to the internet via this proxy. So second you will need to configure ABCD:8888 as the proxy on your mobile device (usually it can be done in network settings, here is iOS example). Once done, all device traffic will go thorugh VuGen and will be captured. Eventually after stopping the recording a script will be generated in VuGen. Of course, both the device and the VuGen machine need to be on the same network, but it shouldn't be an issue if you are connecting both to same WiFi network and disabling cellular traffic on the device.

All the above is explained in product documentation.

Igor Markov
R&D Manager, Performance Engineering Core
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.