Before you begin this task, prepare your application for run-time loading.
-
Open the
FlexAutomationLauncher.html file or create a file using
FlexAutomationLauncher.html as an example.
-
Navigate to the following section:
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(eef
"src", "FlexAutomationLauncher",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "FlexAutomationLauncher",
"quality", "high",
"bgcolor", "white",
"name", "FlexAutomationLauncher",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer",
"flashvars", "yourParameter=yourParameterValue"+ "&automationurl=YourApplication.swf"
);
</script>
Note: Do not change the "
FlexAutomationLauncher" value for "
src", "
id", or "
name."
-
Add your own parameter to "yourParameter=yourParameterValue".
-
Pass the name of the Flex application that you want to test as value for the "& automationurl=YourApplication.swf" value.
-
Save the file.