Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profusion-mobi.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hH8fiZMcVpQTk+0Ft63AvHIt/sB9wVkCdccoqva0+3o=; b=lQYxlLHKoA5nWc8iJI4q9B92yeyeE8y5WIc99PiRrv+L9UqK551xtS63Bup0Ugvouu womsYuTKLj4RvOjr3zG6zp+OFsWYZ/16lzqfzMfQh72kc5JkX7tOMqnLY6QaTFv+ZNvz I1KI4AuGFc5rZzQ2GqXIWco9FXNPpYg13oWNlYHUaVW8JtlYt3e4XULL7YtYNH2ZFDan Tc5jGlh7uZY2yK9Hv5kEohG7E26+uiI+DYM3vkyE5+kTSgXgEPBMkwvkr2c7M7Bd7bBU YMDNQWyDn+JxxdM2LQvnjl2XdJsglnsezZsgG0fbbPCNniemKoEiXc8sxOOSiDyP6nX8 NbTQ== From: Guilherme Campos Camargo Date: Wed, 2 May 2018 11:20:51 -0300 Message-Id: <20180502142052.29544-8-guicc@profusion.mobi> In-Reply-To: <20180502142052.29544-1-guicc@profusion.mobi> References: <20180502142052.29544-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 7/8] Add description to tests in COMMANDS_TO_TEST List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org Add a description for most of the tests. Signed-off-by: Guilherme Campos Camargo --- .../Functional.fuego_release_test/test_run.py | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/engine/tests/Functional.fuego_release_test/test_run.py b/engine/tests/Functional.fuego_release_test/test_run.py index e226a96..52fbae3 100755 --- a/engine/tests/Functional.fuego_release_test/test_run.py +++ b/engine/tests/Functional.fuego_release_test/test_run.py @@ -856,52 +856,63 @@ def main(): COMMANDS_TO_TEST = [ # Set Selenium Browser root - Visit(url=container.get_url()), + Visit(url=container.get_url(), + description="visit " + container.get_url()), # Compare screenshot of the full viewport ignoring an area CheckScreenshot(ref_img='screenshots/full_screenshot.png', rm_images_on_success=False, mask_img='screenshots/full_screenshot_mask.png', - threshold=0.05), + threshold=0.05, + description="check full screenshot"), # Add Nodes ShExpect('ftc add-nodes docker'), ShExpect('ftc list-nodes -q', r'.*docker.*'), - CheckText(By.ID, 'executors', text='master'), - CheckText(By.ID, 'executors', text='docker'), + CheckText(By.ID, 'executors', text='master', + description="check text executors master"), + CheckText(By.ID, 'executors', text='docker', + description="check text executors docker"), # Add Fuego TestPlan ShExpect('ftc add-jobs -b docker -p testplan_fuego_tests'), ShExpect('ftc list-jobs', r'.*docker\.testplan_fuego_tests\.batch.*'), - Click(By.PARTIAL_LINK_TEXT, 'docker'), + Click(By.PARTIAL_LINK_TEXT, 'docker', + description="click docker"), CheckText(By.ID, 'projectstatus', - text='docker.testplan_fuego_tests.batch'), + text='docker.testplan_fuego_tests.batch', + description="check text projectstatus fuego batch"), Back(), # Install Views ShExpect('ftc add-view batch .*.batch'), CheckText(By.ID, 'projectstatus-tabBar', - text='batch'), + text='batch', + description="check text projectstatus tab bar batch"), # Start a Test through Command Line ShExpect('ftc build-jobs *.*.Functional.fuego_board_check'), CheckText(By.ID, 'buildQueue', - text='Functional.fuego_board_check'), + text='Functional.fuego_board_check', + description="check text build queue fuego board check"), # Start a Test through Jenkins UI (Xpath) Click(By.XPATH, '//img[@title="Schedule a build for ' + - 'docker.default.Functional.hello_world"]'), + 'docker.default.Functional.hello_world"]', + description="click img build hello world"), CheckText(By.ID, 'executors', - text='docker.default.Functional.hello_world'), + text='docker.default.Functional.hello_world', + description="check text executors hello world"), # Compare screenshot of an element of Jenkins UI CheckScreenshot(ref_img='screenshots/side-panel-tasks.png', output_dir=args.output_dir, locator=By.ID, pattern='tasks', rm_images_on_success=True, - threshold=0.1), + threshold=0.1, + description="check screenshot side-panel-tasks"), # Compare screenshot of an element of Jenkins UI ignoring an area CheckScreenshot(ref_img='screenshots/footer.png', @@ -909,7 +920,8 @@ def main(): locator=By.CLASS_NAME, pattern='col-md-18', rm_images_on_success=False, mask_img='screenshots/footer_mask.png', - threshold=0.1), + threshold=0.1, + description="check screenshot footer"), ] if not execute_tests(args.timeout): -- 2.17.0