Hello,
When in Seattle we decided on Postman as opposed to the
RestAssured tests we were starting as it would be easier for less
technical users to write tests. From what I can see Cucumber is a
BDD framework, so the tests (at least the spec part) would be Java
code, then we would write these test cases as specs. Am I getting
that right?
--
You received this message because you are subscribed to the Google Groups "OpenLMIS Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-dev...@googlegroups.com.
To post to this group, send email to openlm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/6ffbdc93-91e7-48f5-a9d8-15b08557b619%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/ead88b05-d4f1-4e61-abc4-fde99fd355f1%40googlegroups.com.
{
"id": "04e3f4e4-1b93-7f3f-0fd7-9af00f57161a",
"name": "cuke",
"description": "try to use this in cucumber",
"order": [
"d12a2691-e5d4-b83d-a6e2-7fa576c72313"
],
"folders": [],
"timestamp": 1472192231695,
"owner": 0,
"public": false,
"published": false,
"requests": [
{
"id": "d12a2691-e5d4-b83d-a6e2-7fa576c72313",
"headers": "Content-Type: application/json\n",
"url": "http://jsonplaceholder.typicode.com/posts",
"preRequestScript": "",
"pathVariables": {},
"method": "POST",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "var jsonData = JSON.parse(responseBody);\ntests[\"has title\"] = jsonData.title === 'foo';",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1472192692688,
"name": "post to json place holder",
"description": "send post to json placeholder",
"collectionId": "04e3f4e4-1b93-7f3f-0fd7-9af00f57161a",
"responses": [],
"rawModeData": "{\"title\":\"foo\"}"
}
]
}
var newman = require('newman');
newman.run({
collection: require('./some_test_collection.json'),//it could be url here as well
reporters: 'cli'
}, function (err) {
if (err) { throw err; }
console.log('collection run complete!');
});
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/2deb0054-1f1b-412c-a705-594c7213e004%40googlegroups.com.