{"info":{"_postman_id":"6c504d4d-6e78-315c-ef9f-39446b17a83a","name":"test-bench-V1.1","description":"<html><head></head><body><h2 id=\"api-requests-for-testbench-software-tool-which-tests-the-thing-description-standard-of-bundang-plugfest\">API requests for testbench software tool which tests the Thing description standard of bundang plugfest</h2>\n<h4 id=\"how-to-get-the-software-tool-\">How to get the software tool :</h4>\n<h3 id=\"installation-uder-ubuntu-1804\">Installation uder ubuntu 18.04:</h3>\n<ul>\n<li>install git: <code>sudo apt install -y git</code>(git --version 2.17.1)</li>\n<li>install node: <code>sudo apt-get install -y nodejs</code> (node --version v8.10.0)</li>\n<li>install npm: <code>sudo apt install -y npm</code> (npm --version 3.5.2)</li>\n<li>install typescript: <code>npm install -g typescript</code> (tsc -version 2.8.3)</li>\n<li>install lerna: <code>npm install -g lerna</code> (lerna -version 2.11.0)</li>\n</ul>\n<p>Clone testbench repository from <a href=\"https://github.com/jplaui/testbench\">https://github.com/jplaui/testbench</a>: </p>\n<ul>\n<li>execute: <code>git clone https://github.com/jplaui/testbench.git</code></li>\n</ul>\n<p>Get bundang-v1.1 branch of repository locally:</p>\n<ul>\n<li>inside <code>testbench</code> folder, execute: <code>git fetch origin</code></li>\n<li>afterwars execute: <code>git checkout -b bundang-v1.1 origin/bundang-v1.1</code></li>\n<li>check with <code>git branch -a</code>. your local clone should contain and switched to branch bundang-v1.1 now.</li>\n</ul>\n<p>Installation of TestBench </p>\n<ul>\n<li><p>Jump into <code>testbench</code> folder and execute: <code>npm install</code></p>\n</li>\n<li><p>Jump into <code>node_modules</code> folder and clone node-wot repository <a href=\"https://github.com/thingweb/node-wot\">https://github.com/thingweb/node-wot</a> inside the <code>node_modules</code> folder with <code>git clone https://github.com/eclipse/thingweb.node-wot.git</code>.</p>\n</li>\n<li><p>Jump into <code>thingweb.node-wot</code> folder and execute: <code>npm install</code> and <code>npm run bootstrap</code> and <code>sudo npm run build</code></p>\n</li>\n<li><p>Return back into testbench folder and execute: <code>tsc -p .</code></p>\n</li>\n<li><p>Now you are able tu run the testbench inside the testbench folder with: <code>node dist/test-bench-V1.1.js</code></p>\n</li>\n<li><p>Interact with the testbench using <code>curl</code> or <code>portman</code> or others:</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"4378601","collectionId":"6c504d4d-6e78-315c-ef9f-39446b17a83a","publishedId":"RWEmHGBq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-06-27T13:44:04.000Z"},"item":[{"name":"testBenchStatus","id":"8ea0d250-7ab2-4b98-bec5-04f39a39762a","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://10.180.16.9:8080/test-bench-V1.1/properties/testBenchStatus","urlObject":{"protocol":"http","port":"8080","path":["test-bench-V1.1","properties","testBenchStatus"],"host":["10","180","16","9"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ea0d250-7ab2-4b98-bec5-04f39a39762a"},{"name":"testConfig","id":"b93e5cc1-863d-dd1c-2c6e-3277d1a97856","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://192.168.178.79:8980/test-bench-V1.1/properties/testConfig","urlObject":{"protocol":"http","port":"8980","path":["test-bench-V1.1","properties","testConfig"],"host":["192","168","178","79"],"query":[],"variable":[]}},"response":[],"_postman_id":"b93e5cc1-863d-dd1c-2c6e-3277d1a97856"},{"name":"testConfig","id":"b211e6bb-b770-ad12-1410-15f6e1c7f6d3","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"TBname\": \"test-bench-V1.1\",\n    \"SchemaLocation\": \"Resources/InteractionSchemas/\",\n    \"TestReportsLocation\": \"Reports/\",\n    \"TestDataLocation\": \"Resources/fake-data.json\",\n    \"ActionTimeout\": 4000,\n    \"Scenarios\": 2,\n    \"Repetitions\": 1\n}"},"url":"http://10.180.16.9:8080/test-bench-V1.1/properties/testConfig","urlObject":{"protocol":"http","port":"8080","path":["test-bench-V1.1","properties","testConfig"],"host":["10","180","16","9"],"query":[],"variable":[]}},"response":[],"_postman_id":"b211e6bb-b770-ad12-1410-15f6e1c7f6d3"},{"name":"thingUnderTestTD","id":"27eb3c26-6989-5db9-c130-98849e9de9e2","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://10.180.16.9:8980/test-bench-V1.1/properties/thingUnderTestTD","urlObject":{"protocol":"http","port":"8980","path":["test-bench-V1.1","properties","thingUnderTestTD"],"host":["10","180","16","9"],"query":[],"variable":[]}},"response":[],"_postman_id":"27eb3c26-6989-5db9-c130-98849e9de9e2"},{"name":"thingUnderTestTD-madatory1","id":"452f977c-fab6-fc7f-9b7e-c5af582dbbb1","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"name\":\"mything\",\"@context\":\"https://w3c.github.io/wot/w3c-wot-td-context.jsonld\",\"@type\":\"Thing\",\"security\":[],\"properties\":{\"display\":{\"type\":\"string\",\"writable\":true,\"observable\":true,\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/properties/display\",\"mediaType\":\"application/json\"}]},\"counter\":{\"type\":\"number\",\"writable\":true,\"observable\":true,\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/properties/counter\",\"mediaType\":\"application/json\"}]},\"temp\":{\"type\":\"number\",\"writable\":false,\"observable\":true,\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/properties/temp\",\"mediaType\":\"application/json\"}]},\"testObject\":{\"type\":\"object\",\"properties\":{\"brightness\":{\"type\":\"number\",\"minimum\":0,\"maximum\":100},\"status\":{\"type\":\"string\"}},\"writable\":true,\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/properties/testObject\",\"mediaType\":\"application/json\"}]},\"testArray\":{\"type\":\"array\",\"items\":{\"type\":\"number\"},\"writable\":true,\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/properties/testArray\",\"mediaType\":\"application/json\"}]}},\"actions\":{\"setCounter\":{\"input\":{\"type\":\"number\"},\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/actions/setCounter\",\"mediaType\":\"application/json\"}]},\"getTemp\":{\"output\":{\"type\":\"number\"},\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/actions/getTemp\",\"mediaType\":\"application/json\"}]},\"setDisplay\":{\"input\":{\"type\":\"string\"},\"output\":{\"type\":\"string\"},\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/actions/setDisplay\",\"mediaType\":\"application/json\"}]},\"setTestObject\":{\"input\":{\"type\":\"object\",\"properties\":{\"brightness\":{\"type\":\"number\",\"minimum\":0,\"maximum\":100},\"status\":{\"type\":\"string\"}}},\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/actions/setTestObject\",\"mediaType\":\"application/json\"}]},\"setTestArray\":{\"input\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}},\"output\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}},\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/actions/setTestArray\",\"mediaType\":\"application/json\"}]}},\"events\":{\"onChange\":{\"type\":\"number\",\"forms\":[{\"href\":\"http://192.168.178.79:8081/mything/events/onChange\",\"mediaType\":\"application/json\"}]}},\"links\":[]}"},"url":"http://192.168.178.79:8980/test-bench-V1.1/properties/thingUnderTestTD","urlObject":{"protocol":"http","port":"8980","path":["test-bench-V1.1","properties","thingUnderTestTD"],"host":["192","168","178","79"],"query":[],"variable":[]}},"response":[],"_postman_id":"452f977c-fab6-fc7f-9b7e-c5af582dbbb1"},{"name":"initiate-mandatory2","id":"d0f4fe1e-1b5c-fbb7-b248-f333f14f53c2","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"true"},"url":"http://192.168.178.79:8980/test-bench-V1.1/actions/initiate","urlObject":{"protocol":"http","port":"8980","path":["test-bench-V1.1","actions","initiate"],"host":["192","168","178","79"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0f4fe1e-1b5c-fbb7-b248-f333f14f53c2"},{"name":"testData","id":"3febccc3-b9a0-f418-1c24-4554bf44a788","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://192.168.178.79:8980/test-bench-V1.1/properties/testData","urlObject":{"protocol":"http","port":"8980","path":["test-bench-V1.1","properties","testData"],"host":["192","168","178","79"],"query":[],"variable":[]}},"response":[],"_postman_id":"3febccc3-b9a0-f418-1c24-4554bf44a788"},{"name":"testData","id":"2d069942-8fb3-d6f8-05ae-f23280d8f2c5","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[[{\"interactionName\":\"display\",\"interactionValue\":\"my test data\"},{\"interactionName\":\"display\",\"interactionValue\":\"ut exercitation pariatur Lorem\"},{\"interactionName\":\"display\",\"interactionValue\":\"non ex\"}],[{\"interactionName\":\"counter\",\"interactionValue\":48720661.346978426},{\"interactionName\":\"counter\",\"interactionValue\":-17847483.309807226},{\"interactionName\":\"counter\",\"interactionValue\":-39419796.641542785}],[{\"interactionName\":\"temp\",\"interactionValue\":null},{\"interactionName\":\"temp\",\"interactionValue\":null},{\"interactionName\":\"temp\",\"interactionValue\":null}],[{\"interactionName\":\"testObject\",\"interactionValue\":{}},{\"interactionName\":\"testObject\",\"interactionValue\":{}},{\"interactionName\":\"testObject\",\"interactionValue\":{}}],[{\"interactionName\":\"testArray\",\"interactionValue\":[-59756362.76877485,34781840.99274394,63772442.58877036,-74146289.91668412]},{\"interactionName\":\"testArray\",\"interactionValue\":[2626558.2230746746,66096537.939248025,-26623115.192653924]},{\"interactionName\":\"testArray\",\"interactionValue\":[-41895121.67686087]}],[{\"interactionName\":\"setCounter\",\"interactionValue\":70062723.11393076},{\"interactionName\":\"setCounter\",\"interactionValue\":44899245.26763761},{\"interactionName\":\"setCounter\",\"interactionValue\":-83850483.31928648}],[{\"interactionName\":\"getTemp\",\"interactionValue\":null},{\"interactionName\":\"getTemp\",\"interactionValue\":null},{\"interactionName\":\"getTemp\",\"interactionValue\":null}],[{\"interactionName\":\"setDisplay\",\"interactionValue\":\"non cupidatat deserunt\"},{\"interactionName\":\"setDisplay\",\"interactionValue\":\"amet anim\"},{\"interactionName\":\"setDisplay\",\"interactionValue\":\"exercitation incididunt quis aliquip\"}],[{\"interactionName\":\"setTestObject\",\"interactionValue\":{}},{\"interactionName\":\"setTestObject\",\"interactionValue\":{}},{\"interactionName\":\"setTestObject\",\"interactionValue\":{}}],[{\"interactionName\":\"setTestArray\",\"interactionValue\":[46392825.177393645,99410079.61356097,-72604124.92402822]},{\"interactionName\":\"setTestArray\",\"interactionValue\":[-21887372.53497286,-24623348.978922755,88117898.6484724,-76480657.35660076,86838479.27935785]},{\"interactionName\":\"setTestArray\",\"interactionValue\":[-61121868.35431834]}],[{\"interactionName\":\"onChange\",\"interactionValue\":-50986792.36680104},{\"interactionName\":\"onChange\",\"interactionValue\":38322387.31291896},{\"interactionName\":\"onChange\",\"interactionValue\":-24402052.066918984}]]"},"url":"http://10.180.16.9:8080/test-bench-V1.1/properties/testData","urlObject":{"protocol":"http","port":"8080","path":["test-bench-V1.1","properties","testData"],"host":["10","180","16","9"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d069942-8fb3-d6f8-05ae-f23280d8f2c5"},{"name":"testThing-mandatory3","id":"facb135e-76d7-4599-b2ca-9cc9d51f2c92","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"true"},"url":"http://192.168.178.79:8980/test-bench-V1.1/actions/testThing","urlObject":{"protocol":"http","port":"8980","path":["test-bench-V1.1","actions","testThing"],"host":["192","168","178","79"],"query":[],"variable":[]}},"response":[],"_postman_id":"facb135e-76d7-4599-b2ca-9cc9d51f2c92"},{"name":"testReport","id":"5450c2f8-b91c-44ff-03e6-316e34f563f9","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://192.168.178.79:8980/test-bench-V1.1/properties/testReport","urlObject":{"protocol":"http","port":"8980","path":["test-bench-V1.1","properties","testReport"],"host":["192","168","178","79"],"query":[],"variable":[]}},"response":[],"_postman_id":"5450c2f8-b91c-44ff-03e6-316e34f563f9"}]}