Use Case of FEA515
- Author: Jiahui Pan
- Date / Version: 19/02/2024
User roles
- Developer: Responsible for implementing automated tests for both frontend and backend code.
- Tester: Responsible for implementing Robot Framework and browser libraries for testing.
Prerequisites / Conditions
- The web application source code must be accessible.
- Testing environments for both frontend and backend must be set up.
Use Case Diagram
Description of use case -eg. Modify existing request
- The developer accesses the source code of the frontend and backend components.
- They identify the critical functionalities and components to be tested.
- The developer writes automated test scripts using appropriate testing frameworks such as Jest for frontend (e.g., React, Angular) and Mocha for backend (e.g., Node.js).
- The tests cover various scenarios, including positive and negative cases, edge cases, and integration tests.
- The developer ensures that the automated tests are integrated into the CI/CD pipeline for continuous testing.
- Continuous monitoring and maintenance of the test suite are performed to adapt to changes in the application.
Exceptions
-
E1: Inability to access the source code or testing environments.
-
E2: Framework compatibility issues or limitations in writing automated tests.
Result
- The expected result is a comprehensive suite of automated tests covering both frontend and backend components, integrated into the CI/CD pipeline for continuous testing and deployment.
Use frequency
- This use case is executed regularly throughout the development lifecycle, especially during feature development and regression testing phases.
Additional information
- It's essential to document the test cases, including their purpose, input data, expected outcomes, and actual results, for future reference and troubleshooting.
- Collaboration between developers and testers is crucial to ensure effective test coverage and identify potential areas for improvement in the testing process.
Sources
This wiki-document is based on the The public administration recommendations
Thans to the original authors.