Script execution

This commit is contained in:
boccioli_m
2015-06-25 11:10:48 +02:00
parent 5c5e2c883a
commit 453ac9d79f

View File

@@ -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()