Skip to content

Commit

Permalink
Examples of Custom Scripts to use maven and pabot
Browse files Browse the repository at this point in the history
  • Loading branch information
Helio Guilherme committed Jun 3, 2019
1 parent 054be4a commit 4f4beac
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 0 deletions.
Binary file added doc/other/example_maven_runner/RIDE_output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions doc/other/example_maven_runner/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<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>org.robotframework</groupId>
<version>1.0</version>
<artifactId>robot-tests</artifactId>
<name>robot-tests</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<browser>firefox</browser>
</properties>
<profiles>
<profile>
<id>run-tests-with-ride</id>
<build>
<plugins>
<plugin>
<groupId>org.robotframework</groupId>
<artifactId>robotframework-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>acceptance-test</goal>
</goals>
</execution>
</executions>
<configuration>
<argumentFile>${ride.argumentFile}</argumentFile>
<listener>${ride.listener}</listener>
<testCasesDirectory>${ride.testCasesDirectory}</testCasesDirectory>
<!-- Python library location-->
<extraPathDirectories>
<extraPathDirectory>${project.basedir}/src/test/resources/libraries</extraPathDirectory>
</extraPathDirectories>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>com.github.hi-fi</groupId>
<artifactId>robotframework-seleniumlibrary</artifactId>
<version>3.12.0.1</version>
</dependency>
</dependencies>

</project>
13 changes: 13 additions & 0 deletions doc/other/example_maven_runner/runTests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@echo off
rem Find pom.xml for this testsuite
setlocal EnableDelayedExpansion
rem Get path from first parameter
set return_path=%1
rem Check that dir contains pom.xml
if exist !return_path!\pom.xml goto continue
echo No pom.xml found in !return_path!
exit /B 1
:continue
rem Start maven
cd /D%return_path%
mvn -Prun-tests-with-ride verify -Dride.argumentFile=%3 -Dride.listener=%5 -Dride.testCasesDirectory=%6
Binary file added doc/other/example_pabot_runner/RIDE_output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions doc/other/example_pabot_runner/pabotRunner.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
setlocal EnableDelayedExpansion
rem Get path from first parameter
set return_path=%1

rem Start pabot
cd /D%return_path%
pabot --argumentfile %3 --listener %5 %6

0 comments on commit 4f4beac

Please sign in to comment.