-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema Validation issues. Not ending launch #67
Comments
Okay...... so on more playing this is actually a different issue :)
^ this caused the issue, where the below was set:
The tests would still 'run' ( according to report portal ) and wouldn't close out. I think this is an extension of: #65 because report portal doesn't recognise a test wasn't completed/skipped. Changing this to:
Solved this problem. |
I think this is ultimatly caused by : #64 |
In our suite we have been using the following:
pm.test("Validate schema 2", ()=> { pm.response.to.have.jsonSchema(JSON.parse(pm.collectionVariables.get("schema"))); });
In ReportPortal this doesn't seem to validate/result in an 'finish' result.
Changing to:
pm.test("Validate schema 1", function() { pm.expect(tv4.validate(pm.response.json(),((JSON.parse(pm.collectionVariables.get("schema"))),true,true))).to.be.true; });
Then frustratingly when removing "Validate Schema 2" ... it also then doesn't work for "Validate Schema 1" though it did before... so something somewhere isn't right when it comes to validating schemas.
Incidently, postman itself has no issues with either:
The text was updated successfully, but these errors were encountered: