Adding Flex Validations

by Community Manager on 07-06-2011 01:15 PM - last edited on 07-08-2011 06:13 AM by Community Manager

This topic describes how to add validation capabilities to a simple Adobe Flex application.

See Flex Recording Using ExternalInterface and Adding Flex Automation if you haven't already performed the operations prescribed by them.

Note: You can download an archive of this test application including the compiled object and its code, or access and download the individual source files as they occur in Find Out How below.

 
  1. First, add another function to the action script file that allows us to get the text of the Flex label component.

  1. Next, add the ExternalInterface callback to make it available in JavaScript.

  1. This allows us to use the verifyFlexReturnValue validation to verify that the label changes each time that we do one of the actions that we're testing.