selenium : Assert that test result is empty at start

parent 8682f8d1
......@@ -47,8 +47,10 @@ def run(args):
# Clean old test results if any
openUrl('%s/TestTool_cleanUpTestResults?__ac_name=%s&__ac_password=%s' % (
config['base_url'], config['user'], config['password']))
# TODO assert getresult is None
if getStatus(config['base_url']) is not '':
print("ERROR : Impossible to clean old test result(s)")
else:
# Environment is ready, we launch test.
os.environ['DISPLAY'] = config['display']
xvfb = Xvfb(config['etc_directory'], config['xvfb_binary'])
profile_dir = os.path.join(config['etc_directory'], 'profile')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment