Make run script console only script exist
'- userService (org.ngrinder.user.service.UserService)\n' +
'- perfTestService (org.ngrinder.perftest.service.PerfTestService)\n' +
'- tagService (org.ngrinder.perftest.service.TagService)\n' +
- '- fileEntryService\t(org.ngrinder.script.service.FileEntryService)\n' +
+ '- fileEntryService (org.ngrinder.script.service.FileEntryService)\n' +
'- config (org.ngrinder.infra.config.Config)\n' +
'- pluginManager (org.ngrinder.infra.plugin.PluginManager)\n' +
'- cacheManager (org.springframework.cache.CacheManager)\n' +
}
runScript() {
+ const script = this.codemirror.getValue().trim();
+ if (!script) {
+ return;
+ }
+
this.$http.post('/operation/script_console/api', {
- script: this.codemirror.getValue(),
+ script,
})
.then(res => this.result = res.data.result);
}
