CN118282889A - Automatic dial testing method and device and computer equipment - Google Patents

Automatic dial testing method and device and computer equipment Download PDF

Info

Publication number
CN118282889A
CN118282889A CN202410007411.7A CN202410007411A CN118282889A CN 118282889 A CN118282889 A CN 118282889A CN 202410007411 A CN202410007411 A CN 202410007411A CN 118282889 A CN118282889 A CN 118282889A
Authority
CN
China
Prior art keywords
workflow
dial testing
internet
execution result
dial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410007411.7A
Other languages
Chinese (zh)
Inventor
邢畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Life Insurance Co ltd
Original Assignee
China Life Insurance Co ltd
Filing date
Publication date
Application filed by China Life Insurance Co ltd filed Critical China Life Insurance Co ltd
Publication of CN118282889A publication Critical patent/CN118282889A/en
Pending legal-status Critical Current

Links

Abstract

The application relates to an automatic dial testing method, an automatic dial testing device and computer equipment. The method comprises the steps of configuring a dial testing task by taking a workflow as a unit; the workflow comprises interfaces or pages which are related in the running of the system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages; issuing a workflow to an Internet of things box, enabling the Internet of things box to sequentially execute dial testing cases according to interfaces or page time sequences in the workflow, and outputting an execution result of the workflow; and evaluating the usability of the system or the business scene according to the execution result. According to the application, based on the system and the service scene configuration workflow, the Internet of things box is subjected to dial testing by a preset interface or page time sequence, and dial testing service simulating real user experience is provided, so that continuous monitoring is provided for the performance of pages, interfaces and complex service flows, and the service quality of a system is monitored by assisting research, development and operation personnel.

Description

Automatic dial testing method and device and computer equipment
Technical Field
The present application relates to the field of interface testing technologies, and in particular, to an automatic dial testing method, apparatus, and computer device.
Background
The dial testing is a monitoring method for monitoring the availability of the Internet system by using service quality monitoring points distributed in each region to simulate the terminal user to actively perform access test on the application, obtain various performance indexes of the application and realize the monitoring of the availability of the Internet system.
In the current dial testing technology, the monitoring of a single page or address is usually oriented, the monitoring of complex business processes and scenes is not supported, and in order to improve the accuracy and the authenticity of dial testing, a dial testing point network positioned in a plurality of regions is usually required to be constructed, and a cloud service network is required to be erected by using a server.
Disclosure of Invention
Based on this, it is necessary to provide an automatic dial testing method, device and computer equipment capable of supporting complex business processes and scenes in order to solve the above technical problems.
In a first aspect, the present application provides an automated dial testing method, comprising:
configuring a dial testing task by taking a workflow as a unit; the workflow comprises interfaces or pages which are related in the running of the system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages;
Issuing a workflow to an Internet of things box, enabling the Internet of things box to sequentially execute dial testing cases according to interfaces or page time sequences in the workflow, and outputting an execution result of the workflow;
and evaluating the usability of the system or the business scene according to the execution result.
In one embodiment, the workflow includes a runtime interval and a next cycle runtime;
the configuration of the dial testing task by taking the workflow as a unit comprises the following steps:
setting a dial testing task by taking an operation time interval corresponding to a workflow as a period;
The method further comprises the steps of:
And scanning the dial testing task, extracting the running time of the next period corresponding to the workflow, and updating the running time of the next period of the workflow according to the first scanning time and the running time interval if the first scanning time corresponding to the scanning dial testing task is later than the running time of the next period.
In one embodiment, evaluating the availability of a system or business scenario based on the execution results includes:
According to the execution result, acquiring the unavailable times of the dial testing workflow in the system and the total times of the dial testing workflow in the system, and evaluating the availability of the system; or according to the execution result, acquiring the unavailable times of the dial testing workflow in the service scene and the total times of the dial testing workflow in the service scene, and evaluating the usability of the service scene.
In one embodiment, the method further comprises:
The scanning execution result is used for judging whether a dial testing failure condition exists or not according to the execution result in a first preset period before a corresponding second scanning time when the scanning execution result is obtained;
If the dialing test failure condition exists, triggering a first alarm reminding; if the condition of dialing test failure exists and the unrecovered first alarm reminding exists, triggering continuous alarm reminding; if the condition of dialing test failure does not exist and the unrecovered first alarm reminding or unrecovered continuous alarm reminding exists, triggering alarm recovery reminding.
In one embodiment, the second scan time is distributed periodically with a second preset period; the second preset time period is smaller than the first preset time period, so that execution results in at least two second preset time periods are obtained in the second preset time period.
In one embodiment, the method further comprises:
Receiving a registration request of a newly-added box of the Internet of things;
the configuration of the dial testing task by taking the workflow as a unit comprises the following steps:
and configuring a workflow corresponding to the Internet of things box which makes a registration request, and configuring a dial testing task corresponding to the Internet of things box which makes the registration request by taking the workflow as a unit.
In a second aspect, the present application also provides an automated dial testing device, including:
the dispatching management control platform foreground is used for configuring a dial testing task by taking a workflow as a unit; the workflow comprises interfaces or pages which are related in the running of the system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages;
The network module is used for issuing a workflow to the box of the Internet of things, enabling the box of the Internet of things to sequentially execute dial testing cases according to interfaces or page time sequences in the workflow, and outputting an execution result of the workflow;
And the scheduling management control platform background is used for evaluating the availability of the system or the service scene according to the execution result.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
configuring a dial testing task by taking a workflow as a unit; the workflow comprises interfaces or pages which are related in the running of the system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages;
Issuing a workflow to an Internet of things box, enabling the Internet of things box to sequentially execute dial testing cases according to interfaces or page time sequences in the workflow, and outputting an execution result of the workflow;
and evaluating the usability of the system or the business scene according to the execution result.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
configuring a dial testing task by taking a workflow as a unit; the workflow comprises interfaces or pages which are related in the running of the system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages;
Issuing a workflow to an Internet of things box, enabling the Internet of things box to sequentially execute dial testing cases according to interfaces or page time sequences in the workflow, and outputting an execution result of the workflow;
and evaluating the usability of the system or the business scene according to the execution result.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
configuring a dial testing task by taking a workflow as a unit; the workflow comprises interfaces or pages which are related in the running of the system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages;
Issuing a workflow to an Internet of things box, enabling the Internet of things box to sequentially execute dial testing cases according to interfaces or page time sequences in the workflow, and outputting an execution result of the workflow;
and evaluating the usability of the system or the business scene according to the execution result.
The automatic dial testing method, the automatic dial testing device and the computer equipment are used for configuring dial testing tasks by taking workflow as a unit; the workflow comprises interfaces or pages which are related in the running of the system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages; issuing a workflow to an Internet of things box, enabling the Internet of things box to sequentially execute dial testing cases according to interfaces or page time sequences in the workflow, and outputting an execution result of the workflow; and evaluating the usability of the system or the business scene according to the execution result. According to the application, based on the system and the service scene configuration workflow, the Internet of things box is subjected to dial testing by a preset interface or page time sequence, and dial testing service simulating real user experience is provided, so that continuous monitoring is provided for the performance of pages, interfaces and complex service flows, and the service quality of a system is monitored by assisting research, development and operation personnel.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a diagram of an application environment for an automated dial testing method in one embodiment;
FIG. 2 is a flow chart of an automated dial testing method according to one embodiment;
FIG. 3 is a workflow configuration interface in one embodiment;
FIG. 4 is a diagram of a dial testing example configuration interface, according to one embodiment;
FIG. 5 is a schematic flow chart of a case of the Internet of things performing a dial testing task in one embodiment;
FIG. 6 is a block diagram of an automated dial testing device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The automatic dial testing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The manager maintains a management platform, and the management platform is connected with a plurality of Internet of things boxes under different regions and different network conditions. The box of the internet of things is an intelligent hardware product, integrates multiple functions of a router, a wireless remote acquisition terminal, a data transmission terminal and the like, can be connected with multiple devices, and can be networked. The box of the internet of things has the basic functions of data storage, processing, storage and the like, and can realize intelligent control through the basic functions.
In an exemplary embodiment, as shown in fig. 2, an automated dial testing method is provided, and the method is applied to the management platform in fig. 1, for example, and includes the following steps 202 to 206. Wherein:
step 202, configuring a dial testing task by taking a workflow as a unit; the workflow includes interfaces or pages that are related to in time sequence when the system or business scenario is running, and dial-up test cases corresponding to the interfaces or pages.
The system and business scenario are two different dimensions. The system is composed of a whole body of mutually related parts, and the parts cooperate together to complete a specific function or achieve a certain aim. A system such as a shopping system includes a merchandise display module, a merchandise search module, and the like. A business scenario is a specific scenario or situation describing a specific event, situation or use scenario, embodying behavior, roles and interaction means under specific conditions. Interfaces or pages of multiple systems may be involved in a business scenario, such as in a shopping scenario, where items are selected and placed in a shopping system, and payment is completed at a third party payment platform system.
As shown in fig. 3, an administrator creates an information workflow including a workflow name, system information, dial testing schedule point, and the like in the management platform foreground. In this embodiment, the dial testing scheduling point is an internet of things box communicatively connected with the management platform.
As shown in fig. 4, a dial-up example including information including a use case name, a monitoring type (method), a probe URL (Uniform Resource Locator ) address of a single/multiple interface, interface input (QueryParam, bodyParam), the number of retries, check logic (service info), extraction information (extract info), a home service scenario (scene), and the like is created in the workflow. The workflow includes a plurality of dial testing cases to form a dial testing list. The dial testing case list can contain one or more interface addresses or pages, and the sequence of the interface addresses or pages is matched with the operation flow of the system or the service scene.
Wherein, the monitoring type: including POST, GET, HEAD, OPTIONS, etc. POST is used to submit data to a server, typically to send data to a server and create new resources. The GET is used to obtain information from the server specifying the resource. HEAD requests are often used to obtain metadata for a resource or to check if a resource exists. The OPTIONS is used to obtain HTTP methods supported by the server, allowed request headers and other information.
Probe URL address of single/multiple interface: a single URL address to be monitored or a plurality of URL addresses having an association relationship.
Interface input: GET arguments separated by & symbols, and two data types by Body arguments.
Number of retries: to avoid single request failure due to network jitter, etc., each dial test case is configured with a retry number, usually a default value of 1. When the dial test fails, the retry number is increased by one. And if the retry times are successful, recording that the current dial testing task is successful, and if the maximum retry times still fail, recording that the current dial testing task fails.
And (3) checking logic: and the verification mode of the current dial testing case is used for judging whether the dial testing is successful, jsonPath grammar and HTTP state code return value verification are supported, and the verification operation logic comprises more than, less than, more than or equal to, less than or equal to, unequal to, non-null, inclusion and regular matching.
Extracting information: when the workflow is composed of a plurality of dial testing cases and the back interface needs the return value of the front interface, parameters can be continuously transmitted backwards by extracting the return information of the front interface. Extracting parameters by using a grammar format JsonPath; when the subsequent interface needs to be used, the grammar of [ # { parameter name } ] is adopted to replace.
Home business scenario: the current dial testing case belongs to scene labels, and one dial testing case can belong to 0, 1 or more scene labels. The scene tag includes a system and a business scene.
And 204, issuing a workflow to the box of the Internet of things, enabling the box of the Internet of things to sequentially execute dial testing cases according to interfaces or page time sequences in the workflow, and outputting an execution result of the workflow.
The management platform issues the dial testing task to the Internet of things box connected to the Internet, and the Internet of things box starts to automatically schedule and execute the dial testing task after receiving the dial testing task distributed by the management platform. The execution of the dial testing task adopts a parallel execution mode taking the workflow as a unit, and each workflow is sequentially executed according to the sequence of interfaces or page lists in the workflow.
The specific flow is shown in fig. 5, and the steps are as follows:
step 502, the internet of things box receives a dial testing task.
Step 504, according to the interface or page sequence in the workflow in the dial testing task, each dial testing case in the workflow is executed one by one, and the execution result is obtained, and step 506 is entered.
Step 506, determining whether the use case is executed successfully according to the check logic of the dial test use case. If the dial test case is successfully executed, step 508 is entered; if execution fails, step 512 is entered.
Step 508, recording the success of the execution of the current dial testing case, judging whether the next dial testing case exists in the workflow, if so, entering step 504; if not, step 514 is entered.
Step 510, record the status of the current interface or page and the subsequent interface or page (if any) as execution failure, and go to step 514.
Step 512, judging whether the execution times of the dial testing case reach the configured maximum retry times, if yes, entering step 510; if the maximum number of retries is not exceeded, the retry number record is incremented by 1 and step 504 is entered.
Step 514, execution ends.
After each round of dial testing task is executed, the box of the Internet of things reports the execution result. The reported result contains the regional information of the box of the Internet of things and the execution result of the dial testing task.
And step 206, evaluating the usability of the system or the business scene according to the execution result.
The management platform acquires an execution result, and evaluates the availability of the system according to the proportion of the execution result statistics system availability time to the total operation time of the system or the proportion of the statistics service scene availability time to the total operation time of the service scene.
The cloud server-based business dial testing platform comprises an interface automatic testing platform and a cloud server-based business dial testing platform. However, the interface automation test platform is usually single-service single-point deployment, has poor system stability, is mainly used for interface debugging, lacks monitoring similar to page address monitoring, network response time and the like, and cannot simulate the real experience of users in different regions and different networks when accessing services. Commercial dial-up platforms are typically suitable for monitoring for page performance, port performance, but there is a certain lack of monitoring for more complex business scenarios. That is, business dial testing may be used to monitor a page or interface, but is not supported in complex business scenarios such as logging in from a user to an order purchase. In addition, commercial dial testing generally requires a large number of servers to erect a cloud service network, and has high hardware cost, and when a dial testing point of a new region needs to be added, a matched machine room is required, so that the cloud service network cannot be rapidly expanded.
Based on the system and the service scene configuration workflow, the Internet of things box is enabled to dial and measure according to a preset interface or page time sequence, and dial and measure monitoring configuration of a complex service scene with multiple interfaces connected in series is supported, so that research and development and operation maintenance personnel are assisted to monitor the service quality of the system.
In addition, the dial testing network constructed by the Internet of things box solves the problems that single-point deployment of the existing interface testing platform is easy to occur single-point faults and the availability of the system under different regions and different network conditions cannot be simulated.
Meanwhile, by utilizing the plug-and-play characteristic of the Internet of things box, the rapid construction of a dial testing network and the convenient deployment of dial testing application are realized. The automatic dial testing system is combined to realize functions of task distribution, scheduling management, internet dial testing and the like, and realize periodic monitoring of scenes such as network quality, interface performance and the like.
In one embodiment, after the availability evaluation of the system or service scenario is completed, the evaluation result is queried through the management platform foreground interface. The evaluation result displayed by the foreground comprises: the execution result (success/failure), the execution failure reason (when the execution result is successful, the reason is blank; when the execution result is failed, the specific reason is recorded), the response time length, the region information of the dial testing point and the like. In addition, when the execution result is failure, the corresponding alarm notification record can be queried. And the visual performance data and the early warning notification are utilized to help know the service quality of the service, so that the service can be ensured to stably and normally run.
In one embodiment, the workflow includes a runtime interval and a next cycle runtime; step 202 comprises: setting a dial testing task by taking an operation time interval corresponding to a workflow as a period; the method further comprises the steps of: and scanning the dial testing task, extracting the running time of the next period corresponding to the workflow, and updating the running time of the next period of the workflow according to the first scanning time and the running time interval if the first scanning time corresponding to the scanning dial testing task is later than the running time of the next period.
After the management platform obtains the dial testing tasks configured from the foreground, the background can also distribute the dial testing tasks and send the dial testing tasks to the corresponding internet of things boxes.
Specifically, the background scans the workflow stored in the form of a table, and extracts the dial-up point information, the time interval and the running time of the next period contained in the workflow. When the first scanning time T1 is later than the running time of the next period of the workflow K in the process of scanning the workflow, the workflow of the dial testing point is re-created, the running time of the next period of the workflow is updated to be (T1 + running time interval), and the updated workflow is added into the dial testing task. If the first scan time T1 is earlier than the operation time of the next cycle of the workflow K, the operation is continued according to the operation time of the next cycle of the workflow K.
For example, when the first scan time is 8:00, and the next cycle of the workflow has a run time of 7:40, the running time interval is 30 minutes, the running time of the next period of the workflow is updated to 8:30.
According to the embodiment, when the execution time of the dial testing task configured by the foreground conflicts with the time of the background scanning the dial testing task, the execution of the dial testing task is corrected, the condition that the dial testing task cannot be executed due to time errors is avoided, and therefore automatic execution of the dial testing task is guaranteed.
In one embodiment, step 206 includes: according to the execution result, acquiring the unavailable times of the dial testing workflow in the system and the total times of the dial testing workflow in the system, and evaluating the availability of the system; or according to the execution result, acquiring the unavailable times of the dial testing workflow in the service scene and the total times of the dial testing workflow in the service scene, and evaluating the usability of the service scene.
After the allocated dial testing task is executed, the box of the Internet of things uploads the execution result to a background database for storage. And the background scans the database, extracts an execution result in a period of time according to the requirement, and performs availability analysis. For example, when daily system or business scenario availability needs to be counted, then count 0:00 to 24: execution results between 00.
In this embodiment, the availability of the system or the service scenario is determined according to the availability time and the total running time of the system or the service scenario, but since the present embodiment configures the dial testing task in units of a workflow, the availability of the system or the service scenario is determined by the availability time and the total running time of the dial testing workflow; and because the workflow is tested in turn based on the dial testing examples, the availability of the system or service scene is determined by the available times and the total dial testing times of the dial testing workflow. Because the available times of the dial testing workflow are far higher than the unavailable times of the dial testing workflow when facing to a normal system or business scene, the unavailable times and the total dial testing times of the dial testing workflow can be determined.
The availability of the system or the service scene can be changed into the availability according to the unavailable times of the dial testing workflow and the total dial testing times. The calculation formula of the system availability is as follows:
system availability = 1-number of intra-system dial-up workflow unavailability/total number of system dial-up measurements.
The calculation formula of the service scene availability is as follows:
service scenario availability = 1-number of dial testing workflow unavailability in service scenario/total number of dial testing in service scenario.
For example, the system comprises 100 interfaces, and the dial testing is performed in a cycle of each hour, so that the total dial testing times are 2400 times in the day, and the availability of the system is 2399/2400 (1-1/2400) when only one interface is unavailable in the day.
The embodiment quantifies the availability of the system or the service scene through the unavailable times and the total dial testing times of the workflow, thereby being more convenient for subsequent analysis. The embodiment can also generate an evaluation report according to the availability for the foreground query of the management platform.
In one embodiment, the method further comprises: the scanning execution result is used for judging whether a dial testing failure condition exists or not according to the execution result in a first preset period before a corresponding second scanning time when the scanning execution result is obtained; if the dialing test failure condition exists, triggering a first alarm reminding; if the condition of dialing test failure exists and the unrecovered first alarm reminding exists, triggering continuous alarm reminding; if the condition of dialing test failure does not exist and the unrecovered first alarm reminding or unrecovered continuous alarm reminding exists, triggering alarm recovery reminding.
When the execution result received by the background of the management platform contains a dial testing task which fails to be executed, namely, any one of dial testing cases in the workflow still fails to detect success under the condition of reaching the maximum retry time threshold, an alarm reminding notification is pushed to an administrator of a system or a business scene where an alarm occurs, and the alarm notification is divided into a first alarm notification and a continuous alarm notification. When the service is restored, an alarm restoration notification is pushed.
Assuming that the first preset time period is 10 minutes, the execution results within ten minutes before the second scanning time are summarized, and the availability of the system or the business scene within the ten minutes is counted.
If the availability is less than 100% in approximately 10 minutes for all the enabled workflows in the system or scene, the logical operation is expressed as: (1-number of dial test unavailable/total number of dial test) < 100%, a first alarm notification is triggered.
If the availability of all the enabled workflows in the system or the scene is less than 100% in approximately 10 minutes, and the current system or scene has a first alarm notification and has not sent a recovery alarm notification, the logic operation is expressed as: (1-number of unavailable dial test/total number of dial test) < 100% & existence of unrecovered first alarm, triggering a continuous alarm notification.
If the availability of all the enabled workflows in the system or scene is equal to 100% in approximately 10 minutes, and the current system has unrecovered first alarm or continuous alarm, the logic operation is expressed as: (1-number of dial test unavailable/total number of dial test) =100% & & (there is unrecoverable first alarm || there is unrecoverable continuous alarm), an alarm recovery notification is triggered.
And the manager is timely informed of the reaction through the alarm push, so that the normal operation of the service is improved.
In one embodiment, the second scan time is distributed periodically with a second preset period; the second preset time period is smaller than the first preset time period, so that execution results in at least two second preset time periods are obtained in the second preset time period.
Assuming that the second preset period is 2 minutes and the first preset period is 10 minutes, the availability and alarm condition within the previous 10 minutes are acquired when scanning every 2 minutes. When jitter occurs in a certain interface (5:00 alarm, 5:01 recovery, 5:03 alarm, 5:06 recovery … …), part of the information can be filtered, and whether to push the alarm or push the alarm recovery notice is judged according to the last interface state in ten minutes, so that excessive alarm is prevented.
In one embodiment, the method further comprises: receiving a registration request of a newly-added box of the Internet of things; step 202 comprises: and configuring a workflow corresponding to the Internet of things box which makes a registration request, and configuring a dial testing task corresponding to the Internet of things box which makes the registration request by taking the workflow as a unit.
The Internet of things boxes are deployed in different geographic areas and are respectively connected to the Internet. And after the newly added internet of things box is networked, the internet of things box reports the state information of the internet of things box to the management platform, and receives and deploys a dial testing execution program issued by the management platform.
When the traditional technology needs to expand or newly increase a dial testing point or update a dial testing method, new server equipment needs to be put into, a dial testing program needs to be deployed manually, and the operation and maintenance cost is high. In this embodiment, when a new extension dial-up point is required, a machine room is not required to be built, and the rapid extension of the dial-up point can be realized by adding a box of the internet of things.
In one embodiment, in order to ensure the normal operation of the internet of things box and the effective issuing of the dial testing task, after the internet of things box is successfully registered, the heartbeat information of the current internet of things box is reported to the management platform every 1 minute. The heartbeat information comprises region information of the dialing measuring point and a time stamp of reporting time. When the box of the Internet of things fails and heartbeat information cannot be reported, the management platform sets the state of the current dial-up point as invalid, and does not distribute dial-up tasks any more until the box of the Internet of things is recovered.
In one embodiment, the method further comprises internet of things box management. The specific management content comprises:
1. and managing the box information of the Internet of things registered in the management platform.
2. And controlling the dispatching start and stop of the box of the Internet of things.
3. And monitoring the health state and the execution state of each Internet of things box dial-up point. Specifically, when it is monitored that a certain internet of things box exceeds a set health threshold time but heartbeat information of the internet of things box is not received, state information of a dial-up point corresponding to the internet of things box is set to be in a failure state, and a timestamp when the state information is in failure is recorded.
4. When the dial testing method and the program are updated, the updated dial testing program is uniformly pushed to the box of the Internet of things by the box management module of the Internet of things. When the dial testing method or the program is updated, the dial testing program on each box of the Internet of things does not need to be manually updated, and the dial testing programs are updated in batches by the unified platform, so that the labor input cost is reduced, and the maintenance difficulty is reduced.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an automatic dial testing device for realizing the above-mentioned automatic dial testing method. The implementation of the solution provided by the device is similar to that described in the above method, so the specific limitations of one or more embodiments of the automated dial testing device provided below may be referred to above as limitations of the automated dial testing method, and will not be repeated herein.
In one exemplary embodiment, as shown in FIG. 6, an automated dial testing apparatus is provided, comprising: the system comprises a dispatching management control platform and a network module, wherein the dispatching management control platform is connected with an Internet of things box through the network module, and comprises a foreground and a background.
The dispatching management control platform foreground is used for configuring a dial testing task by taking a workflow as a unit; the workflow includes interfaces or pages that are related to in time sequence when the system or business scenario is running, and dial-up test cases corresponding to the interfaces or pages.
The network module is used for issuing the workflow to the box of the Internet of things, enabling the box of the Internet of things to sequentially execute the dial testing cases according to the interface or the page time sequence in the workflow, and outputting the execution result of the workflow.
And the scheduling management control platform background is used for evaluating the availability of the system or the service scene according to the execution result.
The front stage of the dispatching management control platform comprises a dial testing task configuration module, a result inquiry module and a result display module. The task configuration module is used for configuring the dial testing task by taking the workflow as a unit, the result query module and the result display module are used for querying and displaying the execution result after the dial testing task is executed, and the foreground display content comprises the execution result (success/failure), the execution failure reason (when the execution result is successful, the reason is empty; when the execution result is failed, the specific reason is recorded), the response time, the region information of the dial testing point and the like. The result query module and the result display module are also used for querying the alarm records and the availability of the system or service scene.
The background of the dispatching management control platform comprises a task management dispatching module and a data analysis module. The task management scheduling module comprises four sub-modules of dial testing task storage, box management of the Internet of things, dial testing task distribution and dial testing task collection. The dial testing task storage sub-module is responsible for storing the dial testing task configuration information edited by the foreground in the database. The Internet of things box management sub-module is responsible for managing information of each Internet of things box, controlling dispatching start and stop of the Internet of things box, monitoring health states and execution states of dial testing points of each Internet of things box, and pushing updated dial testing programs to the Internet of things box in a unified manner by the Internet of things box management module when the dial testing methods and programs are updated. The dial testing task distribution sub-module scans the database, extracts the dial testing task to be executed, and distributes the dial testing task to be executed to each Internet of things box. When the dial testing task distribution sub-module scans the dial testing task, extracting the running time of the next period corresponding to the workflow, and if the first scanning time corresponding to the dial testing task is later than the running time of the next period, updating the running time of the next period of the workflow according to the first scanning time and the running time interval. After the allocated dial testing task is executed, the dial testing result collection submodule acquires the dial testing result of the internet of things box, reports feedback including an execution result (success/failure), an execution failure reason (when the execution result is successful, the execution result is empty, and when the execution result is failed, specific reasons are recorded), response time length and region information of the dial testing point, and stores the result into a database.
The data analysis module comprises an alarm notification and availability analysis calculation sub-module. The alarm notification sub-module scans a dial test for one time in a second preset period, and checks the dial test execution result in the first preset period each time. When the measurement result received by the background of the scheduling management control platform contains a task which fails to be executed (namely, any one of the interface cases in the workflow still fails to detect success under the condition of reaching the maximum retry time threshold value), the alarm notification module pushes alarm notification to an administrator of a system or a scene where an alarm occurs, and the alarm notification is divided into a first alarm notification and a continuous alarm notification. When the service is restored, an alarm restoration notification is pushed. The availability analysis and calculation sub-module acquires the unavailable times of the dial testing workflow in the system and the total times of the dial testing workflow in the system according to the execution result, and evaluates the availability of the system; or according to the execution result, acquiring the unavailable times of the dial testing workflow in the service scene and the total times of the dial testing workflow in the service scene, and evaluating the usability of the service scene.
The Internet of things box dial testing network comprises four modules of dial testing service registration, dial testing task receiving, dial testing task executing and dial testing result reporting. And the dial testing service registration module reports the state information of the Internet of things box to the dispatching management control platform, and receives and deploys a dial testing execution program issued by the Internet of things box management module of the dispatching management control platform. The dial testing task receiving module receives the dial testing task which is issued by the dial testing task distributing module of the dispatching management control platform and needs to be executed by the current Internet of things box. And after receiving the dial testing task distributed by the dispatching management control platform, the dial testing task execution module starts to automatically dispatch and execute the dial testing task. The execution of the dial testing task adopts a parallel execution mode taking the workflow as a unit, and each workflow is sequentially executed according to the interface list sequence in the workflow. And after each round of dial testing task is executed, the dial testing result reporting module reports the execution result through a dial testing result collecting module in a background of the scheduling management control platform. The report result comprises: regional information of the box of the Internet of things and a dial testing task execution result.
The modules in the automatic dial testing device can be realized in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements an automated dial testing method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an exemplary embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor performing the steps of all the method embodiments described above when the computer program is executed.
In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of all the method embodiments described above.
In an exemplary embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of all the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are both information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. An automated dial testing method, the method comprising:
Configuring a dial testing task by taking a workflow as a unit; the workflow comprises interfaces or pages which are related in the running of a system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages;
Issuing the workflow to an internet of things box, enabling the internet of things box to sequentially execute the dial testing cases according to the interface or page time sequence in the workflow, and outputting an execution result of the workflow;
And evaluating the usability of the system or the business scene according to the execution result.
2. The method of claim 1, wherein the workflow comprises a run time interval and a run time of a next cycle;
The configuration of the dial testing task by taking the workflow as a unit comprises the following steps:
setting a dial testing task by taking the operation time interval corresponding to the workflow as a period;
the method further comprises the steps of:
And scanning the dial testing task, extracting the running time of the next period corresponding to the workflow, and updating the running time of the next period of the workflow according to the first scanning time and the running time interval if the first scanning time corresponding to the dial testing task is later than the running time of the next period.
3. The method of claim 2, wherein evaluating the availability of the system or the business scenario based on the execution result comprises:
According to the execution result, acquiring the unavailable times of the dial testing workflow in the system and the total times of the dial testing workflow in the system, and evaluating the availability of the system; or according to the execution result, acquiring the unavailable times of the dial testing workflow in the service scene and the total times of the dial testing workflow in the service scene, and evaluating the availability of the service scene.
4. The method according to claim 1, wherein the method further comprises:
Scanning the execution result, and judging whether a dial testing failure condition exists according to the execution result in a first preset period before a second scanning time corresponding to the execution result;
If the dialing test failure condition exists, triggering a first alarm reminding; if the condition of dialing test failure exists and the unrecovered first alarm reminding exists, triggering continuous alarm reminding; if the condition of dialing test failure does not exist and the unrecovered first alarm reminding or unrecovered continuous alarm reminding exists, triggering alarm recovery reminding.
5. The method of claim 4, wherein the second scan times are periodically distributed over a second predetermined period of time; the second preset time period is smaller than the first preset time period, so that the execution results in at least two second preset time periods are obtained in the second preset time period.
6. The method according to any one of claim 1 to 5, wherein,
The method further comprises the steps of:
Receiving a registration request of the newly added box of the Internet of things;
The configuration of the dial testing task by taking the workflow as a unit comprises the following steps:
And configuring the workflow corresponding to the Internet of things box which makes a registration request, and configuring a dial testing task corresponding to the Internet of things box which makes the registration request by taking the workflow as a unit.
7. An automated dial testing device, the device comprising:
the dispatching management control platform foreground is used for configuring a dial testing task by taking a workflow as a unit; the workflow comprises interfaces or pages which are related in the running of a system or business scene and arranged according to time sequence, and dial testing cases corresponding to the interfaces or pages;
the network module is used for issuing the workflow to an Internet of things box, enabling the Internet of things box to sequentially execute the dial testing cases according to the interface or page time sequence in the workflow, and outputting an execution result of the workflow;
and the scheduling management control platform background is used for evaluating the availability of the system or the service scene according to the execution result.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202410007411.7A 2024-01-03 Automatic dial testing method and device and computer equipment Pending CN118282889A (en)

Publications (1)

Publication Number Publication Date
CN118282889A true CN118282889A (en) 2024-07-02

Family

ID=

Similar Documents

Publication Publication Date Title
CN106656536B (en) Method and equipment for processing service calling information
US9049105B1 (en) Systems and methods for tracking and managing event records associated with network incidents
CN112559361A (en) Flow playback method, device, equipment and computer readable medium
US9262260B2 (en) Information processing apparatus, information processing method, and recording medium
US9059898B2 (en) System and method for tracking configuration changes in enterprise product
US20100088197A1 (en) Systems and methods for generating remote system inventory capable of differential update reports
CN110362455B (en) Data processing method and data processing device
CN105610648A (en) Operation and maintenance monitoring data collection method and server
US10891129B1 (en) Decentralized development operations blockchain system
CN102597966A (en) Operation management device and operation management method
US20220188283A1 (en) Automatic discovery of executed processes
CN112152823A (en) Website operation error monitoring method and device and computer storage medium
CN114791846A (en) Method for realizing observability aiming at cloud native chaos engineering experiment
CN113792008A (en) Method and device for acquiring network topology structure, electronic equipment and storage medium
CN108173711B (en) Data exchange monitoring method for internal system of enterprise
CN100413257C (en) Network element warning data obtaining method
CN107451056B (en) Method and device for monitoring interface test result
CN103944779B (en) A kind of WAP service features monitoring method and system
CN105607983B (en) Data exception monitoring method and device
CN118282889A (en) Automatic dial testing method and device and computer equipment
CN113011819B (en) Management method and device of bare metal server and management server
CN117421255B (en) Automatic inspection method, device and equipment for interface and storage medium
CN115174667B (en) Big data pushing method, system and electronic equipment
CN115208895B (en) Automatic networking method and system for block chain technology
CN117411929B (en) Business process monitoring method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication