Replit Commit
This commit is contained in:
commit
f49f965a42
41 changed files with 32720 additions and 0 deletions
27
lib/rabbit/TestResultsConsumer.js
Normal file
27
lib/rabbit/TestResultsConsumer.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
// 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue