forked from robotframework/RIDE
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Examples of Custom Scripts to use
maven
and pabot
- Loading branch information
Helio Guilherme
committed
Jun 3, 2019
1 parent
054be4a
commit 4f4beac
Showing
5 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |