xrysanthos / apispots-bdd Goto Github PK
View Code? Open in Web Editor NEWAdds a BDD layer to API automated testing
License: MIT License
Adds a BDD layer to API automated testing
License: MIT License
Chef --
I love this project, but I'm having trouble configuring this for use on OS X. I'm a newbie to Docker, which is probably the issue.
It appears I can get the app running in a Docker VM, but I have no idea how to find it in my browser. I can find other Docker apps in my browser but this one is elusive.
Are there any special OS X instructions? What LOG information can I attach that will help you help me?
Thanks in advance.
/Hunt
Followed the instruction on getting started page,
parag@parag1:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
apispots/bdd-api-testing latest 90f79be615a1 12 weeks ago 550.2 MB
docker run -d -p 3000:3000 --name="apispots-bdd" apispots/bdd-api-testing
docker logs show following error -
docker logs -f apispots-bdd
/app/node_modules/hapi/lib/index.js:5
const Server = require('./server');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/app/rest/services/BootstrapService.js:11:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
parag@parag1:~/dev/test$ curl -i -F [email protected] -F tags=%40dev http://localhost:3000/tests/run
HTTP/1.1 100 Continue
HTTP/1.1 400 Bad Request
content-type: application/json; charset=utf-8
cache-control: no-cache
content-length: 160
Date: Sat, 11 Jun 2016 16:35:04 GMT
Connection: keep-alive
{"statusCode":400,"error":"Bad Request","message":"child "format" fails becaus e ["format" is required]","validation":{"source":"payload","keys":["format"]}}
the following feature file (taken from project website) was used-
Feature: OpenWeatherMap API - Current weather data
As a client of the OpenWeatherMap API
I want to run tests
In order to validate 'Current weather data' operations
Background:
Given a "REST" API definition at "http://api.openweathermap.org/data/2.5"
Scenario: Get current weather data for one location and by city name
Given endpoint "/weather" and method "get"
And request query param "q" equals "London,UK"
And request type "application/json"
When the request is executed
Then response status is "ok"
response on website
I want to run tests
In order to validate 'Current weather data' operations
Scenario: Get current weather data for one location and by city name
Given a "REST" API definition at "http://api.openweathermap.org/data/2.5"
Given endpoint "/weather" and method "get"
And request query param "q" equals "London,UK"
And request type "application/json"
When the request is executed
Then response status is "ok"
1 scenario (1 passed)
6 steps (6 passed)
0m00.047s
Bute
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.