awesome-java icon indicating copy to clipboard operation
awesome-java copied to clipboard

Added WebTau

Open MykolaGolubyev opened this issue 3 years ago • 0 comments

WebTau helps to write tests across layers within the same test suite. E.g. combine HTTP requests, browser validation, CLI runs/validation, DB, etc. Uses the same set of consistent matchers and produces report that captures everything that happened across the layers.

It has rich, dynamic report to quickly navigate to a problem space and get required info to troubleshoot.

It has Groovy DSL as well as REPL to quickly prototype larger tests with fast feedback loop.

example of a HTTP layer

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

example of Browser layer

PageElement box = $("#search-box");
PageElement results = $("#results .result");

browser.open("/search");
box.setValue("search this");
box.sendKeys(browser.keys.enter);

results.count.waitToBe(greaterThan(1));

MykolaGolubyev avatar May 26 '22 17:05 MykolaGolubyev