Skip to content

E2E registration form test. Robot framework, Playwright, RESTinstance, 1secmail

Notifications You must be signed in to change notification settings

rybalkin-an/robotframework-browser.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot Framework Browser Automation


Run with Docker

  1. Make sure that Docker is up and running

  2. Build the Docker Image

docker build -t robot-framework-browser .
  1. Run the Container
docker run -e ENVIRONMENT=production -v ${PWD}/results:/usr/src/app/results -v ${PWD}/tests:/usr/src/app/tests -v ${PWD}/resources:/usr/src/app/resources robot-framework-browser
  1. Test report can be find in /results directory

Run without Docker

Prerequisites

  1. Installed NodeJS v20.15.1 https://nodejs.org/en/download/package-manager
  2. Installed Python 3.11.5 https://www.python.org/downloads/

1. Update pip

Ensure you have the latest version of pip installed:

python.exe -m pip install --upgrade pip

2. Create a Virtual Environment

Create a virtual environment to manage your project's dependencies:

python -m venv env

3. Activate the Virtual Environment

  • Windows:
 .\env\Scripts\activate
  • macOS/Linux:
source env/bin/activate 

4. Install Dependencies

Install the required dependencies using the provided requirements.txt file:

pip install -r requirements.txt

5. Run the Test Suite

Initialize the Browser environment and run the tests:

  • Initialize the Browser Environment:
rfbrowser init

NOTE: Running Tests with ENVIRONMENT Variable

Before running your tests, ensure you have set the ENVIRONMENT variable to either 'production', 'staging', or 'test'. This variable determines which URL will be used in your test scenarios. If no ENVIRONMENT variable is then, then test suite will run 'production'

  • Run Tests:
robot --outputdir .\results --pythonpath .\ --loglevel TRACE tests

Project Description

This project leverages the Robot Framework with the Browser library for automated web testing, specifically focusing on testing a login form. The project includes the following key steps:

  1. Create a New Account Using a Random Email Address:

    • A random email address is generated using the 1secmail service via API
    • For the API calls RESTinstance library is used
  2. Fill registration form:

  3. Send registration form

  4. Get a Confirmation Email:

    • The system retrieves the confirmation email sent to the generated random email address
  5. Click the Verifying Email Link:

    • The confirmation email contains a verification link
    • The system extracts and clicks this link to verify the email address
  6. Set Up Password:

    • After verifying the email, the system prompts the user to set up a password
  7. Login:

    • Using the verified email and the newly set password
  8. Verify That the User is Logged In:

    • After logging in, the system verifies that the user is successfully logged in by checking for certain elements or user information on the profile page

About

E2E registration form test. Robot framework, Playwright, RESTinstance, 1secmail

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published