Merge remote-tracking branch 'origin/master'
commit
47b6c0d728
|
@ -886,6 +886,7 @@ public class MobileDeviceConnection extends AbstractDeviceConnection {
|
|||
HashMap<String, Object> params = new HashMap<String, Object>();
|
||||
params.put("caseId", devicePerInfo.getCaseId());
|
||||
params.put("platform", deviceInfo.getPlatform());
|
||||
params.put("deviceId", deviceInfo.getDeviceId());
|
||||
HttpEntity<Map<String, Object>> entity = new HttpEntity<>(params);
|
||||
try {
|
||||
ResponseEntity<String[]> responseEntity = restTemplate.exchange(String.format(STOP_RECORD_DEVICE_PER, deviceInfo.getConnectAddress() + ":" + (null == deviceInfo.getPort() ? defaultUpperPort : deviceInfo.getPort())), HttpMethod.POST, entity, String[].class);
|
||||
|
|
|
@ -153,7 +153,7 @@ public class AndroidDebuggerServiceImpl extends AbstractDebuggerService {
|
|||
public String[] stopRecordDevicePer(DebuggerDeviceInfo info) {
|
||||
String[] result = new String[2];
|
||||
logger.debug("结束任务:{}的设备和应用的参数。。。。。。。。。。",info.getCaseId());
|
||||
AndroidDeviceInfoByPackageThread thread = queryDeviceInfoByPackageMap.remove(info.getCaseId());
|
||||
AndroidDeviceInfoByPackageThread thread = queryDeviceInfoByPackageMap.remove(info.getDeviceId());
|
||||
if (null != thread && !thread.isInterrupted() && thread.isAlive()) {
|
||||
String appInfoAddress = thread.stopThread();
|
||||
result[1] = appInfoAddress;
|
||||
|
|
Loading…
Reference in New Issue