Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
feat: new slides
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenLoc committed Apr 30, 2024
1 parent 7c806e5 commit ebbba8d
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions slides/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ _paginate: skip
Hurl, API testing in plain text
```

---
Story time
```
I like tools that start simple and useful
```

---
Hurl closes the gap
Expand Down Expand Up @@ -98,10 +102,43 @@ Hurl closes the gap
/________Unit_tests________\
/____________________________\
```
---
The Hurl file

```yaml
# We can write comments and describe what we are doing in short
GET https://example.org/api
HTTP 200

[Asserts]
# We can assert headers
header "Content-Type" contains "utf-8"
# We can assert the body with filters over json
jsonpath "$.slideshow.title" == "A beautiful \u{2708}!"
```
---
The Hurl file

```yaml
# There is more
GET https://example.org/api

[Asserts]
# We can assert the body with filters over regex
regex /^(\d{4}-\d{2}-\d{2})$/ == "2018-12-31"
# We can assert send + response time
duration < 1000
# We can assert statuses with predicates
status < 300
```

---
Showcase

- asserts
- captures
- variables
- how to drive Hurl

---
Easy to "install"
Expand All @@ -112,7 +149,7 @@ Hurl is the right choice

- if you prefer CLI
- if you prefer raw text
- if you want to run api tests local and CI
- if you want to run api tests in local and CI

---
Hurl is the wrong choice
Expand All @@ -121,5 +158,4 @@ Hurl is the wrong choice
- if you want to script
- if you do not care about it


---

0 comments on commit ebbba8d

Please sign in to comment.