Adding Flex Validations

Document created by Chris Sommerstad Employee on Jul 20, 2017Last modified by Jijius Jabez on Aug 10, 2017
Version 3Show Document
  • View in full screen mode

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

See Flex Recording Using ExternalInterface and Adding Flex Automation Capability 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.

Attachments

    Outcomes