-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1d0924
commit 84c19a4
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
# webtau | ||
|
||
Web Test Automation [User Guide](https://opensource.twosigma.com/webtau/guide/) | ||
|
||
Simple REST tests | ||
|
||
```groovy | ||
scenario("simple get") { | ||
http.get("/weather") { | ||
temperature.should == 88 | ||
} | ||
} | ||
``` | ||
|
||
Robust UI test | ||
|
||
```groovy | ||
scenario("""# Search facts | ||
Enter a fact in a search box and | ||
information will be displayed in a special box | ||
""") { | ||
search.open() | ||
search.submit(query: "search this") | ||
search.numberOfResults.should == 2 | ||
} | ||
``` |