Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
galaxy_test.selenium package¶
Subpackages¶
Submodules¶
galaxy_test.selenium.conftest module¶
galaxy_test.selenium.framework module¶
Basis for Selenium test framework.
- galaxy_test.selenium.framework.managed_history(f)[source]¶
Ensure a Selenium test has a distinct, named history.
Cleanup the history after the job is complete as well unless GALAXY_TEST_NO_CLEANUP is set in the environment.
- class galaxy_test.selenium.framework.TestSnapshot(driver, index, description)[source]¶
Bases:
object
- class galaxy_test.selenium.framework.GalaxyTestSeleniumContext[source]¶
Bases:
galaxy.selenium.context.GalaxySeleniumContext
Extend GalaxySeleniumContext with Selenium-aware galaxy_test.base.populators.
- property dataset_populator: galaxy_test.base.populators.BaseDatasetPopulator¶
A dataset populator connected to the Galaxy session described by Selenium context.
- property dataset_collection_populator: galaxy_test.base.populators.BaseDatasetCollectionPopulator¶
A dataset collection populator connected to the Galaxy session described by Selenium context.
- property workflow_populator: galaxy_test.base.populators.BaseWorkflowPopulator¶
A workflow populator connected to the Galaxy session described by Selenium context.
- class galaxy_test.selenium.framework.TestWithSeleniumMixin[source]¶
Bases:
galaxy_test.selenium.framework.GalaxyTestSeleniumContext
,galaxy_test.base.api.UsesApiTestCaseMixin
- framework_tool_and_types = True¶
- ensure_registered = False¶
- ensure_beta_history = False¶
- requires_admin = False¶
- setup_with_driver()[source]¶
Override point that allows setting up data using self.driver and Selenium connection.
Overriding this instead of setUp will ensure debug data such as screenshots and stack traces are dumped if there are problems with the setup and it will be re-ran on test retries.
- snapshot(description)[source]¶
Create a debug snapshot (DOM, screenshot, etc…) that is written out on tool failure.
This information will be automatically written to a per-test directory created for all failed tests.
- default_web_host = '127.0.0.1'¶
- property timeout_multiplier¶
- class galaxy_test.selenium.framework.SeleniumTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.base.testcase.FunctionalTestCase
,galaxy_test.selenium.framework.TestWithSeleniumMixin
- galaxy_driver_class¶
alias of
galaxy_test.driver.driver_util.GalaxyTestDriver
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
This describes a class Selenium tests that setup class state for all tests.
This is a bit hacky because we are simulating class level initialization with instance level methods. The problem is that super.setUp() works at instance level. It might be worth considering having two variants of SeleniumTestCase - one that initializes with the class and the other that initializes with the instance but all the helpers are instance helpers.
Override point that allows setting up data using self.driver and Selenium connection.
Overriding this instead of setUp will ensure debug data such as screenshots and stack traces are dumped if there are problems with the setup and it will be re-ran on test retries.
Override this to setup shared data for tests that gets initialized only once.
- class galaxy_test.selenium.framework.SeleniumSessionGetPostMixin[source]¶
Bases:
object
Mixin for adapting Galaxy testing populators helpers to Selenium session backed bioblend.
- selenium_context: galaxy.selenium.context.GalaxySeleniumContext¶
- class galaxy_test.selenium.framework.SeleniumSessionDatasetPopulator(selenium_context: galaxy.selenium.context.GalaxySeleniumContext)[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumSessionGetPostMixin
,galaxy_test.base.populators.BaseDatasetPopulator
Implementation of BaseDatasetPopulator backed by bioblend.
- __init__(selenium_context: galaxy.selenium.context.GalaxySeleniumContext)[source]¶
Construct a dataset populator from a bioblend GalaxyInstance.
- selenium_context: galaxy.selenium.context.GalaxySeleniumContext¶
- class galaxy_test.selenium.framework.SeleniumSessionDatasetCollectionPopulator(selenium_context: galaxy.selenium.context.GalaxySeleniumContext)[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumSessionGetPostMixin
,galaxy_test.base.populators.BaseDatasetCollectionPopulator
Implementation of BaseDatasetCollectionPopulator backed by bioblend.
- __init__(selenium_context: galaxy.selenium.context.GalaxySeleniumContext)[source]¶
Construct a dataset collection populator from a bioblend GalaxyInstance.
- selenium_context: galaxy.selenium.context.GalaxySeleniumContext¶
- class galaxy_test.selenium.framework.SeleniumSessionWorkflowPopulator(selenium_context: galaxy.selenium.context.GalaxySeleniumContext)[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumSessionGetPostMixin
,galaxy_test.base.populators.BaseWorkflowPopulator
,gxformat2.interface.ImporterGalaxyInterface
Implementation of BaseWorkflowPopulator backed by bioblend.
- __init__(selenium_context: galaxy.selenium.context.GalaxySeleniumContext)[source]¶
Construct a workflow populator from a bioblend GalaxyInstance.
- selenium_context: galaxy.selenium.context.GalaxySeleniumContext¶
galaxy_test.selenium.jupyter_context module¶
Variant of JuypterContextImpl that can also use populators.
This provides an environment separate from test cases that can leaverage both Selenium for testing Galaxy with a browser and API populators for filling in fixture data rapidly in the target Galaxy.
- class galaxy_test.selenium.jupyter_context.JupyterTestContextImpl(from_dict: Optional[dict] = None)[source]¶
Bases:
galaxy.selenium.jupyter_context.JupyterContextImpl
,galaxy_test.selenium.framework.GalaxyTestSeleniumContext
galaxy_test.selenium.test_admin_app module¶
- class galaxy_test.selenium.test_admin_app.AdminAppTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- requires_admin = True¶
- test_admin_toolshed()[source]¶
This tests installing a repository, checking for upgrades, and uninstalling.
A repository named a_selenium_test_repo has been created for this test, owned by devteam@galaxyproject.org. The repository contains a tool with two versions, and the oldest version gets installed so that there will be an upgrade available on the ‘Installed Only’ view. Unfortunately, since this test relies on the presence of the toolshed server, in some cases it will fail even if the galaxy code is correct, necessitating the use of the @flakey decorator.
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_anon_history module¶
- class galaxy_test.selenium.test_anon_history.AnonymousHistoriesTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_change_password module¶
- class galaxy_test.selenium.test_change_password.ChangePasswordTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_collection_builders module¶
- class galaxy_test.selenium.test_collection_builders.CollectionBuildersTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_collection_edit module¶
- class galaxy_test.selenium.test_collection_edit.CollectionEditTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_custom_builds module¶
- class galaxy_test.selenium.test_custom_builds.CustomBuildsTestcase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SharedStateSeleniumTestCase
Override this to setup shared data for tests that gets initialized only once.
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_data_source_tools module¶
- class galaxy_test.selenium.test_data_source_tools.DataSourceTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
,galaxy_test.selenium.framework.UsesHistoryItemAssertions
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_histories_list module¶
- class galaxy_test.selenium.test_histories_list.SavedHistoriesTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SharedStateSeleniumTestCase
Override this to setup shared data for tests that gets initialized only once.
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_copy_elements module¶
- class galaxy_test.selenium.test_history_copy_elements.HistoryCopyElementsTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_dataset_state module¶
- class galaxy_test.selenium.test_history_dataset_state.HistoryDatasetStateTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
,galaxy_test.selenium.framework.UsesHistoryItemAssertions
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_export module¶
- class galaxy_test.selenium.test_history_export.HistoryExportTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_multi_view module¶
- class galaxy_test.selenium.test_history_multi_view.HistoryMultiViewTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_switch_history()[source]¶
Load the multi history view. There should be a selector for the button to create a new history.
Create a new history. This should automatically switch to the newly created history.
Switch back to the original history. A button should appear on the old, previously created history that allows switching back to that one, and the history ID should now match the ID of the history with which we started.
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_options module¶
- class galaxy_test.selenium.test_history_options.HistoryOptionsTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_panel module¶
- class galaxy_test.selenium.test_history_panel.HistoryPanelTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_panel_collections module¶
- class galaxy_test.selenium.test_history_panel_collections.HistoryPanelCollectionsTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_panel_pagination module¶
- class galaxy_test.selenium.test_history_panel_pagination.HistoryPanelPaginationTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_sharing module¶
- class galaxy_test.selenium.test_history_sharing.HistorySharingTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
Share the current history with a target user by ID or email.
user_email
will be used to enter in the share form unlessuser_id
is also specified. Theuser_email
however is always used to check the result ifassert_valid
is True.
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_history_structure module¶
- class galaxy_test.selenium.test_history_structure.HistoryStructureTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_jupyter module¶
- class galaxy_test.selenium.test_jupyter.JupyterTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_library_contents module¶
- class galaxy_test.selenium.test_library_contents.LibraryContentsTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
,galaxy_test.selenium.framework.UsesLibraryAssertions
- requires_admin = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_library_landing module¶
- class galaxy_test.selenium.test_library_landing.LibraryLandingTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- requires_admin = True¶
- setup_with_driver()[source]¶
Override point that allows setting up data using self.driver and Selenium connection.
Overriding this instead of setUp will ensure debug data such as screenshots and stack traces are dumped if there are problems with the setup and it will be re-ran on test retries.
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_library_to_collections module¶
- class galaxy_test.selenium.test_library_to_collections.LibraryToCollectionsTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
,galaxy_test.selenium.framework.UsesLibraryAssertions
- requires_admin = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_login module¶
- class galaxy_test.selenium.test_login.LoginTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_pages module¶
- class galaxy_test.selenium.test_pages.PagesTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_personal_information module¶
- class galaxy_test.selenium.test_personal_information.ManageInformationTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_api_key()[source]¶
This test views and resets the API key. In automated testing scenarios, this means the initial API key will be None, which renders as ‘Not available.’
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
- class galaxy_test.selenium.test_personal_information.DeleteCurrentAccountTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_published_histories_grid module¶
- class galaxy_test.selenium.test_published_histories_grid.HistoryGridTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SharedStateSeleniumTestCase
Override this to setup shared data for tests that gets initialized only once.
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_registration module¶
- class galaxy_test.selenium.test_registration.RegistrationTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_sign_out module¶
- class galaxy_test.selenium.test_sign_out.SignOutTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_sizzle_loading module¶
- class galaxy_test.selenium.test_sizzle_loading.SizzleLoadingTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_stock_tours module¶
- class galaxy_test.selenium.test_stock_tours.TestStockToursTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_tool_describing_tours module¶
- class galaxy_test.selenium.test_tool_describing_tours.ToolDescribingToursTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_tool_form module¶
- class galaxy_test.selenium.test_tool_form.ToolFormTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
,galaxy_test.selenium.framework.UsesHistoryItemAssertions
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
- class galaxy_test.selenium.test_tool_form.LoggedInToolFormTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_uploads module¶
- class galaxy_test.selenium.test_uploads.UploadsTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
,galaxy_test.selenium.framework.UsesHistoryItemAssertions
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_workflow_editor module¶
- class galaxy_test.selenium.test_workflow_editor.WorkflowEditorTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_workflow_invocation_details module¶
- class galaxy_test.selenium.test_workflow_invocation_details.WorkflowInvocationDetailsTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_workflow_management module¶
- class galaxy_test.selenium.test_workflow_management.WorkflowManagementTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_workflow_run module¶
- class galaxy_test.selenium.test_workflow_run.WorkflowRunTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
,galaxy_test.selenium.framework.UsesHistoryItemAssertions
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶
galaxy_test.selenium.test_workflow_sharing module¶
- class galaxy_test.selenium.test_workflow_sharing.WorkflowSharingTestCase(methodName='runTest')[source]¶
Bases:
galaxy_test.selenium.framework.SeleniumTestCase
- ensure_registered = True¶
- test_data_resolver: galaxy.tool_util.verify.test_data.TestDataResolver¶