Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dl-2k/api-restsharp
https://github.com/dl-2k/api-restsharp
extent-report fluentassertions restsharp
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dl-2k/api-restsharp
- Owner: dl-2k
- Created: 2024-07-12T06:31:56.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T15:36:18.000Z (6 months ago)
- Last Synced: 2024-11-05T15:07:15.359Z (2 months ago)
- Topics: extent-report, fluentassertions, restsharp
- Language: C#
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automation Test API Project for DemoQA
## Overview
An automation test project for https://demoqa.com web, built on .NET 8 (C# is the main programming language), NUnit 3.## Solution Structure
There are 3 projects in this solution:
1. **Core**: Contains essential components for working with APIs and reading configuration files.
2. **DemoQA.Service**: Provides functionalities for API interactions.
3. **DemoQA.Test**: Tests are written here , dependent on Core and Services## Dependency Packages
| Package | Description | Link |
|-----------------|-------------------------------------------|------------------------------------------|
| ExtentReports | | [https://extentreports.com/]
| FluentAssert | | [https://fluentassertions.com/]## Development Tools
The project is set up using Visual Studio 2022, which is recommended as the main IDE. Alternatively, you can use Visual Studio Code, but you'll need to install the .NET 5 SDK and relevant C# extensions for effective project management and execution.
## Configuration Files
- The `appsetting.json` file is the main config file of this project, it allows you to configure the application URL.
## Running Tests
Before running the test, you must log into https://demoqa.com/books to create new user and get the username, password, userId. Then, paste it into the file of folder `TestData/Users/user_info.json`## How to Run Tests
1. **Visual Studio 2022**:
- Use Test Explorer to select tests to run.
2. **Visual Code**:
- Install the .NET Core Test Explorer extension and then select tests to run.
3. **Command Lines**:
- Restore all dependency packages: `dotnet restore`
- Build project: `dotnet build`
- Run tests: `dotnet test`