免费的APP兼容性测试接口提供APP兼容性和功能测试,每天每个用户可以免费提交2次或者300个机型测试,让您脱身于繁琐的测试。
接口:APP兼容性测试接口
用户登录
接口地址:http://api2.juheapi.com/testin/login
支持格式:json
请求方式:http post/get
请求示例:http://api2.juheapi.com/testin/login?key=您申请的KEY
接口备注:登录,获取sid(用户身份GUID)作为身份令牌,作为后面方法参数
JSON返回示例:
{"error_code":200,"reason":"请求成功","result":"{"op":"ThirdParty.authenticate","data":{"sid":"18050000648ed027e28db36c16c727e318d2f472"},"code":0}"}
获取测试机型列表
接口地址:http://api2.juheapi.com/testin/specimens/get
请求示例:http://api2.juheapi.com/testin/specimens/get?sid=您登录后获得的sid&sysfname=android&key=您申请的KEY
JSON返回示例:
{"error_code":200,"reason":"请求成功","result":"{"op":"Model.getSpecimens","data":{"list":[{"screenSize":7,"cfgStatus":1,"resolution":"1024*600","type":1,"brandName":"亚马逊","brandId":24,"aliasNameCh":"","dpiHeight":600,"modelType":0,"gpuChipBrand":"Imagination","syspfName":"android","dpiWidth":1024,"status":1,"deviceModelId":0,"cpuNum":2,"cpuChipModel":"TI OMAP4460","cpu":1200,"deviceReporttime":1421137408221,"netReporttime":1421137408221,"aliasName":"","modelId":22,"cpuChipBrand":"TI","modelName":"Kindle Fire","source":"adapt.testin","ram":1024,"coverageRate":0.0294118,"releaseVer":"4.0.3","sdkVer":15,"gpuChipModel":"PowerVR SGX540","brandAbbr":"Amazon"},...]}
提交测试
接口地址:http://api2.juheapi.com/testin/app/add
请求示例:http://api2.juheapi.com/testin/app/add?packageurl=您apk的下载地址&syspfid=1&testtype=0&models=[{"modelId":10606,"releaseVer":"4.3"}]&sid=您登录获取的sid&key=您申请的KEY
JSON返回示例:
{"error_code":200,"reason":"请求成功","result":"{"op":"App.add","data":{"result":"e640d4c642413e9acab48a8b9914cee8"},"code":0,"msg":"成功"}"}
查询提交测试结果
接口地址:http://api2.juheapi.com/testin/app/add/result
请求示例:http://api2.juheapi.com/testin/app/add/result?adaptId=提交测试报告返回的测试查询编号&key=您申请的KEY
JSON返回示例:
{"error_code":200,"reason":"请求成功","result":{"datalimt":"","appkey":"","packageurl":"http://soft.juhe.cn/download/bsLocation.2.1.7.apk","syspfid":"1","models":"[{"modelId":10606,"releaseVer":"4.3"}]","testtype":"0","script":"","appname":"","appversion":"","subsource":"","adaptid":"","reporturl":"","execstatus":"","validity":""}}
查询测试报告概况
接口地址:http://api2.juheapi.com/testin/report/overview
请求示例:http://api2.juheapi.com/testin/report/overview?adaptid=测试查询编号&key=您申请的KEY&sid=登录获取的sid
JSON返回示例:
{"error_code":200,"reason":"请求成功","result":"{"op":"Report.overview","data":{"result":{"overview":{"executed":0,"total":1,"reportUrl":"","riskList":[],"passList":[],"passed":0,"faileList":[],"failed":{"install":0,"total":0,"execute":0},"reportStatus":{"excelUrl":"","pdfStatus":0,"pdfUrl":"","excelStatus":0},"risked":0,"exportStatus":0,"noExeList":[{"modelId":10606,"modelName":"Galaxy Trend 3","osVersion":"4.3","brandId":4,"brandName":"三星"}]},"appInfo":{"appName":"聚合基站","id":20351368,"validity":1,"execStatus":1,"iconUrl":"http://t0fs05.testin.cn/ctf/YvFFFEpuRkZGRS90ZXN0aW5BcHBJbmZvLzIwMTUvMDEvMTMvMTYvMTMwNC85YjFjYjk0cWppcA==.png","syspfName":"Android","cancelled":0,"adaptId":"e640d4c642413e9acab48a8b9914cee8","retestStatus":0,"appAccess":[{"level":"normal","permission":"android.permission.ACCESS_NETWORK_STATE"},{"level":"dangerous","permission":"android.permission.ACCESS_FINE_LOCATION"},{"level":"dangerous","permission":"android.permission.INTERNET"},{"level":"dangerous","permission":"android.permission.WRITE_EXTERNAL_STORAGE"},{"level":"normal","permission":"android.permission.ACCESS_WIFI_STATE"},{"level":"dangerous","permission":"android.permission.CHANGE_WIFI_STATE"},{"level":"dangerous","permission":"android.permission.READ_PHONE_STATE"},{"level":"dangerous","permission":"android.permission.ACCESS_COARSE_LOCATION"},{"level":"signatureOrSystem","permission":"android.permission.READ_LOGS"},{"level":"normal","permission":"android.permission.WRITE_SETTINGS"}],"version":"2.1.7"}}},"code":0,"msg":"成功"}"}
查询测试的报告详细数据
接口地址:http://api2.juheapi.com/testin/report/details
请求示例:http://api2.juheapi.com/testin/report/details?adaptid=测试查询编号&sid=登录获取的sid&key=您申请的key
JSON返回示例:
{"error_code":1000010,"reason":"没有有效数据","result":"请求错误,请重试"}(测试时间最长8个小时生成数据)
查询App的安全检测信息
接口地址:http://api2.juheapi.com/testin/report/details/get
请求示例:http://api2.juheapi.com/testin/report/details/get?sid=登录获取的sid&channel=testin&adaptid=测试查询编号&key=您申请的KEY
JSON返回示例:
{"error_code":1000010,"reason":"没有有效数据","result":"请求错误,请重试"}
Pdf报告生成
接口地址:http://api2.juheapi.com/testin/report/pdf/create
请求示例:http://api2.juheapi.com/testin/report/pdf/create?key=您申请的key&sid=登录时获取的sid&adaptid=测试查询编号
JSON返回示例:
{"error_code":200,"reason":"请求成功","result":"{"data":{"result":1},"code":0}"}//1:成功 0:失败
测试列表查询
接口地址:http://api2.juheapi.com/testin/app/list
请求示例:http://api2.juheapi.com/testin/app/list?sid=登录时获取的sid&key=您申请的KEY
JSON返回示例:
{ "error_code":200, "reason":"请求成功", "result":{ "op":"App.list", "data":{ "list":[ { "testType":0, "retestReportTotal":0, "packageName":"com.thinkland.activity", "execStatus":4, "modelTotals":1, "cancelled":0, "exportStatus":0, "optimizeTotal":0, "adaptId":"e640d4c642413e9acab48a8b9914cee8", "reportTotals":0, "id":20351368, "appName":"聚合基站", "checkApp":1, "runCrashTotal":0, "appVersion":"2.1.7", "retestTotal":0, "passTotal":0, "retestStatus":0, "installFailTotal":0 }, { "testType":0, "retestReportTotal":0, "packageName":"com.thinkland.activity", "execStatus":6, "modelTotals":1, "cancelled":0, "exportStatus":0, "optimizeTotal":0, "adaptId":"e14bcb6e701632de70a158922779bad5", "reportTotals":1, "id":20351321, "appName":"聚合基站", "checkApp":1, "runCrashTotal":0, "appVersion":"2.1.7", "retestTotal":0, "passTotal":1, "retestStatus":0, "installFailTotal":0 } ], "totalRow":2, "totalPage":1 }, "code":0, "msg":"成功" } }
终止测试
接口地址:http://api2.juheapi.com/testin/app/test/stop
请求示例:http://api2.juheapi.com/testin/app/test/stop?key=您申请的key&sid=登录时获取的sid&adaptid=测试查询编号
JSON返回示例:
{"error_code":200,"reason":"请求成功","result":"{"op":"App.stopTest","data":{"result":1},"code":0,"msg":"成功"}"}