healenium / healenium-robot-framework-example

Example of a project using Healenium + Robot Framework
Apache License 2.0
0 stars 1 forks source link

healenium-robot-framework-example

Docker Pulls License

Healenium with Robot-Framework usage example

1. Start Healenium components

2. Configuration RemoteWebDriver

3. Run test

How to start

1. Start Healenium components

Go into healenium folder

cd healenium

Run Healenium with Selenium-Grid:

docker-compose up -d

ATTENTION

Verify the next images are Up and Running

2. Configuration RemoteWebDriver

To run test using Healenium create RemoteWebDriver with URL http://<remote webdriver host>:8085:

*** Variables ***
${TEST_PAGE}      https://elenastepuro.github.io/test_env/index.html
${BROWSER}        Firefox
${PROXY_URL}      http://localhost:8085

*** Keywords ***
Open Remote Chrome Browser
    Open Browser    ${TEST_PAGE}  ${BROWSER}  remote_url=${PROXY_URL}

3. Run test

In practice it is easiest to install Robot Framework and SeleniumLibrary along with its dependencies using pip_ package manager. Once you have pip installed, all you need to do is running these commands:

pip install -r requirements.txt

The test cases_ are located in the healenium_tests directory. They can be executed using the robot command:

robot healenium_tests

Community / Support