https://github.com/arunahk/trademe-api-tests-karate
https://github.com/arunahk/trademe-api-tests-karate
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arunahk/trademe-api-tests-karate
- Owner: arunahk
- License: mit
- Created: 2021-05-10T08:59:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-14T10:34:09.000Z (about 4 years ago)
- Last Synced: 2025-01-17T11:15:26.979Z (5 months ago)
- Language: Gherkin
- Size: 563 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# TradeMe API Test Suite
[](https://app.circleci.com/pipelines/github/arunahk/trademe-api-tests-karate)
## Challenge
Using the API given below create an automated test with the listed acceptance criteria:
[API](https://api.tmsandbox.co.nz/v1/Categories/6327/Details.json?catalogue=false)
#### Acceptance Criteria:
```
Name = "Carbon credits"
CanRelist = true
The Promotions element with Name = "Gallery" has a Description that contains the text "2x larger image"
```#### Instructions:
* Your test needs to be written using a programming language of your choice (not a tool like SoapUI). Ensure you include a clear ReadMe
* Submit your test to us in a format that lets us execute and review the code (it must be submitted in a public repository like Bitbucket or Github)
* Your test must validate all the three acceptance criteria
* Points will be awarded for meeting the criteria, style and the use of good practices and appropriate use of source control
* We want to see your best work - no lazy coding or comments.
* We would appreciate it if you could please return your submission within one week of this email.#### Build Requirements
- [JRE 1.8+](https://www.java.com/en/download/manual.jsp)
- [maven](https://maven.apache.org)## Test Scope
* Service unavailability tests were assumed out-of-scope
* Service is assumed to be available for public use without any authentication## Test Execution
### Run tests
* Execute tests in development environment
`mvn test`
* Execute tests in a specified environment
`mvn test -Dkarate.env=prod`
## Test Reports
Karate framework generates old style junit and cucumber reports.
#### Cucumber Reports: `target/cucumber-html-reports`

#### Karate Reports: `target/test-reports`

#### CircleCI Integration
* Repository integrated with CircleCI to run tests automatically and build status is displayed in the repository
* [https://circleci.com/gh/arunahk/trademe-api-tests-karate](https://circleci.com/gh/arunahk/trademe-api-tests-karate)
