Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Worry about interface problems, automated testing-scheduled tasks to protect the business

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

introduction

Without API monitoring, you won't be able to tell exactly if the API is working properly. eoLinker AMS supports setting up timed tasks to monitor the use cases in automated tests, so that projects can be tested unattended and the results sent to the mailbox.

keyword

Interface monitoring, timed tasks, automated testing

Applications typically have a series of API requests, known as API transactions. This chain of requests is a whole, and if one API request is unavailable, the whole API will be unavailable. In order to ensure the stable operation of online services, in addition to resource class monitoring of online critical services, it is also very important to monitor the corresponding interfaces between services.

Timed tasks regularly test APIs from a complete business perspective. For example, liking football is a key business of our team. If you can't get a list of players, users can't like it. The team stipulates that the test case should be run once a day at the time of commuting. After having the timed task, I don't need to enter the page to test manually every day. I can set the timed task rules.

1. First, add tasks to the timed test tasks in the automatic test secondary menu. Before adding tasks, you need to add grouping, modular test tasks.

2. Set up a timed task cycle type (permanent, only once). This function is a key business and needs to be tested every day after it goes online, so I chose permanent. The company asked me to test every day, so I checked all the days and set the time to my commute.

3. Select the newly created business case in the automated test, and you can add more than one.

4. Although the API in the use case has verification rules, in order to ensure the normal operation of the interface, I will still set the notification type (failure report only, success report only, all notifications) to send all notifications regardless of whether the result is successful or not, and continue to enter the mailbox to get the report.

After setting the rules, eoLinker will execute the use case according to the rules and send the periodic report to the mailbox. Now all I do every day is check the reports sent, and if I find any errors, submit the report to the development department. Even if you accidentally delete the report, you can select Download from the use case list.

Troubleshooting problems such as interface exceptions is often more time-consuming and laborious than service exceptions. Detailed request information and return information in the report enable developers to quickly locate the wrong interface in the business and then find the cause.

For more updates, please go to eoLinker Weixin Official Accounts. This article is transferred from eoLinker Official Accounts.

Official website: www.eolinker.com

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report