Skip to content
Permalink
Browse files

docs of getting started for REST and UI extension points

  • Loading branch information...
MykolaGolubyev committed Aug 13, 2019
1 parent 6349122 commit b559370a21a1bac830d33c04c6f7f627b5058a5d
@@ -0,0 +1,48 @@
:include-markdown: installation-groovy-runner.md

# Minimal Groovy Setup

Generate webtau examples

:include-cli-command: webtau --example

Navigate into `todo` example

:include-cli-command: cd examples/todo

:include-file: examples/todo/todolist.groovy {title: "todolist.groovy"}

To run test

:include-cli-command: webtau todolist.groovy --url=https://jsonplaceholder.typicode.com {paramsToHighlight: "url"}

:include-markdown: common/note-package-import.md

## Groovy Config File

Url parameter can be moved to a `webtau.cfg` file.

:include-file: examples/todo/webtau.cfg {title: "webtau.cfg"}

[Specify multiple environments](configuration/environments) to streamline test execution.

# Minimal JUnit Setup

```tabs
Groovy: :include-file: maven/groovy-dep.xml {title: "Maven Dependency"}
Java: :include-file: maven/java-dep.xml {title: "Maven Dependency"}
```

```tabs
Groovy:
:include-file: com/example/tests/junit4/TodoListGroovyIT.groovy {title: "JUnit 4 example"}
Java:
:include-file: com/example/tests/junit4/TodoListJavaIT.java {title: "JUnit 4 example"}
```

## Junit Config File

Add `webtau.properties` to test class path

:include-file: src/test/resources/webtau.properties {title: "webtau.properties"}
@@ -1,37 +1 @@
:include-markdown: {firstAvailable: ["company-specific-installation-groovy-runner.md", "installation-groovy-runner.md"]}

# Minimal Groovy Setup

:include-markdown: {firstAvailable: ["company-specific-minimal-groovy-setup.md", "minimal-groovy-setup.md"]}

:include-markdown: common/note-package-import.md

## Groovy Config File

Url parameter can be moved to a `webtau.cfg` file.

:include-file: examples/todo/webtau.cfg {title: "webtau.cfg"}

[Specify multiple environments](configuration/environments) to streamline test execution.

# Minimal JUnit Setup

```tabs
Groovy: :include-file: maven/groovy-dep.xml {title: "Maven Dependency"}
Java: :include-file: maven/java-dep.xml {title: "Maven Dependency"}
```

```tabs
Groovy:
:include-file: com/example/tests/junit4/TodoListGroovyIT.groovy {title: "JUnit 4 example"}
Java:
:include-file: com/example/tests/junit4/TodoListJavaIT.java {title: "JUnit 4 example"}
```

## Junit Config File

Add `webtau.properties` to test class path

:include-file: src/test/resources/webtau.properties {title: "webtau.properties"}

:include-markdown: {firstAvailable: ["company-specific-getting-started-rest.md", "getting-started-rest.md"]}

This file was deleted.

@@ -0,0 +1,19 @@
:include-markdown: {firstAvailable: ["installation-company-specific-groovy-runner.md", "installation-groovy-runner.md"]}

# Bare Minimum

:include-file: examples/scenarios/ui/basic.groovy {title: "examples/scenarios/ui/basic.groovy"}

To run test, navigate to `examples` dir and

:include-cli-command: webtau scenarios/ui/basic.groovy --url=https://my-server {paramsToHighlight: "url"}

:include-markdown: common/note-package-import.md

# Config File

Url parameter can be moved to a `webtau.cfg` file.

:include-file: examples/scenarios/ui/webtau.cfg {title: "examples/scenarios/ui/webtau.cfg"}

[Specify multiple environments](configuration/environments) to streamline test execution.
@@ -1,19 +1 @@
:include-markdown: {firstAvailable: ["installation-company-specific-groovy-runner.md", "installation-groovy-runner.md"]}

# Bare Minimum

:include-file: examples/scenarios/ui/basic.groovy {title: "examples/scenarios/ui/basic.groovy"}

To run test, navigate to `examples` dir and

:include-cli-command: webtau scenarios/ui/basic.groovy --url=https://my-server {paramsToHighlight: "url"}

:include-markdown: common/note-package-import.md

# Config File

Url parameter can be moved to a `webtau.cfg` file.

:include-file: examples/scenarios/ui/webtau.cfg {title: "examples/scenarios/ui/webtau.cfg"}

[Specify multiple environments](configuration/environments) to streamline test execution.
:include-markdown: {firstAvailable: ["company-specific-getting-started-ui.md", "getting-started-ui.md"]}

0 comments on commit b559370

Please sign in to comment.
You can’t perform that action at this time.