cancel
Showing results for 
Search instead for 
Did you mean: 

In Ready! API 1.6.0, how do you pass a Test Case tag as a command line parameter?

MikeDally
Contributor

In Ready! API 1.6.0, how do you pass a Test Case tag as a command line parameter?

Hi Community,

 

I am trying to run some SoapUI tests using the Maven command line. In particular, I want to run specific tests using the 'tagging' feature in SoapUI but I'm not sure how to achieve this using maven?

 

I'm thinking somehthing along the lines of mvn test -Dtags=addAccount

 

Can anyone help?

 

Cheers,

 

Mike

5 REPLIES 5
nmrao
Community Hero

Re: In Ready! API 1.6.0, how do you pass a Test Case tag as a command line parameter?

MikeDally
Contributor

Re: In Ready! API 1.6.0, how do you pass a Test Case tag as a command line parameter?

Hi Rao,

 

You've just referred me back to one of my previous posts 😉

 

Cheers,

 

Mike

nmrao
Community Hero

Re: In Ready! API 1.6.0, how do you pass a Test Case tag as a command line parameter?

Ok. may be you can close it or add info saying this is no more a problem.


Regards,
Rao.
MikeDally
Contributor

Re: In Ready! API 1.6.0, how do you pass a Test Case tag as a command line parameter?

Well, I haven't solved the problem - I still don't know how to reference tags in SoapUI 1.6.0 because I'm not sure what I need to update in the pom.xml file.

 

Cheers,

 

Mike

 

 

markgholland
Occasional Contributor

Re: In Ready! API 1.6.0, how do you pass a Test Case tag as a command line parameter?

Hello,

 

I'm going to dig this one backup since it's related to my issue and doesn't appear to be "Solved."

 

I'm also trying to get the tags to work with maven and I've encountered an issue I'm wondering if it's a bug.  I have two Jenkins projects that I've setup. The build section of my pom.xml is configured as follows:

 

<build>
        <plugins>
            <plugin>
                <dependencies>
                    <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>runtime</scope>
                    </dependency>
                    <dependency>
                        <groupId>com.oracle</groupId>
                        <artifactId>ojdbc6</artifactId>
                        <version>11.2.0.3</version>
                    </dependency>
                </dependencies>
                <groupId>com.smartbear</groupId>
                <artifactId>ready-api-maven-plugin</artifactId>
                <version>1.7.0</version>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <!--<id>p1</id>-->
                        <configuration>
                            <projectFile>${basedir}/soapui-project.xml</projectFile>
                            <environment>${environment}</environment>
                            <testSuite>${testSuite}</testSuite>
                            <testCase>${testCase}</testCase>
                            <!--<tags><param>TestCase ${tags}</param></tags>-->
                            <junitReport>true</junitReport>
                            <outputFolder>${basedir}/target/Reports</outputFolder>
                            <readyApiProperties>
                             <readyApiProperties>
                                <property>
                                    <name>soapui.home</name>
                                    <value>%env.SOAPUI_HOME%</value>
                                </property>
                            </readyApiProperties>
                            </readyApiProperties>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

 

 

One of my builds uses tags, and the other doesn't.

 

When I uncomment the tags section, the project that I'm not using the tags begins to fail with the following error:

[ERROR] java.lang.Exception: The tag "${tags}" was not found.

It appears that it's not being ignored when it's not set like the other configurations (testCase, testSuite, environment); I suspect it has to do with there are additional parameters and text, "TestCase," associated with using tags.

 

Any input would be appreciated!

 

Thanks,

Mark

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors