28 lines
640 B
JavaScript
28 lines
640 B
JavaScript
|
// Imports
|
||
|
import { RabbitConsumer } from "rabiteer";
|
||
|
// Class
|
||
|
export default class TestResultsConsumer extends RabbitConsumer {
|
||
|
constructor() {
|
||
|
super("TestResults");
|
||
|
}
|
||
|
|
||
|
/* Example Test Result
|
||
|
{
|
||
|
testName: “SomeTest”,
|
||
|
testClass: “SomeClass”,
|
||
|
testMethod: “SomeMethod”,
|
||
|
testType: “API/UI”,
|
||
|
testTimestamp: 123893024,
|
||
|
origin: “TestSuite”,
|
||
|
failed: true,
|
||
|
failedMessage: “Some Failure”,
|
||
|
screenshotUrl: “https://screenshot”,
|
||
|
expectedScreenshotUrl: “https://expected”
|
||
|
consoleLogUrl: “https://consolelog”
|
||
|
}
|
||
|
*/
|
||
|
onMessage(testResult) {
|
||
|
console.log(testResult);
|
||
|
}
|
||
|
}
|