CN112765015B - Test task distribution method based on terminal equipment, scheduling terminal and test system - Google Patents

Test task distribution method based on terminal equipment, scheduling terminal and test system Download PDF

Info

Publication number
CN112765015B
CN112765015B CN202110016782.8A CN202110016782A CN112765015B CN 112765015 B CN112765015 B CN 112765015B CN 202110016782 A CN202110016782 A CN 202110016782A CN 112765015 B CN112765015 B CN 112765015B
Authority
CN
China
Prior art keywords
terminal
test
task
proxy
state
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.)
Active
Application number
CN202110016782.8A
Other languages
Chinese (zh)
Other versions
CN112765015A (en
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.)
Aspire Technologies Shenzhen Ltd
Original Assignee
Aspire Technologies Shenzhen Ltd
Filing date
Publication date
Application filed by Aspire Technologies Shenzhen Ltd filed Critical Aspire Technologies Shenzhen Ltd
Priority to CN202110016782.8A priority Critical patent/CN112765015B/en
Publication of CN112765015A publication Critical patent/CN112765015A/en
Application granted granted Critical
Publication of CN112765015B publication Critical patent/CN112765015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a test task distribution method based on terminal equipment, a scheduling terminal and a test system, wherein the test task distribution method comprises the following steps: receiving terminal attributes and/or terminal models from terminal equipment; obtaining a test task matched with the terminal attribute according to the terminal attribute and a preset test library, or obtaining a test task matched with the terminal model according to the terminal model and the preset test library, wherein the preset test library comprises: terminal model, terminal attribute and matching information of the test task; and the test task is issued to the proxy terminal. The test task distribution method can be used for distributing the test task without manually selecting the terminal equipment to perform point-to-point distribution, so that the test efficiency is improved; meanwhile, the issuing of the test task can be performed not only according to the terminal model, but also according to other types of information of the terminal, and convenience is brought to the test of the terminal equipment.

Description

Test task distribution method based on terminal equipment, scheduling terminal and test system
Technical Field
The present invention relates to the field of testing, and in particular, to a testing task distribution method, a scheduling terminal, and a testing system based on a terminal device.
Background
The automatic test is a process of converting a test behavior driven by human into machine execution, and under the premise of completing basic function test, a tester can convert a test step in a test case into an automatic test step to obtain a comparison of an actual result and an expected result. Therefore, no matter for traditional platform products or mobile phone APP products, the automatic test has the characteristics of one-time writing, multiple-time running and repeated running, and in the process, the labor, time or hardware resources are saved, and the test efficiency is improved.
With the great development of the mobile internet, compared with the traditional platform type tested products, the emerging mobile phone APP has more technical necessity and demand urgency in the aspect of automatic testing. Firstly, compared with the traditional platform products, the mobile phone APP has more testing environments; secondly, compared with the prior test products, the mobile phone APP has higher version iteration development frequency and more vigorous automatic test requirements; finally, the mobile phone APP test method has more flexibility, for example, the Google corporation Monkey test is the basis of automatic test, and is more attractive for developers.
In the related art, the terminal equipment is required to be manually selected to perform the point-to-point issuing test task, so that great inconvenience is brought to the test of the terminal equipment.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides the test task issuing method, which can automatically match the test task according to the terminal model or the terminal attribute, and improves the test efficiency.
The invention also provides a scheduling terminal.
The invention further provides a test system based on the terminal equipment.
The invention also proposes a computer readable storage medium.
According to an embodiment of the first aspect of the present invention, a test task issuing method is executed by a scheduling terminal, and includes:
receiving terminal attributes and/or terminal models from terminal equipment;
Obtaining a test task matched with the terminal attribute according to the terminal attribute and a preset test library, or obtaining a test task matched with the terminal model according to the terminal model and the preset test library, wherein the preset test library comprises: the terminal model, the terminal attribute and the matching information of the test task; and issuing the test task to the proxy terminal.
The test task issuing method provided by the embodiment of the invention has at least the following beneficial effects: the scheduling terminal obtains the terminal model or terminal attribute of the terminal equipment, matches corresponding test tasks from a preset test library according to the terminal attribute and/or the terminal model, and then issues the test tasks to the proxy terminal, so that the terminal equipment performs corresponding tests, the terminal equipment does not need to be manually selected to perform point-to-point issuing test tasks, and the test efficiency is improved; meanwhile, the issuing of the test task can be performed not only according to the terminal model, but also according to other types of information of the terminal, and convenience is brought to the test of the terminal equipment.
According to some embodiments of the invention, the terminal attribute includes a terminal status, and the distribution method further includes: and adjusting the sequence of the test tasks issued to the terminal equipment according to the terminal state.
According to some embodiments of the invention, the method of distributing further comprises: acquiring the proxy state of the proxy terminal; and issuing the test task according to the proxy state or waiting for the proxy terminal to finish task execution.
According to some embodiments of the invention, the issuing the test task according to the proxy state or waiting for the proxy terminal to complete task execution includes: if the proxy state is available, issuing the test task to the proxy terminal; and if the proxy state is unavailable, waiting for the proxy terminal to finish task execution, and acquiring the proxy state of the next proxy terminal.
According to some embodiments of the invention, the method of distributing further comprises: acquiring preset time or a preset time period, and periodically acquiring terminal attributes and/or terminal models according to the preset time or the preset time period;
Periodically acquiring a test task matched with the terminal attribute according to the terminal attribute and a preset test library, or periodically acquiring the test task matched with the terminal model according to the terminal model and the preset test library;
and issuing the test task to the proxy terminal.
According to some embodiments of the invention, the terminal attribute further includes version information, type information, screen resolution.
The scheduling terminal according to the embodiment of the second aspect of the present invention comprises: the device comprises a receiving module, a matching module and a transmitting module. The receiving module is used for receiving terminal attributes and/or terminal models from terminal equipment; the matching module is used for acquiring a test task matched with the terminal attribute according to the terminal attribute and a preset test library or acquiring a test task matched with the terminal model according to the terminal model and the preset test library; the issuing module is used for issuing the test task to the proxy terminal.
The scheduling terminal provided by the embodiment of the invention has at least the following beneficial effects: acquiring the terminal model or terminal attribute of the terminal equipment, matching corresponding test tasks from a preset test library according to the terminal attribute and/or the terminal model, and then issuing the test tasks to the proxy terminal, so that the terminal equipment performs corresponding tests, the terminal equipment does not need to be manually selected to perform point-to-point issuing test tasks, and the test efficiency is improved; meanwhile, the issuing of the test task can be performed not only according to the terminal model, but also according to other types of information of the terminal, and convenience is brought to the test of the terminal equipment.
According to a third aspect of the invention, a test system comprises: scheduling terminal, proxy terminal and terminal equipment. The dispatching terminal is used for executing the distribution method according to any one of the embodiments of the first aspect and sending test tasks; the proxy terminal is used for receiving and sending the test task; the terminal equipment is connected with the proxy terminal and is used for testing according to the testing task.
The test task according to the embodiment of the invention has at least the following beneficial effects: the scheduling terminal obtains the terminal model or terminal attribute of the terminal equipment, matches corresponding test tasks from a preset test library according to the terminal attribute and/or the terminal model, and then issues the test tasks to the proxy terminal, so that the terminal equipment performs corresponding tests, the terminal equipment does not need to be manually selected to perform point-to-point issuing test tasks, and the test efficiency is improved; meanwhile, the issuing of the test task can be performed not only according to the terminal model, but also according to other types of information of the terminal, and convenience is brought to the test of the terminal equipment.
A computer readable storage medium according to an embodiment of the fourth aspect of the present invention stores computer executable instructions for performing the distribution method according to any of the embodiments of the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The invention is further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flow chart of a test task distribution method provided by some embodiments of the present invention;
FIG. 2 is a flow chart of a test task distribution method according to other embodiments of the present invention;
FIG. 3 is a block diagram of a test system according to other embodiments of the present invention.
Reference numerals: 310. scheduling a terminal; 311. a receiving module; 312. a matching module; 313. a issuing module; 320. a proxy terminal; 321. a data acquisition module; 330. and a terminal device.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, it should be understood that references to orientation descriptions such as upper, lower, front, rear, left, right, etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of description of the present invention and to simplify the description, and do not indicate or imply that the apparatus or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a number is one or more, the meaning of a number is two or more, and greater than, less than, exceeding, etc. are understood to exclude the present number, and the meaning of a number is understood to include the present number. The description of the first and second is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be reasonably determined by a person skilled in the art in combination with the specific contents of the technical scheme.
In the description of the present invention, the descriptions of the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In a first aspect, referring to fig. 1, some embodiments of the present application provide a test task distribution method, which is performed by a scheduling terminal, including but not limited to step S110, step S120, and step S130.
Step S110: receiving terminal attributes and/or terminal models from terminal equipment;
step S120: obtaining a test task matched with the terminal attribute according to the terminal attribute and a preset test library, or obtaining a test task matched with the terminal model according to the terminal model and the test library, wherein the preset test library comprises: the terminal model, the terminal attribute and the matching information of the test task;
step S130: and issuing the test task to the proxy terminal.
In an embodiment of the application, the test tasks include automated test scripts and terminal information that needs to be overlaid. The terminal information to be covered includes two cases: 1. specific terminal models, such as millet 8 mobile phones, millet 9 mobile phones and the like; 2. the specific terminal attribute, such as 1920×1080 screen resolution, OS version Android9, etc., wherein when the terminal attribute is 1920×1080 screen resolution, all terminal devices with 1920×1080 screen resolution are required to execute test tasks; when the terminal attribute is defined as the OS version Android9, all OS versions are equal to the Android9 (including small versions) and test tasks need to be executed. In the whole test task distribution method, a double-queue (task queue and terminal queue) mode is adopted to manage the test tasks, namely, after a dispatching terminal receives terminal information of terminal equipment, the terminal information is pushed into the terminal queue, and then matching is carried out according to the terminal information in the terminal queue to form the task queue. It will be appreciated by those skilled in the art that the queues have a first-in, first-out nature.
Specifically, in this embodiment, the data acquisition module of the proxy terminal acquires the terminal attribute and the terminal model of the connected terminal device, and sends the acquired information to the scheduling terminal, and the scheduling terminal receives the information from the terminal device and pushes the information of the terminal device to the terminal queue. The scheduling terminal is internally provided with a preset test library, and the preset test library comprises: the terminal model, the terminal attribute and the matching information of the test task. The scheduling terminal matches the corresponding test tasks according to the terminal model or terminal attribute and the corresponding matching information to form a task queue, and then issues the test tasks to the terminal equipment through the proxy terminal, so that the terminal equipment performs the corresponding test according to the test tasks. Such as: the scheduling terminal receives the terminal model and the terminal information acquired by the data acquisition module, and the scheduling terminal discovers that the terminal equipment belongs to a single terminal model through analysis, and the scheduling terminal matches corresponding test tasks from a preset test library and pushes the test tasks into a task queue directly; when the terminal information contains terminal attributes (such as screen resolution 1920 and 1080), intelligent matching is performed according to the reported terminal information in the terminal queue (the matching behavior is performed according to relevant data such as the terminal attributes and the like and is irrelevant to the terminal state), and finally a corresponding test task is formed and pushed into the task queue.
The scheduling terminal obtains the terminal model or terminal attribute of the terminal equipment, matches corresponding test tasks from a preset test library according to the terminal attribute and/or the terminal model, and then issues the test tasks to the proxy terminal, so that the terminal equipment performs corresponding tests, the terminal equipment does not need to be manually selected to perform point-to-point issuing test tasks, and the test efficiency is improved; meanwhile, the issuing of the test task can be performed not only according to the terminal model, but also according to other types of information of the terminal, and convenience is brought to the test of the terminal equipment.
In some embodiments of the present application, the terminal attribute further includes version information, type information, screen resolution.
In this embodiment, the scheduling terminal selects a corresponding test task from a preset test library according to version information (such as Android9, etc.), type information (such as Android or IOS), screen resolution (such as screen resolution 1920×1080), etc. of the terminal device, and issues the corresponding test task to the proxy terminal, so that the terminal devices with the same attribute execute the corresponding test task. Such as: when the terminal attribute is determined to be 1920×1080 of screen resolution, all terminal devices with the screen resolution meeting 1920×1080 need to execute test tasks; when the terminal attribute is defined as the OS version Android9, all OS versions are equal to the Android9 (including small versions) and test tasks need to be executed.
In some embodiments of the present application, the terminal attribute further includes a terminal state, and the test task distribution method further includes, but is not limited to, step S140.
Step S140: and adjusting the sequence of issuing the test tasks to the terminal equipment according to the state of the terminal.
In the present embodiment, step S140 includes, but is not limited to, step S141, step S142.
Step S141: if the terminal state is available, directly issuing a test task to the terminal equipment;
Step S142: and if the terminal state is unavailable, placing the test task in a task queue, and acquiring the terminal state of the next terminal device.
Specifically, in this embodiment, when a test task exists in the task queue, the scheduling terminal retrieves the test task according to the principle of "first in first out" of the queue, and sends the test task to the designated terminal device for execution according to the terminal state in the terminal queue. If the terminal state is available, directly issuing a test task to the terminal equipment, and directly running the test task; if the terminal state of the terminal equipment is unavailable, the terminal state of the next terminal equipment is acquired until the terminal equipment state is available, and the task is issued. Through the arrangement, when the first terminal equipment is unavailable, the first terminal equipment is directly issued to the second terminal equipment to be executed, and the like, so that the testing efficiency is improved, and the use ratio of the terminal equipment is improved.
In an embodiment of the present application, the test task distribution method further includes, but is not limited to, step S150 and step S160.
Step S150: acquiring the proxy state of a proxy terminal;
step S160: and issuing a test task according to the proxy state or waiting for the proxy terminal to finish task execution.
In the present embodiment, step S160 includes, but is not limited to, step S161 and step S162.
Step S161: if the agent state is available, issuing a test task to the agent terminal;
Step S162: and if the proxy state is unavailable, waiting for the proxy terminal to finish task execution, and acquiring the proxy state of the next proxy terminal.
Specifically, in this embodiment, when the proxy terminal is in an idle state or a state with less task accumulation, the proxy state of the proxy terminal is available, in this case, the scheduling terminal directly issues the test task to the proxy terminal, and the proxy terminal controls the terminal device to execute the test task. When the tasks of the proxy terminal are excessively piled up or some special single tasks (such as a special terminal model) are executed, the proxy state of the proxy terminal is unavailable (when the piled up number of the tasks is smaller than a piled up threshold value, the proxy state is set to be available), in this case, the scheduling terminal waits for the proxy terminal to complete task execution, and acquires the proxy state of the next proxy terminal. Through the arrangement, the problem of low testing efficiency caused by stacking or idle testing tasks is solved, the usability of the proxy terminal is improved, and the utilization rate of the proxy terminal is improved to a greater extent.
In an embodiment, the data acquisition module of the proxy terminal acquires the terminal state of the terminal device, and when the terminal state is unavailable, the proxy terminal automatically reports that the terminal state of the terminal device is unavailable, so that the test task related to the terminal device in the task queue is ensured not to be taken out temporarily until the task execution of the terminal device is completed.
Referring to fig. 2, in some embodiments of the present application, the test task distribution method further includes, but is not limited to, step S210, step S220, and step S230.
Step S210: acquiring preset time or a preset time period, and periodically acquiring terminal attributes and/or terminal models according to the preset time or the preset time period;
step S220: periodically acquiring test tasks matched with the terminal attributes according to the terminal attributes and a preset test library, or periodically acquiring test tasks matched with the terminal model according to the terminal model and the preset test library;
Step S230: and issuing the test task to the proxy terminal.
Specifically, in the present embodiment, a Quartz timed task technique is adopted to schedule the test tasks. The Quartz timing task (Quartz is an open source project of OpenSymphony open source organization in Job scheduling field, is developed by Java completely, can be used for executing the timing task, can keep the state of scheduling timing, and can effectively manage the scheduling task.) uses the Quartz timing task technology to set preset time or preset time period, and then periodically acquires terminal attribute and/or terminal model according to the preset time or preset time period, so that the terminal equipment periodically executes the test task.
Referring to fig. 3, in a second aspect, some embodiments of the present application provide a scheduling terminal 310 including a receiving module 311, a matching module 312, and a receiving module 311. Wherein, the receiving module 311 is configured to receive a terminal attribute and/or a terminal model from the terminal device 330; the matching module 312 is configured to obtain a test task matching the terminal attribute according to the terminal attribute and a preset test library, or obtain a test task matching the terminal model according to the terminal model and the preset test library; the issuing module 313 is configured to issue a test task to the proxy terminal 320.
The receiving module 311 receives terminal information from the terminal device 330 of the proxy terminal 320, and pushes the terminal information into the terminal queue. The matching module 312 selects a test task matching the terminal information from the preset test library, and forms a task queue matching the terminal information in the terminal queue. The issuing module 313 then takes out the test task from the task queue, and issues the task according to the terminal status of the corresponding terminal device 330. If the terminal state is the available state, directly issuing the test task to the proxy terminal 320; if the terminal state is unavailable, the test task is placed at the back of the task queue, the next test task is taken out, the terminal state of the terminal device 330 corresponding to the next test task is obtained, and so on.
By acquiring the terminal model or terminal attribute of the terminal equipment 330 and matching the corresponding test task from the preset test library according to the terminal attribute and/or the terminal model, and then issuing the test task to the proxy terminal 320, the terminal equipment 330 is enabled to perform the corresponding test, the terminal equipment 330 does not need to be manually selected to perform the point-to-point issuing test task, and the test efficiency is improved; meanwhile, the issuing of the test task not only depends on the terminal model, but also can depend on other types of information of the terminal, thereby bringing convenience to the test of the terminal equipment 330. And, all information is concentrated at the dispatching terminal 310 to form a terminal queue and a task queue, and the dispatching terminal 310 distributes tasks uniformly, so that the occurrence of the situation of false or missed delivery can be reduced, and the testing efficiency is improved.
Referring to fig. 3, in a third aspect, some embodiments of the present application further provide a test system including a scheduling terminal 310, a proxy terminal 320, and a terminal device 330. Wherein, the scheduling terminal 310 is configured to perform the test task distribution method according to any one of the embodiments of the first aspect, and is configured to send a test task; the proxy terminal 320 is configured to receive and send a test task; the terminal device 330 is connected to the proxy terminal 320 for testing according to the test task.
Specifically, in the present embodiment, the proxy terminal 320 is a PC (Personal Computer ) device, and the terminal device 330 is a mobile phone, and is connected to the PC through a USB data line. The PC is provided with a data acquisition module 321 for acquiring and sending terminal information of the mobile phone and the like to the scheduling terminal 310, and meanwhile, path information of the PC and the mobile phone is carried by the terminal information and the like and uploaded to the scheduling terminal 310.
The scheduling terminal 310 receives the terminal information from the terminal device 330 of the proxy terminal 320, pushes the terminal information into a terminal queue, and selects a test task matched with the terminal information from a preset test library to form a task queue matched with the terminal information in the terminal queue. The scheduling terminal 310 then takes the test task out of the task queue, and issues the task according to the terminal state of the corresponding terminal device 330. If the terminal state is the available state, directly issuing the test task to the proxy terminal 320; if the terminal state is unavailable, the test task is placed at the back of the task queue, the next test task is taken out, the terminal state of the terminal device 330 corresponding to the next test task is obtained, and so on.
After the available test tasks are issued to the proxy terminal 320, the proxy terminal 320 issues the test tasks to the terminal device 330 for execution through the USB data line. After the test task starts to be executed, the proxy terminal 320 reports that the terminal equipment is unavailable, so as to ensure that the following scheduling terminal 310 cannot issue the task, and after the task is executed, the test result is uploaded to the scheduling terminal 310.
By acquiring the terminal model or terminal attribute of the terminal equipment 330 and matching the corresponding test task from the preset test library according to the terminal attribute and/or the terminal model, and then issuing the test task to the proxy terminal 320, the terminal equipment 330 is enabled to perform the corresponding test, the terminal equipment 330 does not need to be manually selected to perform the point-to-point issuing test task, and the test efficiency is improved; meanwhile, the issuing of the test task not only depends on the terminal model, but also can depend on other types of information of the terminal, thereby bringing convenience to the test of the terminal equipment 330. And, all information is concentrated at the dispatching terminal 310 to form a terminal queue and a task queue, and the dispatching terminal 310 distributes tasks uniformly, so that the occurrence of the situation of false or missed delivery can be reduced, and the testing efficiency is improved.
Referring now to fig. 1-3, a test system in accordance with an embodiment of the present invention will be described in detail in one specific embodiment. It is to be understood that the following description is exemplary only and is not intended to limit the scope of the invention.
The test system includes a terminal device 330, a proxy terminal 320, and a dispatch terminal 310. The scheduling terminal 310 is a cloud server in this embodiment, and is configured to perform the test task distribution method according to any one of the embodiments of the first aspect. The proxy terminal 320 is a PC (Personal Computer ) device in this embodiment, for receiving and executing a scheduling instruction of the scheduling terminal 310; the terminal device 330, in this embodiment a mobile phone, is connected to the PC via a USB data line. The PC is provided with a data acquisition module 321 for acquiring and sending terminal information of the mobile phone and the like to the scheduling terminal 310, and meanwhile, path information of the PC and the mobile phone is carried by the terminal information and the like and uploaded to the scheduling terminal 310. The test tasks to be tested are input into a preset test library by a tester in advance.
The cloud server receives terminal information of the mobile phone from the PC equipment, pushes the terminal information into a terminal queue, and selects a test task matched with the terminal information from a preset test library to form a task queue matched with the terminal information in the terminal queue. And the cloud server takes the test task out of the task queue, and issues the task according to the terminal state of the corresponding mobile phone. If the terminal state is the available state, directly issuing the test task to the PC equipment; if the terminal state is the unavailable state, the test task is placed at the back of the task queue, the next test task is taken out, the terminal state of the mobile phone corresponding to the next test task is obtained, and the like.
After the available test tasks are issued to the PC equipment, the PC equipment issues the test tasks to the mobile phone for execution through the USB data line. After the test task starts to be executed, the PC equipment reports that the equipment of the terminal is unavailable so as to ensure that the cloud server can not issue the task. And after the task is executed, uploading the test result to the cloud server.
In the test system, the cloud server can perform the corresponding test tasks according to the terminal attributes of the mobile phone, if the test tasks are all Android9 to be tested, if the cloud server judges that the version of the mobile phone is Android9, the mobile phone is directly subjected to intelligent matching according to the reported terminal information in the terminal queue, so that the test is realized.
In the test system, a Quartz timed task technology is also adopted to schedule the test tasks. The preset time or the preset time period is set by using the Quartz timing task technology, and the terminal attribute and/or the terminal model are/is obtained regularly according to the preset time or the preset time period, so that the mobile phone can execute the test task regularly, and the issuing of the test task of the cloud server is more flexible.
By acquiring the terminal model or terminal attribute of the terminal equipment 330 and matching the corresponding test task from the preset test library according to the terminal attribute and/or the terminal model, and then issuing the test task to the proxy terminal 320, the terminal equipment 330 is enabled to perform the corresponding test, the terminal equipment 330 does not need to be manually selected to perform the point-to-point issuing test task, and the test efficiency is improved; meanwhile, the issuing of the test task not only depends on the terminal model, but also can depend on other types of information of the terminal, thereby bringing convenience to the test of the terminal equipment 330. And, all information is concentrated at the dispatching terminal 310 to form a terminal queue and a task queue, and the dispatching terminal 310 distributes tasks uniformly, so that the occurrence of the situation of false or missed delivery can be reduced, and the testing efficiency is improved.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium.
In some embodiments, a computer readable storage medium stores computer executable instructions for performing the test task distribution method mentioned in the embodiments of the first aspect.
In some embodiments, the storage medium stores computer-executable instructions that are executed by one or more control processors, e.g., by one of the processors in the electronic device, to cause the one or more processors to perform the test task distribution method.
The above described apparatus embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.

Claims (6)

1. The test task distribution method based on the terminal equipment is characterized by being executed by a dispatching terminal and comprising the following steps:
receiving terminal attributes and/or terminal models from terminal equipment, and storing the terminal attributes and/or terminal models of the terminal equipment into a terminal queue, wherein the terminal attributes comprise terminal states, and the terminal queue is used for storing a plurality of terminal models and/or terminal attributes;
Acquiring terminal attributes and/or terminal models based on the terminal queues;
Obtaining a test task matched with the terminal attribute according to the terminal attribute and a preset test library, or obtaining a task queue matched with the terminal queue according to the terminal model and the preset test library, wherein the preset test library comprises: the task queue is used for storing test tasks corresponding to a plurality of terminal models and/or terminal attributes;
and adjusting the sequence of the test tasks issued to the terminal equipment according to the terminal state, wherein the sequence comprises the following steps:
If the terminal state is available, issuing the test task to the terminal equipment through an agent terminal;
If the terminal state is unavailable, placing the test task at the back of the task queue, taking out the next test task, obtaining the terminal state of terminal equipment corresponding to the next test task, and adjusting the sequence of issuing the test task to the terminal equipment according to the terminal state;
the issuing the test task to the terminal equipment through the proxy terminal comprises the following steps:
acquiring the proxy state of the proxy terminal, and issuing the test task according to the proxy state or waiting for the proxy terminal to finish task execution;
The step of issuing the test task or waiting for the agent terminal to complete task execution according to the agent state comprises the following steps:
If the proxy state is available, the test task is issued to the proxy terminal, and the test task is issued to the terminal equipment through the proxy terminal; the test tasks are issued to the proxy terminal, so that terminal equipment with the same attribute executes corresponding test tasks;
And if the proxy state is unavailable, waiting for the proxy terminal to finish task execution, acquiring the proxy state of the next proxy terminal, and issuing the test task or waiting for the proxy terminal to finish task execution according to the proxy state.
2. The distribution method according to claim 1, characterized in that the distribution method further comprises:
Acquiring preset time or a preset time period, and periodically acquiring terminal attributes and/or terminal models according to the preset time or the preset time period;
periodically acquiring the test tasks matched with the terminal attributes according to the terminal attributes and a preset test library, or periodically acquiring the test tasks matched with the terminal model according to the terminal model and the preset test library;
and issuing the test task to the proxy terminal.
3. The distribution method according to claim 1, wherein the terminal attribute further includes version information, type information, screen resolution.
4. A scheduling terminal, comprising:
The terminal equipment comprises a receiving module, a receiving module and a terminal queue, wherein the receiving module is used for receiving terminal attributes and/or terminal models from terminal equipment, storing the terminal attributes and/or the terminal models of the terminal equipment into the terminal queue, and the terminal queue is used for storing a plurality of terminal models and/or terminal attributes;
The matching module is used for acquiring terminal attributes and/or terminal models based on the terminal queues, acquiring test tasks matched with the terminal attributes according to the terminal attributes and a preset test library, or acquiring test tasks matched with the terminal models according to the terminal models and the preset test library, and acquiring task queues matched with the terminal queues, wherein the preset test library comprises: the task queue is used for storing test tasks corresponding to a plurality of terminal models and/or terminal attributes;
The issuing module is used for adjusting the sequence of issuing the test tasks to the terminal equipment according to the terminal state, and comprises the following steps:
If the terminal state is available, issuing the test task to the terminal equipment through an agent terminal;
If the terminal state is unavailable, placing the test task at the back of the task queue, taking out the next test task, obtaining the terminal state of terminal equipment corresponding to the next test task, and adjusting the sequence of issuing the test task to the terminal equipment according to the terminal state;
the issuing the test task to the terminal equipment through the proxy terminal comprises the following steps:
acquiring the proxy state of the proxy terminal, and issuing the test task according to the proxy state or waiting for the proxy terminal to finish task execution;
The step of issuing the test task or waiting for the agent terminal to complete task execution according to the agent state comprises the following steps:
If the proxy state is available, the test task is issued to the proxy terminal, and the test task is issued to the terminal equipment through the proxy terminal; the test tasks are issued to the proxy terminal, so that terminal equipment with the same attribute executes corresponding test tasks;
And if the proxy state is unavailable, waiting for the proxy terminal to finish task execution, acquiring the proxy state of the next proxy terminal, and issuing the test task or waiting for the proxy terminal to finish task execution according to the proxy state.
5. A terminal equipment-based test system, comprising:
A scheduling terminal for performing the distribution method according to any one of claims 1 to 3 and for transmitting test tasks;
The proxy terminal is used for receiving and sending the test task;
And the terminal equipment is connected with the proxy terminal and is used for testing according to the testing task.
6. A computer readable storage medium storing computer executable instructions for performing the distribution method according to any one of claims 1 to 3.
CN202110016782.8A 2021-01-07 Test task distribution method based on terminal equipment, scheduling terminal and test system Active CN112765015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110016782.8A CN112765015B (en) 2021-01-07 Test task distribution method based on terminal equipment, scheduling terminal and test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110016782.8A CN112765015B (en) 2021-01-07 Test task distribution method based on terminal equipment, scheduling terminal and test system

Publications (2)

Publication Number Publication Date
CN112765015A CN112765015A (en) 2021-05-07
CN112765015B true CN112765015B (en) 2024-07-09

Family

ID=

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117289A (en) * 2015-09-30 2015-12-02 北京奇虎科技有限公司 Task allocation method, device and system based on cloud testing platform
CN105183564A (en) * 2015-09-30 2015-12-23 北京奇虎科技有限公司 Equipment scheduling method, device and system based on cloud testing platform
CN108959100A (en) * 2018-07-20 2018-12-07 中国邮政储蓄银行股份有限公司 Test method, the device and system of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117289A (en) * 2015-09-30 2015-12-02 北京奇虎科技有限公司 Task allocation method, device and system based on cloud testing platform
CN105183564A (en) * 2015-09-30 2015-12-23 北京奇虎科技有限公司 Equipment scheduling method, device and system based on cloud testing platform
CN108959100A (en) * 2018-07-20 2018-12-07 中国邮政储蓄银行股份有限公司 Test method, the device and system of application program

Similar Documents

Publication Publication Date Title
CN107302476B (en) Automatic testing method and system for testing asynchronous interactive system
CN111190810B (en) Method, device, server and storage medium for executing test task
CN109359020A (en) Start time test method and device, computer installation and storage medium
CN113672500B (en) Deep learning algorithm testing method and device, electronic device and storage medium
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
CN112631919A (en) Comparison test method and device, computer equipment and storage medium
CN111459631A (en) Automatic batch processing method and system for server
CN112882939A (en) Automatic testing method and device, electronic equipment and storage medium
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN109873731B (en) Test method, device and system
CN110113391A (en) A kind of client loading method, device and a kind of client operation method, device
CN112765015B (en) Test task distribution method based on terminal equipment, scheduling terminal and test system
CN113849399A (en) Automatic testing system and method for multi-machine cooperative software under multi-localization platform
CN110764911A (en) Resource scheduling method, device and control system based on order
CN112825525A (en) Method and apparatus for processing transactions
CN112765015A (en) Test task distribution method based on terminal equipment, scheduling terminal and test system
CN115309558A (en) Resource scheduling management system, method, computer equipment and storage medium
CN113760768A (en) Test method, monitoring platform, electronic equipment and storage medium
CN115221041A (en) Multi-device testing method and device, electronic device and storage medium
CN109151007B (en) Data processing method, core server and transmission server for application scheduling
CN110399290A (en) Test device, method and the storage medium of message push
CN113448561B (en) CI-based differential analysis method for automation demand progress and management server
US6920585B1 (en) Resource management for testing a communication system
US20240152504A1 (en) Data interaction method, apparatus, and electronic device
CN114756336A (en) Distributed timing task execution method, device, equipment and medium

Legal Events

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