Open helloanoop opened 1 year ago
Currently Bruno supports these inbuilt libraries - https://docs.usebruno.com/scripting/inbuilt-libraries.html
You can today do an npm install xpath xmldom at the root of your collection folder and do then do this inside your scripts
npm install xpath xmldom
const xpath = require('xpath'); const dom = require('xmldom').DOMParser; const doc = new dom().parseFromString(res.body, 'text/xml'); const query = "//*[local-name()='AuthToken']/text()"; const token = xpath.select(query, doc)[0].nodeValue; bru.setVar("token", token);
I think xpath and xmldom are great package candidates to support as an inbuilt library.
xpath
xmldom
My prerequest script returns xml but I can't easily parse it. Xml support would really help!
Currently Bruno supports these inbuilt libraries - https://docs.usebruno.com/scripting/inbuilt-libraries.html
You can today do an
npm install xpath xmldom
at the root of your collection folder and do then do this inside your scriptsI think
xpath
andxmldom
are great package candidates to support as an inbuilt library.