com.relevantcodes.extentreports.LogStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extentreports Show documentation
Show all versions of extentreports Show documentation
ExtentReports is an open-source reporting library for test automation. It is very easily integrated with all test-frameworks (TestNG, JUnit, NUnit etc.) and provides better looking reports. Because Extent is created as a logging utility, it is also possible to use custom logs for each test, add snapshots & videos, assign categories and authors and filter using several parameters.
/*
* Copyright (c) 2015, Anshoo Arora (Relevant Codes). All rights reserved.
*
* Copyrights licensed under the New BSD License.
*
* See the accompanying LICENSE file for terms.
*/
package com.relevantcodes.extentreports;
/**
* Specifies the log status of the log-event
*
* @author Anshoo Arora
*
*/
public enum LogStatus {
PASS,
FAIL,
FATAL,
ERROR,
WARNING,
INFO,
SKIP,
UNKNOWN;
@Override
public String toString() {
switch (this) {
case PASS: return "pass";
case FAIL: return "fail";
case FATAL: return "fatal";
case ERROR: return "error";
case WARNING: return "warning";
case INFO: return "info";
case SKIP: return "skip";
default: return "unknown";
}
}
}