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¶
Submodules¶
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.
TestWithSeleniumMixin
[source]¶ Bases:
galaxy.selenium.context.GalaxySeleniumContext
,galaxy_test.base.api.UsesApiTestCaseMixin
-
framework_tool_and_types
= True¶
-
ensure_registered
= 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
¶
-
property
dataset_populator
¶
-
property
dataset_collection_populator
¶
-
property
workflow_populator
¶
-
-
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
-
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.
-
class
galaxy_test.selenium.framework.
SeleniumSessionDatasetPopulator
(selenium_test_case)[source]¶ Bases:
galaxy_test.base.populators.BaseDatasetPopulator
,galaxy_test.selenium.framework.SeleniumSessionGetPostMixin
Implementation of BaseDatasetPopulator backed by bioblend.
-
class
galaxy_test.selenium.framework.
SeleniumSessionDatasetCollectionPopulator
(selenium_test_case)[source]¶ Bases:
galaxy_test.base.populators.BaseDatasetCollectionPopulator
,galaxy_test.selenium.framework.SeleniumSessionGetPostMixin
Implementation of BaseDatasetCollectionPopulator backed by bioblend.
-
class
galaxy_test.selenium.framework.
SeleniumSessionWorkflowPopulator
(selenium_test_case)[source]¶ Bases:
galaxy_test.base.populators.BaseWorkflowPopulator
,galaxy_test.selenium.framework.SeleniumSessionGetPostMixin
,gxformat2.interface.ImporterGalaxyInterface
Implementation of BaseWorkflowPopulator backed by bioblend.
-
__init__
(selenium_test_case)[source]¶ Construct a workflow populator from a bioblend GalaxyInstance.
-
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.
-
galaxy_test.selenium.test_anon_history module¶
galaxy_test.selenium.test_change_password module¶
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¶
-
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.
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.
galaxy_test.selenium.test_history_copy_elements module¶
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
-
hid
= 1¶
-
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.
-
galaxy_test.selenium.test_history_options module¶
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¶
-
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¶
-
galaxy_test.selenium.test_history_panel_pagination module¶
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.
galaxy_test.selenium.test_history_structure module¶
galaxy_test.selenium.test_jupyter module¶
galaxy_test.selenium.test_library_contents module¶
-
class
galaxy_test.selenium.test_library_contents.
LibraryContentsTestCase
(methodName='runTest')[source]¶ Bases:
galaxy_test.selenium.framework.SeleniumTestCase
-
requires_admin
= True¶
-
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¶
-
galaxy_test.selenium.test_library_to_collections module¶
galaxy_test.selenium.test_login module¶
galaxy_test.selenium.test_pages module¶
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.’
-
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.
galaxy_test.selenium.test_registration module¶
galaxy_test.selenium.test_sign_out module¶
galaxy_test.selenium.test_sizzle_loading module¶
galaxy_test.selenium.test_stock_tours module¶
galaxy_test.selenium.test_tool_describing_tours module¶
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
-
class
galaxy_test.selenium.test_tool_form.
LoggedInToolFormTestCase
(methodName='runTest')[source]¶ Bases:
galaxy_test.selenium.framework.SeleniumTestCase
-
ensure_registered
= True¶
-
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
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¶
-
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¶
-
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¶
-