Huawei Cloud releases CodeArts APIMock service, precise mocking, and zero wait for parallel development!

This article is shared from Huawei Cloud Community " Huawei Cloud releases CodeArts APIMock service, precise mocking, and zero wait for parallel development!" ", author: Huawei Cloud Toutiao.

On October 10, 2023, Huawei Cloud officially released the CodeArts APIMock service. This is a simulation tool that simulates API responses. It can generate the API response data required by developers and help developers and testers quickly carry out the software development process. Debugging and verification enable parallel front-end and back-end development and efficient collaboration.

With the rise of microservice systems and distributed architectures, software systems are becoming more and more complex, and there are often heavy dependencies on upstream and downstream in the service development process. For example:

  • When the delivery rhythm of a dependent service is delayed, it will trigger a chain reaction of multiple service delays;
  • When a dependent service encounters multiple stability crises, it will result in development and testing being unable to accurately delimit and locate problems, which will greatly affect R&D efficiency;
  • In addition, in test scenarios where real services cannot flexibly construct abnormal data or delay response, the completeness of test coverage will also be restricted, causing serious risks to software quality.

Huawei Cloud CodeArts APIMock has the ability to automatically generate Mock rules with one click, supports complex scenario testing, and provides built-in functions for data simulation. It aims to solve problems such as dependent services not being online, instability, abnormal scenarios being difficult to simulate, and complex data resources being difficult to construct. Achieve full decoupling in the service API development process, support the rapid delivery and continuous evolution of features, and help increase API development efficiency by more than 30% .

This time, Huawei Cloud CodeArts APIMock has released three major features to help teams successfully break through the barriers of complex scenario testing and lay a quality foundation for rapid product construction and release:

Feature 1: Zero configuration, one-click generation of Mock rules

Huawei Cloud CodeArts APIMock service can simulate REST APIs for contract testing. Developers only need to follow the OpenAPI specification to write API documents and define response data structures to generate Mock rules with one click and quickly interact with simulated remote services.

Huawei Cloud CodeArts APIMock service can complete the response body content simulation of 100 interfaces in one minute , making Mock rule generation more efficient and convenient.

Picture 1.png

Feature 2: Multi-response Mock to meet complex logic application scenarios

After long-term practice in Huawei's internal business, Huawei Cloud CodeArts APIMock service can provide 16 kinds of parameter comparators and complex expressions, provide a highly flexible rule parsing engine, and achieve multiple responses through precise matching and fuzzy matching logic of complex rules to meet complex needs. Testing requirements for business scenarios and abnormal scenarios.

Picture 2.png

Feature 3: Rich built-in functions, dynamically and accurately generated in response to data

Huawei Cloud CodeArts APIMock service provides more than 40 built-in functions based on the industry-wide MockJS syntax, supporting dynamic response data rendering technologies such as random number generation, delayed simulation, and string processing to meet diverse data simulation needs. .

Picture 3.png

Benefiting from the above features, Huawei Cloud CodeArts APIMock supports the business delivery of Huawei's 20+ products. Huawei's internal N team has successfully built a simulation test environment with the help of the APIMock service to assist in the construction of five hierarchical continuous delivery pipeline protection networks.

At the same time, Huawei Cloud CodeArts APIMock supports the rapid continuous delivery of business products and automated test and construction capabilities in microservice mode. It can quickly build 8 Mock instances and more than 60 simulation interfaces, achieving more than 100,000 Mock instance calls in a single month. Automation The efficiency is increased by 2 times, while the investment in material resources is reduced, saving nearly 10 million yuan in costs.

In the future, Huawei Cloud CodeArts APIMock will continue to innovate, provide APIMock tools with stronger functions and better experience, continue to provide developers with high-quality services, and achieve excellent R&D efficiency and team collaboration.

Click to follow and learn about Huawei Cloud’s new technologies as soon as possible~

Qt 6.6 is officially released. The pop-up window on the lottery page of Gome App insults its founder . Ubuntu 23.10 is officially released. You might as well take advantage of Friday to upgrade! RISC-V: not controlled by any single company or country. Ubuntu 23.10 release episode: ISO image was urgently "recalled" due to containing hate speech. Russian companies produce computers and servers based on Loongson processors. ChromeOS is a Linux distribution using Google Desktop Environment 23-year - old PhD student fixes 22-year-old "ghost bug" in Firefox TiDB 7.4 released: officially compatible with MySQL 8.0 Microsoft launches Windows Terminal Canary version
{{o.name}}
{{m.name}}

Guess you like

Origin my.oschina.net/u/4526289/blog/10118009