Sometimes it might be useful to skip a test case (for instance because of some unresolved bug). RCPTT runner can skip tests based on its tags.
By default RCPTT skips tests with tag 'skipExecution' (this value has been chosen because on one hand it is descriptive enough, on another hand it is unlikely that this tag name will collide with some user's tag).

If you want RCPTT to execute different test cases on different platforms (e.g. one on Windows and on Linux), you can create two tests, one for Windows and one for Linux, and make runner execute suitable for the certain platform test cases. It can be set by tags.

To set skipping tags for certain platform you should follow the instruction:

  1. Create 2 tests, one for Linux, one for Windows. Let's call them LinuxTest and WindowsTest accordingly.
  2. Add tag ForWindows to WindowsTest and add tag ForLinux to LinuxTest
  3. If you don't use Maven to run RCPTT runner, just add to runner command line for Linux argument:
    -skipTags ForWindows
    And to command line for Windows:
    -skipTags ForLinux
    If you don't use Maven, that is all settings.
  4. If you use Maven to run RCPTT runner, add to pom.xml following lines into the <project> node :

 

<profiles>
   <profile>
     <id>linux</id>
     <activation><os><family>unix</family></os></activation>
     <build>
       <plugins>
        <plugin>
          <groupId>com.xored.q7</groupId>
          <artifactId>q7-maven-plugin</artifactId>
          <version>${q7-maven-version}</version>
          <extensions>true</extensions>
          <configuration>
            <skipTags combine.children="append">
              <tag>ForWindows</tag>
            </skipTags>
          </configuration>
        </plugin>
      </plugins>
    </build>
  </profile>
  <profile>
     <id>windows</id>
     <activation><os><family>windows</family></os></activation>
     <build>
       <plugins>
        <plugin>
          <groupId>com.xored.q7</groupId>
          <artifactId>q7-maven-plugin</artifactId>
          <version>${q7-maven-version}</version>
          <extensions>true</extensions>
          <configuration>
            <skipTags combine.children="append">
              <tag>ForLinux</tag>
            </skipTags>
          </configuration>
        </plugin>
      </plugins>
    </build>
  </profile>
</profiles>

  


If you want to add custom skipping tags for any platform you can use the following construction:

 

<skipTags>
 
   <tag>CustomTagForSkipping</tag>
 
</skipTags>
 
into node <configuration> to your pom.xml