← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #281192]: Cannot start app ONLY when running the tests with maven

 

Question #281192 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/281192

    Status: Needs information => Open

vicus gave more information on the question:
This should be enough for testing if the Add/Remove app starts (using
Win 7 64bits):

App uninstallApp = new App("cmd.exe /c start appwiz.cpl");
uninstallApp.open();
uninstallApp.focus();

Here's my pom.xml file:

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.test.org</groupId>
	<artifactId>sikuli</artifactId>
	<packaging>jar</packaging>
	<version>1.0.1</version>
	<name>sikuli</name>
	<url>http://maven.apache.org</url>
	<repositories>
		<repository>
			<id>com.sikulix</id>
			<name>com.sikulix</name>
			<url>https://oss.sonatype.org/content/groups/public</url>
			<layout>default</layout>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>always</updatePolicy>
			</snapshots>
		</repository>
	</repositories>
	<properties>
		<suiteFile>src/test/resources/windows/testng.xml</suiteFile>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org</groupId>
			<artifactId>jnativehook</artifactId>
			<version>1.1.4</version>
			<scope>system</scope>
			<systemPath>${project.basedir}/lib/JNativeHook.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>org.sikuli</groupId>
			<artifactId>sikuli-api</artifactId>
			<version>1.2.0</version>
		</dependency>
		<dependency>
			<groupId>org.sikuli</groupId>
			<artifactId>sikuli-webdriver</artifactId>
			<version>1.0.1</version>
		</dependency>
		<dependency>
			<groupId>org.sikuli</groupId>
			<artifactId>sikuli-core</artifactId>
			<version>1.2.2</version>
		</dependency>
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>6.8.5</version>
		</dependency>
		<dependency>
			<groupId>com.rallydev.rest</groupId>
			<artifactId>rally-rest-api</artifactId>
			<version>2.1.1</version>
		</dependency>
		<dependency>
			<groupId>org.uncommons</groupId>
			<artifactId>reportng</artifactId>
			<version>1.1.4</version>
			<!-- <scope>test</scope> -->
			<exclusions>
				<exclusion>
					<groupId>org.testng</groupId>
					<artifactId>testng</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>com.google.inject</groupId>
			<artifactId>guice</artifactId>
			<version>3.0</version>
		</dependency>

		<dependency>
			<groupId>org.sikuli</groupId>
			<artifactId>sikuli-slides-api</artifactId>
			<version>1.5.0</version>
		</dependency>
		<dependency>
			<groupId>org.bytedeco</groupId>
			<artifactId>javacv</artifactId>
			<version>0.9</version>
		</dependency>
		<dependency>
			<groupId>com.google.code.gson</groupId>
			<artifactId>gson</artifactId>
			<version>2.3</version>
		</dependency>
		<dependency>
			<groupId>com.sikulix</groupId>
			<artifactId>sikulixapi</artifactId>
			<version>1.1.0</version>
<!--			<scope>system</scope>
  			<systemPath>${project.basedir}/lib/sikulixapi.jar</systemPath>
-->
		</dependency>
		<dependency>
			<groupId>org.jfree</groupId>
			<artifactId>jfreechart</artifactId>
			<version>1.0.19</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId> 
				<artifactId>maven-surefire-plugin</artifactId> 
				<version>2.5</version> 
				<configuration>
					<systemPropertyVariables>
						<org.uncommons.reportng.escape-output>false</org.uncommons.reportng.escape-output> 
					</systemPropertyVariables>
                    <suiteXmlFiles>
                        <suiteXmlFile>${suiteFile}</suiteXmlFile>
                    </suiteXmlFiles>	
					<properties>
						<property>
							<name>usedefaultlisteners</name> 
							<value>true</value> 
						</property>
						<property>
							<name>listener</name> 
							<value>org.uncommons.reportng.HTMLReporter</value> 
						</property>
					</properties>
					<!--  <workingDirectory>target/</workingDirectory>--> 
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId> 
				<artifactId>maven-resources-plugin</artifactId> 
				<version>2.6</version> 
				<configuration>
					<encoding>UTF-8</encoding> 
				</configuration>
			</plugin>
		</plugins>
		<testResources>
			<testResource>
				<directory>src/test/resources/windows/</directory> 
				<filtering>true</filtering> 
			</testResource>
		</testResources>
	</build>
</project>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.