{ "info": { "_postman_id": "942d1101-ebd6-4bb6-9415-9feb15558985", "name": "Release Tools Tests", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Xpath functions 2.0", "item": [ { "name": "SaxonTrace", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"5\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"trace(5, 'the value of 5 is:')\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonAdjust-dateTime-to-timezone", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2002-05-30T03:00:00Z\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"2002-05-30T09:00:00+06:00\",\n \"processorData\": \"adjust-dateTime-to-timezone(/start)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonAdjust-date-to-timezone", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2002-09-23Z\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"2002-09-24+06:00\",\n \"processorData\": \"adjust-date-to-timezone(/start)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://tools.zipper.release11.com:8081/xpath", "protocol": "http", "host": [ "tools", "zipper", "release11", "com" ], "port": "8081", "path": [ "xpath" ] } }, "response": [] }, { "name": "SaxonAdjust-time-to-timezone", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"09:30:10.5Z\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"adjust-time-to-timezone(/start)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonAnalyze-string", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"\\n The\\n \\n cat\\n \\n sat\\n \\n on\\n \\n the\\n \\n mat\\n .\\n\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"analyze-string(\\\"The cat sat on the mat.\\\", \\\"\\\\w+\\\")\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonApply", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"abc\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"apply(concat#3, [\\\"a\\\", \\\"b\\\", \\\"c\\\"])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonAvailable-environment-variables", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"PATH\\nHOSTNAME\\nJAVA_HOME\\nPWD\\nJAVA_VERSION\\nLANG\\nHOME\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"available-environment-variables() \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonAvg", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"avg((1,2,3))\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonBase-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.chevrolet.com/\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"base-uri(/l:library)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonBoolean", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"boolean(/start) \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCodepoint-equal", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"codepoint-equal(string(/start),'09:30:10.5') \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCodepoint-to-String", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"ψ\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"0968\",\n \"processorData\": \"codepoints-to-string(xs:integer(/start)) \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCollation-key", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"AAB4AABzAAA6AABzAAB0AAByAABpAABuAABn\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"collation-key('xs:string') \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCollection", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"AAB4AABzAAA6AABzAAB0AAByAABpAABuAABn\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"collation-key('xs:string') \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCompare", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"compare('xs:string','jakisstring') \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonContains", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"contains('xs:string','string') \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonContains-token", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"false\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"contains-token('xs:string sting strung same','string') \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCount", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"4\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"count(('xs:string',' sting',' strung ','same')) \",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCurrent-date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result.slice(0, 10)).to.eql((new Date()).toISOString().slice(0, 10));", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"current-date()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCurrent-dateTime", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result.slice(0, 18)).to.eql((new Date()).toISOString().slice(0, 18));", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"current-dateTime()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCurrent-time", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result.slice(0, 8)).to.eql((new Date()).toISOString().slice(11, 19));", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"09:30:10.5\",\n \"processorData\": \"current-time()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonData", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"data(/l:library)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonDeep-equal", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"deep-equal(/l:library/l:readerList/p:person[1],/l:library/l:readerList/p:person[2])\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonDefault-collation", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.w3.org/2005/xpath-functions/collation/codepoint\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"default-collation()\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonDefault-language", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"en\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"default-language()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "Saxondistinct-values", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\\n2\\n3\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"distinct-values(('1','1','2','3'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "Saxondistinct-values-parametryzacja", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\\n2\\n3\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ " var request = pm.request.toJSON().url.query;", " console.log(request);", " pm.environment.set(\"processorData\", request[0].value);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"{{processorData}}\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "processorData", "value": "distinct-values(('1','1','2','3'))", "disabled": true } ] } }, "response": [] }, { "name": "SaxonDocument-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"document-uri(/*)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonDoc-available", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"doc-available('https://www.w3schools.com/xml/note.xml')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonDoc", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"\\n Tove\\n Jani\\n Reminder\\n Don't forget me this weekend!\\n\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"doc('https://www.w3schools.com/xml/note.xml')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonEmpty", "event": [ { "listen": "test", "script": { "exec": [ " pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"empty(/l:library/l:readerList/p:person[0])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonEncode-for-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"l%3Alibrary%2Fl%3AreaderList\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"encode-for-uri('l:library/l:readerList')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonEnds-with", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"ends-with('l:library/l:readerList','ist')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonEnvironment-variable", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"/usr/local/openjdk-18\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"environment-variable('JAVA_HOME')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonError", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(400);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"Error signalled by application call on error()\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"error()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonExactly-one", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\" \");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"exactly-one(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonExists", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"exists(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFalse", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"false\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"false()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFloor", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"5\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"floor(5.5)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFold-left", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"15\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"fold-left(1 to 5, 0, function($a, $b) { $a + $b })\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFold-right", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"15\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"fold-right(1 to 5, 0, function($a, $b) { $a + $b })\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFor-each", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\\n4\\n9\\n16\\n25\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"for-each(1 to 5, function($a) { $a * $a })\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFor-each-pair", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"ax\\nby\\ncz\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"for-each-pair(('a', 'b', 'c'), ('x', 'y', 'z'), concat#2)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFormat-date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " const date = new Date();", "", "let day = date.getDate();", "let month = date.getMonth() + 1;", "let year = date.getFullYear();", "if (date < 10) {", " date = '0' + date;", "}", "", "if (month < 10) {", " month = '0' + month;", "}", "", "// This arrangement can be altered based on how we want the date's format to appear.", "let currentDate = `${month}/${day}/${year}`;", "console.log(currentDate); // \"17-6-2022\"", " pm.expect(jsonData.result).to.eql(currentDate);", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"format-date(current-date(), '[M01]/[D01]/[Y0001]')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFormat-dateTime", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " const date = new Date();", "", "let day = date.getDate();", "let month = date.getMonth() + 1;", "let year = date.getFullYear();", "if (date < 10) {", " date = '0' + date;", "}", "", "if (month < 10) {", " month = '0' + month;", "}", "", "// This arrangement can be altered based on how we want the date's format to appear.", "let currentDate = `${month}/${day}/${year}`;", "console.log(currentDate); // \"17-6-2022\"", " pm.expect(jsonData.result).to.eql(currentDate);", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"format-dateTime(current-dateTime(), '[M01]/[D01]/[Y0001]')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFormat-integer", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"one hundred and twenty three\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"format-integer(123, 'w')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFormat-number", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"14%\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"format-number(0.14, '01%')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFormat-time", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql((new Date()).toISOString().slice(11, 19));", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"format-time(current-time(), '[H01]:[m01]:[s01]')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFunction-arity", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('3');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"function-arity(substring#3)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFunction-lookup", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('2011-11-11T11:11:11Z');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \" (function-lookup(xs:QName('xs:dateTimeStamp'), 1), xs:dateTime#1)[1] ('2011-11-11T11:11:11Z')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonFunction-name", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('fn:substring');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"function-name(substring#3)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonGenerate-id", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('d0e11');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"generate-id(/l:library/l:readerList/p:person[2])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonHas-children", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('true');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"has-children(/l:library/l:readerList/p:person[2])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonHead", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(' ');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"head(/l:library/l:readerList/p:person)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonHours-from-dateTime", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql((new Date().getHours()-2).toString());", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"hours-from-dateTime(current-dateTime())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonHours-from-duration", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('10');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"hours-from-duration(xs:dayTimeDuration('P3DT10H'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonHours-from-time", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('11');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"hours-from-time(xs:time('11:23:00'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonId", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"id(d0e1)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "Saxonidref", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"idref(d0e11)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonImplicit-timezone", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('PT0S');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"implicit-timezone()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonIndex-of", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('2\\n5');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"index-of((10, 20, 30, 30, 20, 10), 20)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonInnermost", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(' \\n\\n 7321\\n Adam\\n Choke\\n\\n\\n 7321\\n Adam\\n Choke\\n\\n\\n 5123\\n Lauren\\n Wong\\n\\n\\n 6422\\n Harry Potter\\n 7542\\n\\n\\n 1234\\n Macbeth\\n 5123\\n\\n\\n 9556\\n Romeo and Juliet\\n');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"innermost((/l:library/l:bookList/b:book , /l:library/l:readerList/p:person))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonIn-scope-prefixes", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('b\\nl\\np\\nxsi\\nxml');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"in-scope-prefixes(/l:library/l:bookList/b:book[1])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonInsert-before", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('1\\n2\\n8\\n9\\n10\\n3\\n4\\n5\\n6\\n7');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"insert-before((1,2,3,4,5,6,7),3,(8,9,10))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonIri-to-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('http://tools.zipper.release11.com:8086/');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"iri-to-uri ('http://tools.zipper.release11.com:8086/')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonJson-to-xml", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('\\n saxon\\n');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"{\\\"processor\\\": \\\"saxon\\\"}\",\n \"processorData\": \"json-to-xml(/)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonLang", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('false');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"lang(/l:library/l:readerList/p:person[2])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonLast", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('4\\n4\\n4\\n4');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/p:person/last()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonLoad-xquery-module", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(400);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('An empty sequence is not allowed as the first argument of fn:load-xquery-module()');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"load-xquery-module(document-uri(/))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonLocal-name", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('library');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"local-name(/l:library)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonLocal-name-from-QName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('person');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"local-name-from-QName(QName(\\\"http://www.example.com/example\\\", \\\"person\\\"))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonLower-case", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('sarcastic');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"lower-case('SaRcAsTiC')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMatches", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('true');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"matches(/l:library/l:readerList/p:person[2]/p:name,'Adam')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMax", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('6');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"max((2,3,4,5,6,1))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMin", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('1');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"min((2,3,4,5,6,1))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMinutes-from-dateTime", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql((new Date().getMinutes()).toString());", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"minutes-from-dateTime(current-dateTime())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMinutes-from-duration", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('0');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"minutes-from-duration(xs:dayTimeDuration('P3DT10H'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMinutes-from-time", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('23');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"minutes-from-time(xs:time('11:23:00'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMonth-from-date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('3');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"month-from-date(xs:date('2023-03-16'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMonth-from-dateTime", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql((new Date().getMonth()+1).toString());", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"month-from-dateTime(current-dateTime())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonMonths-from-duration", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('0');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"months-from-duration(xs:dayTimeDuration('P3DT10H'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('l:library');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/name()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNamespace-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.release11.com/library\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/namespace-uri()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNamespace-uri-for-prefix", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.w3.org/XML/1998/namespace\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"namespace-uri-for-prefix('xml', element())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNamespace-uri-from-QName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.example.com/example\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"namespace-uri-from-QName(QName('http://www.example.com/example', 'person'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNilled", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"false\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"nilled(/l:library)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNode-name", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"l:library\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"node-name(/l:library)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNormalize-space", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"aaaa aaa a aaa\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"normalize-space(' aaaa aaa a aaa ')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNormalize-unicode", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"aaaa aaa a aaa\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"normalize-unicode(' aaaa aaa a aaa ','NFKC')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNot", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"false\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"not(1)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNumber", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1.11\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"number(1.11)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonOne-or-more", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\" \\n\\n 7321\\n Adam\\n Choke\\n\\n\\n 7321\\n Adam\\n Choke\\n\\n\\n 5123\\n Lauren\\n Wong\\n\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"one-or-more(/l:library/l:readerList/p:person)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonOutermost", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\" \\n\\n 7321\\n Adam\\n Choke\\n\\n\\n 7321\\n Adam\\n Choke\\n\\n\\n 5123\\n Lauren\\n Wong\\n\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"outermost(/l:library/l:readerList/p:person)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonParse-ietf-date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1994-06-06T07:29:35Z\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"parse-ietf-date('Wed, 06 Jun 1994 07:29:35 GMT')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonParse-json", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"map{\\\"data\\\":\\\"09:30:10.5\\\"}\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"parse-json('{\\\"data\\\": \\\"09:30:10.5\\\"}')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonParse-xml", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"09:30:10.5\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"parse-xml('09:30:10.5')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonParse-xml-fragment", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"09:30:10.5\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"parse-xml-fragment('09:30:10.5')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonPath", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"/Q{http://www.release11.com/library}library[1]/Q{http://www.release11.com/library}readerList[1]/Q{http://www.release11.com/person}person[2]\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"path(/l:library/l:readerList/p:person[2])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonPosition", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\\n2\\n3\\n4\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/p:person/position()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonPrefix-from-QName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"p\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"prefix-from-QName(QName('http://www.example.com/example', 'p:person'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonQName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"p:person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"QName('http://www.example.com/example', 'p:person')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonRandom-number-generator", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result.slice(0, 24)).to.eql(\"map{\\\"next\\\":Q{anon}anon#0\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"random-number-generator()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonRemove", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\\n3\\n4\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"remove(('1','2','3','4'),2)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonReplace", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"ACC\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"replace('ABC', 'B', 'C')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonResolve-QName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"hell\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"resolve-QName('hell', /l:library)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonResolve-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"p:person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"resolve-uri('p:person')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonReverse", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"4\\n3\\n2\\n1\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"reverse(('1','2','3','4'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonRoot", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"\\n City library\\n 345123\\n \\n \\n \\n 7321\\n Adam\\n Choke\\n \\n \\n 7321\\n Adam\\n Choke\\n \\n \\n 5123\\n Lauren\\n Wong\\n \\n \\n \\n \\n 6422\\n Harry Potter\\n 7542\\n \\n \\n 1234\\n Macbeth\\n 5123\\n \\n \\n 9556\\n Romeo and Juliet\\n \\n \\n\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"root(//p:person[1])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonRound", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"5\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"round(5.49)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonRound-half-to-even", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"5.5\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"round-half-to-even(5.49,1)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSeconds-from-dateTime", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result.slice(0, 2)).to.eql((new Date().getSeconds()).toString() || (new Date().getSeconds()-1).toString());", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"seconds-from-dateTime(current-dateTime())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSeconds-from-duration", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('0');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"seconds-from-duration(xs:dayTimeDuration('P3DT10H'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSeconds-from-duration", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('0');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"seconds-from-duration(xs:dayTimeDuration('P3DT10H'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSerialize", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('1 2 3 4');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"serialize((1,2,3,4))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSort", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('1\\n-2\\n5\\n8\\n10\\n-10\\n10');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"sort((1, -2, 5, 10, -10, 10, 8), (), abs#1)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonStarts-with", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('true');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"starts-with('ABC','A')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonStatic-base-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/static-base-uri()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonString", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('Adam');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"string(/l:library/l:readerList/p:person[2]/p:name)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonString-join", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('1A2A3');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"string-join((1,2,3),'A')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonString-length", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('1');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"string-length('A')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonString-to-codepoints", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('65');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"string-to-codepoints('A')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSubsequence", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('2\\n3');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"subsequence((1,2,3,4),2,2)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSubstring", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('BC');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring('ABCDEF',2,2)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSubstring-after", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('BCDEF');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring-after ('ACBCDEF','C')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSubstring-before", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('A');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring-before ('ACBCDEF','C')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonSum", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('6');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"sum((1,2,3))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonTail", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('2\\n3');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"tail((1,2,3))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonTimezone-from-date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('PT0S');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"timezone-from-date(current-date())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonTimezone-from-dateTime", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('PT0S');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"timezone-from-dateTime(current-dateTime())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonTimezone-from-time", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('PT0S');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"timezone-from-time(current-time())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonTokenize", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('B\\nCB\\nB\\nD');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"tokenize('BACBABAD','A')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonTrace", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('Adam\\nAdam\\nLauren');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"trace(//p:name[1])\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonTranslate", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('BAr');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"translate('bar','abc','ABC')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonTrue", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('true');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"true()\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonUnordered", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('4\\n3\\n2\\n4\\n5');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"unordered((4, 3, 2, 4, 5))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonUnparsed-text", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('.dockerenv\\napp\\nbin\\nboot\\ndev\\netc\\nhome\\nlib\\nlib64\\nmedia\\nmnt\\nopt\\nproc\\nroot\\nrun\\nsbin\\nsrv\\nsys\\ntmp\\nusr\\nvar');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"unparsed-text('')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonUnparsed-text-available", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('true');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"unparsed-text-available('')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonUnparsed-text-lines", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('.dockerenv\\napp\\nbin\\nboot\\ndev\\netc\\nhome\\nlib\\nlib64\\nmedia\\nmnt\\nopt\\nproc\\nroot\\nrun\\nsbin\\nsrv\\nsys\\ntmp\\nusr\\nvar');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"unparsed-text-lines ('')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonUpper-case", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('AAA');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"upper-case('aaa')\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonUri-collection", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(400);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('Invalid URI passed to uri-collection: City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet ');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"uri-collection(/l:library)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonXml-to-json", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('[1,\\\"is\\\",true]');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"1is1\",\n \"processorData\": \"xml-to-json(/)\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonYear-from-date", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(new Date().getFullYear().toString());", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"1is1\",\n \"processorData\": \"year-from-date(current-date())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonYear-from-dateTime", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(new Date().getFullYear().toString());", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"1is1\",\n \"processorData\": \"year-from-dateTime(current-dateTime())\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonYears-from-duration", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('0');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"1is1\",\n \"processorData\": \"years-from-duration(xs:dayTimeDuration('P3DT10H'))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonZero-or-one", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql('1');", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 3.1 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"1is1\",\n \"processorData\": \"zero-or-one((1))\",\n \"processor\": \"saxon\",\n \"version\": \"3.1\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] } ] }, { "name": "Xpath functions 1.0", "item": [ { "name": "LIBXMLString", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"11\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"Test1Test3\",\n \"processorData\": \"string(11)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ] } }, "response": [] }, { "name": "LIBXMLConcat", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"AdamChoke\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"concat(/l:library/l:readerList/p:person[1]/p:name,/l:library/l:readerList/p:person[1]/p:surname)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LlibXMLBasic", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"Test1\\n\\nTest3\\n\\n\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"Test1Test3\",\n \"processorData\": \"/values/value\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ] } }, "response": [] }, { "name": "LIBXMLLast", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"Lauren \\n\\n\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/p:person[last()]/p:name\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ] } }, "response": [] }, { "name": "LIBXMLPosition", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\" 5123 Lauren Wong \\n\\n\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/p:person[position()=2]\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ] } }, "response": [] }, { "name": "LIBXMLCount", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2.0\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"count(/l:library/l:readerList/p:person)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ] } }, "response": [] }, { "name": "LIBXMLLocalName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"local-name(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ] } }, "response": [] }, { "name": "LIBXMLNamespace-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.release11.com/person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"namespace-uri(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ] } }, "response": [] }, { "name": "LIMXMLContains", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"True\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"contains(/l:library/l:readerList/p:person[1]/p:name, 'A')\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.release11.com/person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"namespace-uri(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ] } }, "response": [] }, { "name": "LIBXMLStarts-with", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"True\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"starts-with(/l:library/l:readerList/p:person[1]/p:name, 'A')\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIMXMLSubstring-before", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1999\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring-before(\\\"1999/04/01\\\",\\\"/\\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLSubstring-after", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"04/01\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring-after(\\\"1999/04/01\\\",\\\"/\\\")\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLSubstring", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"234\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring(\\\"12345\\\", 1.5, 2.6)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLString-length", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"4.0\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"string-length(\\\"Adam\\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLNormalize-space", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"A d am\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"normalize-space (\\\" A d am \\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLTranslate", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"BAr\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"translate(\\\"bar\\\",\\\"abc\\\",\\\"ABC\\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanBasic", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"Test1\\nTest3\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"Test1Test3\",\n \"processorData\": \"/values/value\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "XalanString", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"11\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"Test1Test3\",\n \"processorData\": \"string('11')\",\n \"processor\": \"xalan\",\n \"version\": \"1.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "XalanLast", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"Lauren\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/p:person[last()]/p:name\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "XalanPosition", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\" 5123 Lauren Wong \");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/p:person[position()=2]\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "XalanCount", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"count(/l:library/l:readerList/p:person)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "XalanLocalName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"local-name(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "XalanNamespace-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.release11.com/person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"namespace-uri(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "XalanName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.release11.com/person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"namespace-uri(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "XalanConcat", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"AdamChoke\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"concat(/l:library/l:readerList/p:person[1]/p:name,/l:library/l:readerList/p:person[1]/p:surname)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanStarts-with", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"starts-with(/l:library/l:readerList/p:person[1]/p:name, 'A')\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanContains", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"contains(/l:library/l:readerList/p:person[1]/p:name, 'A')\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanSubstring-before", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1999\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring-before(\\\"1999/04/01\\\",\\\"/\\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanSubstring-after", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"04/01\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring-after(\\\"1999/04/01\\\",\\\"/\\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanSubstring", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"234\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring(\\\"12345\\\", 1.5, 2.6)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanString-length", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"4\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"string-length(\\\"Adam\\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanNormalize-space", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"A d am\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"normalize-space (\\\" A d am \\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanTranslate", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"BAr\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"translate(\\\"bar\\\",\\\"abc\\\",\\\"ABC\\\")\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonBasic", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"Test1\\nTest3\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"Test1Test3\",\n \"processorData\": \"/values/value\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonString", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"11\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \"Test1Test3\",\n \"processorData\": \"string(11)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonLast", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"Lauren\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/p:person[last()]/p:name\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonPosition", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\\n2\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/p:person/position()\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonCount", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/count(p:person)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonLocalName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"local-name(/l:library/l:readerList/p:person[1])\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonNamespace-uri", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"http://www.release11.com/person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/namespace-uri(p:person[1])\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ] } }, "response": [] }, { "name": "SaxonName", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"p:person\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"/l:library/l:readerList/name(p:person[1])\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonConcat", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"AdamChoke\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"concat(/l:library/l:readerList/p:person[1]/p:name,/l:library/l:readerList/p:person[1]/p:surname)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonStarts-with", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"starts-with(/l:library/l:readerList/p:person[1]/p:name, 'A')\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonContains", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"true\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"contains(/l:library/l:readerList/p:person[1]/p:name, 'A')\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonSubstring-before", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1999\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring-before(\\\"1999/04/01\\\",\\\"/\\\")\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonSubstring-after", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"04/01\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring-after(\\\"1999/04/01\\\",\\\"/\\\")\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonSubstring", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"234\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"substring(\\\"12345\\\", 1.5, 2.6)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonString-length", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"4\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"string-length(\\\"Adam\\\")\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonNormalize-space", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"A d am\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"normalize-space (\\\" A d am \\\")\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonTranslate", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"BAr\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"translate(\\\"bar\\\",\\\"abc\\\",\\\"ABC\\\")\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLNumber", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"11.0\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"number(11)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLSum", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"12444.0\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"sum(/l:library/l:readerList/p:person/p:readerID)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLFloor", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1.0\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"floor(1.1)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLCeiling", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2.0\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"ceiling(1.1)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "LIBXMLRound", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"3.0\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"libxml2 over lxml\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"round(3.14)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL2}}", "host": [ "{{TestURL2}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanNumber", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"11\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"number(11)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanSum", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"12444\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"sum(/l:library/l:readerList/p:person/p:readerID)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanFloor", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"floor(1.1)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanCeiling", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"ceiling(1.1)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "XalanRound", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"3\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Xalan Java 2.7.2\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"round(3.14)\",\n \"processor\": \"xalan\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonNumber", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"11\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"number(11)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonSum", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"12444\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"sum(/l:library/l:readerList/p:person/p:readerID)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonFloor", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"1\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"floor(1.1)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonCeiling", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"2\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"ceiling(1.1)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] }, { "name": "SaxonRound", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Works correctly\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.result).to.eql(\"3\");", "});", "pm.test(\"correct engine\", function () {", " var jsonData = pm.response.json();", " pm.expect(jsonData.processor).to.eql(\"Saxon 11.4 2.0 over s9api\");", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"data\": \" City library 345123 7321 Adam Choke 5123 Lauren Wong 6422 Harry Potter 7542 1234 Macbeth 5123 9556 Romeo and Juliet \",\n \"processorData\": \"round(3.14)\",\n \"processor\": \"saxon\",\n \"version\": \"2.0\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{TestURL1}}", "host": [ "{{TestURL1}}" ], "query": [ { "key": "", "value": null, "disabled": true } ] } }, "response": [] } ] }, { "name": "JSON", "item": [ { "name": "Format Array", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Returns correct result\", function () {", " var jsonData = pm.response.json();", " var expected = '[\\n {\\n \\\"name\\\": \\\"John\\\",\\n \\\"age\\\": 30.0,\\n \\\"city\\\": \\\"New York\\\"\\n }\\n]';", " pm.expect(jsonData.data).to.eql(expected);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "[{\"name\": \"John\",\"age\": 30,\"city\": \"New York\"}]", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{JsonFormattingURL}}", "host": [ "{{JsonFormattingURL}}" ] } }, "response": [] }, { "name": "Format Broken Array", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", "});", "pm.test(\"Returns correct result\", function () {", " var jsonData = pm.response.json();", " var expected = 'End of input at line 1 column 47 path $[1]';", " pm.expect(jsonData.data).to.eql(expected);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "[{\"name\": \"John\",\"age\": 30,\"city\": \"New York\"}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{JsonFormattingURL}}", "host": [ "{{JsonFormattingURL}}" ] } }, "response": [] }, { "name": "Format Object", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Returns correct result\", function () {", " var jsonData = pm.response.json();", " var expected = '{\\n \\\"name\\\": \\\"John\\\",\\n \\\"age\\\": 30.0,\\n \\\"city\\\": \\\"New York\\\"\\n}';", " pm.expect(jsonData.data).to.eql(expected);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\"name\": \"John\",\"age\": 30,\"city\": \"New York\"}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{JsonFormattingURL}}", "host": [ "{{JsonFormattingURL}}" ] } }, "response": [] }, { "name": "Format Broken Object", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", "});", "pm.test(\"Returns correct result\", function () {", " var jsonData = pm.response.json();", " var expected = 'End of input at line 1 column 45 path $.city';", " pm.expect(jsonData.data).to.eql(expected);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\"name\": \"John\",\"age\": 30,\"city\": \"New York\"", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{JsonFormattingURL}}", "host": [ "{{JsonFormattingURL}}" ] } }, "response": [] }, { "name": "Minimize Object", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Returns correct result\", function () {", " var jsonData = pm.response.json();", " var expected = '{\\\"name\\\":\\\"John\\\",\\\"age\\\":30.0,\\\"city\\\":\\\"New York\\\"}';", " pm.expect(jsonData.data).to.eql(expected);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"John\",\n \"age\": 30,\n \"city\": \"New York\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{JsonMinimizeURL}}", "host": [ "{{JsonMinimizeURL}}" ] } }, "response": [] }, { "name": "Minimize Broken Object", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", "});", "pm.test(\"Returns correct result\", function () {", " var jsonData = pm.response.json();", " var expected = 'End of input at line 4 column 23 path $.city';", " pm.expect(jsonData.data).to.eql(expected);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\": \"John\",\n \"age\": 30,\n \"city\": \"New York\"", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{JsonMinimizeURL}}", "host": [ "{{JsonMinimizeURL}}" ] } }, "response": [] }, { "name": "Minimize Array", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "pm.test(\"Returns correct result\", function () {", " var jsonData = pm.response.json();", " var expected = '[{\\\"name\\\":\\\"John\\\",\\\"age\\\":30.0,\\\"city\\\":\\\"New York\\\"}]';", " pm.expect(jsonData.data).to.eql(expected);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "[\n {\n \"name\": \"John\",\n \"age\": 30,\n \"city\": \"New York\"\n }\n]", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{JsonMinimizeURL}}", "host": [ "{{JsonMinimizeURL}}" ] } }, "response": [] }, { "name": "Minimize Broken Array", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code is 400\", function () {", " pm.response.to.have.status(400);", "});", "pm.test(\"Returns correct result\", function () {", " var jsonData = pm.response.json();", " var expected = 'End of input at line 6 column 6 path $[1]';", " pm.expect(jsonData.data).to.eql(expected);", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "[\n {\n \"name\": \"John\",\n \"age\": 30,\n \"city\": \"New York\"\n }", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{JsonMinimizeURL}}", "host": [ "{{JsonMinimizeURL}}" ] } }, "response": [] } ] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "TestURL1", "value": "http://tools.zipper.release11.com:8081/xpath", "type": "default" }, { "key": "TestURL2", "value": "http://tools.zipper.release11.com:8082/xpath", "type": "default" }, { "key": "JsonFormattingURL", "value": "http://tools-test.zipper.release11.com/java/json/formatting", "type": "default" }, { "key": "JsonMinimizeURL", "value": "http://tools-test.zipper.release11.com/java/json/minimize", "type": "default" } ] }