https://github.com/assertthat/assertthat-bdd-karate-example
Example of AssertThat BDD Jira plugin integration with Karate
https://github.com/assertthat/assertthat-bdd-karate-example
Last synced: 4 months ago
JSON representation
Example of AssertThat BDD Jira plugin integration with Karate
- Host: GitHub
- URL: https://github.com/assertthat/assertthat-bdd-karate-example
- Owner: assertthat
- Created: 2021-02-13T13:31:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T13:35:23.000Z (over 4 years ago)
- Last Synced: 2025-01-07T15:26:11.936Z (6 months ago)
- Language: Gherkin
- Homepage: https://marketplace.atlassian.com/apps/1219033/assertthat-bdd-cucumber-for-jira?hosting=cloud&tab=overview
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# assertthat-bdd-karate-example
Example of AssertThat BDD Jira plugin integration with Karate
To tun:
```
mvn clean verify
```Feature file used:
```
# language: en
@users
Feature: sample karate test scriptfor help, see: https://github.com/intuit/karate/wiki/IDE-Support
Background:
* url 'https://jsonplaceholder.typicode.com'@AUTOMATED
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@AUTOMATED
Scenario: create a user and then get it by id
* def user =
"""
{
"name": "Test User",
"username": "testuser",
"email": "[email protected]",
"address": {
"street": "Has No Name",
"suite": "Apt. 123",
"city": "Electri",
"zipcode": "54321-6789"
}
}
"""
Given url 'https://jsonplaceholder.typicode.com/users'
And request user
When method post
Then status 201
* def id = response.id
* print 'created id is: ', id
Given path id```