Class BlazeMeterClient
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.engines.BaseRemoteEngineApiClient
-
- us.abstracta.jmeter.javadsl.blazemeter.BlazeMeterClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class BlazeMeterClient extends BaseRemoteEngineApiClient
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_APP_URL
-
Constructor Summary
Constructors Constructor Description BlazeMeterClient(String username, String password)
-
Method Summary
-
Methods inherited from class us.abstracta.jmeter.javadsl.engines.BaseRemoteEngineApiClient
buildApiFor, buildConverterMapper, close, configureHttpClient, execApiCall
-
-
-
-
Field Detail
-
BASE_APP_URL
public static final String BASE_APP_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildAuthorizationHeaderValue
protected String buildAuthorizationHeaderValue(okhttp3.Request request)
- Specified by:
buildAuthorizationHeaderValuein classBaseRemoteEngineApiClient
-
buildRemoteEngineException
protected RemoteEngineException buildRemoteEngineException(int code, String message)
- Overrides:
buildRemoteEngineExceptionin classBaseRemoteEngineApiClient
-
findDefaultProject
public Project findDefaultProject() throws IOException
- Throws:
IOException
-
findProjectById
public Project findProjectById(Long projectId) throws IOException
- Throws:
IOException
-
findPrivateLocationByName
public Location findPrivateLocationByName(String name, Project project) throws IOException
- Throws:
IOException
-
findTestByName
public Optional<Test> findTestByName(String testName, Project project) throws IOException
- Throws:
IOException
-
findTestFiles
public List<String> findTestFiles(Test test) throws IOException
- Throws:
IOException
-
deleteTestFile
public void deleteTestFile(String name, Test test) throws IOException
- Throws:
IOException
-
createTest
public Test createTest(TestConfig testConfig, Project project) throws IOException
- Throws:
IOException
-
updateTest
public void updateTest(Test test, TestConfig testConfig) throws IOException
- Throws:
IOException
-
uploadTestFile
public void uploadTestFile(File file, String fileName, Test test) throws IOException
- Throws:
IOException
-
startTest
public TestRun startTest(Test test, TestRunConfig runConfig) throws IOException
- Throws:
IOException
-
findTestRunStatus
public TestRunStatus findTestRunStatus(TestRun testRun) throws IOException
- Throws:
IOException
-
findTestRunById
public TestRun findTestRunById(long testRunId) throws IOException
- Throws:
IOException
-
findTestRunSummaryStats
public TestRunSummaryStats findTestRunSummaryStats(TestRun testRun) throws IOException
- Throws:
IOException
-
findTestRunRequestStats
public List<TestRunRequestStats> findTestRunRequestStats(TestRun testRun) throws IOException
- Throws:
IOException
-
stopTestRun
public void stopTestRun(TestRun testRun) throws IOException
- Throws:
IOException
-
-