[ flash-selenium ] Hello World

Download

https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/flash-selenium/source-archive.zip

Eclipse import

  1. Open Eclipse, select File > New > Project.
  2. Select “Java Project from Existing Ant Build File”, choose \flash-selenium-source-archive\flash-selenium\trunk\java\flashselenium\build.xml
  3. Create FlashSelenium project and Create FlashSeleniumTest project
  4. Add FlashSelenium to FlashSeleniumTest classpath

Testing SWF

copy the following files to htdocs, so we can access from http://localhost/colors.html

flash-selenium-source-archive\flash-selenium\trunk\flash\changingcolors\changingcolors.iml

flash-selenium-source-archive\flash-selenium\trunk\flash\changingcolors\changingcolors.ipr

flash-selenium-source-archive\flash-selenium\trunk\flash\changingcolors\changingcolors.iws

flash-selenium-source-archive\flash-selenium\trunk\flash\changingcolors\ColoredSquare.swf

flash-selenium-source-archive\flash-selenium\trunk\flash\changingcolors\colors.html

Change BASE_URL to localhost

flash-selenium-source-archive\flash-selenium\trunk\java\flashselenium\test\com\thoughtworks\selenium\samples\ColorsTest.java

BASE_URL = "http://localhost/"; // http://flashselenium.t35.com/

Running selenium server

For Java 7,

java -jar selenium-server-standalone-2.53.1.jar

Run the UnitTest

FlashSeleniumTest/test/com/thoughtworks/selenium/samples/ColorsTest.java

FlashSeleniumTest.png

ref : http://www.adobe.com/devnet/flash/articles/flash_selenium.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s