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=LB4jAcIvMXn5aeRhIBW2whqdBq4A+qy5BxkI7cniIqM=; b=hjRIqAspDoeC49GE6drGWHQ8AkmImBnI4udO/eX1ba9pTuHK1G2/rXNQzC6IuYoN/0 CJAT2lYWCwknkB+1SAbVFAgZlKTsti26qsCcRwxUAim2VLaktf5WmDDIhCdzn44p+Txa T63qAU3AmRm2oIOyfcLOP7Cr40EW+cGK9+dVPK8mDUk9HxYjMVPSKVYhBOeuI71xkaTB RWgjqi+JpLknU/oRy87HmOnMbcoOFPjkFC0hk0ioRLnga43oaZoZmbjCOlgvzhmHSUz9 CLhv0o+xusweiW3r164945EMezbxzhiwcwIIrdWXKj4ntaJadvYOG+1WH55Hb/nywQAu fwsQ== From: Guilherme Campos Camargo Date: Wed, 28 Mar 2018 21:08:32 -0300 Message-Id: <20180329000832.12268-17-guicc@profusion.mobi> In-Reply-To: <20180329000832.12268-1-guicc@profusion.mobi> References: <20180329000832.12268-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 16/16] Add test that starts a job through the UI List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org 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 --- 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