CN110740152A - Test task processing method, device and system - Google Patents

Test task processing method, device and system Download PDF

Info

Publication number
CN110740152A
CN110740152A CN201810802202.6A CN201810802202A CN110740152A CN 110740152 A CN110740152 A CN 110740152A CN 201810802202 A CN201810802202 A CN 201810802202A CN 110740152 A CN110740152 A CN 110740152A
Authority
CN
China
Prior art keywords
test
task
test task
channel
establishing
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.)
Granted
Application number
CN201810802202.6A
Other languages
Chinese (zh)
Other versions
CN110740152B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810802202.6A priority Critical patent/CN110740152B/en
Publication of CN110740152A publication Critical patent/CN110740152A/en
Application granted granted Critical
Publication of CN110740152B publication Critical patent/CN110740152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device and a system for processing a test task, wherein the method comprises the steps of receiving the test task submitted by a front-end page, starting a back-end agent object corresponding to the test task when the test task is a -type test task, and establishing a test channel for transmitting messages in the test process based on the back-end agent object corresponding to the test task.

Description

Test task processing method, device and system
Technical Field
The invention relates to the field of software testing, in particular to a method, a device and a system for processing a testing task.
Background
Currently, testing for many applications is accomplished by: the testing personnel are connected with a plurality of testing terminals on the testing server, and the testing personnel are connected with the server through the client side to realize corresponding tests on the testing terminals.
However, if the connection from the client to the server is a remote network connection, a problem of how to implement communication inevitably arises, and if a plurality of clients need to control a plurality of devices, congestion arises, and how to schedule is also a problem to be solved.
Disclosure of Invention
In view of the above, the present invention has been developed to provide processing methods, apparatuses, and systems for testing tasks that overcome or at least partially address the above-mentioned problems.
According to aspects of the invention, a processing method of test tasks is provided, which comprises the following steps:
receiving a test task submitted by a front-end page;
and when the test task is the -type test task, starting a back-end agent object corresponding to the test task, and establishing a test channel for transmitting messages in the test process based on the back-end agent object corresponding to the test task.
Optionally, the establishing a test channel for transmitting a message in a test process based on the backend agent object corresponding to the test task includes:
and establishing a test channel through the websocket object and the front-end proxy object of the front-end page, the rear-end proxy object corresponding to the test task, the test server and the test terminal.
Optionally, the -type test task comprises a performance test task and/or a performance-specific test task of the html5 page.
Optionally, the method further comprises:
and when the test task is the second type of test task, distributing a corresponding message processing object for the test task, and establishing a test channel based on the message processing object.
Optionally, the message processing object is capable of processing messages delivered by the second type of test task during the test procedure and is incapable of processing messages delivered by the th type of test task during the test procedure.
Optionally, the message processing object is generated according to a preset message processing object mirror image.
Optionally, the establishing a test channel based on the message processing object includes:
and establishing a test channel through the websocket object of the front-end page, the front-end proxy object, the message processing object, the rear-end general proxy object, the test server and the test terminal.
Optionally, messages passed through the test channel are processed based on zeroMQ.
According to another aspect of the present invention, there is provided a processing apparatus for test tasks, comprising:
the test task receiving unit is suitable for receiving the test tasks submitted by the front-end page;
and the test channel establishing unit is suitable for starting a back-end agent object corresponding to the test task when the test task is the th type test task, and establishing a test channel for transmitting the message in the test process based on the back-end agent object corresponding to the test task.
Optionally, the test channel establishing unit is adapted to establish a test channel through the websocket object of the front-end page, the front-end proxy object, the back-end proxy object corresponding to the test task, the test server, and the test terminal.
Optionally, the -type test task comprises a performance test task and/or a performance-specific test task of the html5 page.
Optionally, the test channel establishing unit is further adapted to, when the test task is a second type of test task, allocate a corresponding message processing object to the test task, and establish the test channel based on the message processing object.
Optionally, the message processing object is capable of processing messages delivered by the second type of test task during the test procedure and is incapable of processing messages delivered by the th type of test task during the test procedure.
Optionally, the message processing object is generated according to a preset message processing object mirror image.
Optionally, the test channel establishing unit is adapted to establish a test channel through a websocket object of a front-end page, a front-end proxy object, the message processing object, a back-end general proxy object, a test server, and a test terminal.
Optionally, messages passed through the test channel are processed based on zeroMQ.
According to yet another aspect of the invention, there is provided a test task processing system, comprising or more clients, a test server, a test task processing device as described in any of above, and or more test terminals;
the client is suitable for displaying a front-end page, receiving a submitted test task through the front-end page and sending the test task to a processing device of the test task;
the test server is suitable for connecting one or more test terminals;
the test server, the test terminal and the client are also suitable for transmitting messages in the test process according to the test channel established by the processing device of the test task.
According to a further aspect of the invention, there is provided electronic device comprising a processor and a memory arranged to store computer executable instructions which, when executed, cause the processor to perform the method of any of as described above.
According to yet another aspect of the invention there is provided computer readable storage medium storing or more programs which, when executed by a processor, perform the method as any of above, or more programs.
It can be seen from the above that, according to the technical solution of the present invention, by receiving a test task submitted by a front-end page, when it is determined that the test task is the th type of test task, a back-end agent object corresponding to the test task is started, and a test channel for transmitting a message in a test process is established based on the back-end agent object corresponding to the test task.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a processing method of test tasks according to embodiments of the invention;
FIG. 2 is a schematic diagram of a processing device for test tasks according to embodiments of the invention;
FIG. 3 is a diagram illustrating a message handling architecture in accordance with embodiments of the present invention;
FIG. 4 is a schematic diagram of a processing system for test tasks in accordance with embodiments of the present invention;
FIG. 5 shows a schematic structural diagram of an electronic device according to embodiments of the invention;
fig. 6 shows a structural diagram of embodiments of the computer-readable storage medium according to the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 is a flow chart illustrating a processing method of test tasks according to embodiments of the invention, as shown in FIG. 1, the method includes:
step S110, receiving a test task submitted by a front-end page. The front-end page may be accessed through an application or browser.
Step S120, when the test task is the th type test task, starting a back-end agent object corresponding to the test task, and establishing a test channel for transmitting a message in the test process based on the back-end agent object corresponding to the test task.
It can be seen that, in the method shown in fig. 1, by receiving a test task submitted by a front-end page, when it is determined that the test task is a -type test task, a back-end agent object corresponding to the test task is started, and a test channel for transmitting a message in a test process is established based on the back-end agent object corresponding to the test task.
Since the message transmitted during the testing process is actually from the client to the testing terminal, in embodiments of the present invention, in the method, establishing the testing channel for transmitting the message during the testing process based on the back-end proxy object corresponding to the testing task includes establishing the testing channel through the websocket object of the front-end page, the front-end proxy object, the back-end proxy object corresponding to the testing task, the testing server, and the testing terminal.
Fig. 3 shows a message processing architecture diagram according to embodiments of the present invention, fig. 3 shows components on which a test channel is established for a test task of th type, and also shows components on which a test channel is established for a test task of a second type.
In embodiments of the present invention, the method further includes, when the test task is a second type of test task, allocating a corresponding message processing object to the test task, and establishing a test channel based on the message processing object, and in particular, in embodiments of the present invention, establishing the test channel based on the message processing object includes establishing the test channel through a websocket object of a front-end page, a front-end proxy object, the message processing object, a back-end generic proxy object, a test server, and a test terminal.
That is, for (most of the test tasks in practical applications), the message transmission process is that the client transmits the message to the front-end proxy object through the websocket object, the front-end proxy object transmits the message to the corresponding message processing object, and there are multiple message processing objects, so that support can be achieved for multiple clients, and naturally, scheduling needs to be achieved, and the scheduling needs to be achieved by using a message queue, and the message on each message processing object is sequentially scheduled to the back-end proxy object according to the message queue, and then sent to the test server by the back-end proxy object, and then transmitted to the corresponding test terminal by the test server.
However, problems may arise in that in embodiments of the present invention, the message processing objects are generated from pre-set message processing object images in the above method, then it is clear that the functionality of the message processing object images is already consolidated, and then if a new type of test task occurs, it may be necessary to make a large improvement to the message processing object images.
In practice, such test tasks do exist, but the message processing object mirror can not be applied with other test tasks, for example, in embodiments of the present invention, the th type of test task includes a performance test task and/or a performance specific test task of html5 page, which may involve recording of a User Interface (UI), which is not typically used in among other test tasks, and which requires a large improvement over the existing message processing object mirror.
To solve this problem, the solution proposed by the embodiment of the present invention is to not generate message processing objects for type test tasks, but to set backend proxy objects separately, so the flow of message passing through the test channel is that the client passes the message to the frontend proxy object through the websocket object, the frontend proxy object passes the message directly to independent backend proxy objects, and then the backend proxy object sends the message to the test server, and then the test server passes the message to the corresponding test terminal, and the flow of message passing from the test terminal to the client is similar, and will not be described in detail herein, as can be seen from fig. 3, the backend generic proxy object is in communication with each message processing object, and the backend proxy object is in communication with the frontend proxy object directly, and thus, the message scheduling is not affected.
In embodiments of the present invention, the above method processes messages passed through the test channel based on zeroMQ.
Specifically, the communication between the front-end proxy object and the websocket object may be in a divide-and-conquer (pull/push) mode and a publish-and-subscribe (pub/sub) mode, for example, the websocket object sends a test command through a push, the front-end proxy object receives through the pull, the websocket object subscribes to returned test data through the sub, and the front-end proxy object issues test data through the pub, the communication between the front-end proxy object and the back-end proxy object, the front-end proxy object and the message processing object, and the message processing object and the back-end generic proxy object use a route (retainer-router) mode to achieve message scheduling, for example, when a message is sent from a retainer object corresponding to a type test task, the message processing object is directly skipped to be transmitted to a retainer object in the back-end proxy object, when a message is sent from a retainer object corresponding to a second type test task, the message needs to be sent to the retainer object in the corresponding message processing object first, then sent to the retainer object in the back-end proxy object, and then the post-end generic proxy object is connected to the post-end test server, and the post-end test proxy object (post-end server) also sends data through the publish/sub) mode, and the post-test proxy object.
Fig. 2 is a schematic structural diagram of a processing device of test tasks according to embodiments of the invention, as shown in fig. 2, the processing device 200 of the test tasks comprises:
the test task receiving unit 210 is adapted to receive a test task submitted by a front-end page. The front-end page may be accessed through an application or browser.
The test channel establishing unit 220 is adapted to, when the test task is the th type test task, start a back-end proxy object corresponding to the test task, and establish a test channel for transmitting a message in a test process based on the back-end proxy object corresponding to the test task.
It can be seen that, the apparatus shown in fig. 2 receives a test task submitted by a front-end page through the mutual cooperation of the units, starts a back-end agent object corresponding to the test task when it is determined that the test task is the th type of test task, and establishes a test channel for transmitting messages in the test process based on the back-end agent object corresponding to the test task.
Since the message transmitted during the testing process is actually from the client to the testing terminal, in embodiments of the present invention, in the above apparatus, the testing channel establishing unit 220 is adapted to establish the testing channel through the websocket object of the front-end page, the front-end proxy object, the back-end proxy object corresponding to the testing task, the testing server, and the testing terminal.
FIG. 3 illustrates message processing architecture diagrams according to embodiments of the present invention, components on which a test channel is established for a test task of th type are illustrated in FIG. 3, as are components on which a test channel is established for a test task of a second type.
In embodiments of the present invention, the test channel creating unit 220 in the above-mentioned apparatus is further adapted to allocate a corresponding message processing object to the test task and create the test channel based on the message processing object when the test task is the second type of test task, specifically, in embodiments of the present invention, the test channel creating unit 220 in the above-mentioned apparatus is adapted to create the test channel through the websocket object of the front-end page, the front-end proxy object, the message processing object, the back-end generic proxy object, the test server, and the test terminal.
That is, for (most of the test tasks in practical applications), the message transmission process is that the client transmits the message to the front-end proxy object through the websocket object, the front-end proxy object transmits the message to the corresponding message processing object, and there are multiple message processing objects, so that support can be achieved for multiple clients, and naturally, scheduling needs to be achieved, and the scheduling needs to be achieved by using a message queue, and the message on each message processing object is sequentially scheduled to the back-end proxy object according to the message queue, and then sent to the test server by the back-end proxy object, and then transmitted to the corresponding test terminal by the test server.
However, problems may arise in that in embodiments of the present invention, the message processing objects are generated from pre-set message processing object images in the above-described apparatus, then it is clear that the functionality of the message processing object images is already consolidated, and then if a new type of test task occurs, it may be necessary to make a large improvement to the message processing object images.
In practice, such testing tasks do exist, but are not applicable to message processing object images with other testing tasks, for example, in embodiments of the present invention, the th type of testing task in the above-described apparatus includes a html5 page performance testing task and/or a performance specific testing task.
To solve this problem, the solution proposed by the embodiment of the present invention is to not generate message processing objects for type test tasks, but to set backend proxy objects separately, so the flow of message passing through the test channel is that the client passes the message to the frontend proxy object through the websocket object, the frontend proxy object passes the message directly to independent backend proxy objects, and then the backend proxy object sends the message to the test server, and then the test server passes the message to the corresponding test terminal, and the flow of message passing from the test terminal to the client is similar, and will not be described in detail herein, as can be seen from fig. 3, the backend generic proxy object is in communication with each message processing object, and the backend proxy object is in communication with the frontend proxy object directly, and thus, the message scheduling is not affected.
In embodiments of the invention, the messages passed through the test channel are processed based on ZeroMQ in the above-described devices.
Specifically, the communication between the front-end proxy object and the websocket object may be in a divide-and-conquer (pull/push) mode and a publish-and-subscribe (pub/sub) mode, for example, the websocket object sends a test command through a push, the front-end proxy object receives through the pull, the websocket object subscribes to returned test data through the sub, and the front-end proxy object issues test data through the pub, the communication between the front-end proxy object and the back-end proxy object, the front-end proxy object and the message processing object, and the message processing object and the back-end generic proxy object use a route (retainer-router) mode to achieve message scheduling, for example, when a message is sent from a retainer object corresponding to a type test task, the message processing object is directly skipped to be transmitted to a retainer object in the back-end proxy object, when a message is sent from a retainer object corresponding to a second type test task, the message needs to be sent to the retainer object in the corresponding message processing object first, then sent to the retainer object in the back-end proxy object, and then the post-end generic proxy object is connected to the post-end test server, and the post-end test proxy object (post-end server) also sends data through the publish/sub) mode, and the post-test proxy object.
FIG. 4 is a schematic diagram of a processing system of test tasks according to embodiments of the invention, as shown in FIG. 4, a processing system 400 of test tasks includes or more clients 410, a test server 420, a processing device 200 of test tasks as described in any of the embodiments above, and or more test terminals 430;
the client 410 is adapted to display a front-end page, receive a submitted test task through the front-end page, and send the test task to a processing device of the test task;
the test server 420 is adapted to connect one or more test terminals 430;
the test server 420, the test terminal 430 and the client 410 are further adapted to communicate messages during the test according to the test channel established by the processing means 200 of the test task.
In summary, according to the technical solution of the present invention, by receiving a test task submitted by a front-end page, when it is determined that the test task is a -type test task, a back-end agent object corresponding to the test task is started, and a test channel for transmitting a message in a test process is established based on the back-end agent object corresponding to the test task.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus, various general purpose devices may also be used with the teachings based thereon, the required structure for constructing such devices is readily apparent from the above description.
However, it is understood that embodiments of the invention may be practiced without these specific details, and that examples well-known methods, structures, and techniques have not been shown in detail in order not to obscure the understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together by in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of the various inventive aspects, however, the disclosed method is not intended to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.
It will be understood by those skilled in the art that modules in the apparatus of the embodiments may be adaptively changed and arranged in or more apparatuses different from the embodiments, that modules or units or components in the embodiments may be combined into modules or units or components, and further, that they may be divided into sub-modules or sub-units or sub-components, that all features disclosed in this specification (including the accompanying claims, abstract and drawings), and all processes or units of any method or apparatus so disclosed, may be combined in any combination, except at least of such features and/or processes or units are mutually exclusive, unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose.
Furthermore, those of skill in the art will appreciate that while the embodiments described herein include some features included in other embodiments, not others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
It should be understood by those skilled in the art that micro-processors or Digital Signal Processors (DSPs) may be used in practice to implement some or all of the functions of some or all of the components of processing apparatus and systems for testing tasks according to embodiments of the present invention, the invention may also be embodied as device or apparatus programs (e.g., computer programs and computer program products) for performing part or all of the methods described herein .
For example, fig. 5 shows a schematic structural diagram of an electronic device according to embodiments of the invention, the electronic device comprising a processor 510 and a memory 520 arranged to store computer executable instructions (computer readable program code), the memory 520 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk or a ROM, the memory 520 having a storage space 530 storing computer readable program code 531 for performing any of the method steps in the above method, the storage space 530 for storing the computer readable program code may comprise respective computer readable program code 531 for implementing the various steps in the above method, for example, the computer readable program code 531 may be read from or written to one or more computer program products or more computer program products, the computer readable program code 531 may comprise program code carriers such as a hard disk, a Compact Disk (CD), a memory card or a floppy disk, such computer program products are generally computer readable storage media such as described in fig. 6, fig. 6 shows that the computer readable program code 500, when the computer readable program code 500 is read by the computer readable program code 500, the execution of the computer readable program code , the computer readable program code when the computer readable program code 500 is executed by the computer , the computer readable program code , the computer readable program code, the execution of the computer readable program code, the method steps in the computer readable storage medium, the computer readable program code, the computer readable medium, the.
The invention may be embodied by means of hardware comprising several distinct elements, and by means of a suitably programmed computer, in a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware, the use of the words , second, third, etc. may indicate any sequence.
The embodiment of the invention discloses a processing method of A1 and test tasks, which comprises the following steps:
receiving a test task submitted by a front-end page;
and when the test task is the -type test task, starting a back-end agent object corresponding to the test task, and establishing a test channel for transmitting messages in the test process based on the back-end agent object corresponding to the test task.
A2, the method as in a1, wherein the establishing a test channel for delivering messages in a test process based on a backend agent object corresponding to the test task includes:
and establishing a test channel through the websocket object and the front-end proxy object of the front-end page, the rear-end proxy object corresponding to the test task, the test server and the test terminal.
A3, the method as in A1, wherein the test task includes a performance test task and/or a performance specific test task of html5 page.
A4, the method of a1, wherein the method further comprises:
and when the test task is the second type of test task, distributing a corresponding message processing object for the test task, and establishing a test channel based on the message processing object.
A5, the method according to A4, wherein the message processing object can process the message transferred by the test task of the second type during the test, and can not process the message transferred by the test task of the th type during the test.
A6, the method as in A5, wherein the message processing object is generated according to a preset message processing object mirror.
A7, the method as in A4, wherein the establishing a test channel based on the message processing object comprises:
and establishing a test channel through the websocket object of the front-end page, the front-end proxy object, the message processing object, the rear-end general proxy object, the test server and the test terminal.
A8, the method as in any of a1-a6, wherein messages passed through the test channel are processed based on ZeroMQ.
The embodiment of the invention also discloses a processing device for B9 and test tasks, which comprises:
the test task receiving unit is suitable for receiving the test tasks submitted by the front-end page;
and the test channel establishing unit is suitable for starting a back-end agent object corresponding to the test task when the test task is the th type test task, and establishing a test channel for transmitting the message in the test process based on the back-end agent object corresponding to the test task.
B10, the device of B9, wherein,
the test channel establishing unit is suitable for establishing a test channel through a websocket object of a front-end page, a front-end proxy object, a rear-end proxy object corresponding to the test task, a test server and a test terminal.
B11, the device as in B9, wherein the type test tasks comprise a performance test task and/or a performance specific test task of html5 page.
B12, the device of B9, wherein,
the test channel establishing unit is further adapted to, when the test task is a second type of test task, allocate a corresponding message processing object to the test task, and establish a test channel based on the message processing object.
B13, the device according to B12, wherein the message processing object can process the message transferred by the test task of the second type in the test process and can not process the message transferred by the test task of the th type in the test process.
B14, the device as B13, wherein the message processing object is generated according to the preset message processing object mirror.
B15, the device of B12, wherein,
the test channel establishing unit is suitable for establishing a test channel through a websocket object of a front-end page, a front-end proxy object, the message processing object, a rear-end general proxy object, a test server and a test terminal.
A B16 device as in any of B9-B15, wherein messages passed over the test channel are processed based on ZeroMQ.
The embodiment of the invention also discloses a processing system of C17 and test tasks, which comprises or a plurality of clients, a test server, a processing device of the test tasks as described in any item in B9-B16, and or a plurality of test terminals;
the client is suitable for displaying a front-end page, receiving a submitted test task through the front-end page and sending the test task to a processing device of the test task;
the test server is suitable for connecting one or more test terminals;
the test server, the test terminal and the client are also suitable for transmitting messages in the test process according to the test channel established by the processing device of the test task.
Embodiments of the present invention also disclose an electronic device of the D18, variety, wherein the electronic device comprises a processor and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method as described in any of a1-a 8.
Embodiments of the present invention also disclose E19, computer readable storage media, wherein the computer readable storage media stores or more programs which or more programs, when executed by a processor, implement the method as recited in any of a1-a 8.

Claims (10)

1, processing method of test task, including:
receiving a test task submitted by a front-end page;
and when the test task is the -type test task, starting a back-end agent object corresponding to the test task, and establishing a test channel for transmitting messages in the test process based on the back-end agent object corresponding to the test task.
2. The method of claim 1, wherein establishing a test channel for delivering messages in a test procedure based on a backend agent object corresponding to the test task comprises:
and establishing a test channel through the websocket object and the front-end proxy object of the front-end page, the rear-end proxy object corresponding to the test task, the test server and the test terminal.
3. The method of claim 1 wherein the -type test tasks include a performance test task and/or a performance specific test task for an html5 page.
4. The method of claim 1, wherein the method further comprises:
and when the test task is the second type of test task, distributing a corresponding message processing object for the test task, and establishing a test channel based on the message processing object.
The processing device for the test tasks of the types comprises:
the test task receiving unit is suitable for receiving the test tasks submitted by the front-end page;
and the test channel establishing unit is suitable for starting a back-end agent object corresponding to the test task when the test task is the th type test task, and establishing a test channel for transmitting the message in the test process based on the back-end agent object corresponding to the test task.
6. The apparatus of claim 5, wherein,
the test channel establishing unit is suitable for establishing a test channel through a websocket object of a front-end page, a front-end proxy object, a rear-end proxy object corresponding to the test task, a test server and a test terminal.
7. The apparatus of claim 5 wherein said -type test tasks include a performance test task and/or a performance specific test task for html5 pages.
8, processing system of test tasks, comprising or more clients, a test server, a processing device of test tasks according to of any of claims 5-7, and or more test terminals;
the client is suitable for displaying a front-end page, receiving a submitted test task through the front-end page and sending the test task to a processing device of the test task;
the test server is suitable for connecting one or more test terminals;
the test server, the test terminal and the client are also suitable for transmitting messages in the test process according to the test channel established by the processing device of the test task.
An electronic device of 9, , wherein the electronic device comprises a processor and a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-4, .
10, computer-readable storage media, wherein the computer-readable storage media stores one or more programs, the one or more programs, when executed by a processor, implement the method of any of claims 1-4.
CN201810802202.6A 2018-07-20 2018-07-20 Test task processing method, device and system Active CN110740152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810802202.6A CN110740152B (en) 2018-07-20 2018-07-20 Test task processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810802202.6A CN110740152B (en) 2018-07-20 2018-07-20 Test task processing method, device and system

Publications (2)

Publication Number Publication Date
CN110740152A true CN110740152A (en) 2020-01-31
CN110740152B CN110740152B (en) 2022-11-04

Family

ID=69235428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810802202.6A Active CN110740152B (en) 2018-07-20 2018-07-20 Test task processing method, device and system

Country Status (1)

Country Link
CN (1) CN110740152B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114360630A (en) * 2022-01-24 2022-04-15 北京得瑞领新科技有限公司 Batch test method and system for SSD (solid State disk)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006067549A (en) * 2004-07-29 2006-03-09 Sharp Corp Testing system, client device and relay device contained in the system, testing method for communications apparatus, and program product for causing computer to function as client device or relay device
CN101150456A (en) * 2007-10-17 2008-03-26 中兴通讯股份有限公司 Hardware module testing method and system
US20130196600A1 (en) * 2012-02-01 2013-08-01 Compuware Corporation System and methods that enable automated testing of mobile devices at a remote monitor site
CN103634165A (en) * 2013-12-05 2014-03-12 北京奇虎科技有限公司 Method, terminal device and system for realizing network testing based on reverse proxy
CN104951380A (en) * 2014-03-24 2015-09-30 环旭电子股份有限公司 Test method and system used for testing on-line products
CN105959179A (en) * 2016-06-08 2016-09-21 微梦创科网络科技(中国)有限公司 Reverse proxy nginx testing system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006067549A (en) * 2004-07-29 2006-03-09 Sharp Corp Testing system, client device and relay device contained in the system, testing method for communications apparatus, and program product for causing computer to function as client device or relay device
CN101150456A (en) * 2007-10-17 2008-03-26 中兴通讯股份有限公司 Hardware module testing method and system
US20130196600A1 (en) * 2012-02-01 2013-08-01 Compuware Corporation System and methods that enable automated testing of mobile devices at a remote monitor site
CN103634165A (en) * 2013-12-05 2014-03-12 北京奇虎科技有限公司 Method, terminal device and system for realizing network testing based on reverse proxy
CN104951380A (en) * 2014-03-24 2015-09-30 环旭电子股份有限公司 Test method and system used for testing on-line products
CN105959179A (en) * 2016-06-08 2016-09-21 微梦创科网络科技(中国)有限公司 Reverse proxy nginx testing system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114360630A (en) * 2022-01-24 2022-04-15 北京得瑞领新科技有限公司 Batch test method and system for SSD (solid State disk)
CN114360630B (en) * 2022-01-24 2022-07-15 北京得瑞领新科技有限公司 Batch test method and system for SSD (solid State disk)

Also Published As

Publication number Publication date
CN110740152B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
US10949158B2 (en) Screenshot method and apparatus
CN108055343B (en) Data synchronization method and device for computer room
CN106557288B (en) Method and device for acquiring printing data
EP3159803A1 (en) Data storage method and network interface card
CN111913738A (en) Access request processing method, device, computing equipment and medium
CN105930249B (en) Using monitoring method and device
CN108304272B (en) Data IO request processing method and device
CN110618768B (en) Information presentation method and device
CN110740152A (en) Test task processing method, device and system
CN112685104A (en) Application program starting control method and device, electronic equipment and storage medium
CN111383038A (en) Advertisement display method and device of mobile terminal, mobile terminal and storage medium
CN109286558A (en) Message distributing method, device, electronic equipment and storage medium
CN111126604B (en) Model training method, device, server and storage medium
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
JP2009157786A (en) Message transmission control method, message transmission control device, and message transmission control program
CN107342981B (en) Sensor data transmission method and device and virtual reality head-mounted equipment
CN108804155A (en) Profile acquisition method, device, terminal and computer readable storage medium
CN110545296A (en) Log data acquisition method, device and equipment
CN105912477B (en) A kind of method, apparatus and system that catalogue is read
CN114036060A (en) Method, system and computer readable medium for chip testing
US20100017477A1 (en) Performance and Reduce Network Traffic for Remote Hardware Data Scan Operations
EP3040891A1 (en) Method for providing information to determine a graph associated with a data item
CN106878056B (en) Method and device for configuring synchronous interface in multi-environment
CN116010126B (en) Service aggregation method, device and system
CN110297685B (en) User interface description file generation method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant