Micro-service automatic testing method based on Redis database
An automated testing and database technology, applied in electrical digital data processing, software testing/debugging, error detection/correction, etc., can solve problems such as inflexible baffle programs, separate deployment of baffle programs, and inability to return specific responses, etc. The effect of saving development time and deployment cost, flexible use of scenarios, and convenient writing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0023] Such as figure 1 Shown the present invention is based on the microservice automatic testing method of Redis database, comprises:
[0024] A. Set the Mock annotation for the AOP method (aspect-oriented programming, extension of OOP) that needs to be called by the remote service. The Mock annotation class includes the parameter key used to obtain the data in the Redis database, and the corresponding AOP method The remote service name is service, and the remote service name service is used to mark whether the AOP method is allowed to be tested by Mock; the main code is:
[0025]
[0026]
[0027] B. Set the Remote annotation class associated with the class signature to mark the method that contains the remote call in this class; the main code is:
[0028] 1. @Target(ElementType. TYPE)
[0029] 2. @Retention(RetentionPolicy. RUNTIME)
[0030] 3. @Documented
[0031] 4. public@interface Remote{
[0032] 5.}
[0033] C. Switch configuration for Mock test:
[0034]...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com