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:


Example

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="myapp" width="100%" height="100%"  
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
    <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"
      play="true"
      loop="false"
      quality="high"
      allowScriptAccess="sameDomain"
      type="application/x-shockwave-flash"
      pluginspage="http://www.macromedia.com/go/getflashplayer">
      </embed>
</object>


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

+

Search Tips   |   Advanced Search