public class UploadClient extends AbstractClient
gson, HTTP_RSP_OK| 构造器和说明 |
|---|
UploadClient(Credential credential) |
UploadClient(Credential credential,
ClientProfile clientProfile) |
| 限定符和类型 | 方法和说明 |
|---|---|
App |
getAppByMd5(String filePath) |
App |
getAppInfo(int appId)
Get App info
|
String |
getMD5(String filePath) |
Script |
getScriptInfo(int scriptId)
Get script info
|
App |
multiPartUploadApk(String filePath)
Upload apk in multi part
|
WTApp |
multiPartUploadApkToWT(String filePath,
String projectId)
Multipart upload APK to WeTest platform
|
App |
multiPartUploadIpa(String filePath)
Upload ipa file in multi part
|
WTApp |
multiPartUploadIpaToWT(String filePath,
String projectId)
分片上传IPA到WeTest平台
|
Script |
multiPartUploadScript(String filePath)
Upload script in multi part
|
String |
resignDeviceIPA(Integer deviceId,
String fileUrl)
IPA re-signature
|
App |
uploadApp(String filePath) |
getClientProfile, getCredential, getLogger, internalRequest, setClientProfile, setCredential, setLogger, setProfilepublic UploadClient(Credential credential)
public UploadClient(Credential credential, ClientProfile clientProfile)
public App getAppInfo(int appId) throws CloudTestSDKException
appId - intCloudTestSDKException - CloudTestSDKExceptionpublic Script getScriptInfo(int scriptId) throws CloudTestSDKException
scriptId - intCloudTestSDKException - CloudTestSDKExceptionpublic App multiPartUploadApk(String filePath) throws CloudTestSDKException
filePath - file pathCloudTestSDKException - CloudTestSDKExceptionpublic App getAppByMd5(String filePath) throws CloudTestSDKException
public App multiPartUploadIpa(String filePath) throws CloudTestSDKException
filePath - file pathCloudTestSDKException - CloudTestSDKExceptionpublic App uploadApp(String filePath) throws CloudTestSDKException
public Script multiPartUploadScript(String filePath) throws CloudTestSDKException
filePath - file pathCloudTestSDKException - CloudTestSDKExceptionpublic WTApp multiPartUploadApkToWT(String filePath, String projectId) throws CloudTestSDKException
filePath - 文件路径projectId - 项目IDCloudTestSDKException - CloudTestSDKExceptionpublic WTApp multiPartUploadIpaToWT(String filePath, String projectId) throws CloudTestSDKException
filePath - 文件路径projectId - 项目IDCloudTestSDKException - CloudTestSDKExceptionpublic String resignDeviceIPA(Integer deviceId, String fileUrl) throws CloudTestSDKException
deviceId - fileUrl - CloudTestSDKException - CloudTestSDKExceptionCopyright © 2022. All rights reserved.