使用jenkins / maven / testLink进行Ruby测试

时间:2013-03-04 10:39:39

标签: ruby maven automation jenkins testlink

我使用Jenkins,maven和testLink插件进行自动化测试。 我想用Jenkins执行ruby测试并将其挂在testLink中。

这是我的pom.xml:

<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>
...
...
<dependencies>
    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>6.2.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.codeartisans</groupId>
        <artifactId>ruby-maven-plugin</artifactId>
        <version>0.1</version>
    </dependency>
</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>org.codeartisans</groupId>
            <artifactId>ruby-maven-plugin</artifactId>
            <version>0.1</version>
            <executions>
        <execution>
        <id>exec-test</id>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                    <configuration>
                        <script>src/main/ruby/exec.rb</script>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

以下是我在jenkins中的配置:

测试执行 - &gt;单个构建步骤 - &gt;调用顶级maven目标: - &gt;目标:-X            清洁            org.codeartisans:红宝石行家-插件:0.1:EXEC            测试            -DsuiteXmlFiles = suite.xml

这里是控制台输出:

These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for 'ruby:exec'

[0] Inside the definition for plugin 'ruby-maven-plugin' specify the following:

<configuration>
  ...
  <script>VALUE</script>
</configuration>.

有人可以帮助我吗?我是maven,IC等新手......

0 个答案:

没有答案