[Fuego] [PATCH 7/8] Add description to tests in COMMANDS_TO_TEST
Guilherme Campos Camargo
guicc at profusion.mobi
Wed May 2 14:20:51 UTC 2018
Add a description for most of the tests.
Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
---
.../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
More information about the Fuego
mailing list