com.twosigma.webtau:webtau-reactjs

webtau - web test automation. REST and UI testing framework.

License

License

Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

com.twosigma.webtau
ArtifactId

ArtifactId

webtau-reactjs
Last Version

Last Version

1.20
Release Date

Release Date

Type

Type

jar
Description

Description

webtau - web test automation. REST and UI testing framework.

Download webtau-reactjs

How to add to project

<!-- https://jarcasting.com/artifacts/com.twosigma.webtau/webtau-reactjs/ -->
<dependency>
    <groupId>com.twosigma.webtau</groupId>
    <artifactId>webtau-reactjs</artifactId>
    <version>1.20</version>
</dependency>
// https://jarcasting.com/artifacts/com.twosigma.webtau/webtau-reactjs/
implementation 'com.twosigma.webtau:webtau-reactjs:1.20'
// https://jarcasting.com/artifacts/com.twosigma.webtau/webtau-reactjs/
implementation ("com.twosigma.webtau:webtau-reactjs:1.20")
'com.twosigma.webtau:webtau-reactjs:jar:1.20'
<dependency org="com.twosigma.webtau" name="webtau-reactjs" rev="1.20">
  <artifact name="webtau-reactjs" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.twosigma.webtau', module='webtau-reactjs', version='1.20')
)
libraryDependencies += "com.twosigma.webtau" % "webtau-reactjs" % "1.20"
[com.twosigma.webtau/webtau-reactjs "1.20"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

webtau

Web Test Automation User Guide

logo

Simple REST tests

JUnit 4 and JUnit 5

Groovy

@RunWith(WebTauRunner.class)
class WeatherIT {
    @Test
    void checkWeather() {
        http.get("/weather") {
            temperature.shouldBe < 100
        }
    }
}

Java

@RunWith(WebTauRunner.class)
public class WeatherIT {
    @Test
    public void checkWeather() {
        http.get("/weather", (header, body) -> {
            body.get("temperature").shouldBe(lessThan(100));
        });
    }
}

JUnit5

@WebTau
class WeatherIT {
    @Test
    void checkWeather() {
        http.get("/weather") {
            temperature.shouldBe < 100
        }
    }
}

Groovy command line

Support for command line friendly automation and exploration with Groovy specific simplified runner

webtau weather.groovy
scenario("check weather") {
    http.get("/weather") {
        temperature.shouldBe < 100
    }
}
{
  "temperature": 88
}

Simple GraphQL tests

JUnit 4 and JUnit 5

Groovy

@RunWith(WebTauRunner.class)
class WeatherIT {
    @Test
    void checkWeather() {
        graphql.execute("{ weather { temperature } }") {
            weather.temperature.shouldBe < 100
        }
    }
}

Java

@RunWith(WebTauRunner.class)
public class WeatherIT {
    @Test
    public void checkWeather() {
        graphql.execute("{ weather { temperature } }", (header, body) -> {
            body.get("data.weather.temperature").shouldBe(lessThan(100));
        });
    }
}

JUnit5

@WebTau
class WeatherIT {
    @Test
    void checkWeather() {
        graphql.execute("{ weather { temperature } }") {
            weather.temperature.shouldBe < 100
        }
    }
}

Groovy command line

Support for command line friendly automation and exploration with Groovy specific simplified runner

webtau weather.groovy
scenario("check weather") {
    graphql.execute("{ weather { temperature } }") {
        weather.temperature.shouldBe < 100
    }
}

For single query requests, you may also omit the query name while validating the response:

scenario("check weather") {
    graphql.execute("{ weather { temperature } }") {
        temperature.shouldBe < 100
    }
}
{
  "data": {
    "weather": {
      "temperature": 88
    }
  }
}

Robust UI tests

scenario("search by specific query") {
    search.submit("search this")
    search.numberOfResults.should == 2
}

Precise Reporting

report-image

Full Documentation

com.twosigma.webtau

Two Sigma

Versions

Version
1.20
1.19
1.18
1.17
1.16
1.15
1.13
1.12
1.11
1.10
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
0.31
0.30
0.29
0.28
0.27
0.25
0.23