Hi Velo, googled for quite a while - but was not able to find any documentation on how to run Flex Monkey tests.
I created a very simple MXML and generated the matching Flex Monkey Action Script tests. However when I run the tests using Maven I get errors like this: <failure message="UIEventMonkeyCommand SelectText textInput: Could not find target textInput" type="com.hp.flexMonkey.FlexMonkeyTestSuite.tests.SimpleUiTest">null</ failure> Obviously my UI is not opened during the test and Flex Monkey cannot connect to it. Automation support is compiled in. In the flex mojos Maven documentation I cannot find any special settings for Flex Monkey configuration. If it is of any help you can download the whole test project from http://www.yeap.de/pub/fx-monkey-test.zip. Not that you will need the automation_monkey.swc file contained in the Flex Monkey accessories from http://www.gorillalogic.com/userfiles/FlexMonkeyInstaller/MonkeyAccessories3_18_10.zip in order to compile it. Feel free to use this example as reference for others, once it is working. Below is my pom: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>com.hp.opr</groupId> <artifactId>fx-monkey-test</artifactId> <name>${project.artifactId}</name> <version>1.0-SNAPSHOT</version> <packaging>swf</packaging> <build> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>3.5.0</version> <extensions>true</extensions> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>license</artifactId> <version>3.5.0.12683</version> </dependency> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>3.5.0.12683</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flex.compiler</groupId> <artifactId>asdoc</artifactId> <version>3.5.0.12683</version> <classifier>template</classifier> <type>zip</type> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>3.5.0.12683</version> <type>pom</type> </dependency> <dependency> <groupId>com.adobe.flexunit</groupId> <artifactId>flexunit</artifactId> <version>4.0-rc-1</version> <type>swc</type> <scope>test</scope> </dependency> <dependency> <groupId>com.gorillalogic</groupId> <artifactId>automation_monkey</artifactId> <type>swc</type> <version>1.0.1</version> <scope>internal</scope> </dependency> <dependency> <groupId>com.adobe.flex.sdk</groupId> <artifactId>automation</artifactId> <type>swc</type> <scope>internal</scope> <version>3.5.0</version> </dependency> <dependency> <groupId>com.adobe.flex.sdk</groupId> <artifactId>automation</artifactId> <type>swc</type> <classifier>en_US</classifier> <version>3.5.0</version> </dependency> <dependency> <groupId>com.adobe.flex.sdk</groupId> <artifactId>automation_agent</artifactId> <type>swc</type> <scope>internal</scope> <version>3.5.0</version> </dependency> <dependency> <groupId>com.adobe.flex.sdk</groupId> <artifactId>automation_agent</artifactId> <type>swc</type> <classifier>en_US</classifier> <version>3.5.0</version> </dependency> <dependency> <groupId>com.adobe.flex.sdk</groupId> <artifactId>automation_flashflexkit</artifactId> <type>swc</type> <scope>internal</scope> <version>3.5.0</version> </dependency> </dependencies> <!-- ===== REPOSITORIES ====== --> <repositories> <repository> <id>flex-mojos-repository</id> <url>http://repository.sonatype.org/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>flex-mojos-repository</id> <url>http://repository.sonatype.org/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> </project> -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/ To unsubscribe from this group, send email to flex-mojos+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
