Your First Anomaly
Add a simple signal inside a Postman test script.
if (pm.response.code === 200) {
const json = pm.response.json()
if (json.error === true) {
pm.test(`ANOMALY|${JSON.stringify({
type: 'HIDDEN_ERROR',
message: 'Response contains error=true'
})}`, () => {
pm.expect(true).to.be.false
})
}
}Then run:
newman run collection.json -r json > results.json
varicon run --report_path="./results.json"VARICON will extract the signal and convert it into a structured anomaly artifact.
Last updated on