Skip to content

Commit ef51d7d

Browse files
2 parents 6cb5533 + be385af commit ef51d7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documents/FunctionalTests.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ In addition to writing test cases, creating helper classes can significantly str
2020
### [ApiRoutes](../Source/Tests/CleanArchitecture.FunctionalTests/Common/ApiRoutes.cs)
2121
This class defines the API endpoints used in the application under test. By centralizing endpoint definitions in one location, ApiRoutes promotes consistency and ease of maintenance in test code. For example, the AddQueryString method simplifies the process of adding query parameters to API requests.
2222

23-
### [AuthenticationExtensionMethods](../Source/Tests/CleanArchitecture.FunctionalTests/Common/AuthenticationExtensionMethods.cs)
23+
### [AuthenticationExtensions](../Source/Tests/CleanArchitecture.FunctionalTests/Common/AuthenticationExtensions.cs)
2424
This class contains extension methods for the HttpClient class to facilitate authentication-related tasks in Functional Tests. The GetGhostAccount method, for instance, retrieves a ghost account for testing purposes, allowing testers to simulate user authentication without relying on real user credentials.
2525

26-
### [RandomDataExtensionMethods](../Source/Tests/CleanArchitecture.FunctionalTests/Common/RandomDataExtensionMethods.cs)
26+
### [RandomDataExtensions](../Source/Tests/CleanArchitecture.FunctionalTests/Common/RandomDataExtensions.cs)
2727
This class provides methods for generating random test data, such as random strings and numbers. These methods are invaluable for creating diverse test scenarios and covering edge cases in Functional Tests.
2828

29-
### [HttpClientGetExtensionMethods](../Source/Tests/CleanArchitecture.FunctionalTests/Common/HttpClientGetExtensionMethods.cs)
29+
### [HttpClientExtensions](../Source/Tests/CleanArchitecture.FunctionalTests/Common/HttpClientExtensions.cs)
3030
This class enhances the HttpClient class by providing additional methods to simplify common HTTP operations used in Functional Tests. It includes methods for sending HTTP GET, POST, PUT, and DELETE requests and automatically deserializing JSON responses into specified types. By abstracting common tasks such as setting headers and serializing request bodies, it reduces repetitive code and improves the readability and maintainability of test cases.
3131

3232
- GetAndDeserializeAsync: Sends an HTTP GET request to the specified URI, optionally including an authorization token, and deserializes the JSON response into a specified type.
@@ -44,7 +44,7 @@ By leveraging these helper classes, testers can write more efficient and maintai
4444

4545
Functional Tests are a critical component of ensuring software quality and reliability. By validating the overall behavior and functionality of the system from a user’s perspective, these tests help identify issues that may not be apparent through unit or integration testing alone.
4646

47-
The helper classes we've discussed, such as ApiRoutes, AuthenticationExtensionMethods, CustomWebApplicationFactory, RandomDataExtensionMethods, and HttpClientGetExtensionMethods, play a vital role in streamlining the process of writing and executing Functional Tests. They reduce boilerplate code, enhance readability, and ensure consistency across test cases, making the testing process more efficient and maintainable.
47+
The helper classes we've discussed, such as ApiRoutes, AuthenticationExtensions, CustomWebApplicationFactory, RandomDataExtensions, and HttpClientExtensions, play a vital role in streamlining the process of writing and executing Functional Tests. They reduce boilerplate code, enhance readability, and ensure consistency across test cases, making the testing process more efficient and maintainable.
4848

4949
By incorporating these practices into your testing strategy, you can achieve more comprehensive test coverage, faster feedback loops, and ultimately deliver higher-quality software. As you continue to develop and refine your Functional Tests, these tools and techniques will help you maintain a robust and reliable testing framework that can adapt to the evolving needs of your application.
5050

0 commit comments

Comments
 (0)