@@ -24,7 +24,7 @@ cd challenge-robot-ambev
2424- To facilitate installation, simply run the command ` pip install -r requirements.txt ` , which will install all libraries at once.
2525
2626# Documentations
27- - ** Documentation of the Application ServeRest:**
27+ - ** ServeRest Documentation :**
28281 . [ API ServeRest] ( https://serverest.dev/ )
29292 . [ GitHub ServeRest] ( https://github.com/ServeRest/ServeRest )
3030- ** Robot Documentation:**
@@ -36,30 +36,59 @@ The project structure was developed based on documentation: [Robot Framework - P
3636
3737- ** Folder Structure:**
3838```
39- ├── helpers/ # Helpers needed to run the tests, including fixtures and locators
40- └── fixtures/ # Static data files used during test execution
41- └── signup/ # Signup Fixtures
42- └── alerts.json # JSON file that stores all error messages from the user registration
43- └── locators/ # Locators used to interact with page elements
44- └── locators.py # Python file containing the mapped locators
45- ├── resources/ # Reusable keywords
46- └── common.resource # Common Keywords
47- └── signup.resource # Signup Keywords
48- ├── tests/ # Test Suites
49- └── e2e/ # End-to-end Test Suite
50- └── signup/ # Signup Suite
51- └── invalid_login.robot # Test Suite for Invalid Signup
52- └── login.robot # Test Suite for Valid Signup
53- ├── README.md # Project documentation
54- ├── .gitignore # Files and folders should be ignored by Git
55- ├── requirements.txt # List of dependencies needed to run the project
39+ ├── helpers/ # Helpers needed to run the tests, including fixtures and locators
40+ └── fixtures/ # Static data files used during test execution
41+ └── signup/ # Signup Fixtures
42+ └── alerts.json # JSON file that stores all error messages from the user registration
43+ └── users/ # Users Fixtures
44+ └── response.json # JSON file that stores all response messages returned from the user API
45+ └── locators/ # Locators used to interact with page elements
46+ └── locators.py # Python file containing the mapped locators
47+ ├── resources/ # Reusable keywords
48+ └── api/ # API Keywords
49+ └── users/ # API Users Folder
50+ └── users.resource # API Users Keywords
51+ └── api_common.resource # Common API Keywords
52+ └── e2e/ # E2E Keywords
53+ └── signup/ # Signup Folder
54+ └── signup.resource # Signup Keywords
55+ └── e2e_common.resource # Common E2E Keywords
56+ ├── tests/ # Test Suites
57+ └── api/ # API Test Suite
58+ └── users/ # API Users Suite
59+ └── delete/ # API Users - DELETE Suite
60+ └── delete_invalid_users.robot # Test Suite for Delete User With Invalid Data
61+ └── delete_users.robot # Test Suite for Delete Users
62+ └── get/ # API Users - GET Suite
63+ └── get_invalid_users.robot # Test Suite for Search User With Invalid Data
64+ └── get_users.robot # Test Suite for Search Users
65+ └── post/ # API Users - POST Suite
66+ └── post_invalid_users.robot # Test Suite for Create User With Invalid Data
67+ └── post_users.robot # Test Suite for Create Users
68+ └── put/ # API Users - PUT Suite
69+ └── put_invalid_users.robot # Test Suite for Update User With Invalid Data
70+ └── put_users.robot # Test Suite for Update User
71+ └── e2e/ # End-to-end Test Suite
72+ └── signup/ # Signup Suite
73+ └── invalid_login.robot # Test Suite for Invalid Signup
74+ └── login.robot # Test Suite for Valid Signup
75+ ├── .gitignore # Files and folders should be ignored by Git
76+ ├── README.md # Project documentation
77+ ├── requirements.txt # List of dependencies needed to run the project
5678```
5779
5880# Test Execution Scripts
5981
60- - ** Running E2E Tests:**
82+ - ** Run E2E Tests:**
6183```
62- robot -d ./logs tests/e2e/ # Running all the E2E tests
63- robot -d ./logs tests/e2e/<folder> # Running a specific E2E test folder
64- robot -d ./logs tests/e2e/<folder>/<file>.robot # Running a specific E2E test file
84+ robot -d ./logs tests/e2e/ # Run all the E2E tests
85+ robot -d ./logs tests/e2e/<folder> # Run all the tests of a specific E2E folder
86+ robot -d ./logs tests/e2e/<folder>/<file>.robot # Run a specific E2E test file
87+ ```
88+
89+ - ** Run API Tests:**
90+ ```
91+ robot -d ./logs tests/api/ # Run all the API tests
92+ robot -d ./logs tests/api/<folder> # Run all the tests of a specific API folder
93+ robot -d ./logs tests/api/<folder>/<folder>/<file>.robot # Run a specific API test file
6594```
0 commit comments