mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
The new Makefile-based command ``make serve-selenium-notebooks`` will serve notebooks in lib/galaxy_test/selenium/jupyter. The notebooks will target a Galaxy host running on port 8080 - but are parameterized to be run with papermill (https://papermill.readthedocs.io/) for automate targeting different Galaxy servers, remote Selenium servers, etc.. Screenshots will be embedded right into the notebook. Example notebooks setup to target just the library code in ``galaxy-selenium`` as well as one appropriate to leverage the Galaxy testing framework are included and documented in depth via modules docstring for ``galaxy_test.selenium.jupyter``.
487 KiB
487 KiB
In [1]:
# Cell is tagged with 'parameters' so it can be parameterized with papermill,
# if config not overridden ./galaxy_selenium_context.yml can also be populated.
config = NoneIn [2]:
from galaxy.selenium.jupyter_context import init
gx_selenium_context = init(config)In [3]:
gx_selenium_context.home()In [4]:
gx_selenium_context.screenshot("home")Out [4]:
In [ ]: