fix the resutl bug

This commit is contained in:
fanfuxiaoran 2013-12-03 11:22:11 +08:00
parent d8e3793b2e
commit b7521605c7
5 changed files with 145 additions and 29 deletions

View File

@ -18361,3 +18361,92 @@ Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No q
2013-12-02 23:19:02 [ main:3048 ] - [ INFO ] Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0'
2013-12-02 23:19:02 [ main:3126 ] - [ INFO ] FrameworkServlet 'dispatcherServlet': initialization completed in 574 ms
2013-12-02 23:21:07 [ qtp24726713-18:127763 ] - [ INFO ] www login!
2013-12-03 09:20:21 [ main:0 ] - [ INFO ] Root WebApplicationContext: initialization started
2013-12-03 09:20:21 [ main:31 ] - [ INFO ] Refreshing Root WebApplicationContext: startup date [Tue Dec 03 09:20:21 CST 2013]; root of context hierarchy
2013-12-03 09:20:21 [ main:103 ] - [ INFO ] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
2013-12-03 09:20:21 [ main:205 ] - [ INFO ] JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
2013-12-03 09:20:21 [ main:206 ] - [ INFO ] JSR-330 'javax.inject.Named' annotation found and supported for component scanning
2013-12-03 09:20:21 [ main:515 ] - [ INFO ] JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2013-12-03 09:20:21 [ main:527 ] - [ INFO ] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4913dabe: defining beans [agentActionController,authorizeActionController,monitorController,recordPortActionController,scriptActionController,testPlanActionController,scriptService,testLoginService,testScriptService,processHttpReponse,httpRequester,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
2013-12-03 09:20:21 [ main:737 ] - [ INFO ] Mapped "{[/addAgentToPool],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.AgentActionController.addAgenttoPool(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:21 [ main:738 ] - [ INFO ] Mapped "{[/removeAgentFromPool],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.AgentActionController.removeAgentfromPool(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:21 [ main:738 ] - [ INFO ] Mapped "{[/loadAgents],methods=[POST || GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.web.model.AgentListModel org.bench4q.web.api.AgentActionController.loadAgentsFromPool(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:21 [ main:739 ] - [ INFO ] Mapped "{[/register],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.AuthorizeActionController.register(org.bench4q.share.models.master.UserModel)
2013-12-03 09:20:21 [ main:739 ] - [ INFO ] Mapped "{[/login],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.AuthorizeActionController.login(org.bench4q.share.models.master.UserModel,org.springframework.ui.ModelMap)
2013-12-03 09:20:21 [ main:739 ] - [ INFO ] Mapped "{[/adminLogin],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.AuthorizeActionController.adminLogin(org.bench4q.share.models.master.UserModel,org.springframework.ui.ModelMap)
2013-12-03 09:20:21 [ main:740 ] - [ INFO ] Mapped "{[/getMemoryStatus],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.share.models.monitor.MemoryModel org.bench4q.web.api.MonitorController.geMemoryStatus(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:740 ] - [ INFO ] Mapped "{[/getNetworkStatus],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto private org.bench4q.share.models.monitor.NetworkInterfaceModel org.bench4q.web.api.MonitorController.getNetworkStatus(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:740 ] - [ INFO ] Mapped "{[/getProcessorStatus],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.share.models.monitor.ProcessorModel org.bench4q.web.api.MonitorController.getPeocessStatus(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:742 ] - [ INFO ] Mapped "{[/addPortToPool],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.RecordPortActionController.addPorttoPortPool(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:742 ] - [ INFO ] Mapped "{[/removePortFromPool],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.RecordPortActionController.removePortfromPortPool(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:21 [ main:742 ] - [ INFO ] Mapped "{[/loadPorts],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.web.model.PortListModel org.bench4q.web.api.RecordPortActionController.loadPorts(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:21 [ main:742 ] - [ INFO ] Mapped "{[/editPort],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.RecordPortActionController.editPort(java.lang.String,org.bench4q.share.models.master.PortModel)
2013-12-03 09:20:21 [ main:743 ] - [ INFO ] Mapped "{[/saveRecordScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.ScriptActionController.saveScriptToDB(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:744 ] - [ INFO ] Mapped "{[/startRecordServer],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.share.models.master.OperateScriptServerResponseModel org.bench4q.web.api.ScriptActionController.startRecordServer(java.lang.String) throws javax.xml.bind.JAXBException
2013-12-03 09:20:21 [ main:744 ] - [ INFO ] Mapped "{[/stopRecordServer],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.ScriptActionController.stopRecordServer(java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:744 ] - [ INFO ] Mapped "{[/deleteScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.ScriptActionController.deletescript(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:744 ] - [ INFO ] Mapped "{[/loadScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.util.List<org.bench4q.share.models.master.ScriptModel> org.bench4q.web.api.ScriptActionController.loadscript(java.lang.String)
2013-12-03 09:20:21 [ main:744 ] - [ INFO ] Mapped "{[/saveEditScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.ScriptActionController.savescript(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:745 ] - [ INFO ] Mapped "{[/editScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.bench4q.web.api.ScriptActionController.editScript(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:746 ] - [ INFO ] Mapped "{[/testPlanTaskList],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.util.List<org.bench4q.web.model.TestPlanTaskModel> org.bench4q.web.api.TestPlanActionController.getTestPlanTaskList(java.lang.String,java.util.List<org.bench4q.web.model.TestPlanTaskModel>,org.springframework.ui.ModelMap)
2013-12-03 09:20:21 [ main:747 ] - [ INFO ] Mapped "{[/getRunningInfo],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.web.model.RunningIndexModel org.bench4q.web.api.TestPlanActionController.getRunningInfo(java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:747 ] - [ INFO ] Mapped "{[/getScriptBriefStatus],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.share.models.master.ScriptBriefResultModel org.bench4q.web.api.TestPlanActionController.getAgentBriefStatus(java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:747 ] - [ INFO ] Mapped "{[/downloadReport],methods=[GET || POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public void org.bench4q.web.api.TestPlanActionController.downloadReport(javax.servlet.http.HttpServletResponse,java.lang.String,java.lang.String)
2013-12-03 09:20:21 [ main:747 ] - [ INFO ] Mapped "{[/loadTestPlans],methods=[GET || POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.web.model.TestPlanListModel org.bench4q.web.api.TestPlanActionController.loadTestPlans(java.lang.String)
2013-12-03 09:20:21 [ main:747 ] - [ INFO ] Mapped "{[/runTestPlan],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.bench4q.web.api.TestPlanActionController.runTestPlan(java.lang.String,org.springframework.ui.ModelMap,org.bench4q.web.model.TestPlanRequestModel)
2013-12-03 09:20:22 [ main:1206 ] - [ INFO ] Root WebApplicationContext: initialization completed in 1205 ms
2013-12-03 09:20:22 [ main:1276 ] - [ INFO ] FrameworkServlet 'dispatcherServlet': initialization started
2013-12-03 09:20:22 [ main:1280 ] - [ INFO ] Refreshing WebApplicationContext for namespace 'dispatcherServlet-servlet': startup date [Tue Dec 03 09:20:22 CST 2013]; parent: Root WebApplicationContext
2013-12-03 09:20:22 [ main:1281 ] - [ INFO ] Loading XML bean definitions from ServletContext resource [/WEB-INF/bench4qweb-servlet.xml]
2013-12-03 09:20:22 [ main:1316 ] - [ INFO ] JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning
2013-12-03 09:20:22 [ main:1316 ] - [ INFO ] JSR-330 'javax.inject.Named' annotation found and supported for component scanning
2013-12-03 09:20:22 [ main:1404 ] - [ INFO ] JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2013-12-03 09:20:22 [ main:1412 ] - [ INFO ] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@72a0eb51: defining beans [agentActionController,authorizeActionController,monitorController,recordPortActionController,scriptActionController,testPlanActionController,scriptService,testLoginService,testScriptService,processHttpReponse,httpRequester,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#3,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#3,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#4,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#4,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#5,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#5,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#6,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#6,org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#7,org.springframework.web.servlet.view.InternalResourceViewResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@4913dabe
2013-12-03 09:20:22 [ main:1443 ] - [ INFO ] Mapped "{[/addAgentToPool],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.AgentActionController.addAgenttoPool(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:22 [ main:1443 ] - [ INFO ] Mapped "{[/removeAgentFromPool],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.AgentActionController.removeAgentfromPool(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:22 [ main:1443 ] - [ INFO ] Mapped "{[/loadAgents],methods=[POST || GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.web.model.AgentListModel org.bench4q.web.api.AgentActionController.loadAgentsFromPool(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:22 [ main:1444 ] - [ INFO ] Mapped "{[/register],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.AuthorizeActionController.register(org.bench4q.share.models.master.UserModel)
2013-12-03 09:20:22 [ main:1444 ] - [ INFO ] Mapped "{[/login],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.AuthorizeActionController.login(org.bench4q.share.models.master.UserModel,org.springframework.ui.ModelMap)
2013-12-03 09:20:22 [ main:1444 ] - [ INFO ] Mapped "{[/adminLogin],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.AuthorizeActionController.adminLogin(org.bench4q.share.models.master.UserModel,org.springframework.ui.ModelMap)
2013-12-03 09:20:22 [ main:1445 ] - [ INFO ] Mapped "{[/getMemoryStatus],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.share.models.monitor.MemoryModel org.bench4q.web.api.MonitorController.geMemoryStatus(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1445 ] - [ INFO ] Mapped "{[/getNetworkStatus],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto private org.bench4q.share.models.monitor.NetworkInterfaceModel org.bench4q.web.api.MonitorController.getNetworkStatus(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1446 ] - [ INFO ] Mapped "{[/getProcessorStatus],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.share.models.monitor.ProcessorModel org.bench4q.web.api.MonitorController.getPeocessStatus(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1447 ] - [ INFO ] Mapped "{[/addPortToPool],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.RecordPortActionController.addPorttoPortPool(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1447 ] - [ INFO ] Mapped "{[/removePortFromPool],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.RecordPortActionController.removePortfromPortPool(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:22 [ main:1447 ] - [ INFO ] Mapped "{[/loadPorts],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.web.model.PortListModel org.bench4q.web.api.RecordPortActionController.loadPorts(javax.servlet.http.HttpServletRequest,java.lang.String)
2013-12-03 09:20:22 [ main:1447 ] - [ INFO ] Mapped "{[/editPort],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Boolean org.bench4q.web.api.RecordPortActionController.editPort(java.lang.String,org.bench4q.share.models.master.PortModel)
2013-12-03 09:20:22 [ main:1448 ] - [ INFO ] Mapped "{[/saveRecordScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.ScriptActionController.saveScriptToDB(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1449 ] - [ INFO ] Mapped "{[/startRecordServer],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.share.models.master.OperateScriptServerResponseModel org.bench4q.web.api.ScriptActionController.startRecordServer(java.lang.String) throws javax.xml.bind.JAXBException
2013-12-03 09:20:22 [ main:1449 ] - [ INFO ] Mapped "{[/stopRecordServer],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.ScriptActionController.stopRecordServer(java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1449 ] - [ INFO ] Mapped "{[/deleteScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.ScriptActionController.deletescript(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1449 ] - [ INFO ] Mapped "{[/loadScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.util.List<org.bench4q.share.models.master.ScriptModel> org.bench4q.web.api.ScriptActionController.loadscript(java.lang.String)
2013-12-03 09:20:22 [ main:1449 ] - [ INFO ] Mapped "{[/saveEditScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public boolean org.bench4q.web.api.ScriptActionController.savescript(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1449 ] - [ INFO ] Mapped "{[/editScript],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.bench4q.web.api.ScriptActionController.editScript(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1451 ] - [ INFO ] Mapped "{[/testPlanTaskList],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.util.List<org.bench4q.web.model.TestPlanTaskModel> org.bench4q.web.api.TestPlanActionController.getTestPlanTaskList(java.lang.String,java.util.List<org.bench4q.web.model.TestPlanTaskModel>,org.springframework.ui.ModelMap)
2013-12-03 09:20:22 [ main:1451 ] - [ INFO ] Mapped "{[/getRunningInfo],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.web.model.RunningIndexModel org.bench4q.web.api.TestPlanActionController.getRunningInfo(java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1451 ] - [ INFO ] Mapped "{[/getScriptBriefStatus],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.share.models.master.ScriptBriefResultModel org.bench4q.web.api.TestPlanActionController.getAgentBriefStatus(java.lang.String,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1452 ] - [ INFO ] Mapped "{[/downloadReport],methods=[GET || POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public void org.bench4q.web.api.TestPlanActionController.downloadReport(javax.servlet.http.HttpServletResponse,java.lang.String,java.lang.String)
2013-12-03 09:20:22 [ main:1452 ] - [ INFO ] Mapped "{[/loadTestPlans],methods=[GET || POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.bench4q.web.model.TestPlanListModel org.bench4q.web.api.TestPlanActionController.loadTestPlans(java.lang.String)
2013-12-03 09:20:22 [ main:1452 ] - [ INFO ] Mapped "{[/runTestPlan],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.bench4q.web.api.TestPlanActionController.runTestPlan(java.lang.String,org.springframework.ui.ModelMap,org.bench4q.web.model.TestPlanRequestModel)
2013-12-03 09:20:22 [ main:1550 ] - [ INFO ] Mapped URL path [/images/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
2013-12-03 09:20:22 [ main:1551 ] - [ INFO ] Mapped URL path [/style/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1'
2013-12-03 09:20:22 [ main:1552 ] - [ INFO ] Mapped URL path [/script/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2'
2013-12-03 09:20:22 [ main:1553 ] - [ INFO ] Mapped URL path [/css/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#3'
2013-12-03 09:20:22 [ main:1554 ] - [ INFO ] Mapped URL path [/static/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#4'
2013-12-03 09:20:22 [ main:1556 ] - [ INFO ] Mapped URL path [/img/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#5'
2013-12-03 09:20:22 [ main:1557 ] - [ INFO ] Mapped URL path [/i18n/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#6'
2013-12-03 09:20:22 [ main:1563 ] - [ INFO ] Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0'
2013-12-03 09:20:22 [ main:1615 ] - [ INFO ] FrameworkServlet 'dispatcherServlet': initialization completed in 339 ms
2013-12-03 09:20:42 [ qtp1539944477-23:21286 ] - [ INFO ] www login!
2013-12-03 09:24:06 [ qtp1539944477-28:225209 ] - [ INFO ] www login!
2013-12-03 09:24:13 [ qtp1539944477-19:232806 ] - [ INFO ] 133.133.12.1:7979/return null for login!
2013-12-03 09:24:13 [ qtp1539944477-19:232806 ] - [ INFO ] 133.133.12.1:7979/ networker error!
2013-12-03 09:24:15 [ qtp1539944477-24:234249 ] - [ INFO ] 133.133.12.1:7979/return null for login!
2013-12-03 09:24:15 [ qtp1539944477-24:234249 ] - [ INFO ] 133.133.12.1:7979/ networker error!
2013-12-03 09:28:00 [ qtp1539944477-30:459491 ] - [ INFO ] 133.133.12.1:7979/return null for login!
2013-12-03 09:28:00 [ qtp1539944477-30:459491 ] - [ INFO ] 133.133.12.1:7979/ networker error!
2013-12-03 09:28:02 [ qtp1539944477-26:460987 ] - [ INFO ] 133.133.12.1:7979/return null for login!
2013-12-03 09:28:02 [ qtp1539944477-26:460987 ] - [ INFO ] 133.133.12.1:7979/ networker error!
2013-12-03 09:28:19 [ qtp1539944477-33:478488 ] - [ INFO ] www login!
2013-12-03 10:08:43 [ qtp1539944477-67:2902065 ] - [ INFO ] www login!
2013-12-03 11:18:59 [ qtp1539944477-100:7118276 ] - [ INFO ] www login!

View File

@ -18,7 +18,6 @@ import javax.xml.bind.Unmarshaller;
import org.bench4q.share.communication.HttpRequester;
import org.bench4q.share.communication.HttpRequester.HttpResponse;
import org.bench4q.share.enums.master.TestPlanStatus;
import org.bench4q.share.models.master.MonitorModel;
import org.bench4q.share.models.master.RunningScriptModel;
import org.bench4q.share.models.master.ScriptBriefResultModel;

View File

@ -10,7 +10,6 @@ function setTable(table){
bAutoWidth: true,
bLengthChange :false,
iDisplayLength: 5,
bAutoWidth:true,
bFilter:false,
bInfo:false,
"sPaginationType": "bootstrap"

View File

@ -2,7 +2,7 @@ var container = $('#container');
var containerHeader = $('#containerHeader');
var testPlanId;
var containerModel = new ContainerModel();
var urlModel=new UrlModel();
var testBriefModelField = new Array("name", "uuid", "scripts", "SUT", "status");
var scriptModelField = new Array("name", "id", "load", "warm up", "execute",
"cool down", "finished");
@ -12,15 +12,18 @@ function ContainerModel() {
this.monitorBox = "monitorBox";
this.scriptList = "scriptList";
}
function UrlModel(){
this.runInfo="getRunningInfo";
this.scriptResult="getScriptBriefStatus";
}
$(document).ready(function() {
getRunningInfo("getRunningInfo",1);
getRunningInfo(urlModel.runInfo,1);
getScriptResult(urlModel.scriptResult,testPlanId,initScriptResultContainer);
});
function getRunningInfo(url, testPlanId) {
$.post(url, {
testPlanId : testPlanId
}, function(data){alert(data);processTestBriefInfo(data);},"json");
}, function(data){processTestBriefInfo(data);},"json");
}
function getScriptResult(url, testPlanId, scriptId, callback) {
@ -33,9 +36,9 @@ function getScriptResult(url, testPlanId, scriptId, callback) {
function processTestBriefInfo(data) {
if (data != null) {
initTestInfoContainer(containerHeader, data);
if (data.runningScriptModels != null
&& data.runningScriptModels.length > 0)
initTestinfoContainer(containerHeader, data.scriptIndexModels);
if (data.scriptIndexModels != null
&& data.scriptIndexModels.length > 0)
initTestScriptContainer(containerHeader, data.scriptIndexModels);
if (data.monitorModels != null && data.monitorModels.length > 0)
initSUTContainer(parent, data.monitorModels);
@ -47,33 +50,40 @@ function initTestInfoContainer(parent, data) {
parent.append(box);
var ul = createUl("dashboard-list");
box.children('.box-content').append(ul);
ul.append(createLi("name",data.name,"green") );
ul.append(createLi("uuid",data.uuid, "red"));
ul.append(createLi("name",data.name,"green","icon-arrow-up") );
if (data.scriptIndexModels != null && data.scriptIndexModels.length > 0)
ul.append(createLi("scripts",data.scriptIndexModels.length,"blue") );
ul.append(createLi("script",data.scriptIndexModels.length,"red","icon-minus") );
if (data.monitorModels != null && data.monitorModels.length > 0)
ul.append(createLi("SUT",data.monitorModels.length,"yellow") );
ul.append(createLi("status",data.status,"green") );
ul.append(createLi("SUT",data.monitorModels.length,"yellow","icon-comment") );
ul.append(createLi("status",data.status,"green","icon-arrow-up") );
}
function initTestScripContainer(parent, data) {
function initTestScriptContainer(parent, data) {
var box = createBox(containerModel.scriptBox, 8, "Scripts");
parent.append(box);
var tableClass = "table table-striped table-bordered bootstrap-datatable datatable dataTable";
var table = createTable(containerModel.scriptList, tableClass,
scriptModelField);
box.children('.box-content').append(table);
for (var i = 0; i < data.length; i++) {
setTable(table);
for (var i = 0; i <data.length; i++) {
table.dataTable().fnAddData(
[ data[i].scriptName, data[i].requireLoad, data[i].config.warmUp,
data[i].config.executeRange, data[i].config[i].coolDown,data[i].finished]);
[ data[i].scriptName, data[i].scriptId,data[i].requireLoad, data[i].config.warmUp,
data[i].config.executeRange, data[i].config.coolDown,data[i].finished]);
}
}
function initSUTContainer(data) {
}
function createTestList(model, data) {
function setTable(table){
table.dataTable({
"sDom": "<'row-fluid'<'span6'l><'span6'f>>t<'row-fluid'<'span12 center'p>>",
"sPaginationType": "bootstrap",
"oLanguage": {
"sLengthMenu": "_MENU_ records per page"
}
} );
}

View File

@ -1,4 +1,4 @@
function createBox(id,size,title){
function createBoxDefault(id,size,title){
var box=$("<div class='box'></div>");
size='span'+size;
box.addClass(size);
@ -12,18 +12,36 @@ var boxContent=$("<div class='box-content'></div>");
box.append(boxContent);
return box;
}
function createBox(id,size,title,boxIcons){
var box=$("<div class='box'></div>");
size='span'+size;
box.addClass(size);
var boxHeader=$("<div class='box-header well'><h2>"+
"<i class='icon-th'></i></h2><div class='box-icon'>" +
"</div></div>");
boxHeader.children("h2").text(title);
for(var i=0;i<boxIconClass.length;i++){
boxHeader.children('.box-icon').append(boxIcons[i]);
}
box.append(boxHeader);
var boxContent=$("<div class='box-content'></div>");
box.append(boxContent);
}
function createTable(id,tableClass,model){
var table=$("<table></table>");
table.attr("id",id);
table.addClass(tableClass);
table.append(createTableHead(model));
return table;
}
function createTableHead( model) {
var thead=$("<thead></thead>");
var tr=$("<tr></tr>");
for ( var i = 0; i < model.length; i++) {
thead.append("<th>" + model[i] + "</th>");
tr.append("<th>" + model[i] + "</th>");
}
thead.append(tr);
return thead;
}
function createUl(ulClass){
@ -32,16 +50,17 @@ function createUl(ulClass){
return ul;
};
function createLi(tagTxt,txt,txtColor){
var a=$("<a></a>");
function createLi(tagTxt,txt,txtColor,iconClass){
var a=$("<a ></a>");
var li=$("<li></li>");
var i=$("<i class='icon-minus'></i>");
var i=$("<i ></i>");
i.addClass(iconClass);
a.append(i);
var span=$("<span></span>");
span.addClass(txtColor);
span.text(tagTxt);
a.append(span);
a.text(txt);
a.append(txt);
li.append(a);
return li;
}