| 构造器和说明 |
|---|
CTClient(Credential credential) |
CTClient(Credential credential,
ClientProfile clientProfile) |
| 限定符和类型 | 方法和说明 |
|---|---|
Cloud |
AccountClient.getCloudByName(String cloudName) |
Cloud[] |
AccountClient.getClouds() |
Project |
AccountClient.getProjectByName(String projectName) |
Project[] |
AccountClient.getProjects()
Get Project List
|
| 限定符和类型 | 方法和说明 |
|---|---|
okhttp3.Response |
HttpConnection.deleteRequest(String url) |
okhttp3.Response |
HttpConnection.doRequest(okhttp3.Request request) |
okhttp3.Response |
HttpConnection.getRequest(String url) |
protected String |
AbstractClient.internalRequest(AbstractRequest request) |
okhttp3.Response |
HttpConnection.postFormRequest(String url,
byte[] body,
String fieldName,
String fileName,
String fileMime) |
okhttp3.Response |
HttpConnection.postRequest(String url,
byte[] body) |
okhttp3.Response |
HttpConnection.postRequest(String url,
byte[] body,
okhttp3.Headers headers) |
okhttp3.Response |
HttpConnection.putRequest(String url,
byte[] body) |
static String |
Sign.sign(String secretKey,
String sigStr,
String sigMethod) |
| 限定符和类型 | 方法和说明 |
|---|---|
GetDevicesResponse |
DeviceClient.getDevicesByCloudId(int cloudId)
Get device list by cloud id
|
DeviceBasicInfo |
DeviceClient.getDeviceState(Integer deviceId,
Integer cloudId)
Get device status
|
ModelList[] |
DeviceClient.getModelList(String projectId)
Get device model list
|
ProjectModelList[] |
DeviceClient.getProjectModelList(String projectId,
Constants.ModelListFilterType filterType,
Integer offset,
Integer limit)
Get device model list configured in web controller
|
<T extends ModelListInfoBase> |
DeviceClient.getProjectModelListInfo(Integer listId,
Constants.ModelListFilterType filterType)
get model group info
|
void |
DeviceClient.rebootDevice(ReportDeviceOfflineRequest request)
Reboot device
|
void |
DeviceClient.reportDeviceOffline(ReportDeviceOfflineRequest request)
上报设备掉线
|
void |
DeviceClient.softRebootDevice(SoftRebootDeviceRequest request)
Soft-reboot device
|
String |
DeviceClient.wdbConnect(String address,
String token,
int timeOut) |
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
HealthClient.checkServerHealth()
check server health status
|
| 限定符和类型 | 方法和说明 |
|---|---|
ResignResult |
SlotClient.fetchResignResult(String slotOutAddr,
String fileId)
Query the re-signature status and obtain the re-signed ipa download address
|
String |
SlotClient.resignIpa(String slotOutAddr,
String fileUrl)
IPA re-signature
|
SlotDeviceInfo[] |
SlotClient.slotListDevice(int[] phoneTypeList)
Get a list of replaceable devices
|
SlotInfo[] |
SlotClient.slotListInfo(String slotOutAddr)
slotListInfo
|
ModelInfo[] |
SlotClient.slotListModel(int[] phoneTypeList)
Get a list of replaceable models
|
void |
SlotClient.slotSwitchCancel(String slotOutAddr)
Cancel device replacement
|
void |
SlotClient.slotSwitchStart(String slotOutAddr,
int modelId,
int deviceId)
Applying to replace a slot-bound device
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TestClient.cancelTest(Long testId)
cancel test
|
GetDebugStatusResponse |
TestClient.getDebugStatus(Long testId,
Integer deviceId) |
GetInstallProcessResponse |
TestClient.getInstallProcess(Long testId,
Integer deviceId,
Integer installId) |
TestDevice[] |
TestClient.getTestDevices(Long testId,
boolean log,
boolean image,
boolean error)
get test devices
|
TestStatus |
TestClient.getTestStatus(Long testId)
获取测试状态
|
InstallAppResponse |
TestClient.installApp(Long testId,
Integer deviceId,
Integer appId,
Boolean resign) |
TestInfo |
TestClient.startAutomationTest(AutomationTest test)
Start automation test
|
TestInfo |
TestClient.startCompatibilityTest(CompatibilityTest test)
StartCompatibilityTestRequest
|
DebugTestInfo |
TestClient.startDebugTest(Integer deviceId,
String projectKey) |
TestInfo |
TestClient.startFunctionalTest(FunctionalTest test)
start functional test
|
StartDebugConnectResponse |
TestClient.startRemoteDebugConnect(Long testId,
int deviceId) |
| 限定符和类型 | 方法和说明 |
|---|---|
App |
UploadClient.getAppByMd5(String filePath) |
App |
UploadClient.getAppInfo(int appId)
Get App info
|
Script |
UploadClient.getScriptInfo(int scriptId)
Get script info
|
App |
UploadClient.multiPartUploadApk(String filePath)
Upload apk in multi part
|
WTApp |
UploadClient.multiPartUploadApkToWT(String filePath,
String projectId)
Multipart upload APK to WeTest platform
|
App |
UploadClient.multiPartUploadIpa(String filePath)
Upload ipa file in multi part
|
WTApp |
UploadClient.multiPartUploadIpaToWT(String filePath,
String projectId)
分片上传IPA到WeTest平台
|
Script |
UploadClient.multiPartUploadScript(String filePath)
Upload script in multi part
|
String |
UploadClient.resignDeviceIPA(Integer deviceId,
String fileUrl)
IPA re-signature
|
App |
UploadClient.uploadApp(String filePath) |
Copyright © 2022. All rights reserved.