Create an HTML wrapper

The developer creates an HTML wrapper after compiling the Flex application with theIBM Rational Functional Tester agent and Flex automation testing libraries.

The wrapper embeds the .swf file in an HTML page by using the <object> and <embed> tags.

You can use the default HTML wrapper file that the compiler generates along with the Flex application or use the HTML wrapper file in the functional testing application folder.

After creating the HTML wrapper, the developer passes the application and the HTML wrapper to the testers for functional testing. Typically developers deploy the files to a Web server that testers access.

The following example shows how the Flex application Test.swf is embedded in the HTML page:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="myapp" width="100%" height="100%"  
    <param name="movie" value="Test.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value=#CCCCCC />
    <param name="allowScriptAccess" value="sameDomain" />
    <embed src="Test.swf" quality="high" bgcolor=#CCCCCC
      width="1000" height="500" name="myapp" align="middle"

Related concepts

Flex support

Flex applications testing process

Test Rational Functional Tester enabled Flex applications

Test Flex applications that are not enabled using Rational Functional Tester