Merge pull request #645 from liyasthomas/hotfix/tests
Run tests even after failed request
This commit is contained in:
@@ -2132,16 +2132,6 @@ export default {
|
||||
}
|
||||
}
|
||||
})()
|
||||
// tests
|
||||
const syntheticResponse = {
|
||||
status: this.response.status,
|
||||
body: this.response.body,
|
||||
headers: this.response.headers,
|
||||
}
|
||||
const { testResults } = runTestScriptWithVariables(this.testScript, {
|
||||
response: syntheticResponse,
|
||||
})
|
||||
this.testReports = testResults
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
if (error.response) {
|
||||
@@ -2187,6 +2177,16 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
// tests
|
||||
const syntheticResponse = {
|
||||
status: this.response.status,
|
||||
body: this.response.body,
|
||||
headers: this.response.headers,
|
||||
}
|
||||
const { testResults } = runTestScriptWithVariables(this.testScript, {
|
||||
response: syntheticResponse,
|
||||
})
|
||||
this.testReports = testResults
|
||||
},
|
||||
getQueryStringFromPath() {
|
||||
let queryString
|
||||
|
||||
Reference in New Issue
Block a user