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=pq8kjOma8ise0buGYs1TxRWa1hxkAcQYyU0T9tVkkoE=; b=M8NvjrZXrgTEz+1nrLcbLEid8EiPHEz8J+pDkvP5RhsSNGIrGUvKjuJRlsnhpixiY3 1p383W+B6WtaDa6FXNqMPobEss0cxOMyeI2YKpY2KTG9Cl4Bn8KWDdJ0DMmuaPZMnuZe RJLx0YgYxCArPFEu+kUVbX1YFlda5oWxms+Gt2nM9dG2UXqnOxQcictLB0COpnfG4cds U3wcDNWzJCdL1U/BcyjhmvkGCmUUCLqUbbHoXFuJz2z46Sp4UVI3F1dnZEeyx/MV1nUh WpmHg74UXUL6GHCskPfL7Juji5ViVkFJZjn0Vky+L5zrTyMBjdKR3oTx6lZRTX+AkTlB HhqA== From: Guilherme Campos Camargo Date: Tue, 24 Apr 2018 14:24:40 -0300 Message-Id: <20180424172451.2682-4-guicc@profusion.mobi> In-Reply-To: <20180424172451.2682-1-guicc@profusion.mobi> References: <20180424172451.2682-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 03/14] Add a CheckScreenshot command into the COMMANDS_TO_TEST list List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org This test will take a screenshot of 'tasks' element from the side-panel of the Jenkins UI (that contains the 'New Item', 'People', 'Build History' and the 'Manage Jenkins' buttons) and compare it with an image that's stored in the workdir, called 'side-panel-tasks.png'. The allowed threshold is 0.1 (10%). Signed-off-by: Guilherme Campos Camargo --- engine/tests/Functional.fuego_release_test/test_run.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/tests/Functional.fuego_release_test/test_run.py b/engine/tests/Functional.fuego_release_test/test_run.py index b380acd..2075862 100755 --- a/engine/tests/Functional.fuego_release_test/test_run.py +++ b/engine/tests/Functional.fuego_release_test/test_run.py @@ -725,6 +725,12 @@ def main(): 'docker.default.Functional.hello_world"]'), CheckText(By.ID, 'executors', text='docker.default.Functional.hello_world'), + + # Compare screenshot of an element of Jenkins UI + CheckScreenshot(By.ID, 'tasks', + rm_images_on_success=True, + ref_img='screenshots/side-panel-tasks.png', + threshold=0.1) ] if not execute_tests(args.timeout): -- 2.17.0