We are running Protractor (written in typescript) against a production website. Does anyone know how to output some log messages when the Protractor test fails? All I have now is basically, just a YES/NO message, something like this:
10) Query page accuracy test. Comparison of page data to data extracted from excel. Test begins...
Message:
Expected false to be truthy.
Stack:
Error: Failed expectation
at C:\xampp\htdocs\kap\frontend\src\app\qa\qa.js:147:103
at step (C:\xampp\htdocs\kap\frontend\src\app\qa\qa.js:33:23)
at Object.next (C:\...
etc. this is the line in which we test:
expect(htmlValue == excelValue || (htmlValue === "0" && excelValue == "NaN")).toBeTruthy();
How to add a more descriptive message when a test fails? Thanks anyone, I am very new in Protractor, but I have done QA automation tests before.
Aucun commentaire:
Enregistrer un commentaire