An open API service indexing awesome lists of open source software.

https://github.com/galapoto/robot-framework-projects

Robot Framework automation projects: API testing and SauceDemo UI testing
https://github.com/galapoto/robot-framework-projects

api-testing robotframework saucedemo selenium test-automation ui-testing

Last synced: 3 months ago
JSON representation

Robot Framework automation projects: API testing and SauceDemo UI testing

Awesome Lists containing this project

README

          

<<<<<<< HEAD
# Robot-framework-projects

## Project Screenshot

![Test Results Screenshot](path/to/your/screenshot.png)
=======
# Form Validation Project

This Robot Framework project automates the validation of web form inputs using SeleniumLibrary. It tests common front-end validations such as required fields, invalid data formats, and successful form submission.

## โœ… Test Site Used

**URL**: [https://practice.expandtesting.com/form-validation](https://practice.expandtesting.com/form-validation)

## ๐Ÿ“‚ Folder Structure

form-validation-project/
โ”œโ”€โ”€ resources/
โ”‚ โ””โ”€โ”€ expanded/
โ”‚ โ”œโ”€โ”€ keywords.robot
โ”‚ โ””โ”€โ”€ variables.robot
โ”œโ”€โ”€ tests/
โ”‚ โ””โ”€โ”€ test_expanded_validation.robot
โ”œโ”€โ”€ output.xml
โ”œโ”€โ”€ report.html
โ”œโ”€โ”€ log.html
โ””โ”€โ”€ README.md

## ๐Ÿงช Test Suite: `test_expanded_validation.robot`

This suite includes 3 test cases:

1. **Submit Empty Form Should Trigger Validation**
Asserts that submitting an empty form triggers validation messages.

2. **Submit Form With Invalid Contact Number Should Fail**
Asserts that entering an invalid phone number shows appropriate errors.

3. **Submit Form With Valid Data Should Succeed**
Fills out all required fields correctly and asserts successful submission.

## ๐Ÿ”ง Dependencies

Make sure you have these installed inside your virtual environment:

```bash
pip install robotframework
pip install robotframework-seleniumlibrary

You must also have ChromeDriver installed and available in your PATH.

๐Ÿš€ Run the Tests

robot tests/test_expanded_validation.robot

๐Ÿ“ธ Screenshot on Failure (Optional)
You can enable screenshot capture by adding this to the test suite:

Suite Teardown Run Keyword If Test Failed Capture Page Screenshot

๐Ÿ“Œ Author
Created by Vitus Idi as part of a QA Automation Portfolio.
>>>>>>> 97a0b04 (Add form validation project with expanded validation tests)