Merge branch 'master' of https://github.com/lostcharlie/Bench4Q.git
Conflicts: Bench4Q-Agent/src/main/java/org/bench4q/agent/plugin/basic/http/ui.xml Bench4Q-Agent/src/main/java/org/bench4q/agent/plugin/dtd/ui.dtd
This commit is contained in:
commit
4c53ba8ccd
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE ui SYSTEM "../../dtd/ui.dtd">
|
||||
<!DOCTYPE ui SYSTEM "../../dtd/ui.dtd">
|
||||
<ui>
|
||||
<plugin name="Http">
|
||||
<params>
|
||||
|
@ -19,15 +19,16 @@
|
|||
<param name="respVarsToSaveInSession"
|
||||
label="The regular expression of extracting variables from response" required="false">
|
||||
<table cols="varName|varRegularExpression|leftBoundry|rightBoundry" />
|
||||
|
||||
</param>
|
||||
</params>
|
||||
</behavior>
|
||||
<behavior name="Delete">
|
||||
<params>
|
||||
<param name="url" label="The Url to request">
|
||||
<param name="url" label="The Url to request" required="true">
|
||||
<field size="7" />
|
||||
</param>
|
||||
<param name="queryParams" label="The query params of this request">
|
||||
<param name="queryParams" label="The query params of this request" required="false">
|
||||
<nfield />
|
||||
</param>
|
||||
<param name="headers" label="The headers of this request">
|
||||
|
@ -41,19 +42,19 @@
|
|||
</behavior>
|
||||
<behavior name="Post">
|
||||
<params>
|
||||
<param name="url" label="The Url to request">
|
||||
<param name="url" label="The Url to request" required="true">
|
||||
<field size="7" />
|
||||
</param>
|
||||
<param name="queryParams" label="The query params of this request">
|
||||
<param name="queryParams" label="The query params of this request" required="false">
|
||||
<nfield />
|
||||
</param>
|
||||
<param name="headers" label="The headers of this request">
|
||||
<table cols="header|value" />
|
||||
</param>
|
||||
<param name="bodyContent" label="The body that will be post">
|
||||
<param name="bodyContent" label="The body that will be post" required="false">
|
||||
<field size="7" />
|
||||
</param>
|
||||
<param name="bodyParameters" label="The parameters will be post in the body">
|
||||
<param name="bodyParameters" label="The parameters will be post in the body" required="false">
|
||||
<nfield />
|
||||
</param>
|
||||
<param name="respVarsToSaveInSession"
|
||||
|
@ -64,19 +65,19 @@
|
|||
</behavior>
|
||||
<behavior name="Put">
|
||||
<params>
|
||||
<param name="url" label="The Url to request">
|
||||
<param name="url" label="The Url to request" required="true">
|
||||
<field size="7" />
|
||||
</param>
|
||||
<param name="queryParams" label="The query params of this request">
|
||||
<param name="queryParams" label="The query params of this request" required="false">
|
||||
<nfield />
|
||||
</param>
|
||||
<param name="headers" label="The headers of this request">
|
||||
<table cols="header|value" />
|
||||
</param>
|
||||
<param name="bodyContent" label="The body that will be put">
|
||||
<param name="bodyContent" label="The body that will be put" required="false">
|
||||
<field size="7" />
|
||||
</param>
|
||||
<param name="bodyParameters" label="The parameters will be put in the body">
|
||||
<param name="bodyParameters" label="The parameters will be put in the body" required="false">
|
||||
<nfield />
|
||||
</param>
|
||||
<param name="respVarsToSaveInSession"
|
||||
|
@ -85,4 +86,4 @@
|
|||
</param>
|
||||
</params>
|
||||
</behavior>
|
||||
</ui>
|
||||
</ui>
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
<ui>
|
||||
<plugin name="Random">
|
||||
<params>
|
||||
<param name="begin" label="The Beginning of the range">
|
||||
<param name="begin" label="The Beginning of the range" required="true">
|
||||
<field size="5"></field>
|
||||
</param>
|
||||
<param name="end" label="The end of the range">
|
||||
<param name="end" label="The end of the range" required="true">
|
||||
<field size="5"></field>
|
||||
</param>
|
||||
<param name="format" label="The format of the value">
|
||||
<param name="format" label="The format of the value" required="false">
|
||||
<field size="5"></field>
|
||||
</param>
|
||||
</params>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</plugin>
|
||||
<timer name="Sleep">
|
||||
<params>
|
||||
<param name="time">
|
||||
<param name="time" required="true">
|
||||
<field size="6" />
|
||||
</param>
|
||||
</params>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<!ATTLIST param
|
||||
name CDATA #REQUIRED
|
||||
label CDATA #IMPLIED
|
||||
required CDATA #IMPLIED
|
||||
required CDATA #REQUIRED
|
||||
>
|
||||
<!ELEMENT group (param|group)*>
|
||||
<!ATTLIST group
|
||||
|
@ -51,4 +51,4 @@
|
|||
<!-- values should be separated by ;-->
|
||||
<!ATTLIST dropdownbox
|
||||
rows CDATA #REQUIRED
|
||||
>
|
||||
>
|
||||
|
|
|
@ -9,6 +9,7 @@ public class ParamInfoModel {
|
|||
|
||||
private String name;
|
||||
private String label;
|
||||
private String required;
|
||||
|
||||
private String value;
|
||||
private ParamTypeModel paramTypeModel;
|
||||
|
@ -30,6 +31,16 @@ public class ParamInfoModel {
|
|||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
|
||||
@XmlElement
|
||||
public String getRequired() {
|
||||
return required;
|
||||
}
|
||||
|
||||
public void setRequired(String required) {
|
||||
this.required = required;
|
||||
}
|
||||
|
||||
@XmlElements({ @XmlElement(name = "field", type = FieldModel.class),
|
||||
@XmlElement(name = "table", type = TableModel.class),
|
||||
|
|
|
@ -1 +1 @@
|
|||
masterAddress=localhost:8901
|
||||
masterAddress=133.133.2.100:8901
|
|
@ -257,6 +257,7 @@ body {
|
|||
<script src="script/scriptManager/usePlugin.js"></script>
|
||||
<script src="script/scriptManager/submitScript.js"></script>
|
||||
<script src="script/scriptManager/createScript.js"></script>
|
||||
<script src="script/scriptManager/contentVerification.js"></script>
|
||||
|
||||
|
||||
</fmt:bundle>
|
||||
|
|
|
@ -68,12 +68,38 @@
|
|||
}
|
||||
|
||||
.testHeader {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-top: 3px solid #ccc;
|
||||
border-top: 3px solid;
|
||||
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc', endColorstr='#f3f3f3');
|
||||
background:-webkit-gradient(linear,left top,left bottom,from(#fcfcfc),to(#f3f3f3));
|
||||
background:-moz-linear-gradient(top,#fcfcfc,#f3f3f3);
|
||||
background:-o-linear-gradient(top,#fcfcfc,#f3f3f3);
|
||||
background:linear-gradient(to bottom,#fcfcfc,#f3f3f3)
|
||||
}
|
||||
|
||||
.testHeader-top {
|
||||
margin-top:20px;
|
||||
border-top-color:#369bd7
|
||||
}
|
||||
|
||||
.testHeader-middle {
|
||||
margin-bottom:20px;
|
||||
border-top-width:0
|
||||
}
|
||||
|
||||
.testHeader .span-brief h6{
|
||||
font-size:14px;
|
||||
margin-bottom:5px
|
||||
}
|
||||
|
||||
.testHeader .span-brief h4{
|
||||
font-size:24px
|
||||
}
|
||||
|
||||
.testHeader .span-brief-last h6{
|
||||
font-size:14px;
|
||||
}
|
||||
|
||||
.innerTable {
|
||||
|
|
|
@ -254,6 +254,7 @@
|
|||
<script src="script/scriptManager/jstreeFactory.js"></script>
|
||||
<script src="script/scriptManager/scriptEditor.js"></script>
|
||||
<script src="script/scriptManager/scriptModels.js"></script>
|
||||
<script src="script/scriptManager/contentVerification.js"></script>
|
||||
</fmt:bundle>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -43,20 +43,17 @@ body {
|
|||
<li><a href="#"><fmt:message key="result" /></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row-fluid testHeader">
|
||||
<div class="row-fluid testHeader testHeader-top">
|
||||
<div class="span4 span-brief">
|
||||
<fmt:message key="testPlanName" />
|
||||
<br> <br>
|
||||
<h6><fmt:message key="testPlanName" /></h6><br>
|
||||
<div id="testplanName"></div>
|
||||
</div>
|
||||
<div class="span4 span-brief">
|
||||
<fmt:message key="createdatetime" />
|
||||
<br> <br>
|
||||
<h6><fmt:message key="createdatetime" /></h6><br>
|
||||
<div id="createTime"></div>
|
||||
</div>
|
||||
<div class="span4 span-brief">
|
||||
<fmt:message key="testExecuteTime" />
|
||||
<br> <br>
|
||||
<h6><fmt:message key="testExecuteTime" /></h6><br>
|
||||
<div id="testTime"></div>
|
||||
</div>
|
||||
<%-- </div>
|
||||
|
@ -66,27 +63,23 @@ body {
|
|||
<div id="scripts"></div>
|
||||
</div> --%>
|
||||
</div>
|
||||
<div class="row-fluid testHeader" id="test">
|
||||
<div class="row-fluid testHeader testHeader-middle" id="test">
|
||||
<div class="span3 span-brief">
|
||||
<fmt:message key="result-testStatus" />
|
||||
<br> <br>
|
||||
<h6><fmt:message key="result-testStatus" /></h6><br>
|
||||
<div id="status"></div>
|
||||
</div>
|
||||
<div class="span3 span-brief">
|
||||
<fmt:message key="result-vuser" />
|
||||
<br> <br>
|
||||
<h6><fmt:message key="result-vuser" /></h6><br>
|
||||
<div>
|
||||
<span id="vu"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span3 span-brief">
|
||||
<fmt:message key="result-request" />
|
||||
<br> <br>
|
||||
<h6><fmt:message key="result-request" /></h6><br>
|
||||
<div id="request"></div>
|
||||
</div>
|
||||
<div class="span3 span-brief-last">
|
||||
<fmt:message key="stopTestPlan" />
|
||||
<br> <br>
|
||||
<h6><fmt:message key="stopTestPlan" /></h6><br>
|
||||
<button type="button" class="btn btn-primary " id="stop-testplan"><fmt:message key="stop" /></button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
$(document).ready(function(){
|
||||
$("#behaviorEditor").on("focusout",".editor input",function(){
|
||||
console.log(this);
|
||||
alert("This input field has lost its focus.");
|
||||
})
|
||||
});
|
Loading…
Reference in New Issue