Package com.cloudtestapi.test
Class TestClient
- java.lang.Object
-
- com.cloudtestapi.common.AbstractClient
-
- com.cloudtestapi.test.TestClient
-
public class TestClient extends AbstractClient
-
-
Field Summary
-
Fields inherited from class com.cloudtestapi.common.AbstractClient
gson, HTTP_RSP_OK
-
-
Constructor Summary
Constructors Constructor Description TestClient(Credential credential)TestClient(Credential credential, ClientProfile clientProfile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelTest(Long testId)cancel testGetDebugStatusResponsegetDebugStatus(Long testId, Integer deviceId)GetInstallProcessResponsegetInstallProcess(Long testId, Integer deviceId, Integer installId)TestDevice[]getTestDevices(Long testId, boolean log, boolean image, boolean error)get test devicesTestStatusgetTestStatus(Long testId)获取测试状态InstallAppResponseinstallApp(Long testId, Integer deviceId, Integer appId, Boolean resign)TestInfostartAutomationTest(AutomationTest test)Start automation testTestInfostartCompatibilityTest(CompatibilityTest test)StartCompatibilityTestRequestDebugTestInfostartDebugTest(Integer deviceId, String projectKey)TestInfostartFunctionalTest(FunctionalTest test)start functional testStartDebugConnectResponsestartRemoteDebugConnect(Long testId, int deviceId)-
Methods inherited from class com.cloudtestapi.common.AbstractClient
getClientProfile, getCredential, getLogger, internalRequest, setClientProfile, setCredential, setLogger, setProfile
-
-
-
-
Constructor Detail
-
TestClient
public TestClient(Credential credential)
-
TestClient
public TestClient(Credential credential, ClientProfile clientProfile)
-
-
Method Detail
-
startAutomationTest
public TestInfo startAutomationTest(AutomationTest test) throws CloudTestSDKException
Start automation test- Parameters:
test- auto test parameters- Returns:
- TestInfo
- Throws:
CloudTestSDKException- CloudTestSDKException
-
startDebugTest
public DebugTestInfo startDebugTest(Integer deviceId, String projectKey) throws CloudTestSDKException
- Throws:
CloudTestSDKException
-
startRemoteDebugConnect
public StartDebugConnectResponse startRemoteDebugConnect(Long testId, int deviceId) throws CloudTestSDKException
- Throws:
CloudTestSDKException
-
cancelTest
public void cancelTest(Long testId) throws CloudTestSDKException
cancel test- Parameters:
testId- test id- Throws:
CloudTestSDKException- CloudTestSDKException
-
getTestDevices
public TestDevice[] getTestDevices(Long testId, boolean log, boolean image, boolean error) throws CloudTestSDKException
get test devices- Parameters:
testId- test IDlog- require log?image- require image?error- require error?- Returns:
- TestDevice[] device info list
- Throws:
CloudTestSDKException- CloudTestSDKException
-
getTestStatus
public TestStatus getTestStatus(Long testId) throws CloudTestSDKException
获取测试状态- Parameters:
testId- 测试ID- Returns:
- TestStatus 测试状态
- Throws:
CloudTestSDKException- CloudTestSDKException
-
getDebugStatus
public GetDebugStatusResponse getDebugStatus(Long testId, Integer deviceId) throws CloudTestSDKException
- Throws:
CloudTestSDKException
-
installApp
public InstallAppResponse installApp(Long testId, Integer deviceId, Integer appId, Boolean resign) throws CloudTestSDKException
- Throws:
CloudTestSDKException
-
getInstallProcess
public GetInstallProcessResponse getInstallProcess(Long testId, Integer deviceId, Integer installId) throws CloudTestSDKException
- Throws:
CloudTestSDKException
-
startFunctionalTest
public TestInfo startFunctionalTest(FunctionalTest test) throws CloudTestSDKException
start functional test- Parameters:
test- FunctionalTest- Returns:
- TestInfo
- Throws:
CloudTestSDKException- CloudTestSDKException
-
startCompatibilityTest
public TestInfo startCompatibilityTest(CompatibilityTest test) throws CloudTestSDKException
StartCompatibilityTestRequest- Parameters:
test- CompatibilityTest- Returns:
- TestInfo
- Throws:
CloudTestSDKException- CloudTestSDKException
-
-