[Fuego] [PATCH 16/16] Add test that starts a job through the UI
Guilherme Campos Camargo
guicc at profusion.mobi
Thu Mar 29 00:08:32 UTC 2018
By Clicking on the Schedule Job button, then checking if the job has
been added to the executor's list, through the element XPath.
Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
---
engine/tests/Functional.fuegotest/test_run.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/engine/tests/Functional.fuegotest/test_run.py b/engine/tests/Functional.fuegotest/test_run.py
index d433548..cdf735d 100755
--- a/engine/tests/Functional.fuegotest/test_run.py
+++ b/engine/tests/Functional.fuegotest/test_run.py
@@ -569,10 +569,16 @@ def main():
CheckText(By.ID, 'projectstatus-tabBar',
text='batch'),
- # Start Tests
+ # Start a Test through Command Line
ShExpect('ftc build-jobs *.*.Functional.fuego_board_check'),
CheckText(By.ID, 'buildQueue',
text='Functional.fuego_board_check'),
+
+ # Start a Test through Jenkins UI (Xpath)
+ Click(By.XPATH,
+ '//img[@title="Schedule a build for docker.default.Functional.hello_world"]'),
+ CheckText(By.ID, 'executors',
+ text='docker.default.Functional.hello_world'),
]
if not execute_tests(args.timeout):
--
2.16.2
More information about the Fuego
mailing list