• 0 Posts
  • 15 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle












  • I use Hurl. Everything is just a text file:

    POST https://example.org/api/tests
    {
        "id": "4568",
        "evaluate": true
    }
    
    HTTP 200
    [Asserts]
    header "X-Frame-Options" == "SAMEORIGIN"
    jsonpath "$.status" == "RUNNING"    # Check the status code
    jsonpath "$.tests" count == 25      # Check the number of items
    jsonpath "$.id" matches /\d{4}/     # Check the format of the id