{"id":21744053,"url":"https://github.com/telefonica/toolium-examples","last_synced_at":"2025-04-13T05:07:20.230Z","repository":{"id":4960585,"uuid":"45131873","full_name":"Telefonica/toolium-examples","owner":"Telefonica","description":"Set of examples to learn how to use toolium different functionalities","archived":false,"fork":false,"pushed_at":"2025-03-07T15:21:57.000Z","size":28395,"stargazers_count":11,"open_issues_count":0,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-13T05:07:11.317Z","etag":null,"topics":["cdco"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Telefonica.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-28T18:00:17.000Z","updated_at":"2025-03-07T15:21:59.000Z","dependencies_parsed_at":"2024-01-08T11:17:49.140Z","dependency_job_id":"10f86943-b079-4079-9d91-37886372f65d","html_url":"https://github.com/Telefonica/toolium-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Ftoolium-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Ftoolium-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Ftoolium-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Telefonica%2Ftoolium-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Telefonica","download_url":"https://codeload.github.com/Telefonica/toolium-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665747,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdco"],"created_at":"2024-11-26T07:09:51.674Z","updated_at":"2025-04-13T05:07:20.223Z","avatar_url":"https://github.com/Telefonica.png","language":"Python","readme":"Toolium Examples\n================\n\nSet of examples to learn how to use `Toolium \u003chttps://github.com/Telefonica/toolium\u003e`_ to test web, Android or iOS\napplications, in different scenarios.\n\nGetting Started\n---------------\n\nClone `toolium-examples \u003chttps://github.com/Telefonica/toolium-examples\u003e`_ repository and install requirements. It's\nhighly recommendable to use a virtualenv.\n\n.. code:: console\n\n    $ git clone git@github.com:Telefonica/toolium-examples.git\n    $ cd toolium-examples\n    $ pip install -r requirements.txt\n\nRunning Tests\n-------------\n\nEach folder contains a sample project to test web, Android or iOS applications using nose2, behave or pytest to execute\nthem.\n\nRunning web tests using Selenium\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nBy default, web tests are configured to run in chrome locally, so chrome must be installed in your machine.\nSelenium 4 will download chrome driver automatically when tests are executed.\n\n**/web_behave**\n\nTo run behave web tests:\n\n.. code:: console\n\n    $ behave web_behave\n\n**/web_pytest**\n\nTo run web tests with pytest:\n\n.. code:: console\n\n    $ cd web_pytest\n    $ python -m pytest\n\n**/web_nose2**\n\nTo run web tests with nose2:\n\n.. code:: console\n\n    $ python -m nose2 web_nose2\n\nThese web tests can also be executed with pytest:\n\n.. code:: console\n\n    $ cd web_nose2\n    $ python -m pytest\n\nRunning web tests using Playwright\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n**/web_playwright_behave**\n\nTo run behave web tests:\n\n.. code:: console\n\n    $ behave web_playwright_behave\n\n**/web_playwright**\n\nTo run playwright example web tests without using toolium:\n\n.. code:: console\n\n    $ cd web_playwright\n    # Run playwright test integrated with pytest\n    $ python -m pytest tests/test_web_playwright_pytest.py --headed --browser chromium\n    # Run playwright test using sync library mode\n    $ python -m pytest tests/test_web_playwright_library_sync.py --headed\n    # Run playwright test using async library mode\n    $ python tests/test_web_playwright_library_async.py\n\nRunning mobile tests\n~~~~~~~~~~~~~~~~~~~~\n\nBy default, mobile tests are configured to run against a local Appium server, so\n`Appium \u003chttps://appium.github.io/appium/docs/en/2.0\u003e`_ must be installed, configured and started before\nexecuting tests.\n\n**/android_behave**\n\nAndroid tests need an Android Emulator or a plugged Android device.\n\nTo run behave Android tests:\n\n.. code:: console\n\n    $ behave android_behave\n\n**/ios_behave**\n\niOS tests are configured to run on iOS Simulator.\n\nTo run behave iOS tests:\n\n.. code:: console\n\n    $ behave ios_behave\n\n**/mobile_behave**\n\nThis folder contains a behave test that could be executed either in Android or iOS depending on *TOOLIUM_CONFIG_ENVIRONMENT*\nbehave user property.\nThis is shown just for illustrative purposes, as currently the app in the example does not work with new versions of Android or iOS.\n\nTo run behave test in Android:\n\n.. code:: console\n\n    $ behave mobile_behave -D TOOLIUM_CONFIG_ENVIRONMENT=android\n\nTo run behave test in iOS:\n\n.. code:: console\n\n    $ behave mobile_behave -D TOOLIUM_CONFIG_ENVIRONMENT=ios\n\n**/web_behave**\n\nThe same `/web_behave` tests already run in a browser could also be executed in an Android or iOS\ndevice using different configuration files per environment.\n\nTo run behave web tests in an Android device:\n\n.. code:: console\n\n    $ behave web_behave/features/login.feature -D TOOLIUM_CONFIG_ENVIRONMENT=android\n\nTo run behave web tests in an iOS device:\n\n.. code:: console\n\n    $ behave web_behave/features/login.feature -D TOOLIUM_CONFIG_ENVIRONMENT=ios\n\n**/android_nose2**\n\nTo run Android tests with nose2:\n\n.. code:: console\n\n    $ python -m nose2 android_nose2\n\n**/ios_nose2**\n\nTo run iOS tests with nose2:\n\n.. code:: console\n\n    $ python -m nose2 ios_nose2\n\nContributing\n------------\n\nIf you want to collaborate in Toolium-examples development, feel free of `forking it \u003chttps://github.com/Telefonica/toolium-examples\u003e`_\nand asking for a pull request.\n\nFinally, before accepting your contribution, we need you to sign our\n`Contributor License Agreement \u003chttps://raw.githubusercontent.com/telefonicaid/Licensing/master/ContributionPolicy.txt\u003e`_\nand send it to ruben.gonzalezalonso@telefonica.com.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelefonica%2Ftoolium-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelefonica%2Ftoolium-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelefonica%2Ftoolium-examples/lists"}