SkillAgentSearch skills...

Flexium

Flexium API - Automated testing for Apache Flex and Selenium

Install / Use

/learn @StackAndHeap/Flexium
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Flexium API - Automated testing for Apache Flex and Selenium

Flexium is a tool used for building automated Selenium tests.<br/> 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 <b>FlexiumAPI.zip</b> file. The Flexium API consists out of 2 parts.<br/>

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

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

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");
    }
}

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2y ago
Forks2

Languages

ActionScript

Security Score

55/100

Audited on Jun 27, 2023

No findings