edit ui.xml

This commit is contained in:
daisyonly 2014-08-25 17:06:12 +08:00
parent f49eb7aa5c
commit a5b7b95958
9 changed files with 50 additions and 26 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ui SYSTEM "../../dtd/ui.dtd"> <!DOCTYPE ui SYSTEM "../../dtd/ui.dtd">
<ui> <ui>
<plugin name="Http"> <plugin name="Http">
<params> <params>
@ -7,80 +7,84 @@
</plugin> </plugin>
<behavior name="get"> <behavior name="get">
<params> <params>
<param name="url" label="The Url to request"> <param name="url" label="The Url to request" required="true">
<field size="7" /> <field size="7" />
</param> </param>
<param name="queryParams" label="The query params of this request"> <param name="queryParams" label="The query params of this request" required="false">
<nfield /> <nfield />
</param> </param>
<param name="headers" label="The headers of this request"> <param name="headers" label="The headers of this request" required="false">
<table cols="header;value" /> <table cols="header;value" />
</param> </param>
<param name="respVarsToSaveInSession" <param name="respVarsToSaveInSession"
label="The regular expression of extracting variables from response"> label="The regular expression of extracting variables from response"
required="false">
<table cols="varName;varRegularExpression;leftBoundry;rightBoundry" /> <table cols="varName;varRegularExpression;leftBoundry;rightBoundry" />
</param> </param>
</params> </params>
</behavior> </behavior>
<behavior name="delete"> <behavior name="delete">
<params> <params>
<param name="url" label="The Url to request"> <param name="url" label="The Url to request" required="true">
<field size="7" /> <field size="7" />
</param> </param>
<param name="queryParams" label="The query params of this request"> <param name="queryParams" label="The query params of this request" required="false">
<nfield /> <nfield />
</param> </param>
<param name="headers" label="The headers of this request"> <param name="headers" label="The headers of this request" required="false">
<table cols="header;value" /> <table cols="header;value" />
</param> </param>
<param name="respVarsToSaveInSession" <param name="respVarsToSaveInSession"
label="The regular expression of extracting variables from response"> label="The regular expression of extracting variables from response"
required="false">
<table cols="varName;varRegularExpression;leftBoundry;rightBoundry" /> <table cols="varName;varRegularExpression;leftBoundry;rightBoundry" />
</param> </param>
</params> </params>
</behavior> </behavior>
<behavior name="post"> <behavior name="post">
<params> <params>
<param name="url" label="The Url to request"> <param name="url" label="The Url to request" required="true">
<field size="7" /> <field size="7" />
</param> </param>
<param name="queryParams" label="The query params of this request"> <param name="queryParams" label="The query params of this request" required="false">
<nfield /> <nfield />
</param> </param>
<param name="headers" label="The headers of this request"> <param name="headers" label="The headers of this request" required="false">
<table cols="header;value" /> <table cols="header;value" />
</param> </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" /> <field size="7" />
</param> </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 /> <nfield />
</param> </param>
<param name="respVarsToSaveInSession" <param name="respVarsToSaveInSession"
label="The regular expression of extracting variables from response"> label="The regular expression of extracting variables from response"
required="false">
<table cols="varName;varRegularExpression;leftBoundry;rightBoundry" /> <table cols="varName;varRegularExpression;leftBoundry;rightBoundry" />
</param> </param>
</params> </params>
</behavior> </behavior>
<behavior name="put"> <behavior name="put">
<params> <params>
<param name="url" label="The Url to request"> <param name="url" label="The Url to request" required="true">
<field size="7" /> <field size="7" />
</param> </param>
<param name="queryParams" label="The query params of this request"> <param name="queryParams" label="The query params of this request" required="false">
<nfield /> <nfield />
</param> </param>
<param name="headers" label="The headers of this request"> <param name="headers" label="The headers of this request" required="false">
<table cols="header;value" /> <table cols="header;value" />
</param> </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" /> <field size="7" />
</param> </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 /> <nfield />
</param> </param>
<param name="respVarsToSaveInSession" <param name="respVarsToSaveInSession"
label="The regular expression of extracting variables from response"> label="The regular expression of extracting variables from response"
required="false">
<table cols="varName;varRegularExpression;leftBoundry;rightBoundry" /> <table cols="varName;varRegularExpression;leftBoundry;rightBoundry" />
</param> </param>
</params> </params>

View File

@ -3,13 +3,13 @@
<ui> <ui>
<plugin name="Random"> <plugin name="Random">
<params> <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> <field size="5"></field>
</param> </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> <field size="5"></field>
</param> </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> <field size="5"></field>
</param> </param>
</params> </params>

View File

@ -6,7 +6,7 @@
</plugin> </plugin>
<timer name="Sleep"> <timer name="Sleep">
<params> <params>
<param name="time"> <param name="time" required="true">
<field size="6" /> <field size="6" />
</param> </param>
</params> </params>

View File

@ -20,6 +20,7 @@
<!ATTLIST param <!ATTLIST param
name CDATA #REQUIRED name CDATA #REQUIRED
label CDATA #IMPLIED label CDATA #IMPLIED
required CDATA #REQUIRED
> >
<!ELEMENT group (param|group)*> <!ELEMENT group (param|group)*>
<!ATTLIST group <!ATTLIST group

View File

@ -9,6 +9,7 @@ public class ParamInfoModel {
private String name; private String name;
private String label; private String label;
private String required;
private String value; private String value;
private ParamTypeModel paramTypeModel; private ParamTypeModel paramTypeModel;
@ -31,6 +32,16 @@ public class ParamInfoModel {
this.label = 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), @XmlElements({ @XmlElement(name = "field", type = FieldModel.class),
@XmlElement(name = "table", type = TableModel.class), @XmlElement(name = "table", type = TableModel.class),
@XmlElement(name = "checkbox", type = CheckBoxModel.class), @XmlElement(name = "checkbox", type = CheckBoxModel.class),

View File

@ -1 +1 @@
masterAddress=localhost:8901 masterAddress=133.133.2.100:8901

View File

@ -257,6 +257,7 @@ body {
<script src="script/scriptManager/usePlugin.js"></script> <script src="script/scriptManager/usePlugin.js"></script>
<script src="script/scriptManager/submitScript.js"></script> <script src="script/scriptManager/submitScript.js"></script>
<script src="script/scriptManager/createScript.js"></script> <script src="script/scriptManager/createScript.js"></script>
<script src="script/scriptManager/contentVerification.js"></script>
</fmt:bundle> </fmt:bundle>

View File

@ -254,6 +254,7 @@
<script src="script/scriptManager/jstreeFactory.js"></script> <script src="script/scriptManager/jstreeFactory.js"></script>
<script src="script/scriptManager/scriptEditor.js"></script> <script src="script/scriptManager/scriptEditor.js"></script>
<script src="script/scriptManager/scriptModels.js"></script> <script src="script/scriptManager/scriptModels.js"></script>
<script src="script/scriptManager/contentVerification.js"></script>
</fmt:bundle> </fmt:bundle>
</body> </body>
</html> </html>

View File

@ -0,0 +1,6 @@
$(document).ready(function(){
$("#behaviorEditor").on("focusout",".editor input",function(){
console.log(this);
alert("This input field has lost its focus.");
})
});