Skip to content

Instantly share code, notes, and snippets.

@donchan922
Last active May 22, 2020 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/5aa6acfec161fbb0aab6c16da6235559 to your computer and use it in GitHub Desktop.
Save donchan922/5aa6acfec161fbb0aab6c16da6235559 to your computer and use it in GitHub Desktop.
Feature: sample karate test script
for help, see: https://github.com/intuit/karate/wiki/IDE-Support
Background:
* url 'https://jsonplaceholder.typicode.com'
Scenario: get all users and then get the first user by id
Given path 'users'
When method get
Then status 200
* def first = response[0]
Given path 'users', first.id
When method get
Then status 200
# 以下、省略
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment