0 Shares 255 Views

Get Scripting Access – the Flash Injector way

May 24, 2013
255 Views
Flash Player Debugger Version

Flash Injector – Configuration for testing flex based applications using TestComplete

TestComplete needs scripting access of application internals, to test Flex applications. There are four ways to get access to Flash and Flex applications, which make them testable using TestComplete. Click on the links below to know more about each ways from smartbear website.

In this post we will discuss about the Flash Player Debug version approach, which is the easiest and quickest one among all these. In this approach we use the debug version of Flash Player with the FlashInjector.swf helper module shipped along with TestComplete. It is also known as the Flash Injector way.

This is quite simple and is a three step procedure.

Step 1: Installation of Debugger version of the Flash Player

  1. go to Adobe – Find Version – Flash Player page.
  2. find section “5. Troubleshoot Flash Player” – under “Find Flash Player version type and capabilities (Flash developers only)” verify you have debugger version installed (Debug Player = Yes).

    Flash Player Debugger Version

    Flash Player Debugger Version

  3. If Debug Player is No then it means you don’t have debug player installed.  Install Debug player. Find the latest Flash Player version available for your operating system  at section 3 and click on the appropriate link to install under section 4 Install Flash Player. Debugger versions are available to download here.

Step 2: Modify or create the mm.cfg

If the file mm.cfg is not created in the user profile folder, then create one adding the preloadswf parameter and initialize it with the fully-qualified path to the FlashInjector.swf module. By Default, this module is installed in the <TestComplete Installation Dir>\Open Apps\Flex foler.

– On Windows Vista, Windows 7, Windows Server 2008 and later operating systems, the typical path to this file is<System_Drive>\<Users>\<User_name>\mm.cfg.

– On Windows XP and Windows Server, the typical path is <System_Drive>\<Documents and Settings>\<User_name>\.

Add the preload parameter

On a 32-bit version of Windows:

PreloadSwf=C:\Program Files\Smartbear\TestComplete 9\Open Apps\Flex\FlashInjector.swf

On a 64-bit version of Windows:

PreloadSwf=C:\Program Files (x86)\Smartbear\TestComplete 9\Open Apps\Flex\FlashInjector.swf

Step 3: Add the FlashInjector.swf path to the list of trusted locations in Flash Player’s settings

Navigate to Global Flash Player Security Settings page,

Select Edit Location > Add Location from the drop down List for “Always trust files in these locations”

Global Security Settings Panel

Global Security Settings Panel

Enter the fully qualified name of the  <TestComplete>\Open Apps\Flex directory and click Confirm.

Global Security Settings Panel

Global Security Settings Panel

You may be interested

Setting up Mobile Automation Project in Windows
Katalon Studio
77 views
Katalon Studio
77 views

Setting up Mobile Automation Project in Windows

Saket - Sep 20, 2017

This tutorial explains how to setup a mobile automation project and test a mobile app using Katalon Studio on Windows. This tutorial assumes that you are familiar…

Katalon Studio GUI Overview
Katalon Studio
147 views2
Katalon Studio
147 views2

Katalon Studio GUI Overview

Saket - Sep 14, 2017

GUI Overview After installing and setting up Katalon Studio for your automated test, you must understand the GUI. In this post we will walk you through the…

LeanFT Tutorial #4: Application Model Overview
LeanFT
124 views1
LeanFT
124 views1

LeanFT Tutorial #4: Application Model Overview

Saket - Sep 10, 2017

In this post we are going to focus on Application Model in LeanFT. Refer our earlier posts on LeanFT Getting Ready with LeanFT Browser Extensions and Settings…

Leave a Comment

Your email address will not be published.

Most from this category

Join The Growing Group of 15000+ Test Automation Engineers

Signup for our newsletter and get access to free downloads, as well as tips, tricks and techniques and various test automation resources.
Name
Email Address
Secure and Spam free...