{"id":18607315,"url":"https://github.com/addono/webdemo","last_synced_at":"2026-01-24T15:35:20.021Z","repository":{"id":82277202,"uuid":"266365346","full_name":"Addono/WebDemo","owner":"Addono","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-03T21:19:28.000Z","size":250,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T14:33:20.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"RobotFramework","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Addono.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-23T15:33:00.000Z","updated_at":"2020-10-22T12:07:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5a1fd35-0a7e-4d5b-a4a2-cb9954c47285","html_url":"https://github.com/Addono/WebDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Addono/WebDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2FWebDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2FWebDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2FWebDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2FWebDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Addono","download_url":"https://codeload.github.com/Addono/WebDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2FWebDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T02:28:58.135Z","updated_at":"2026-01-24T15:35:20.003Z","avatar_url":"https://github.com/Addono.png","language":"RobotFramework","readme":"====================================================\nWeb testing with Robot Framework and SeleniumLibrary\n====================================================\n\n`Robot Framework`_ is a generic open source test automation framework and\nSeleniumLibrary_ is one of the many test libraries that can be used with\nit. In addition to showing how they can be used together for web testing,\nthis demo introduces the basic Robot Framework test data syntax, how tests\nare executed, and how logs and reports look like.\n\n.. contents:: **Contents:**\n   :depth: 1\n   :local:\n\nDownloading demo package\n========================\n\nTo get the demo, you can either `download`_ the repository from GitHub or checkout\nthe `source code`_ directly. As a result you get ``WebDemo`` directory with\n``demoapp`` and ``login_tests`` sub directories.\n\nExample `test cases`_ and `generated results`_ are available also online.\nThere is thus no need to download the demo if you are not interested in\n`running it`__ yourself.\n\n__ `running demo`_\n\nDemo application\n================\n\nThe demo application is a very simple login page shown below. With\nuser name ``demo`` and password ``mode`` you get into a welcome page, and\notherwise you end up to an error page. How to start and stop the\napplication yourself is explained in the `Starting demo application`_\nsection.\n\n.. figure:: demoapp.png\n\nTest cases\n==========\n\nTest case files as well as a resource file used by them are located in\nthe ``login_test`` directory. Click file names below to see the latest versions\nonline.\n\n`valid_login.robot`_\n    A test suite with a single test for valid login.\n\n    This test has a workflow that is created using keywords in\n    the imported resource file.\n\n`invalid_login.robot`_\n    A test suite containing tests related to invalid login.\n\n    These tests are data-driven by their nature. They use a single\n    keyword, specified with the ``Test Template`` setting, that is called\n    with different arguments to cover different scenarios.\n\n    This suite also demonstrates using setups and teardowns in\n    different levels.\n\n`gherkin_login.robot`_\n    A test suite with a single Gherkin style test.\n\n    This test is functionally identical to the example in the\n    `valid_login.robot`_ file.\n\n`resource.robot`_\n    A resource file with reusable keywords and variables.\n\n    The system specific keywords created here form our own\n    domain specific language. They utilize keywords provided\n    by the imported SeleniumLibrary_.\n\nSee `Robot Framework User Guide`_ for more details about the test data syntax.\n\nGenerated results\n=================\n\nAfter `running tests`_ you will get report and log in HTML format. Example\nfiles are also visible online in case you are not interested in running\nthe demo yourself:\n\n- `report.html`_\n- `log.html`_\n\nRunning demo\n============\n\nPreconditions\n-------------\n\nA precondition for running the tests is having `Robot Framework`_ and\nSeleniumLibrary_ installed, and they in turn require\nPython_. Robot Framework `installation instructions`__ cover both\nRobot and Python installations, and SeleniumLibrary has its own\n`installation instructions`__.\n\nIn practice it is easiest to install Robot Framework and\nSeleniumLibrary along with its dependencies using `pip`_ package\nmanager. Once you have pip installed, all you need to do is running\nthese commands::\n\n    pip install -r requirements.txt\n\n__ https://github.com/robotframework/robotframework/blob/master/INSTALL.rst\n__ https://github.com/robotframework/SeleniumLibrary#installation\n\nStarting demo application\n-------------------------\n\nRunning tests requires the `demo application`_ located under ``demoapp``\ndirectory to be running.  It can be started either by double clicking\n``demoapp/server.py`` file in a file manager or by executing it from the\ncommand line::\n\n    python demoapp/server.py\n\nAfter the demo application is started, it is be available in URL\nhttp://localhost:7272. You can test it manually, valid credentials are\n``demo/mode``, and it needs to be running while executing the automated\ntests.\n\nIf the application was started by double-clicking ``demoapp/server.py``\nfile, it can be shut down by closing the opened window. If it was\nexecuted from the command line, using ``Ctrl-C`` is enough.\n\nRunning tests\n-------------\n\nThe `test cases`_ are located in the ``login_tests`` directory. They can be\nexecuted using the ``robot`` command::\n\n    robot login_tests\n\n.. note:: If you are using Robot Framework 2.9 or earlier, you need to\n          use the ``pybot`` command instead.\n\nYou can also run an individual test case file and use various command line\noptions supported by Robot Framework::\n\n    robot login_tests/valid_login.robot\n    robot --test InvalidUserName --loglevel DEBUG login_tests\n\nRun ``robot --help`` for more information about the command line usage and see\n`Robot Framework User Guide`_ for more details about test execution in general.\n\nUsing different browsers\n------------------------\n\nThe browser that is used is controlled by ``${BROWSER}`` variable defined in\n`resource.robot`_ resource file. Firefox browser is used by default, but that\ncan be easily overridden from the command line::\n\n    robot --variable BROWSER:Chrome login_tests\n    robot --variable BROWSER:IE login_tests\n\nConsult SeleniumLibrary_ documentation about supported browsers.\n\n.. _Robot Framework: http://robotframework.org\n.. _SeleniumLibrary: https://github.com/robotframework/SeleniumLibrary\n.. _Python: http://python.org\n.. _pip: http://pip-installer.org\n.. _download: https://github.com/robotframework/WebDemo/archive/master.zip\n.. _source code: https://github.com/robotframework/WebDemo.git\n.. _valid_login.robot: https://github.com/robotframework/WebDemo/blob/master/login_tests/valid_login.robot\n.. _invalid_login.robot: https://github.com/robotframework/WebDemo/blob/master/login_tests/invalid_login.robot\n.. _gherkin_login.robot: https://github.com/robotframework/WebDemo/blob/master/login_tests/gherkin_login.robot\n.. _resource.robot: https://github.com/robotframework/WebDemo/blob/master/login_tests/resource.robot\n.. _report.html: http://robotframework.org/WebDemo/report.html\n.. _log.html: http://robotframework.org/WebDemo/log.html\n.. _Robot Framework User Guide: http://robotframework.org/robotframework/#user-guide\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddono%2Fwebdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddono%2Fwebdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddono%2Fwebdemo/lists"}