Serial execution

The default mode for running tests is serially; in other words, scenario files are executed one after the other.

Parallel execution

Webtau supports executing tests in parallel. In this mode, scenario files are executed in parallel. Individual scenarios are still executed sequentially.For large test suites, it is therefore advisable to create many small focused scenario files instead of few large files.To enable parallel execution, specify the numberOfThreads configuration property either through the configuration file or as a CLI parameter. This property dictates the maximum number of threads on which to run tests. Alternatively, set numberOfThreads to -1 and webtau will use as many threads as there are scenario files.Note: scenario file execution order is not guaranteed.

Scenario discovery

Webtau via CLI or Maven plugin supports a number of methods for specifying and discovering scenarios.The simplest way is to list the scenario files explicitly: CLI webtau scenarios/rest/simpleGet.groovy scnearios/rest/simplePost.groovy Maven <plugin> <groupId>org.testingisdocumenting.webtau</groupId> <artifactId>webtau-maven-plugin</artifactId> <version>1.40</version> <executions> <execution> <phase>test</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <configuration> <workingDir>${project.basedir}/src/main/groovy</workingDir> <env>integration</env> <url>http://optional-base-url</url> <tests> <directory>${project.basedir}/src/main/groovy</directory> <includes> <include>scenarios/simpleGet.groovy</include> <include>scenarios/simplePost.groovy</include> </includes> </tests> </configuration> </plugin> Wildcard matching is also supported. In the CLI version this is normal shell glob and in Maven it's a standard Maven file inclusion block: CLI webtau scenarios/rest/simple*.groovy Maven <plugin> <groupId>org.testingisdocumenting.webtau</groupId> <artifactId>webtau-maven-plugin</artifactId> <version>1.40</version> <executions> <execution> <phase>test</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <configuration> <workingDir>${project.basedir}/src/main/groovy</workingDir> <env>integration</env> <url>http://optional-base-url</url> <tests> <directory>${project.basedir}/src/main/groovy</directory> <includes> <include>scenarios/simple*.groovy</include> </includes> </tests> </configuration> </plugin> It is also possible to include a set of base directories and webtau will then find all *.groovy files within them, recursively: CLI webtau scenarios/rest Maven <plugin> <groupId>org.testingisdocumenting.webtau</groupId> <artifactId>webtau-maven-plugin</artifactId> <version>1.40</version> <executions> <execution> <phase>test</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <configuration> <workingDir>${project.basedir}/src/main/groovy</workingDir> <env>integration</env> <url>http://optional-base-url</url> <tests> <directory>${project.basedir}/src/main/groovy</directory> </tests> </configuration> </plugin> In this mode, the HTML report that webtau generates will show paths to the files relative to the requested directories.