@Path(value="/test-plans") @Produces(value="application/json") public class TestPlanService extends Object
| Constructor and Description |
|---|
TestPlanService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createTestPlan(TestPlanRequest testPlanRequest)
This has the implementation of the REST API for creating a new Test plan.
|
javax.ws.rs.core.Response |
getGrafanaURL(String id)
Returns the product performance dashboard url for the given test plan id
|
javax.ws.rs.core.Response |
getLogContent(String id,
boolean truncate)
Returns the log content related to the given test plan.
|
javax.ws.rs.core.Response |
getScenarioResult(String testPlanId,
String scenarioDir)
Deprecated.
all scenario results are zipped together and given to download in testplan level
Returns the result (archive file) to the given scenario of a test plan.
|
javax.ws.rs.core.Response |
getTestPlan(String id,
boolean requireTestScenarioInfo)
This has the implementation of the REST API for fetching a specific TestPlan by id.
|
javax.ws.rs.core.Response |
getTestPlanHistory(String testPlanId)
Returns the testplan history of same infrastructure combination and deployment pattern
as the queried testplan.
|
javax.ws.rs.core.Response |
getTestPlanResults(String testPlanId)
Returns the result (archive file) of a given test plan.
|
javax.ws.rs.core.Response |
getTestplans(String productId)
This method returns the latest
TestPlans for a given product
that contains the build details for distinct infrastructure combinations. |
javax.ws.rs.core.Response |
getTestPlansForDeploymentPatternAndDate(String deploymentPatternId,
String date,
boolean requireTestScenarioInfo)
This has the implementation of the REST API for fetching all the TestPlans for a given deployment-pattern
and created before date.
|
javax.ws.rs.core.Response |
getTestSummary(String id)
Returns the test execution summary related to the given test plan.
|
javax.ws.rs.core.Response |
isLogContentExist(String id,
boolean truncate)
Verify if the log content of the given test plan exists.
|
@GET
public javax.ws.rs.core.Response getTestPlansForDeploymentPatternAndDate(@QueryParam(value="deployment-pattern-id")
String deploymentPatternId,
@QueryParam(value="date")
String date,
@QueryParam(value="require-test-scenario-info")
boolean requireTestScenarioInfo)
@GET
@Path(value="/{id}")
public javax.ws.rs.core.Response getTestPlan(@PathParam(value="id")
String id,
@QueryParam(value="require-test-scenario-info")
boolean requireTestScenarioInfo)
@GET
@Path(value="/log/{id}")
public javax.ws.rs.core.Response getLogContent(@PathParam(value="id")
String id,
@QueryParam(value="truncate")
boolean truncate)
id - test plan id to get the specific logtruncate - whether the log file should be truncated or not@HEAD
@Path(value="/log/{id}")
public javax.ws.rs.core.Response isLogContentExist(@PathParam(value="id")
String id,
@QueryParam(value="truncate")
boolean truncate)
id - test plan id to get the specific log@GET
@Path(value="/test-summary/{id}")
public javax.ws.rs.core.Response getTestSummary(@PathParam(value="id")
String id)
id - test plan id@GET
@Path(value="/perf-url/{id}")
public javax.ws.rs.core.Response getGrafanaURL(@PathParam(value="id")
String id)
id - test plan id@GET
@Path(value="/product/{productId}")
public javax.ws.rs.core.Response getTestplans(@PathParam(value="productId")
String productId)
TestPlans for a given product
that contains the build details for distinct infrastructure combinations.productId - the productId attribute for the product being queriedTestPlanStatus as a JSON response.@POST @Consumes(value="application/json") public javax.ws.rs.core.Response createTestPlan(TestPlanRequest testPlanRequest)
testPlanRequest - TestPlanRequest that includes the repository and other necessary detials
to create new test plan.@GET
@Path(value="/history/{testPlanId}")
public javax.ws.rs.core.Response getTestPlanHistory(@PathParam(value="testPlanId")
String testPlanId)
testPlanId - id of test plan being queried@GET
@Path(value="/result/{test-plan-id}/{scenario-directory}")
@Deprecated
public javax.ws.rs.core.Response getScenarioResult(@PathParam(value="test-plan-id")
String testPlanId,
@PathParam(value="scenario-directory")
String scenarioDir)
testPlanId - test plan idscenarioDir - scenario directory name@GET
@Path(value="/result/{test-plan-id}")
public javax.ws.rs.core.Response getTestPlanResults(@PathParam(value="test-plan-id")
String testPlanId)
testPlanId - test plan idCopyright © 2019 WSO2. All rights reserved.