modify interfaces
This commit is contained in:
parent
42cf1b02bf
commit
fe711cd04f
|
@ -115,12 +115,12 @@ plugin_jsp_submit=Submit
|
|||
plugin_jsp_insert=Insert
|
||||
plugin_jsp_finish=Finish
|
||||
plugin_jsp_add=Add
|
||||
plugin_jsp_plugins=Plug-ins
|
||||
plugin_jsp_behavior=Behavior
|
||||
script_jsp_makeScript=MakeScript
|
||||
script_jsp_recordScript=RecordScript
|
||||
script_jsp_refresh=RefreshPage
|
||||
test_jsp_makeNewScript=NewScript
|
||||
plugin_jsp_plugins=Plug-ins
|
||||
plugin_jsp_behavior=Behavior
|
||||
index_jsp_register=Register
|
||||
index_jsp_login=Login
|
||||
index_jsp_Bench4Q_as_a_Service=Bench4Q_as_a_Service is based on Bench4Q project. We re-implemented Bench4Q tool as a service which can be deployed on the application server. Bench4Q supports elasticity and multi-tenancy which are promised in cloud computing.
|
||||
|
@ -128,4 +128,17 @@ index_jsp_Bench4Q=Bench4Q is a very new methodology for QoS oriented the E-comme
|
|||
index_jsp_FreeRegister=Free register, signing, load test, real-time monitoring, analysis report download, view history data and much more ...
|
||||
index_jsp_Title=Bench4Q is A Cloud-based Load Testing Platform
|
||||
index_jsp_registerAndSign=Register and Sign
|
||||
index_jsp_weAreFree=We are free!
|
||||
index_jsp_weAreFree=We are free!
|
||||
login_jsp_home=Home
|
||||
login_jsp_register=Register
|
||||
login_jsp_Title=Bench4Q is a new methodology for QoS benchmarking
|
||||
login_jsp_welcome=Welcome to Bench4Q!
|
||||
login_jsp_signIn=Sign in
|
||||
login_jsp_username=Username
|
||||
login_jsp_usernameWarnning=The username cannot be empty!
|
||||
login_jsp_password=Password
|
||||
login_jsp_passwordWarnning=The password cannot be empty!
|
||||
login_jsp_admin=Admin
|
||||
script_edit_jsp_save=Save
|
||||
script_edit_jsp_cancel=Cancel
|
||||
script_edit_jsp_validate=Validate
|
|
@ -107,26 +107,39 @@ addIp=\u6DFB\u52A0\IP
|
|||
startTest=\u5F00\u59CB\u6D4B\u8BD5
|
||||
testPlanName=\u6D4B\u8BD5\u540D\u79F0
|
||||
plugin_jsp_addNewPlugin=\u6DFB\u52A0\u4E00\u4E2A\u65B0\u7684\u63D2\u4EF6
|
||||
plugin_jsp_chooseBehaviors=\u9009\u62E9\u63D2\u4EF6\u7684\u884C\u4E3A
|
||||
plugin_jsp_chooseBehaviors=\u9009\u62E9\u63D2\u4EF6\u7684\u52A8\u4F5C
|
||||
plugin_jsp_removeAll=\u5168\u90E8\u79FB\u9664
|
||||
plugin_jsp_remove=\u79FB\u9664
|
||||
plugin_jsp_cancel=\u53D6\u6D88
|
||||
plugin_jsp_save=\u4FDD\u5B58
|
||||
plugin_jsp_submit=\u63D0\u4EF7
|
||||
plugin_jsp_insert=\u63D2\u5165
|
||||
plugin_jsp_submit=\u63D0\u4EA4
|
||||
plugin_jsp_insert=\u5F15\u5165\u63D2\u4EF6
|
||||
plugin_jsp_finish=\u5B8C\u6210
|
||||
plugin_jsp_add=\u6DFB\u52A0
|
||||
plugin_jsp_plugins=\u63D2\u4EF6
|
||||
plugin_jsp_behavior=\u52A8\u4F5C
|
||||
script_jsp_makeScript=\u81EA\u5236\u811A\u672C
|
||||
script_jsp_recordScript=\u5F55\u5236\u811A\u672C
|
||||
script_jsp_refresh=\u5237\u65B0\u9875\u9762
|
||||
test_jsp_makeNewScript=\u65B0\u5EFA\u811A\u672C
|
||||
plugin_jsp_plugins=\u63D2\u4EF6
|
||||
plugin_jsp_behavior=\u52A8\u4F5C
|
||||
index_jsp_Bench4Q_as_a_Service=Bench4Q_as_a_Service \u662F\u57FA\u4E8EBench4Q\u9879\u76EE\u5B9E\u73B0\u7684\u3002\u6211\u4EEC\u91CD\u65B0\u5B9E\u73B0\u4E86Bench4Q\u5DE5\u5177\uFF0C\u4F7F\u5B83\u53EF\u4EE5\u4F5C\u4E3A\u4E00\u79CD\u670D\u52A1\u88AB\u90E8\u7F72\u5230\u5E94\u7528\u670D\u52A1\u5668\u4E0A\u3002Bench4Q\u652F\u6301\u4E91\u8BA1\u7B97\u6240\u63D0\u4F9B\u7684\u5F39\u6027\u548C\u591A\u79DF\u6237\u529F\u80FD\u3002
|
||||
index_jsp_Bench4Q=Bench4Q\u662F\u8D28\u91CF\u670D\u52A1\u5BFC\u5411\u7535\u5B50\u5546\u52A1\u6807\u6746\u7684\u4E00\u4E2A\u975E\u5E38\u65B0\u7684\u65B9\u6CD5\u5B66 \u3002Bench4Q\u6709\u5F88\u591A\u7279\u70B9\u6765\u63A8\u8BBA\u590D\u6742\u7684\u57FA\u4E8E\u4F1A\u8BDD\u7684\u5DE5\u4F5C\u8D1F\u8F7D\u7684\u53EF\u63A7\u7684\u548C\u7075\u6D3B\u7684\u8868\u793A\u6CD5\uFF0C\u5E76\u4E14\u53EF\u4EE5\u6A21\u62DF\u771F\u5B9E\u7528\u6237\u7684\u884C\u4E3A\u3002
|
||||
index_jsp_FreeRegister=\u514D\u8D39\u6CE8\u518C\uFF0C\u8BA4\u8BC1\uFF0C\u4E0B\u8F7D\u6D4B\u8BD5\uFF0C\u5B9E\u65F6\u76D1\u63A7\uFF0C\u5206\u6790\u62A5\u544A\u4E0B\u8F7D\uFF0C\u67E5\u770B\u5386\u53F2\u6570\u636E\u7B49\u7B49
|
||||
index_jsp_Title=Bench4Q\u2014\u2014\u4E00\u4E2A\u57FA\u4E8E\u4E91\u7684\u6D4B\u8BD5\u4E0B\u8F7D\u5E73\u53F0
|
||||
index_jsp_FreeRegister=\u514D\u8D39\u6CE8\u518C\uFF0C\u8BA4\u8BC1\uFF0C\u4E0B\u8F7D\u6D4B\u8BD5\uFF0C\u5B9E\u65F6\u76D1\u63A7\uFF0C\u5206\u6790\u62A5\u544A\u4E0B\u8F7D\uFF0C\u67E5\u770B\u5386\u53F2\u6570\u636E...
|
||||
index_jsp_Title=Bench4Q\u2014\u2014\u57FA\u4E8E\u4E91\u7684\u6D4B\u8BD5\u4E0B\u8F7D\u5E73\u53F0
|
||||
index_jsp_register=\u6CE8\u518C
|
||||
index_jsp_login=\u767B\u5F55
|
||||
index_jsp_registerAndSign=\u6CE8\u518C\u5E76\u8BA4\u8BC1
|
||||
index_jsp_weAreFree=\u6211\u4EEC\u662F\u514D\u8D39\u7684\u54DF\uFF01
|
||||
index_jsp_weAreFree=\u6211\u4EEC\u662F\u514D\u8D39\u7684\u54DF\uFF01
|
||||
login_jsp_home=\u4E3B\u9875
|
||||
login_jsp_register=\u6CE8\u518C
|
||||
login_jsp_Title=Bench4Q\u662FQOS\u57FA\u51C6\u6D4B\u8BD5\u7684\u65B0\u65B9\u6CD5
|
||||
login_jsp_welcome=\u6B22\u8FCE\u4F7F\u7528Bench4Q\uFF01
|
||||
login_jsp_signIn=\u767B\u5F55
|
||||
login_jsp_username=\u7528\u6237\u540D
|
||||
login_jsp_usernameWarnning=\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A\uFF01
|
||||
login_jsp_password=\u5BC6\u7801
|
||||
login_jsp_passwordWarnning=\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01
|
||||
login_jsp_admin=\u7BA1\u7406\u5458
|
||||
script_edit_jsp_save=\u4FDD\u5B58
|
||||
script_edit_jsp_cancel=\u53D6\u6D88
|
||||
script_edit_jsp_validate=\u786E\u8BA4
|
|
@ -68,51 +68,47 @@ div.convert-left,div.convert-right {
|
|||
|
||||
#action {
|
||||
margin-top: 10px;
|
||||
margin-right: 100px;
|
||||
margin-right: 520px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.api {
|
||||
height:30px;
|
||||
float:right;
|
||||
style: margin-left: 5px;
|
||||
height: 30px;
|
||||
float: right;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid #8CBA2E;
|
||||
}
|
||||
|
||||
.apiShow {
|
||||
height:300px;
|
||||
height: 300px;
|
||||
cursor: auto;
|
||||
display: none;
|
||||
background-color: #EDF1DE;
|
||||
width: 255px;
|
||||
margin: 0px;
|
||||
margin-left: -8px;
|
||||
float: right;
|
||||
border-size: 1;
|
||||
position: absolute;
|
||||
overflow-x: hidden;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
#apiHeader1 #apiHeader2 #apiHeader3 {
|
||||
height:18px;
|
||||
height: 18px;
|
||||
align: right;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
#nav-tab {
|
||||
margin-right: -5px;
|
||||
margin-left: -5px;
|
||||
}
|
||||
|
||||
.line {
|
||||
size=2;
|
||||
color:#86B32E;
|
||||
align:right;
|
||||
width:255px;
|
||||
margin:0px;
|
||||
.line {size =2;
|
||||
color: #86B32E;
|
||||
align: right;
|
||||
width: 255px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.imaginary-line {
|
||||
|
@ -120,48 +116,50 @@ div.convert-left,div.convert-right {
|
|||
size: 2;
|
||||
color: #5151A2;
|
||||
border: 1px dashed #CCCCCC;
|
||||
margin-top:15px;
|
||||
margin-bottom:15px;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.title{
|
||||
margin-bottom: 6px;
|
||||
margin-top: 4px;
|
||||
color: #E25500;
|
||||
text-shadow: 0px 1px 0px #FFF;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
.title {
|
||||
margin-bottom: 6px;
|
||||
margin-top: 4px;
|
||||
color: #E25500;
|
||||
text-shadow: 0px 1px 0px #FFF;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.title_style{
|
||||
margin-left:-5px;
|
||||
height:30px;
|
||||
width:260px;
|
||||
line-height:18px;
|
||||
border:1px solid #CCCCCC;
|
||||
background-color:#F5F5F5;
|
||||
text-align: center;
|
||||
|
||||
.title_style {
|
||||
margin-left: -10px;
|
||||
/* height:30px; */
|
||||
width: 258px;
|
||||
line-height: 18px;
|
||||
border: 1px solid #CCCCCC;
|
||||
background-color: #F5F5F5;
|
||||
text-align: center;
|
||||
color: #369BD7;
|
||||
}
|
||||
|
||||
.arguments {
|
||||
display: block;
|
||||
border-bottom: 1px dashed #AAA;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
padding: 5px 0px 2px;
|
||||
display: block;
|
||||
border-bottom: 1px dashed #AAA;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
padding: 5px 0px 2px;
|
||||
}
|
||||
|
||||
.details {
|
||||
font: 13px Arial,Helvetica,sans-serif;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0px;
|
||||
font: 13px Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0px;
|
||||
}
|
||||
|
||||
td {
|
||||
padding-right: 15px;
|
||||
padding-bottom: 5px;
|
||||
padding-top: 8px;
|
||||
font-weight: normal;
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
}
|
||||
padding-right: 15px;
|
||||
padding-bottom: 5px;
|
||||
padding-top: 8px;
|
||||
font-weight: normal;
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
pageEncoding="GBK"%>
|
||||
<html>
|
||||
<head>
|
||||
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
|
@ -47,8 +48,8 @@
|
|||
|
||||
|
||||
<ul class="top-nav logged_out">
|
||||
<li class="login"><a href="index.jsp">Home</a></li>
|
||||
<li class="login"><a href="register.jsp">Register</a></li>
|
||||
<li class="login"><a href="index.jsp"><fmt:message key="login_jsp_home" /></a></li>
|
||||
<li class="login"><a href="register.jsp"><fmt:message key="login_jsp_register" /></a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
@ -59,7 +60,7 @@
|
|||
<div class="container">
|
||||
<div class="pagehead homehead">
|
||||
<div class="hero">
|
||||
<h1>Bench4Q is a new methodology for QoS benchmarking</h1>
|
||||
<h1><fmt:message key="login_jsp_Title" /></h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -68,7 +69,7 @@
|
|||
<div class="loginDiv">
|
||||
<div style="height: 20px"></div>
|
||||
<div style="font-size: 18px; margin-left: 280px">
|
||||
<h1>Welcome to Bench4Q!</h1>
|
||||
<h1><fmt:message key="login_jsp_welcome" /></h1>
|
||||
</div>
|
||||
|
||||
<div style="height: 60px;"></div>
|
||||
|
@ -81,9 +82,9 @@
|
|||
<div style="width: 10%; height: 40px; float: left"></div>
|
||||
<div
|
||||
style="font-size: 20px; color: #ffffff; padding-top: 5px; font-weight: 900">
|
||||
Sign in <a
|
||||
<fmt:message key="login_jsp_signIn" /> <a
|
||||
style="font-size: 15px; color: #ffffff; font-weight: normal"
|
||||
href="register.jsp">(Register)</a>
|
||||
href="register.jsp">(<fmt:message key="login_jsp_register" />)</a>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 100%; height: 260px;">
|
||||
|
@ -94,7 +95,7 @@
|
|||
<img src="img/username.jpg" />
|
||||
</div>
|
||||
<div style="height: 40px; padding-top: 9px;">
|
||||
Username</div>
|
||||
<fmt:message key="login_jsp_username" /> </div>
|
||||
</div>
|
||||
<div style="height: 2px; width: 100%"></div>
|
||||
<div>
|
||||
|
@ -102,8 +103,7 @@
|
|||
style="font-size: 18px; margin-left: 40px; height: 30px; width: 300px;"
|
||||
onblur="checkName(this.value)" />
|
||||
<div id='alertUserName'
|
||||
style='display: none; color: red; margin-left: 40px'>The
|
||||
username cannot be empty!</div>
|
||||
style='display: none; color: red; margin-left: 40px'><fmt:message key="login_jsp_usernameWarnning" /> </div>
|
||||
</div>
|
||||
<div style="height: 10px; width: 100%"></div>
|
||||
<div style="height: 40px; width: 100%">
|
||||
|
@ -112,7 +112,7 @@
|
|||
<img src="img/password.jpg" />
|
||||
</div>
|
||||
<div style="height: 40px; padding-top: 9px;">
|
||||
Password</div>
|
||||
<fmt:message key="login_jsp_password" /> </div>
|
||||
</div>
|
||||
<div style="height: 10px; width: 100%"></div>
|
||||
<div>
|
||||
|
@ -120,15 +120,14 @@
|
|||
style="font-size: 18px; margin-left: 40px; height: 30px; width: 300px;"
|
||||
onblur="checkPass(this.value)" />
|
||||
<div id='alertPassWord'
|
||||
style='display: none; color: red; margin-left: 40px'>The
|
||||
password cannot be empty!</div>
|
||||
style='display: none; color: red; margin-left: 40px'><fmt:message key="login_jsp_passwordWarnning" /> </div>
|
||||
</div>
|
||||
<div style="height: 20px; width: 100%"></div>
|
||||
<div style="height: 40px; padding-left: 40px;">
|
||||
<button type="submit" class="btn btn-large btn-primary"
|
||||
onClick="login()">Sign In</button>
|
||||
onClick="login()"><fmt:message key="login_jsp_signIn" /> </button>
|
||||
<button type="submit" class="btn btn-large btn-primary"
|
||||
onClick="adminLogin()">Admin</button>
|
||||
onClick="adminLogin()"><fmt:message key="login_jsp_admin" /> </button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -76,9 +76,9 @@ body {
|
|||
<ul class="breadcrumb">
|
||||
<li><a href="homepage.jsp"><fmt:message key="home" /></a> <span
|
||||
class="divider">/</span></li>
|
||||
<li><a href="#"><fmt:message key="scriptmanagement" /></a><span
|
||||
<li><a href="script.jsp"><fmt:message key="scriptmanagement" /></a><span
|
||||
class="divider">/</span></li>
|
||||
<li><a href="#"><fmt:message key="script_jsp_makeScript" /></a></li>
|
||||
<li><a href="plugin.jsp"><fmt:message key="script_jsp_makeScript" /></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -79,13 +79,13 @@
|
|||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<jsp:include page="publiccontrol/leftmenubar.jsp"></jsp:include>
|
||||
<div class="span10">
|
||||
<div class="span10 row-fluid">
|
||||
<div id="contents" class="span7">
|
||||
<div id="codeEditor"></div>
|
||||
</div>
|
||||
|
||||
<!-- API Documentation -->
|
||||
<div id="tabBar" class="box span3" style="margin-top: 0px">
|
||||
<div class="box span3" style="margin-top:0px;">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2>
|
||||
<i></i> API Documentation
|
||||
|
@ -96,261 +96,216 @@
|
|||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content" id="apiDocumentation">
|
||||
<div class="span3 main-menu-span" id="sidebar"
|
||||
style="width: 245px;">
|
||||
<ul class="nav nav-tabs nav-tab nav-stacked "
|
||||
style="width: 245px;">
|
||||
|
||||
<li class="api" style="margin-left: 5px;"
|
||||
onclick="toggleAPIContent('apiHeader1')"><div
|
||||
class="title_style">
|
||||
<p class="" id="apiHeader1">poolSize</p>
|
||||
</div>
|
||||
<div id="apiContent1" class="apiShow">
|
||||
<p>The amount of people we simulated to generate actions
|
||||
.</p>
|
||||
</div></li>
|
||||
|
||||
|
||||
<li class="api" style="margin-left: 5px;"
|
||||
onclick="toggleAPIContent('apiHeader2')">
|
||||
<div class="title_style">
|
||||
<p class="" id="apiHeader2">usePlugins</p>
|
||||
|
||||
</div>
|
||||
<div id="apiContent2" class="apiShow">
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<h3 class="title">usePlugin</h3>
|
||||
<p>The plug-ins which help us to create scripts, such
|
||||
as CommandLinePlugin ,ConstantTimerPlugin,HttpPlugin and
|
||||
LogPlugin.</p>
|
||||
</div>
|
||||
<div>
|
||||
<span class="arguments">Arguments</span>
|
||||
<table class="details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>id</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The description of plug-in which we used.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The name of plug-in,such as HTTP,ConstantTimer
|
||||
and so on.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>parameters</td>
|
||||
<td>Parameter[]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The list of parameter,which include the
|
||||
important information of script which you are editing.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="api" style="margin-left: 5px;"
|
||||
onclick="toggleAPIContent('apiHeader3')">
|
||||
<div class="title_style">
|
||||
<p class="" id="apiHeader3">pages</p>
|
||||
|
||||
</div>
|
||||
<div id="apiContent3" class="apiShow">
|
||||
<div>
|
||||
<!-- 一段介绍 -->
|
||||
<p></p>
|
||||
<!-- 结束 -->
|
||||
|
||||
<!-- 参数说明 -->
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<h3 class="title">batches</h3>
|
||||
<!-- 一段介绍 -->
|
||||
<p></p>
|
||||
<!-- 结束 -->
|
||||
</div>
|
||||
<div>
|
||||
<span class="arguments">Arguments</span>
|
||||
<table class="details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Id</td>
|
||||
<td>int</td>
|
||||
</tr>
|
||||
<!-- 一段介绍 -->
|
||||
<tr>
|
||||
<td>The serial number of batches.</td>
|
||||
</tr>
|
||||
<!-- 结束 -->
|
||||
<tr>
|
||||
<td>parentId</td>
|
||||
<td>int</td>
|
||||
</tr>
|
||||
<!-- 一段介绍 -->
|
||||
<tr>
|
||||
<td>The parent batch's serial number.</td>
|
||||
</tr>
|
||||
<!-- 结束 -->
|
||||
<tr>
|
||||
<td>childId</td>
|
||||
<td>int</td>
|
||||
</tr>
|
||||
<!-- 一段介绍 -->
|
||||
<tr>
|
||||
<td>The child batch's serial number.</td>
|
||||
</tr>
|
||||
<!-- 结束 -->
|
||||
<tr>
|
||||
<td>behaviors</td>
|
||||
<td>Behavior[]</td>
|
||||
</tr>
|
||||
<!-- 一段介绍 -->
|
||||
<tr>
|
||||
<td>A list of actions which you want the script
|
||||
to do.</td>
|
||||
</tr>
|
||||
<!-- 结束 -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<h3 class="title">behaviors</h3>
|
||||
<!-- 一段介绍 -->
|
||||
<p>The actions you want the net to do. There are
|
||||
two types of Behavior, namely TimerBehavior and
|
||||
UserBehavior.</p>
|
||||
<!-- 结束 -->
|
||||
</div>
|
||||
<div>
|
||||
<span class="arguments">Arguments</span>
|
||||
<table class="details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>id</td>
|
||||
<td>int</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The serial number of behaviors you have
|
||||
choosed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>use</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The type of behaivor, such as time and
|
||||
user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The action name that the behavior
|
||||
executed.For example,when you generate the http
|
||||
request, you can use the method such as
|
||||
GET,POST,PUT and DELETE.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>type</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The type of behaivor, such as TIMEBEHAVIOR
|
||||
and USERBEHAVIOR.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>parameters</td>
|
||||
<td>Parameter[]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The list of parameter,which include the
|
||||
important information of script which you are
|
||||
editing.</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<h3 class="title">parameters</h3>
|
||||
<!-- 一段介绍 -->
|
||||
<p>The specific information of your script.</p>
|
||||
<!-- 结束 -->
|
||||
</div>
|
||||
<div>
|
||||
<table class="details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>key</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The important parameters when you edit your
|
||||
script.For example, you should write the url(The
|
||||
URL for the resource we are requesting),queryParams
|
||||
and headers (A table of custom HTTP headers to send
|
||||
along with the request)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>value</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The content of the key.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 结束 -->
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<div class="box-content main-menu-span " id="apiDocumentation " style="height:398px;">
|
||||
<div class="api" onclick="toggleAPIContent('apiHeader1')">
|
||||
<div class="title_style">
|
||||
<p class="" id="apiHeader1">poolSize</p>
|
||||
</div>
|
||||
<div id="apiContent1" class="apiShow">
|
||||
<p>The amount of people we simulated to generate actions .</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="api" onclick="toggleAPIContent('apiHeader2')">
|
||||
<div class="title_style">
|
||||
<p class="" id="apiHeader2">usePlugins</p>
|
||||
|
||||
</div>
|
||||
<div id="apiContent2" class="apiShow">
|
||||
<div>
|
||||
<h3 class="title">usePlugin</h3>
|
||||
<p>The plug-ins which help us to create scripts, such as
|
||||
CommandLinePlugin ,ConstantTimerPlugin,HttpPlugin and
|
||||
LogPlugin.</p>
|
||||
</div>
|
||||
<div>
|
||||
<span class="arguments">Arguments</span>
|
||||
<table class="details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>id</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The description of plug-in which we used.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The name of plug-in,such as HTTP,ConstantTimer and
|
||||
so on.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>parameters</td>
|
||||
<td>Parameter[]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The list of parameter,which include the important
|
||||
information of script which you are editing.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="api" onclick="toggleAPIContent('apiHeader3')">
|
||||
<div class="title_style">
|
||||
<p class="" id="apiHeader3">pages</p>
|
||||
</div>
|
||||
<div id="apiContent3" class="apiShow">
|
||||
<p></p>
|
||||
<div>
|
||||
<div>
|
||||
<h3 class="title">batches</h3>
|
||||
<p>a series of behaviors which you have made in the
|
||||
network.</p>
|
||||
</div>
|
||||
<div>
|
||||
<span class="arguments">Arguments</span>
|
||||
<table class="details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Id</td>
|
||||
<td>int</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The serial number of batches.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>parentId</td>
|
||||
<td>int</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The parent batch's serial number.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>childId</td>
|
||||
<td>int</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The child batch's serial number.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>behaviors</td>
|
||||
<td>Behavior[]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>A list of actions which you want the script to
|
||||
do.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<h3 class="title">behaviors</h3>
|
||||
<p>The actions you do with the network. There are two
|
||||
types of Behavior, namely TimerBehavior and UserBehavior.</p>
|
||||
</div>
|
||||
<div>
|
||||
<span class="arguments">Arguments</span>
|
||||
<table class="details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>id</td>
|
||||
<td>int</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The serial number of behaviors you have choosed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>use</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The plug-in name which you have choosed, such as
|
||||
http and timer.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The name of the method which you have choosed
|
||||
based on the type of plug-in.For example,when you
|
||||
generate the http request, you can use the method such as
|
||||
GET,POST,PUT and DELETE.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>type</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The type of behaivor, such as TIMEBEHAVIOR and
|
||||
USERBEHAVIOR.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>parameters</td>
|
||||
<td>Parameter[]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The list of parameter,which include the important
|
||||
information of script which you are editing.</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<h3 class="title">parameters</h3>
|
||||
<p>The specific information of your script.</p>
|
||||
</div>
|
||||
<div>
|
||||
<table class="details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>key</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The important parameters when you edit your
|
||||
script.For example, you should write the url(The URL for
|
||||
the resource we are requesting),queryParams and headers
|
||||
(A table of custom HTTP headers to send along with the
|
||||
request)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>value</td>
|
||||
<td>String</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>The content of the key.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 结束 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /API Documentation -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="action">
|
||||
<button type="button" class="btn btn-primary" id="submit"
|
||||
title="save edit">save</button>
|
||||
title="save edit">
|
||||
<fmt:message key="script_edit_jsp_save"></fmt:message>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-primary" id="cancel"
|
||||
title="cancel edit">cancel</button>
|
||||
title="cancel edit">
|
||||
<fmt:message key="script_edit_jsp_cancel" />
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary" id="validate"
|
||||
title="validate edit">validate</button>
|
||||
title="validate edit">
|
||||
<fmt:message key="script_edit_jsp_validate"></fmt:message>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
|
|
@ -76,7 +76,7 @@ body {
|
|||
<ul class="breadcrumb">
|
||||
<li><a href="homepage.jsp"><fmt:message key="home" /></a> <span
|
||||
class="divider">/</span></li>
|
||||
<li><a href="#"><fmt:message key="scriptmanagement" /></a></li>
|
||||
<li><a href="script.jsp"><fmt:message key="scriptmanagement" /></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -122,11 +122,11 @@ body {
|
|||
<tr>
|
||||
<td>
|
||||
<button id="createNewScript" class="btn btn-primary btn-setting"
|
||||
onclick="" type="submit"><fmt:message key="script_jsp_makeScript" />
|
||||
onclick="" type="submit"><fmt:message key="script_jsp_recordScript" />
|
||||
</button>
|
||||
|
||||
<button id="createScript" class="btn btn-primary"
|
||||
onclick="#" type="submit"><fmt:message key="script_jsp_recordScript" />
|
||||
onclick="#" type="submit"><fmt:message key="script_jsp_makeScript" />
|
||||
</button>
|
||||
|
||||
<button id="refreshPage" class="btn btn-primary "
|
||||
|
|
|
@ -477,7 +477,6 @@ function removeCol(selectedNode) {
|
|||
tbody.removeChild(removeNode);
|
||||
}
|
||||
|
||||
// 创建一个CheckBox域
|
||||
function createCheckBox(methodParamModel, rows, behaviorIndex) {
|
||||
var name = methodParamModel.name;
|
||||
var label = methodParamModel.lable;
|
||||
|
@ -521,7 +520,6 @@ function createCheckBox(methodParamModel, rows, behaviorIndex) {
|
|||
|
||||
var behaviors = new Array();
|
||||
function saveBehavior(selectedNode) {
|
||||
alert("saveBehavior");
|
||||
var uploadNode = selectedNode.parentNode.previousSibling;
|
||||
var div = uploadNode.childNodes;
|
||||
var length = div.length;
|
||||
|
@ -552,7 +550,6 @@ function saveBehavior(selectedNode) {
|
|||
for (var j = 0; j < fieldLength; j++) {
|
||||
value = $(fieldNode[j]).find("input").val() + ",";
|
||||
}
|
||||
alert("MultiField value=" + value);
|
||||
} else if ($(node).attr("class") == "Table sample_frame") {
|
||||
key = node.lastChild.firstChild.nodeValue;
|
||||
var table = $(node).find("table");
|
||||
|
@ -605,13 +602,6 @@ function submitBehaviors() {
|
|||
error : function(request, status, error) {
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
* $.post("uploadPluginEditedScript", { behaviors: behaviors,
|
||||
* usePlugins:usePluginList, scriptName: "scriptName" }, function(data) { if
|
||||
* (!data.success) { alert(data.failedMessage); return; } data=data.data;
|
||||
* alert(data); },"json");
|
||||
*/
|
||||
}
|
||||
|
||||
function PluginEditScriptRequestModel(behaviorModels, usePluginModels,
|
||||
|
|
Loading…
Reference in New Issue