refactor(接口测试): 优化引用或复制场景默认规则
This commit is contained in:
parent
2ef10fc959
commit
c2529a5f58
|
@ -1,39 +0,0 @@
|
||||||
package io.metersphere.websocket;
|
|
||||||
|
|
||||||
import io.metersphere.commons.utils.LogUtil;
|
|
||||||
import org.java_websocket.client.WebSocketClient;
|
|
||||||
import org.java_websocket.handshake.ServerHandshake;
|
|
||||||
|
|
||||||
import java.net.URI;
|
|
||||||
import java.net.URISyntaxException;
|
|
||||||
import java.util.Iterator;
|
|
||||||
|
|
||||||
public class MsWebSocketClient extends WebSocketClient {
|
|
||||||
public MsWebSocketClient(String url) throws URISyntaxException {
|
|
||||||
super(new URI(url));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onOpen(ServerHandshake shake) {
|
|
||||||
LogUtil.info("握手...");
|
|
||||||
for (Iterator<String> it = shake.iterateHttpFields(); it.hasNext(); ) {
|
|
||||||
String key = it.next();
|
|
||||||
LogUtil.info(key + ":" + shake.getFieldValue(key));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onMessage(String paramString) {
|
|
||||||
LogUtil.info("接收到消息:" + paramString);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClose(int paramInt, String paramString, boolean paramBoolean) {
|
|
||||||
LogUtil.info("关闭...");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onError(Exception e) {
|
|
||||||
LogUtil.info("异常" + e);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1524,7 +1524,7 @@ export default {
|
||||||
}
|
}
|
||||||
this.resetResourceId(item.hashTree, item.referenced);
|
this.resetResourceId(item.hashTree, item.referenced);
|
||||||
item.enable === undefined ? (item.enable = true) : item.enable;
|
item.enable === undefined ? (item.enable = true) : item.enable;
|
||||||
item.mixEnable = item.mixEnable === undefined && !item.variableEnable ? true : item.mixEnable;
|
item.mixEnable = item.mixEnable === undefined && !item.variableEnable ? false : item.mixEnable;
|
||||||
if (this.selectedTreeNode) {
|
if (this.selectedTreeNode) {
|
||||||
if (this.stepFilter.get('SpecialSteps').indexOf(this.selectedTreeNode.type) !== -1) {
|
if (this.stepFilter.get('SpecialSteps').indexOf(this.selectedTreeNode.type) !== -1) {
|
||||||
this.scenarioDefinition.splice(this.selectedTreeNode.index, 0, item);
|
this.scenarioDefinition.splice(this.selectedTreeNode.index, 0, item);
|
||||||
|
|
Loading…
Reference in New Issue