Package com.github.angleshq.angles
Class AnglesReporter
- java.lang.Object
-
- com.github.angleshq.angles.AnglesReporter
-
- All Implemented Interfaces:
AnglesReporterInterface
public class AnglesReporter extends Object implements AnglesReporterInterface
-
-
Field Summary
Fields Modifier and Type Field Description protected static intconnectionTimeoutstatic StringDEFAULT_ACTION_NAMEstatic StringEMPTY_REPORTER_NAMEprotected static intsocketTimeout
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageCompareResponsecompareScreenshotAgainstBaseline(String screenshotId)voiddebug(String debug)voiddebug(String debug, String screenshotId)voiderror(String error)voiderror(String error, String screenshotId)voidfail(String name, String expected, String actual, String info)voidfail(String name, String expected, String actual, String info, String screenshotId)StringgetBuildId()static AnglesReporterInterfacegetInstance(String url)static AnglesReporterInterfacegetInstance(String url, org.apache.http.client.config.RequestConfig requestConfig)voidinfo(String info)voidinfo(String info, String screenshotId)static booleanisEnabled()voidpass(String name, String expected, String actual, String info)voidpass(String name, String expected, String actual, String info, String screenshotId)voidsaveTest()voidsetBuildToKeep()static voidsetEnabled(boolean enabled)This method allows you to disable angles (in case you wanted to have a local run).voidstartAction(String description)voidstartBuild(String name, String environmentName, String teamName, String componentName)voidstartBuild(String name, String environmentName, String teamName, String componentName, String phase)voidstartTest(String suiteName, String testName)voidstartTest(String suiteName, String testName, String feature)voidstartTest(String suiteName, String testName, String feature, List<String> tags)voidstoreArtifacts(Artifact[] artifacts)voidstorePlatformDetails(Platform... platform)ScreenshotstoreScreenshot(ScreenshotDetails details)voidupdateTestName(String testName)
-
-
-
Field Detail
-
DEFAULT_ACTION_NAME
public static final String DEFAULT_ACTION_NAME
- See Also:
- Constant Field Values
-
EMPTY_REPORTER_NAME
public static final String EMPTY_REPORTER_NAME
- See Also:
- Constant Field Values
-
connectionTimeout
protected static int connectionTimeout
-
socketTimeout
protected static int socketTimeout
-
-
Method Detail
-
getInstance
public static AnglesReporterInterface getInstance(String url)
-
getInstance
public static AnglesReporterInterface getInstance(String url, org.apache.http.client.config.RequestConfig requestConfig)
-
startBuild
public void startBuild(String name, String environmentName, String teamName, String componentName)
- Specified by:
startBuildin interfaceAnglesReporterInterface
-
startBuild
public void startBuild(String name, String environmentName, String teamName, String componentName, String phase)
- Specified by:
startBuildin interfaceAnglesReporterInterface
-
storeArtifacts
public void storeArtifacts(Artifact[] artifacts)
- Specified by:
storeArtifactsin interfaceAnglesReporterInterface
-
startTest
public void startTest(String suiteName, String testName)
- Specified by:
startTestin interfaceAnglesReporterInterface
-
updateTestName
public void updateTestName(String testName)
- Specified by:
updateTestNamein interfaceAnglesReporterInterface
-
startTest
public void startTest(String suiteName, String testName, String feature)
- Specified by:
startTestin interfaceAnglesReporterInterface
-
startTest
public void startTest(String suiteName, String testName, String feature, List<String> tags)
- Specified by:
startTestin interfaceAnglesReporterInterface
-
saveTest
public void saveTest()
- Specified by:
saveTestin interfaceAnglesReporterInterface
-
storePlatformDetails
public void storePlatformDetails(Platform... platform)
- Specified by:
storePlatformDetailsin interfaceAnglesReporterInterface
-
startAction
public void startAction(String description)
- Specified by:
startActionin interfaceAnglesReporterInterface
-
debug
public void debug(String debug)
- Specified by:
debugin interfaceAnglesReporterInterface
-
debug
public void debug(String debug, String screenshotId)
- Specified by:
debugin interfaceAnglesReporterInterface
-
error
public void error(String error)
- Specified by:
errorin interfaceAnglesReporterInterface
-
error
public void error(String error, String screenshotId)
- Specified by:
errorin interfaceAnglesReporterInterface
-
info
public void info(String info)
- Specified by:
infoin interfaceAnglesReporterInterface
-
info
public void info(String info, String screenshotId)
- Specified by:
infoin interfaceAnglesReporterInterface
-
pass
public void pass(String name, String expected, String actual, String info)
- Specified by:
passin interfaceAnglesReporterInterface
-
pass
public void pass(String name, String expected, String actual, String info, String screenshotId)
- Specified by:
passin interfaceAnglesReporterInterface
-
fail
public void fail(String name, String expected, String actual, String info)
- Specified by:
failin interfaceAnglesReporterInterface
-
fail
public void fail(String name, String expected, String actual, String info, String screenshotId)
- Specified by:
failin interfaceAnglesReporterInterface
-
storeScreenshot
public Screenshot storeScreenshot(ScreenshotDetails details)
- Specified by:
storeScreenshotin interfaceAnglesReporterInterface
-
compareScreenshotAgainstBaseline
public ImageCompareResponse compareScreenshotAgainstBaseline(String screenshotId)
- Specified by:
compareScreenshotAgainstBaselinein interfaceAnglesReporterInterface
-
getBuildId
public String getBuildId()
- Specified by:
getBuildIdin interfaceAnglesReporterInterface
-
setBuildToKeep
public void setBuildToKeep()
-
setEnabled
public static void setEnabled(boolean enabled)
This method allows you to disable angles (in case you wanted to have a local run).- Parameters:
enabled- e.g. false to disable reporting to angles (and you will get an empty reporter).
-
isEnabled
public static boolean isEnabled()
-
-