From 399ec2f328f56c1f81c454ecedfb6b99eaf93c42 Mon Sep 17 00:00:00 2001 From: LeoQi Date: Thu, 20 Sep 2018 09:38:01 +0800 Subject: fix testsuite name bugs and improve some ui details JIRA: BOTTLENECK-247 fix the bug where the testsuite name contains Chinese characters. add license header automatically when a testcase created. ui improvements: workflow panel only turns up when a testcase executes. add grafana pages in the webpage 'Test Result'. add the highlight effect on the navigation item. Change-Id: If0ddf82fd4630128f2c4dd7fdde30f037e5bfba7 Signed-off-by: LeoQi --- test-scheduler/server/src/test_parser.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test-scheduler/server/src/test_parser.py') diff --git a/test-scheduler/server/src/test_parser.py b/test-scheduler/server/src/test_parser.py index af0134a7..e4a426b1 100644 --- a/test-scheduler/server/src/test_parser.py +++ b/test-scheduler/server/src/test_parser.py @@ -44,7 +44,12 @@ def parse(filepath): return workflowId -def parseTestcase(schema, tcName='testcase0'): +def parseTestcase(schema, tcName='testcase0.yaml'): + try: + tcName.decode('ascii') + except Exception, e: + print e + tcName = 'testcase0.yaml' if schema is None: return parseLog(False, reason='schema not found.') steps = schema['steps'] -- cgit 1.2.3-korg