Flex applications combine the best of desktop and Internet applications. As you consider your performance test requirements, keep in mind how Flex applications may be different from applications you have built in the past.
With an application that delivers the user interface in HTML—including JSP, ASP, ColdFusion, and PHP—the server does all of the processing. Users simply page back and forth to the server. This means your performance testing requirements include thinking through the key use cases for the application and simulating users on those key areas.
Flex applications are different. These encapsulated applications are downloaded and run on the desktop. They only go back to the server periodically to request or send data. For this reason, server loads reveal a very different profile. For example, it is entirely possible that a Flex application could download a data set and the user could work on that data set for hours without making another request of the server.
Chances are good that your Flex application will put a load on the server when the user logs in and requests the first data set. The next load will occur only sporadically as users work. Think about how to model that user load. For example, a typical user scenario might look like the following:
It's important to note that this may be very different from your user loads in HTML-based applications because they would constantly be paging back to the server for data.
When we look at modeling real user load, keep the different nature of Flex applications in mind to guide you in how to distribute real-life user loads.
All the major automated-testing tools on the market allow you to simulate load on your server exactly as your user population will be using your Flex application. You create and control pools of users that simulate various use cases in random ways on your application, simulating the load your users will generate. The tools log and graph everything for you to show exactly how each of these virtual users fared as load increased on your server.
All the tools in this class work in a similar way. The basic workflow is as follows:
In the following sections, you'll learn how to record and modify the tests, as described in Steps 1, 2, and 3. The rest is up to your requirements for application testing.
After installing Segue Silk Performer and the Remoting add-in, setting up for recording and playing back scripts is easy.
Note: For more information on setting up, recording, and editing AMF scripts using Segue Silk Performer, see the Advanced Concepts documentation. Its chapter on testing Remoting AMF applications offers much detail not contained in this article.
Figure 1. Selecting Flash Remoting as the Flex application type