This repository contains a series of test projects designed to practice and demonstrate skills in back-end test automation. The tests are written using RestSharp for API interactions and NUnit for testing framework.
- Idea Center App: This project focuses on automating tests for the "Idea Center" system, a platform where users can submit and discuss innovative ideas.
- Foody App: The "Foody" app project involves automating tests for a food review service API.
- Story Spoil App: The project automates tests for the "Story Spoiler" system, an application that provides users with spoilers for their favorite stories.
- User authentication and authorization
- User data submission and retrieval
- User data edition and deletion
- Error handling and validation
- RestSharp: A simple REST and HTTP API client for .NET.
- NUnit: A unit-testing framework for all .NET languages.
- Tests: Contains the test cases for each system.
- Models: Contains the models representing the API responses and requests.
- Initialize a RestClient with the base URL of the API.
- Authenticate with your credentials, and store the received JWT token.
- Authenticate by sending a request with your credentials.
- Capture the JWT token from the response and store it securely for subsequent requests.
- Configure the RestClient with an Authenticator using the stored JWT token.
- Use the stored JWT token to configure the RestClient's Authenticator.
- This setup ensures that all subsequent requests made by the RestClient are authenticated.
Contributions are welcome! If you have any improvements or bug fixes, feel free to open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, please open an issue in the repository.