优化http地址拼接及sql执行
This commit is contained in:
@@ -139,7 +139,12 @@ public class TestCaseStepServiceImpl implements ITestCaseStepService {
|
||||
}
|
||||
if (!url.startsWith("http")) {
|
||||
String apiProtocol = testCaseStep.getApiProtocol();
|
||||
url = apiProtocol + "://" + url;
|
||||
String appendUrl = apiProtocol + "://" + testCaseStep.getApiHost();
|
||||
if (testCaseStep.getApiPort() != null) {
|
||||
url = appendUrl + ":" + testCaseStep.getApiPort() + url;
|
||||
} else {
|
||||
url = appendUrl + url;
|
||||
}
|
||||
}
|
||||
JmeterRequest jmeterRequest = new JmeterRequest();
|
||||
jmeterRequest.setId(id);
|
||||
|
||||
Reference in New Issue
Block a user