In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what are the knowledge points of micro-service testing". In the daily operation, I believe that many people have doubts about the knowledge points of micro-service testing. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the questions about "what are the knowledge points of micro-service testing?" Next, please follow the editor to study!
Features of microservices:
The business is divided into independent systems, which can be released and deployed separately.
Suitable for horizontal expansion, but also mature supporting service governance
The complexity of the system increases, and an end-to-end service may call more than a dozen or even dozens of systems. Debugging and testing include the increase of environmental complexity and the difficulty of Debug problems.
Well, compared with traditional industries, testing activities need to make some adjustments, and you may face
Quickly create a stable test environment (ensure the connectivity of all services, and the data of all databases are up-to-date production lines. For use scenarios, you can distinguish between single components, several components, or several modes of the integrated environment. Different environments may have different configurations for the system. )
Identification of test strategy: which requirements can be completed by a single component, which requirements need to be tuned before the components, and which require end-to-end testing
In the case of single-component testing, you need to MOCK the upstream and downstream systems. This kind of MOCK is divided into logical MOCK (simple simulation of the system logic) and illogical MOCK (only a bezel for response). Some may be JAVA RPC program calls, some are simple HTTP application calls, and need to be prepared before testing begins.
Considerations for non-functional testing of systems under microservices:
Connectivity
Data consistency (guarantee of distributed transactions or data consistency between businesses, such as when goods are paid, you have to add points to people)
Service fault tolerance (whether a service is degraded when it is not available)
Service invocation performance (whether there will be a timeout due to slow processing by a system)
There are also some uncertain problems (some problems discovered by accumulation based on the technology used
At present, both traditional All In One and micro-services need to have the regression of automated testing, and we all know that automated testing is also layered, but I don't think there are many good and stable ones, and we only do the main process testing of interface-driven business (there is no professional automation team, everyone needs to participate in automation, do what is most valuable to the team, and ensure the main business functions of the system)
Unit testing (it's best to do more, but there aren't many companies, or not many).
API testing (this is mainly about business drivers)
Contract testing (just to ensure that the interface and correspondence are agreed upon before, contract testing is one method, but it doesn't have to be done, the guarantee method can be other)
Integration testing (if possible, just make a few smoky use cases, after all, the stability of complex automation in the environment may not be high after integration)
UI test (I don't recommend doing this all the time, please feel free, I mean WEB non-APP)
At this point, the study of "what are the knowledge points of micro-service testing" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.