Skip to content

StackAndHeap/flexium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flexium API - Automated testing for Apache Flex and Selenium

Flexium is a tool used for building automated Selenium tests.
Flexium is a work in progress, only having basic functionality (yet).

What's next?

  • Adding more functionality - extended datagroup support.
  • Implement an objectExplorer to easily find components in your application.
  • Improve communication between JAVA and Flex. (implementing objects, no more strings)
  • Improve Error handling.

How does it work?

Download the FlexiumAPI.zip file. The Flexium API consists out of 2 parts.

The first part is the Apache Flex-library, named Flexium.swc.
The only thing you need to do is to compile this swc into your Flex application. You can do this by adding include-libraries Flexium.swc as a compiler option or adding a reference to the Flexium-class in your code.

The second part is a jar-file, named FlexiumLink.jar.
This file extends the FlexiumLink-class. FlexiumLink extends flash-selenium and takes care off all the communication between your tests and the application.

Your Java test class looks like this:

public class DemoAppTest {
    private final static String BASE_URL = "http://localhost/";
    private final static String PAGE = "flexiumDemo/DemoApp.html";
    private Selenium selenium;
    private FlexiumLink flexSelenium;
    private SeleniumServer _server;

    @Before
    public void setUp() throws Exception {
        _server = new SeleniumServer();

        _server.boot();
        _server.start();

        selenium = new DefaultSelenium("localhost", 4444, "*firefox", BASE_URL);
        selenium.start();
        selenium.open(PAGE);

        flexSelenium = new FlexiumLink(selenium, "DemoApp");
    }

    @After
    public void tearDown() throws Exception {
        selenium.stop();
        _server.stop();
    }

    @Test
    public void basicTests() throws Exception {
        flexSelenium.click("button");
    }
}

About

Flexium API - Automated testing for Apache Flex and Selenium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •