public final class PerfanaClient extends Object implements PerfanaCaller
| Modifier and Type | Method and Description |
|---|---|
void |
abortSession()
Call to abort this test run.
|
void |
callPerfanaEvent(TestContext context,
String eventDescription) |
void |
callPerfanaTestEndpoint(TestContext context,
boolean completed) |
boolean |
isSessionStopped() |
static String |
perfanaMessageToJson(TestContext context,
boolean completed) |
void |
startSession()
Start a Perfana test session.
|
void |
stopSession()
Stop a Perfana test session.
|
String |
toString() |
public void startSession()
public void stopSession()
throws PerfanaClientException,
PerfanaAssertionsAreFalse
PerfanaClientException - when something fails, e.g. Perfana can not be reachedPerfanaAssertionsAreFalse - when the Perfana assertion check returned falsepublic boolean isSessionStopped()
public void abortSession()
public void callPerfanaTestEndpoint(TestContext context, boolean completed)
callPerfanaTestEndpoint in interface PerfanaCallerpublic void callPerfanaEvent(TestContext context, String eventDescription)
callPerfanaEvent in interface PerfanaCallerpublic static String perfanaMessageToJson(TestContext context, boolean completed)
Copyright © 2019. All rights reserved.