load testing flex application

5
3 Tips to Successully Load Testing  Adobe® Flex® Applications  A NEOTYS WHITE PAPER Because load testing is one o the last crucial tasks be ore launching a web application, it’s usually done under pressure and with tight time constraints. Here are three tips to help you save time, e ort and money the next time you are load testing in a Flex environment.

Upload: sravan4236

Post on 07-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Load Testing Flex Application

8/3/2019 Load Testing Flex Application

http://slidepdf.com/reader/full/load-testing-flex-application 1/5

Page 2: Load Testing Flex Application

8/3/2019 Load Testing Flex Application

http://slidepdf.com/reader/full/load-testing-flex-application 2/5

Introduction

  Adobe Flex applications may be dierent rom applications you’ve worked with beore. For

classic HTML web applications, the server does all o the processing. In addition, the rendering

o HTML requires ull page rereshes. Flex applications are dierent because content is delivered

without having to reload the page. These applications download the Flash client application

and run in the browser, or or Adobe AIR® applications, on the desktop. The Flash is constantlybeing updated by the server, asynchronously. For this reason, Adobe Flex server loads reveal

a very dierent prole.

It is important to measure transaction response times when perormance testing web appli-

cations. Flex technology can cause signicant increases in the number o browser-to-server

HTTP calls made in the background. This increase in trac can have a proound eect on per-

ormance. While users might not be aware o the round-trips between the browser and a dis-

tant server, they will denitely notice perormance problems i the application is slow or doesn’t

work because o the increased load. Knowing the scalability limitations o your deployments is

crucial.

Innovative RIA technologies like Flex present new challenges with respect to emulating a real-

istic load. I you’re developing or deploying applications in this newer technology, successully

addressing these challenges requires thinking about load testing in new ways. Let’s look at the

new challenges in load testing Flex applications and some tips to improve application peror-

mance and enrich the user experience.

 Tip 1: Make sure you can decode AMF and process

internal identiers Adobe’s Flex AMF (Action Messaging Format) protocol is used to exchange data between an

 Adobe Flash application and a database, using a Remote Procedure call. Since the data is

in compressed binary ormat, communication is aster and more ecient than a web service.

Many load testing tools rely on data being sent over HTTP and don’t tap into the AMF protocol.

 Thereore, they don’t go deep enough to understand what is being exchanged between client

and server. For optimum testing, make sure your load testing tool decodes these objects

so that you can parameterize the requests, extract data rom the response and validate the

response.

In addition, AMF message protocol uses internal identiers (clientId, DSId, etc.) to maintain the AMF session. Parameters in an AMF session are dynamically generated and are numerous. To

avoid painul manual conguration o these parameters, make sure that your load testing tool

automatically processes serialized objects and identiers.

Page 3: Load Testing Flex Application

8/3/2019 Load Testing Flex Application

http://slidepdf.com/reader/full/load-testing-flex-application 3/5

 Tip 2: Make sure you can support customized external

messages

 AMF3 compact binary ormat helps integrate binary data exchange into all server platorms.

 The protocol improves the quality o all remote and messaging solutions or Flex and optimizes

data exchange. AMF3 reduces the quantity o exchanged inormation and avoids redundant

messages. In particular, AMF3 externalizable messages allow developers to customize the

serialization o objects exchanged in AMF.

When selecting a load testing tool, make sure it allows you to integrate custom code into it. For

optimum testing, the customized code should be loaded and run by the testing tool to correctly

replay custom messages.

 The ollowing diagrams illustrate how NeoLoad converts AMF binary to XML on design and

execution:

Page 4: Load Testing Flex Application

8/3/2019 Load Testing Flex Application

http://slidepdf.com/reader/full/load-testing-flex-application 4/5

Page 5: Load Testing Flex Application

8/3/2019 Load Testing Flex Application

http://slidepdf.com/reader/full/load-testing-flex-application 5/5

NEOTYS Germany (Sales ofce)

Waldstrasse 50a

Neu-Isenburg, 63263, Germany

 Tel: +49 (61) 02 43 27 38

NEOTYS (HQ)

30, avenue du Château de Jouques

13420 Gémenos, France

 Tel: +33 442 180 830

NEOTYS USA, Inc.

241 Boston Post Road West

Marlborough, MA 01752, USA

 Tel: +1 646 502 8061

www.neotys.comE-mail : [email protected]

  As more and more companies deploy mission critical applications on the

internet it has become increasingly important to performance test these

web applications before they go live. While Adobe Flex provides expanded

capabilities to develop new powerful applications in support of organizational

needs they are different from other web applications. As a result a new

approach to load testing is required. By implementing the tips in thiswhitepaper, companies can quickly adapt their testing methodology to handle

Flex applications, get to market faster and easier than ever before, while

improving productivity and saving money.

 About Neotys

Since 2005, Neotys has helped over 1000 customers in more than 60 countries enhance the

reliability, perormance, and quality o their applications. NeoLoad is a best-in-class load testing

solution that automates the development, execution and analysis o perormance testing.NeoLoad supports all web 2.0 technologies, is fexible and easy to use with innite scalability

rom the cloud. All this is backed by a dedicated team o Neotys proessional services and

support specialists to ensure your success.

To Get More Information

Web: http://www.neotys.com

E-mail: [email protected]

Neotys and NeoLoad are registered trademarks o Neotys company in USA and others countries.

 Adobe, Flex, AIR are registered trademarks o Adobe Systems Incorporated in USA and others countries.

© Copyright Neotys 2011