From 453ac9d79fa11df3b8f31da6d0f87b65b86319ac Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Thu, 25 Jun 2015 11:10:48 +0200 Subject: [PATCH] Script execution --- .../tests/Collimator Tests/Motor Test 3/Motor Test 3.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/tests/tests/Collimator Tests/Motor Test 3/Motor Test 3.py b/script/tests/tests/Collimator Tests/Motor Test 3/Motor Test 3.py index 2597a01..ef674f0 100644 --- a/script/tests/tests/Collimator Tests/Motor Test 3/Motor Test 3.py +++ b/script/tests/tests/Collimator Tests/Motor Test 3/Motor Test 3.py @@ -6,13 +6,14 @@ import traceback #by default, failed ret = 'Test failed' status = False - +DEVICE = device +params = parameters #get parameters from the calling interface try: print "Running test Motor Test 3 with the following parameters:" - print parameters - loopTimes = int(parameters["repeatTimes"]["value"]) - direction = int(parameters["translation"]["value"]) + print params + loopTimes = int(params["repeatTimes"]["value"]) + direction = int(params["translation"]["value"]) except: print "Could not retrieve testing parameters: ", sys.exc_info()[0] ret = 'Could not retrieve testing parameters - ' + traceback.format_exc()