diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-12 11:44:56 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-12 11:44:56 +0200 |
commit | e754f0c6dda1d70ffa5cdcfd99a9a0e6bc9cc6bf (patch) | |
tree | 4e3e94d17e41344209c3dfe16bea6872c44d34cb /selenium | |
parent | dc83b85e85110eb7ed2e96ecdbcbb90b5a5620aa (diff) |
deploying log messages in selenium
Diffstat (limited to 'selenium')
-rw-r--r-- | selenium/test.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/selenium/test.py b/selenium/test.py index 14140e953..7de65d294 100644 --- a/selenium/test.py +++ b/selenium/test.py @@ -19,6 +19,7 @@ import sys import os import re +logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO) logger = logging.getLogger(__name__) taler_baseurl = os.environ.get('TALER_BASEURL', 'https://test.taler.net/') @@ -216,12 +217,17 @@ def withdraw(client, amount_value=None): parser = argparse.ArgumentParser() parser.add_argument('--extdir', help="Folder containing the unpacked extension", metavar="EXTDIR", type=str, dest="extdir", required=True) args = parser.parse_args() +logger.info("Getting extension's ID..") ret = client_setup(args) +logger.info("Creating the browser driver..") client = ret['client'] client.implicitly_wait(10) +logger.info("Withdrawing..") withdraw(client, 10) -switch_base() # inducing error +# switch_base() # inducing error +logger.info("Making donations..") make_donation(client, 6.0) +logger.info("Buying article..") buy_article(client) logger.info("Test passed") client.close() |