[Fuego] [PATCH 03/14] Add a CheckScreenshot command into the COMMANDS_TO_TEST list
Guilherme Camargo
guicc at profusion.mobi
Thu Apr 26 13:31:36 UTC 2018
On Wed, Apr 25, 2018 at 8:17 PM, <Tim.Bird at sony.com> wrote:
> Looks good. My only comment (which is not specific to this patch or test
> case)
> is that it would be good if each 'Check...' test in COMMANDS_TO_TEST
> was an individual test case for the full release test.
>
Tim, not sure if I got it right. You mean that we should wrap each one
of the 'Check...' tests in a python script and call them individually
from within fuego_test.sh?
Thanks
> -- Tim
>
> > -----Original Message-----
> > From: Guilherme Campos Camargo
> > 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 <guicc at profusion.mobi>
> > ---
> > 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
> >
> > _______________________________________________
> > Fuego mailing list
> > Fuego at lists.linuxfoundation.org
> > https://lists.linuxfoundation.org/mailman/listinfo/fuego
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/fuego/attachments/20180426/a1739668/attachment.html>
More information about the Fuego
mailing list