Software quality is good or bad, not only to see whether the system meets the customer's functional requirements, but also to see whether it meets the customer's non-functional requirements, system non-functional use of quality attributes to describe. In the software architecture design, the related system quality attributes are usability, modifiable, performance, security, testability and ease of use, so the hospital information management system based on YII should satisfy usability, modification, performance, security, testability and ease of use. The following six mass attributes are passed to analyze the quality properties of the system through a scene.
1. Usability Analysis:
Availability refers to the percentage of time that the system can function properly. It is commonly used to indicate the length of time between two failures, or the system can return to normal speed in the event of a failure.
Scene section |
value |
Stimulation source |
System external |
Stimulus |
User accesses a page that does not exist |
Products |
Hospital Information System |
Environment |
Normal |
Response |
System detects routing, prompting user page does not exist |
Response quality |
Response time 0.8s |
Implementation method: In order to ensure the availability of the system, improve the processing speed of the system, build a CentOS server cluster, which Apache do Web server, Nginx do reverse proxy and load balancing, and set up a cache server, improve the system processing speed and user access speed.
2. Modifiable Analysis:
Modifiable is the ability to quickly change the system at a high price/performance ratio. Typically, some specific changes are used as a benchmark. The modification is measured by examining the cost of these changes. This includes maintainability, scalability, structural reorganization, and portability.
Scene section |
value |
Stimulation source |
Developer |
Stimulus |
Modify the user interface of the system |
Products |
Series User interface |
Environment |
Build at td> |
Response |
Find modified locations, modifications do not affect their business logic and other function modules |
Response quality |
does not affect other Interface for functional modules and corresponding business logic |
Implementation method: For the implementation of modifying the user interface of the system without affecting the interface of other functional modules, the system adopts MVC design idea, model is responsible for business logic and data collection, view is responsible for user interface rendering, controller receives user request dispatch model and view. This modifies the user interface by simply modifying the view layer without any impact on the business logic and the data display.
3. Performance Analysis:
Performance refers to the responsiveness of the system, that is, how long it takes to respond to an event. or the number of events the system can handle in a certain period of time. Performance is often expressed quantitatively by the number of transactions processed per unit of time or the time it takes the system to complete a transaction.
Scene section |
value |
Stimulation source |
User |
Stimulus |
Department management |
Products |
Hospital information Management system |
Environment |
Normal mode |
Response |
Show Department list |
Response quality |
Wait time is 0.5s |
Realization means: In order to realize the high performance of the system, adopt the class that the framework provides to interact with the database, use QueryBuilder to establish SQL statement to interact with the database, build MySQL database cluster, improve the speed of accessing the database, which can greatly speed up the processing speed of the system. Improve system performance.
4. Security analysis;
Security refers to the ability of a system to prevent unauthorized users from attempting to use or deny services while providing services to legitimate users. Security is categorized according to the type of security threat the system may be exposed to. Security can also be classified as confidentiality, integrity, non-repudiation and controllability and other characteristics. Confidentiality ensures that information is not disclosed to unauthorized users, entities or processes, that integrity guarantees the integrity and accuracy of information, prevents unauthorized alteration of information, and that controllability guarantees the ability to control the dissemination and content of information and to prevent it from being used by illegal persons.
Scene section |
value |
Stimulation source |
Illegal user |
Stimulus |
Access user home |
Products |
Hospital information Management system |
Environment |
Normal mode |
response |
System detects illegal users and redirects directly to the login interface |
Response quality |
Redirect within 0.2s |
Implementation method: In order to prevent illegal users to directly access the System home page, using the framework itself provides authorization authentication, when the illegal user accesses the System home page, the user identity is detected, the illegal user directly redirected to the login interface, forcing illegal users to enter legitimate user identity information.
5. Testability Analysis:
Testability refers to the ability of software to fail and isolate, locate its faults, and to conduct test design and test execution capability at a certain time and cost. Usually, the software with good testability is bound to be a strong cohesive, weak coupling, clear interface, obvious intention of the software, and not testability software is often a strong coupling and chaotic logic.
Scene section |
value |
Stimulation source |
Testers |
Stimulus |
Do not enter a user name when adding a user |
Products |
< p> Hospital Information Management system |
Environment |
Deployment |
response |
System Prompt user name cannot be empty td> |
Response quality |
time within 0.2s |
Implementation method: In order to ensure the testability of the system, the system to the client and server side of the data are verified, the client uses JavaScript to verify the validity of the user input data, and the service side also on the user submitted data validation, and then prompt the user wrong input information, Ensure the testability of the system.
6. Ease of Use analysis:
Ease of use is a measure of how easy it is for a user to accomplish a specified task with a single software. The user's sense of ease of use, quality, efficiency, and effectiveness is a concentrated manifestation of the adaptability, functionality and effectiveness of the interaction.
Scene section |
value |
Stimulation source |
End user |
Stimulus |
Login to System home |
Products |
Hospital letter Management system |
Environment |
System Runtime /td> |
response |
Feedback user Good interactive interface |
Response quality |
User operation success ratio at 90% + |
Implementation method: In order to ensure the ease of use of the system, user interface is friendly, navigation at a glance, in the user and system interaction, provide good operation tips, user operation failure, feedback good error prompt, remind users to do the correct operation. This will not only improve the ease of use of the system, but also greatly improve user satisfaction.
Quality attribute of hospital information management system based on YII2