CN114756348A - Execution method and device of dial testing task, storage medium and electronic device - Google Patents

Execution method and device of dial testing task, storage medium and electronic device Download PDF

Info

Publication number
CN114756348A
CN114756348A CN202210434757.6A CN202210434757A CN114756348A CN 114756348 A CN114756348 A CN 114756348A CN 202210434757 A CN202210434757 A CN 202210434757A CN 114756348 A CN114756348 A CN 114756348A
Authority
CN
China
Prior art keywords
dial testing
target
queue
testing step
task
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
CN202210434757.6A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210434757.6A priority Critical patent/CN114756348A/en
Publication of CN114756348A publication Critical patent/CN114756348A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a dial testing task execution method and device, a storage medium and an electronic device, and relates to the technical field of smart home, wherein the dial testing task execution method comprises the following steps: determining head tasks of N dial testing steps in the dial testing tasks to be executed to obtain N head tasks; storing each head task to a first queue according to the execution time of each dial testing step; under the condition that the execution time of the target dial testing step is determined in the first queue, the target dial testing step is stored in the second queue; and indicating the target thread to execute the target dial testing step in the second queue so as to determine a dial testing result.

Description

Dial testing task execution method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a dial testing task execution method and device, a storage medium and an electronic device.
Background
Currently, the judgment of the execution result of the dial testing task is mainly to find out the failure record of the execution result through manual analysis and to manually retransmit the failure record. The conditions of low efficiency and difficult guarantee of test accuracy exist.
Disclosure of Invention
The embodiment of the invention provides a dial testing task execution method and device, a storage medium and an electronic device, and aims to at least solve the problem of low determining efficiency of a dial testing result in the related art.
According to an embodiment of the present invention, there is provided a method for executing a dial testing task, including: determining head tasks of N dial testing steps in dial testing tasks to be executed to obtain N head tasks, wherein each head task comprises identification information for identifying each dial testing step and execution time for executing each dial testing step, and N is a natural number greater than or equal to 1; storing each head task to a first queue according to the execution time of each dial testing step; under the condition that the execution time of a target dial testing step is determined in the first queue, the target dial testing step is stored in a second queue; and indicating the target thread to execute the target dial testing step in the second queue so as to determine a dial testing result.
According to another embodiment of the present invention, there is provided a device for executing a dial testing task, including: a first determining module, configured to determine a head task of N dial testing steps in a dial testing task to be executed, to obtain N head tasks, where each head task includes identification information for identifying each dial testing step and an execution time for executing each dial testing step, and N is a natural number greater than or equal to 1; a first storage module, configured to store each head task to a first queue according to an execution time of each dial testing step; a second storage module, configured to store the target dial testing step in a second queue when the execution time of the target dial testing step is determined in the first queue; and the first indicating module is used for indicating the target thread to execute the target dial testing step in the second queue so as to determine a dial testing result.
In an exemplary embodiment, the first determining module includes: a first receiving unit, configured to receive, from a first device, identification information of each dial testing step and an execution time for executing each dial testing step, where the first device is configured to generate the dial testing task according to a device function of the first device; and the first packaging unit is used for packaging the identification information of each dial testing step and the execution time for executing each dial testing step to obtain the N head tasks.
In an exemplary embodiment, the second storage module includes: a first searching unit, configured to search for a target head task that reaches an execution time from the first queue; a first storage unit, configured to store the target dial testing step associated with the target head task into the second queue.
In an exemplary embodiment, the first indicating module includes: a first instruction unit, configured to instruct the target thread to execute the target dial testing step according to an execution time of the target dial testing step; a first processing unit, configured to delete the target dial testing step from the second queue and delete the target head task of the target dial testing step from the first queue if the target dial testing step is successfully executed; and a second processing unit, configured to, when the target dial test step fails to be executed, save the target dial test step in the second queue, and delete the target head task of the target dial test step from the first queue.
In an exemplary embodiment, the apparatus further comprises: a second determining module, configured to determine configuration information of the target dialing test step, where the configuration information of the target dialing test step includes at least one of: the preset execution times of the target dial testing step, the equipment information of the target dial testing step, the category of the target dial testing step and the execution time of the target dial testing step.
In an exemplary embodiment, the apparatus further comprises: a third storage module, configured to instruct a target thread to execute the target dial testing step in the second queue, so as to determine a dial testing result, and store a target head task of the target dial testing step into the first queue again when the target dial testing step fails to be executed and a preset execution frequency of the target dial testing step is greater than 1; a second indicating module, configured to indicate the target thread to execute the target dial testing step according to the re-execution time of the target dial testing step; and the first deleting module is used for deleting the target dial testing step from the second queue and deleting the target head task from the first queue.
In an exemplary embodiment, the apparatus further includes: and the first acquisition module is used for determining head tasks of N dial testing steps in the dial testing tasks to be executed, acquiring each dial testing step corresponding to each head task from the first queue according to a preset time period after the N head tasks are obtained, and storing each dial testing step reaching the execution time into the second queue.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, after the head tasks of a plurality of dial testing steps in the dial testing tasks are determined, the head tasks are stored in the first queue, and the dial testing steps are stored in the second queue and executed in the second queue under the condition that the execution time of the dial testing steps is reached. And determining the dial testing result of the dial testing step according to the execution result in the second queue. And the judgment of whether the execution is successful or not does not need to be carried out manually. Therefore, the problem of low determining efficiency of the dial testing result in the related technology can be solved, and the effect of improving the determining efficiency of the dial testing result is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a method for executing a dial test task according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method of performing a dial testing task according to an embodiment of the invention;
FIG. 3 is a framework diagram of task scheduling according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of recording configuration information according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a dial-up test configuration analysis according to an embodiment of the present invention;
FIG. 6 is a framework diagram of task scheduling according to an embodiment of the present invention;
FIG. 7 is a flow diagram for determining results of task execution according to an embodiment of the invention;
fig. 8 is a block diagram of an apparatus for executing a dial test task according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, an execution method of a dial testing task is provided. The execution method of the dial testing task is widely applied to full-House intelligent digital control testing application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent Home equipment ecology, intelligent House (Intelligent House) ecology and the like. Alternatively, in this embodiment, the method for executing the dial testing task may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be and not be limited to PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, the intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding's equipment, intelligent bathroom equipment, the intelligence robot of sweeping the floor, the intelligence robot of wiping the window, intelligence robot of mopping the floor, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen guarding, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, a method for executing a dial testing task is provided, and fig. 2 is a flowchart of the method for executing the dial testing task according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, determining head tasks of N dial testing steps in dial testing tasks to be executed to obtain N head tasks, wherein each head task comprises identification information for identifying each dial testing step and execution time for executing each dial testing step, and N is a natural number greater than or equal to 1;
in this embodiment, the dial testing task may be determined according to the device function of the terminal device, for example, a task of verifying login information, a task of controlling the function of the home appliance, and the like. The value of N can be flexibly set based on actual reference scenarios or test requirements. For example, the account logs in to the dial testing task of the application program, wherein the step of inputting the login information and the step of verifying the legality of the login information are included. And comparing the login information and the like.
Step S204, storing each head task to a first queue according to the execution time of each dial testing step;
in this embodiment, the execution order of the head tasks in the first queue may be first-in first-out, or may be set according to a set timeout time. For example, 2s is set as the timeout time of the dial testing step for verifying the login information.
Step S206, under the condition that the execution time of the target dialing test step is determined in the first queue, the target dialing test step is stored in a second queue;
in this embodiment, the second queue is used to execute a timeout dial test step, where the execution is successful, i.e., the deletion, and the execution is failed, i.e., the saving.
And step S208, instructing the target thread to execute the target dial testing step in the second queue so as to determine a dial testing result.
In this embodiment, the dialing test result includes success in execution, failure in execution, repeated execution, and the like. After the dial testing task is executed, the reminding of alarm information in different stages of alarm generation, continuation, recovery starting, recovery and the like can be realized through the dial testing result, and the state of the current dial testing task can be known in real time.
The main body of the above steps may be a terminal, a server, a specific processor provided in the terminal or the server, or a processor or a processing device provided independently from the terminal or the server, but is not limited thereto.
Through the steps, after the head tasks of a plurality of dial testing steps in the dial testing tasks are determined, the head tasks are stored in the first queue, and under the condition that the execution time of the dial testing steps is reached, the dial testing steps are stored in the second queue, and the dial testing steps are executed in the second queue. And determining the dial testing result of the dial testing step according to the execution result in the second queue. And whether the execution is successful or not does not need to be judged manually. Therefore, the problem of low determining efficiency of the dial testing result in the related technology can be solved, and the effect of improving the determining efficiency of the dial testing result is achieved.
In an exemplary embodiment, determining the head tasks of N dial testing steps in the dial testing tasks to be executed to obtain N head tasks includes:
s11, receiving identification information of each dial testing step and execution time for executing each dial testing step sent by first equipment, wherein the first equipment is used for generating dial testing tasks according to equipment functions of the first equipment;
in this embodiment, the first device may be a terminal device, for example, a mobile phone, a tablet computer, or the like. The first device may be used to log in to the application or to send information, for example, in the case where the first device is a mobile phone, the user may log in to the application via login information entered by the mobile phone. And sends a control command for controlling the home appliance using the application program.
The execution time of each dial testing step may be a set timeout time, for example, 2s, for example, the time for verifying the login information for 2s, logging in to the application program if the verification is successful, and prompting the login timeout if the verification is failed.
And S11, packaging the identification information of each dial testing step and the execution time for executing each dial testing step to obtain N head tasks.
In this embodiment, the encapsulated head task is stored in the first queue.
In an exemplary embodiment, in the case that the execution time of the target dialing test step is determined in the first queue, storing the target dialing test step in the second queue includes:
s21, searching a target head task reaching the execution time from the first queue;
and S31, storing the target dialing test step associated with the target head task into a second queue.
In this embodiment, the target thread is instructed to execute the target dial testing step according to the execution time in the target head task.
In one exemplary embodiment, instructing the target thread to perform the target dial test step in the second queue to determine the dial test result includes:
s41, indicating the target thread to execute the target dial testing step according to the execution time of the target dial testing step;
s42, deleting the target dial testing step from the second queue and deleting the target head task of the target dial testing step from the first queue under the condition that the target dial testing step is successfully executed;
and S43, when the target dial testing step fails to be executed, the target dial testing step is stored in the second queue, and the target head task of the target dial testing step is deleted from the first queue.
In this embodiment, if the target dialing test step is not included in the second queue, it indicates that the target dialing test step is successfully executed, otherwise, it fails.
As shown in fig. 3, the execution sequence of each dial testing step in the dial testing task includes the dial testing steps executed when the user account logs in to the target application through the terminal device, for example, the step of accessing the user gateway by the terminal device, the step of entering login information, the step of verifying the login information, the step of accessing the device gateway by the target device, the step of transmitting information between the target device and the terminal device, and the like. As shown in fig. 4, this embodiment describes the configuration information during the process of executing the dial-up test step. During the execution of each dial-up test step, corresponding configuration information is loaded in the database.
In an exemplary embodiment, the method further includes:
s51, determining the configuration information of the target dial testing step, wherein the configuration information of the target dial testing step comprises at least one of the following: the preset execution times of the target dial testing step, the equipment information of the target dial testing step, the category of the target dial testing step and the execution time of the target dial testing step.
In this embodiment, as shown in fig. 5, classes used for dial testing configuration analysis are defined, where the ConfigHelper class is used to read configuration file information to a local memory. The SslUtil class is used to ensure Secure transmission of the dial testing task (e.g., a process of encrypting and decrypting the dial testing task) by using a Secure Socket Layer (SSL). The jsonnutil class is used for json serialization and deserialization related operations, i.e., the role of performing data transformation, such as transforming plaintext data into network data.
In addition, in this embodiment, a thread pool is included, and each dial testing step needs to be executed in one thread cycle; the dial testing step needs to trigger different subsequent tasks under different execution results (success, failure, timeout). Fig. 6 is a schematic diagram of a framework of task scheduling in the present embodiment, where each scheduling function is used to perform scheduling on a dial test step.
In an exemplary embodiment, after instructing the target thread to perform the target dial test step in the second queue to determine the dial test result, the method further comprises:
s61, when the target dial testing step fails to be executed and the preset execution times of the target dial testing step is more than 1, the target head task of the target dial testing step is stored in the first queue again;
s62, indicating the target thread to execute the target dial testing step according to the re-execution time of the target dial testing step;
s63, deleting the target dialing test step from the second queue and deleting the target head task from the first queue.
In this embodiment, the dial testing task is executed again in the second queue by the set repeat execution time of the dial testing step. For example, if any one of the dial testing steps fails during the dial testing, the test is retried every 10 seconds, and if the test fails in all 3 retries, the start of the failure is determined. The failure start time (first failure time) is recorded and notified (failure occurred). After the fault starts, the dial testing task is still continuously executed; after the fault starts, if the dial testing task is successfully executed, information notification (fault starting recovery) is carried out; after the fault starts, if five times of dial tests fail (about 30 minutes), information is notified (the fault is not recovered); after the fault starts, until the complete process of the user and the equipment is continuously and uniformly tested for three times successfully, the fault is judged to be ended, the fault ending time (first success time) is recorded, and information is notified (fault recovery).
In addition, after the start of the fault of the dial testing task, other dial testing steps in the dial testing task still need to be continuously executed. Further, after the failure starts, if the dial test succeeds, information is notified (failure start recovery). After the failure starts, if five consecutive dial tests fail (for example, 30 minutes), information is notified (the failure is not recovered yet). After the fault starts, until the complete flow of the dial testing task between the user gateway and the equipment gateway is successful in dial testing for three times continuously, judging that the fault is ended, recording the fault ending time (first success time), and notifying information (fault recovery).
The second queue is utilized to judge the dial testing result, and the dial testing efficiency can be effectively improved.
In an exemplary embodiment, after determining the head tasks of N dial testing steps in the dial testing tasks to be executed and obtaining N head tasks, the method further includes:
and S71, acquiring each dial testing step corresponding to each head task from the first queue according to a preset time period, and storing each dial testing step reaching the execution time into the second queue.
As shown in fig. 7, the step of executing the dial testing task by using the dual queue includes:
and S1, after the dial testing system is started, storing all the dial testing configuration information into the memory of the dial testing system, and constructing a Context object set of the task.
S2, traversing the Context object set and obtaining the dial testing configuration information of the task from the Context object set;
s3, constructing a task linked list of the task by using the dial-up and test configuration information of the task, displaying only the head task to the outside by the task linked list, throwing the head task into an overtime queue, and setting delay time, wherein the overtime queue comprises the execution result of the task, such as successful execution, failed execution, overtime and repeated execution;
s4, the queue 1 includes the head task and the dial testing configuration information of the task; in this embodiment, how many pairs of configuration information are dialed and tested, and how many tasks are thrown into the queue 1 during initialization;
s5, starting a thread in the processor;
s6, setting the delayed execution time of the task, for example, 5S;
s7, judging whether a task in the queue 1 expires;
s8, under the condition that the task in the queue 1 is expired, acquiring the expired task from the queue 1;
s9, preparing the dialing test configuration information of the due task;
s10, utilizing the thread to start executing the expired task;
s11, judging whether the task is executed successfully;
s12, when the execution is successful, deleting the executed task from the queue 1;
s13, acquiring other tasks in the queue 1 again, and turning to S9;
s14, under the condition that the expired task fails to be executed, judging whether the task needs to be executed repeatedly;
s15, under the condition that the failed task does not need to be executed repeatedly, the flow is ended;
s16, deleting the head task stored in the overtime queue under the condition that the failed task needs to be executed repeatedly;
s17, acquiring the task failed to execute, and turning to S9 to execute again;
s19, starting another thread in the processor;
s20, setting the delay execution time of the task;
s21, judging whether the head task stored in the overtime queue has an expired head task;
s22, under the condition that the overtime queue includes the expired head task, the queue 1 acquires the task corresponding to the expired head task;
s23, the queue 1 interrupts the execution of the task and processes the overtime result;
s24, judging whether repeated execution is needed;
s25, sleeping for a certain time;
s18, the task after the dormancy is finished is repeatedly executed, and the process goes to S9.
In the embodiment, the processing of the result of dial testing failure, success or overtime is realized through the two queues, so that the accuracy of task processing is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an execution device for a dial testing task is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device that has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of an apparatus for executing a dial testing task according to an embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a first determining module 82, configured to determine a head task of N dial testing steps in the dial testing tasks to be executed, to obtain N head tasks, where each head task includes identification information for identifying each dial testing step and an execution time for executing each dial testing step, and N is a natural number greater than or equal to 1;
a first storage module 84, configured to store each head task to the first queue according to the execution time of each dial testing step;
a second storage module 86, configured to store the target dial testing step in the second queue when the execution time of the target dial testing step is determined in the first queue;
and a first indicating module 88, configured to instruct the target thread to perform the target dial testing step in the second queue to determine a dial testing result.
In an exemplary embodiment, the first determining module includes:
a first receiving unit, configured to receive, from a first device, identification information of each dial testing step and an execution time for executing each dial testing step, where the first device is configured to generate the dial testing task according to a device function of the first device;
and the first packaging unit is used for packaging the identification information of each dial testing step and the execution time for executing each dial testing step to obtain the N head tasks.
In an exemplary embodiment, the second storage module includes:
a first searching unit, configured to search for a target head task that reaches an execution time from the first queue;
a first storage unit, configured to store the target dial testing step associated with the target head task into the second queue.
In an exemplary embodiment, the first indication module includes:
a first instruction unit, configured to instruct the target thread to execute the target dial testing step according to an execution time of the target dial testing step;
a first processing unit, configured to delete the target dial testing step from the second queue and delete the target head task of the target dial testing step from the first queue if the target dial testing step is successfully executed;
and a second processing unit, configured to, when the target dial test step fails to be executed, save the target dial test step in the second queue, and delete the target head task of the target dial test step from the first queue.
In an exemplary embodiment, the apparatus further includes:
a second determining module, configured to determine configuration information of the target dialing test step, where the configuration information of the target dialing test step includes at least one of: the preset execution times of the target dial testing step, the equipment information of the target dial testing step, the category of the target dial testing step and the execution time of the target dial testing step.
In an exemplary embodiment, the apparatus further includes:
a third storage module, configured to instruct a target thread to execute the target dial testing step in the second queue, so as to store the target head task of the target dial testing step into the first queue again when the target dial testing step fails to be executed and a preset execution frequency of the target dial testing step is greater than 1 after a dial testing result is determined;
a second indicating module, configured to indicate the target thread to execute the target dial testing step according to the re-execution time of the target dial testing step;
and the first deleting module is used for deleting the target dial testing step from the second queue and deleting the target head task from the first queue.
In an exemplary embodiment, the apparatus further includes:
and the first acquisition module is used for determining head tasks of N dial testing steps in the dial testing tasks to be executed, acquiring each dial testing step corresponding to each head task from the first queue according to a preset time period after the N head tasks are obtained, and storing each dial testing step reaching the execution time into the second queue.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the above steps.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to perform the above steps by a computer program.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for executing a dial testing task is characterized by comprising the following steps:
determining head tasks of N dial testing steps in dial testing tasks to be executed to obtain N head tasks, wherein each head task comprises identification information for identifying each dial testing step and execution time for executing each dial testing step, and N is a natural number greater than or equal to 1; storing each head task to a first queue according to the execution time of each dial testing step;
under the condition that the execution time of a target dial testing step is determined in the first queue, the target dial testing step is stored in a second queue;
and indicating a target thread to execute the target dial testing step in the second queue so as to determine a dial testing result.
2. The method of claim 1, wherein determining head tasks of N dial testing steps in the dial testing tasks to be executed to obtain N head tasks comprises:
receiving identification information of each dial testing step and execution time for executing each dial testing step, which are sent by first equipment, wherein the first equipment is used for generating the dial testing task according to the equipment function of the first equipment;
and packaging the identification information of each dial testing step and the execution time for executing each dial testing step to obtain the N head tasks.
3. The method of claim 1, wherein storing the target dial testing step in a second queue if the execution time for the target dial testing step is determined in the first queue comprises:
searching a target head task reaching the execution time from the first queue;
storing the target dial testing steps associated with the target head task in the second queue.
4. The method of claim 1, wherein instructing a target thread to perform the target dial test step in the second queue to determine a dial test result comprises:
the target thread is instructed to execute the target dial testing step according to the execution time of the target dial testing step;
under the condition that the target dial testing step is successfully executed, deleting the target dial testing step from the second queue, and deleting the target head task of the target dial testing step from the first queue;
and under the condition that the target dial testing step fails to be executed, storing the target dial testing step in the second queue, and deleting the target head task of the target dial testing step from the first queue.
5. The method according to any one of claims 1-4, further comprising:
determining configuration information of the target dial testing step, wherein the configuration information of the target dial testing step comprises at least one of the following: the preset execution times of the target dial testing step, the equipment information of the target dial testing step, the category of the target dial testing step and the execution time of the target dial testing step.
6. The method of claim 5, wherein after instructing a target thread to perform the target dial test step in the second queue to determine a dial test result, the method further comprises:
when the target dial testing step fails to be executed and the preset execution times of the target dial testing step are larger than 1, the target head task of the target dial testing step is stored into the first queue again;
instructing the target thread to execute the target dial testing step according to the re-execution time of the target dial testing step;
and deleting the target dial testing step from the second queue, and deleting the target head task from the first queue.
7. The method according to any one of claim 1, wherein after determining the head tasks of N dial testing steps in the dial testing tasks to be executed and obtaining N head tasks, the method further comprises:
and acquiring each dial testing step corresponding to each head task from the first queue according to a preset time period so as to store each dial testing step reaching the execution time into the second queue.
8. An apparatus for executing a dial testing task, comprising:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining head tasks of N dial testing steps in dial testing tasks to be executed to obtain N head tasks, each head task comprises identification information used for identifying each dial testing step and execution time for executing each dial testing step, and N is a natural number greater than or equal to 1;
the first storage module is used for storing each head task to a first queue according to the execution time of each dial testing step;
the second storage module is used for storing the target dial testing step into a second queue under the condition that the execution time of the target dial testing step is determined in the first queue;
and the first indicating module is used for indicating the target thread to execute the target dial testing step in the second queue so as to determine a dial testing result.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method of any of claims 1 to 7.
CN202210434757.6A 2022-04-24 2022-04-24 Execution method and device of dial testing task, storage medium and electronic device Pending CN114756348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210434757.6A CN114756348A (en) 2022-04-24 2022-04-24 Execution method and device of dial testing task, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210434757.6A CN114756348A (en) 2022-04-24 2022-04-24 Execution method and device of dial testing task, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114756348A true CN114756348A (en) 2022-07-15

Family

ID=82333826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210434757.6A Pending CN114756348A (en) 2022-04-24 2022-04-24 Execution method and device of dial testing task, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114756348A (en)

Similar Documents

Publication Publication Date Title
CN110928774B (en) Automatic test system based on node type
CN114756348A (en) Execution method and device of dial testing task, storage medium and electronic device
CN115499333A (en) Method, system, storage medium and electronic device for determining association relationship
CN116361155A (en) Method and device for testing software development kit, storage medium and electronic device
CN115065508A (en) Method and apparatus for processing device twin data, storage medium, and electronic apparatus
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN115934523A (en) Target test data generation method and device, storage medium and electronic device
CN114760235B (en) Method and device for executing dial testing task, storage medium and electronic device
CN116225834A (en) Alarm information sending method and device, storage medium and electronic device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN112328438A (en) Self-checking method and device of terminal equipment and computer storage medium
CN116302877A (en) Message queue performance test method and device
CN114826899B (en) Debugging method and device for equipment control service, storage medium and electronic device
CN115629961A (en) Method and device for determining debugging result, storage medium and electronic device
CN115167163A (en) Scene execution method and device, storage medium and electronic device
CN115373958A (en) Method and device for determining abnormal information, storage medium and electronic device
CN117834493A (en) Method and device for testing performance of Internet of things module and storage medium
CN115484116A (en) Equipment data processing method and device, storage medium and electronic device
WO2021098512A1 (en) Method and apparatus for quickly configuring cameras, and computer readable medium
CN116346686A (en) Information transmission method and device, storage medium and electronic device
CN115834435A (en) Interface test method and device, storage medium and electronic device
CN116301767A (en) Interface file generation method and device, storage medium and electronic device
WO2015115042A1 (en) Server, data processing method
CN116450080A (en) Interactive capability determining method and device, storage medium and electronic device
CN117687750A (en) Timing task scheduling method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination