CloudTest provides Action Message Format (AMF) test support via the Recording Editor. Simply launch the Recording Editor, launch the browser to record from and point it at your AMF-based HTTP site or service. The Recording Editor will automatically decode AMF messages such as those between ActionScript objects and AMF services that it encounters during an HTTP(S) recording and then present content in plain text within the Recording Editor, Message Editor, and in test results.
Create the HTTP(S) Recording
To get started, use the following steps:
- Start your SOASTA Conductor.
- In the Central list, select HTTP(S) Message Recording and then click New.
The Recording Editor, New HTTP(S) Message Recording page appears.
- Optionally, enter a recording name other than the default or specify a Save Location.
- Select the Conductor you started above from the Available Conductors list.
- Specify a Recording Method. Either HTTP(S) Recording or Packet-level Recording.
- Launch the browser window from which you will record.
- Click the Record button.
Convert the AMF-based Recording to a Test Clip
Once you have a recording for your AMF-based site(s), use the following conversion steps to create a test clip.
- Apply filters to the recording, and when ready, click Convert to a Clip. The Create a Test Clip from a Recording Wizard appears.
- Enter a clip name and select a clip timing type (use Sequenced if you’re unsure) and then click Next. The Bursts and Think Times page appears.
- Choose whether to Insert Think Times (accept the default if you’re unsure) and then click Next.
- The Match Targets to Recording Messages page appears. If targets for your HTTP site(s) exist, they will be detected here for a match. If not you can create them in the next step. In either case, click Next.
- The Create New Targets page appears.
Review the New Targets (they should correlate to the site(s) that were recorded). Click Next again. The Create Clip page appears.
- In the Next Steps section, choose Go to the Clip Editor in order to inspect messages in the AMF-based test clip.
Editing and Playing an AMF-based Message in the Clip Editor
Viewing and editing an AMF message is the same as any other HTTP message within CloudTest.
- With the AMF-based test clip open in the Clip Editor, select a message that you’d like to edit and then double-click it.
The selected message is opened in the sub-pane with the tab title Selected: <MessageName> active. Note that the decoded content is presented as plain text just as with any other message.
- Edit the message here by navigating through the nodes in the sub-pane tree.
- Play the message by clicking the Play button on the sub-pane toolbar. The tab will switch to Results when the response is received.
When you play a message in the Clip Editor, if it has the AMF content-type, CloudTest will automatically encode it before sending the request. Similarly, message responses are decoded before they display in the Message Editor sub-pane of the Clip Editor. The decoded response will also be displayed in results (such as in the Result Details widget).
Note the "Content-Type: application/x-amf" header indicating the AMF type in the screenshot above.