This project is an Web and API REST test automation with Robot Framework.
Web: Automation Practice
API: FakeRESTApi
Automação de Testes com Robot Framework - Básico
-
Enables easy-to-use tabular syntax for creating test cases in a uniform way
-
Provides ability to create reusable higher-level keywords from the existing keywords
-
Is platform and application independent
-
Provides a simple library API for creating customized test libraries which can be implemented natively with either Python or Java
-
Provides easy-to-read result reports and logs in HTML format
-
Supports creating data-driven test cases
Reference: Robot Framework User Guide
- Mark the option “Add Python 3.x to PATH” on Python installer (.exe file)
- Verify if it was installed:
python --version
pip install robotframework
- Verify if it was installed:
robot --version
orpip show robotframework
- Install SeleniumLibrary:
pip install --upgrade robotframework-seleniumlibrary
- Install HTTP RequestsLibrary:
pip install --upgrade robotframework-requests
- Install Faker:
pip install --upgrade robotframework-faker
- Check the list of installed libraries:
pip list
Download and extract the executable files of correspondent Operational System:
- Firefox (select the latest version): https://github.com/mozilla/geckodriver/releases
- Chrome (select the version according to chrome browser's version): https://chromedriver.chromium.org/downloads
- Robot Framework Intellisense by Tomi Turtiainen supports Robot Framework development
- Robot Framework Language Server by Robocorp useful for document formatter and variable, language and keyword autocomplete, and other resources
Run all tests:
robot Tests
Set report directory:
robot -d .\Results Tests
Run specific file:
robot .\Tests\<file_name.robot>
Example: robot .\Tests\TestCasesAPIBooks-EN.robot
Run specific test case:
robot -t <"test_case_name"> Tests
Example: robot -t "Register a new book(POST)" Tests