CN114510418A - Method and device for collaborative testing and electronic equipment - Google Patents

Method and device for collaborative testing and electronic equipment Download PDF

Info

Publication number
CN114510418A
CN114510418A CN202210081794.3A CN202210081794A CN114510418A CN 114510418 A CN114510418 A CN 114510418A CN 202210081794 A CN202210081794 A CN 202210081794A CN 114510418 A CN114510418 A CN 114510418A
Authority
CN
China
Prior art keywords
test
test result
path
electronic device
result set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210081794.3A
Other languages
Chinese (zh)
Inventor
胡永飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
21VIANET GROUP Inc
Original Assignee
21VIANET GROUP Inc
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 21VIANET GROUP Inc filed Critical 21VIANET GROUP Inc
Priority to CN202210081794.3A priority Critical patent/CN114510418A/en
Publication of CN114510418A publication Critical patent/CN114510418A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (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 application discloses a method and a device for collaborative testing and electronic equipment, and belongs to the technical field of testing. The method for the collaborative testing is applied to a server side, and comprises the following steps: acquiring a first test result of first electronic equipment, wherein the first test result comprises a first test path of the first electronic equipment; adding the first test result into a test result set; and sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test. The second electronic device can select a test path different from the first test path according to the test result set, namely, select an untested test path for testing, and avoid selecting a tested path, so that repeated tests can be reduced, and the test efficiency can be improved.

Description

Method and device for collaborative testing and electronic equipment
Technical Field
The application belongs to the technical field of testing, and particularly relates to a collaborative testing method and device and electronic equipment.
Background
It is well known that products require multiple testing rounds before they are put into use, and product testing is important. Under the condition that the testing time is very short, how to improve the testing efficiency in a limited time is always a hot topic in the testing field.
In the relevant test process, a tester performs test operation on the program under specified conditions to find out program errors.
However, different testers always generate repeated tests in the testing process, so that the testing efficiency is low.
Disclosure of Invention
The embodiment of the application provides a method and a device for collaborative testing and electronic equipment, which can solve the problem of low testing efficiency in the related art.
In a first aspect, an embodiment of the present application provides a method for collaborative testing, which is applied to a server, and the method includes:
acquiring a first test result of first electronic equipment, wherein the first test result comprises a first test path of the first electronic equipment;
adding the first test result into a test result set;
and sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test.
In the embodiment of the application, a first test result of a first electronic device is obtained, wherein the first test result comprises a first test path of the first electronic device; adding the first test result into a test result set; and sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test. Therefore, the second electronic device can select a test path different from the first test path according to the test result set to perform the cooperative test, that is, select an untested test path to perform the test, and avoid selecting a tested path, thereby reducing repeated tests and improving the test efficiency.
In a second aspect, an embodiment of the present application provides another method for collaborative testing, which is applied to a first electronic device, and includes:
receiving a test result set from a server, wherein the test result set comprises a target test result from at least one target electronic device, and the target test result comprises a target test path;
determining a first test path according to the test result set, wherein the first test path is different from the target test path;
and carrying out cooperative test by utilizing the first test path.
In the embodiment of the application, a test result set from a server is received, wherein the test result set comprises a target test result from at least one target electronic device, and the target test result comprises a target test path; determining a first test path according to the test result set, wherein the first test path is different from the target test path; and carrying out cooperative test by utilizing the first test path. Therefore, the first electronic device can select the untested test path for testing by receiving the test result set, and avoid selecting the tested path, thereby reducing repeated tests and improving the test efficiency.
In a third aspect, an embodiment of the present application provides an apparatus for collaborative testing, where the apparatus includes:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a first test result of first electronic equipment, and the first test result comprises a first test path of the first electronic equipment;
the processing module is used for adding the first test result into a test result set;
and the sending module is used for sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test.
In a fourth aspect, an electronic device is provided, the electronic device comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a test result set from a server, the test result set comprises a target test result from at least one target electronic device, and the target test result comprises a target test path;
the processing module is used for determining a first test path according to the test result set, wherein the first test path is different from the target test path; and carrying out cooperative test by utilizing the first test path.
In a fifth aspect, the present application provides an electronic device, which includes a processor and a memory, where the memory stores a program or instructions running on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect or the second aspect.
In a sixth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a seventh aspect, the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, a first test result of a first electronic device is obtained, wherein the first test result comprises a first test path of the first electronic device; adding the first test result into a test result set; and sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test. Therefore, the second electronic device can select a test path different from the first test path according to the test result set, namely, select an untested test path for testing, and avoid selecting a tested path, so that repeated tests can be reduced, and the test efficiency is improved.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a method for collaborative testing according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for collaborative testing according to an embodiment of the present application;
FIG. 3 is a flow chart of another method for collaborative testing according to an embodiment of the present application;
FIG. 4 is a flow chart of another method for collaborative testing according to an embodiment of the present application;
FIG. 5 is a flow chart of another method for collaborative testing according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another method for collaborative testing according to an embodiment of the present application;
FIG. 7 is a block diagram of a device for collaborative testing according to the present application;
FIG. 8 is a block diagram of another embodiment of a device for collaborative testing provided herein;
FIG. 9 is a schematic diagram of a server device provided herein;
fig. 10 is a schematic diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method for collaborative testing provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart of a method for collaborative testing according to an embodiment of the present application. The method of fig. 1 is applicable to a server, which may include a device that provides at least one of network, data, and computing. The server may be, for example, a data center, a server, and the like. The data center may include at least one server. In the case where the data center includes a plurality of servers, the plurality of servers may be in the same local area network or in a distributed network.
Referring to fig. 1, a method for collaborative testing provided by an embodiment of the present application may include:
step 110, obtaining a first test result of a first electronic device, where the first test result includes a first test path of the first electronic device.
In this step, the first test path may include a test path executed according to a test case; the first test result may include interface request response information of a background in addition to the first test path.
The interface request response information of the background may include a request interface address, a request method type, and a request parameter type.
The request interface address may be a request address of a self-defined data source, for example, the configured data source is a login interface of a mailbox, and the interface address is an access address of the login interface of the mailbox.
The request method type can be GET, POST, HEAD and other methods. The GET method may issue a request to a particular resource. The POST method can submit data to a specified resource to process a request, such as submitting a form or uploading a file; data is contained in the request body and a POST request may result in the creation of a new resource and/or the modification of an existing resource. The HEAD request may request a response consistent with the GET request from the server, except that the response body will not be returned, and the HEAD request method may acquire the meta information contained in the response small header without transmitting the entire response content any more.
The request parameter type can be a request header parameter, a path parameter and a request body parameter.
The request header parameters can be parameters stored in the request header and sent to the server, and the server obtains the parameter content by analyzing the request header, so that the request body can be analyzed more quickly. The resource path requested by the path parameter is immediately behind the request domain name, the server acquires the resource position by analyzing the path parameter, and the path parameter is a series of used/separated character strings, which has the significance of uniformly positioning the server resource. For example http:// www.madmk.com/office/zhangsan, where the/office/zhangsan is a path parameter, the meaning of which can be interpreted as Zhang III in the office, and the path parameter can represent the real file path of the server. The request body parameter may be a parameter stored in the request body and sent to the server. The request body parameter format is complex and changeable, and the server can firstly acquire the format of the request head according to the request head and then analyze the request head according to the format of the request head.
The first test path may be an operable path on the electronic device page, and specifically, may be a path of a test process clicked on the first electronic device page under the condition of manual test. Taking a login module of a test mailbox as an example, a page can be clicked to log in, then clicked to navigate to a user page, and finally to a creating user, and a path on the page can be expressed as login-navigation to the user page-creating user.
And step 120, adding the first test result into a test result set.
In this step, in the case that the test result set is an empty set, the first test result may be added to the test result set; in the case that the test result set is a non-empty set, the test result set may include test results from other electronic devices. At this point, the first test result may be added to the set of test results.
Step 130, sending the test result set to a second electronic device, so that the second electronic device selects a test path different from the first test path according to the test result set to perform a collaborative test.
In this embodiment of the application, the second electronic device may obtain the first test result of the first electronic device, and the second electronic device may select a test path different from the first test path according to the test result set to perform the cooperative test. The cooperative test may be a flexible adjustment of the second electronic device to a subsequent test according to the test result set. For example, when the set of test results includes administrator login-switching tenant-creating virtual machine paths, the second electronic device may select other paths for concurrent testing, and the path selectable by the second electronic device may be used, for example, to create virtual machines for tenant login-creating bastion.
It should be noted that the first test result may also be a test result of a tester finding a defect problem of the test system.
In this embodiment, the first electronic device may be a computer or a workstation used by a tester with three users, and the second electronic device may be a computer or a workstation used by a tester with four users. The workstation is based on a personal computing environment and a distributed network computing environment, and has a multifunctional computer with higher performance than a microcomputer.
In the embodiment of the application, a first test result of a first electronic device is obtained, wherein the first test result comprises a first test path of the first electronic device; adding the first test result into a test result set; and sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test. Therefore, the second electronic device can select a test path different from the first test path to perform the cooperative test according to the test result set, that is, select an untested test path to perform the test, and avoid selecting a tested path, thereby reducing the repeated tests and improving the test efficiency.
Fig. 2 is a block flow diagram of another method for collaborative testing according to an embodiment of the present application. The method shown in fig. 2 may be performed by a server. Referring to fig. 2, another method for collaborative testing provided in the embodiment of the present application includes:
step 210, receiving a first test result uploaded by a first electronic device every other preset period, where the first test result includes a first test path of the first electronic device.
In this step, the preset period may be set according to requirements, for example, 30 seconds, 1 minute, or 2 minutes. For example, the first electronic device uploads the first test result every 1 minute.
Step 220, adding the first test result into a test result set.
In this step, in the case that the test result set is an empty set, the first test result may be added to the test result set; in the case that the test result set is a non-empty set, the test result set may include test results from other electronic devices. At this point, the first test result may be added to the set of test results.
Step 230, sending the test result set to a second electronic device, so that the second electronic device selects a test path different from the first test path according to the test result set to perform a cooperative test.
In this embodiment of the application, before sending the test result set to the second electronic device in step 230, the method for collaborative testing provided in this embodiment of the application may further include: receiving a test result request from the second electronic device, wherein the test result request is used for requesting a test result set. Therefore, the server side can obtain the test result set according to the test result request, and the test result set can be conveniently sent to the second electronic device subsequently.
In this embodiment, the first electronic device may be a computer or a workstation used by a tester with three users, and the second electronic device may be a computer or a workstation used by a tester with four users. The workstation is based on a personal computing environment and a distributed network computing environment, and has a multifunctional computer with higher performance than a microcomputer.
In the embodiment of the application, a first test result uploaded by first electronic equipment every other preset period is received, wherein the first test result comprises a first test path of the first electronic equipment; adding the first test result into a test result set; and sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test. Therefore, the first electronic equipment uploads the first test result once every preset period and adds the first test result into the test result set, so that the second electronic equipment can select untested test paths for testing, and the tested paths are prevented from being selected, thereby reducing repeated testing and improving the testing efficiency.
Fig. 3 is a block flow diagram of another method for collaborative testing according to an embodiment of the present application. The method shown in fig. 3 may be performed by a server. Referring to fig. 3, a method for collaborative testing provided by an embodiment of the present application may include:
step 310, obtaining a first test result of a first electronic device, where the first test result includes a first test path of the first electronic device, and the first test result further includes first test information used for indicating whether a test is successful and/or a problem occurs in the test.
In this step, in a case where the first test information includes information indicating whether the test is successful, the first test information may include test success information or test failure information. For example, the words "test successful" or "test failed" may be displayed for one test path. Of course, in the embodiment of the present application, "test success" or "test failure" may be indicated by a character or the like, not necessarily by words. The identification or displayed text may be the first test information.
In the case where the first test information includes information indicating a problem occurring in a test, the first test result may include specific detail information of an error occurring when the test is run. For example, error information such as the text "no route found" or "no file found" is displayed. Of course, in the embodiment of the present application, error information such as "no path found" or "no file found" may be indicated by a symbol such as a character, but may not necessarily be indicated by a character. The error information may be the first test information. Of course, in the embodiment of the present application, the first test information further includes information indicating whether the test is successful and information indicating a problem occurring in the test.
The first test information may be, for example, information recorded when the test case is run and the expected result in the test requirement specification document is inconsistent. The test case may include a description of a test task performed on a specified software product, embodying a test scheme, method, technique, and policy, and the content of the test case may include a test target, a test environment, input data, a test step, an expected result, and the like, and may eventually form a document.
And step 320, adding the first test result into a test result set.
In this step, the first electronic device may upload the first test information indicating whether the test is successful and/or a problem occurring in the test to the test result set, where an upload time interval may be customized, for example, the first test information is uploaded every 30 seconds, 1 minute, or 2 minutes.
Step 330, sending the test result set to a second electronic device, so that the second electronic device performs a cooperative test according to the test result set, where the first electronic device and the second electronic device are distributed cooperative test devices.
In this embodiment of the application, the first electronic device and the second electronic device may be distributed cooperative testing devices, and the cooperative testing devices may be computers or workstations used by testers. It should be noted that different testers can use different computers or workstations to perform the tests. For example, the first electronic device may be a computer or workstation used by a tester three times, and the second electronic device may be a computer or workstation used by a tester four times. The workstation is a multifunction computer of the type that is based on a personal computing environment and a distributed network computing environment and that has higher performance than a microcomputer.
In the embodiment of the application, a first test result of a first electronic device is obtained, the first test result includes a first test path of the first electronic device, and the first test result further includes first test information used for indicating whether the test is successful and/or a problem occurs in the test. And adding the first test result into a test result set. And sending the test result set to a second electronic device, so that the second electronic device performs a cooperative test according to the test result set, wherein the first electronic device and the second electronic device are distributed cooperative test devices. Therefore, under the condition that the first test result comprises first test information indicating whether the test is successful and/or problems occur in the test, the second electronic device can perform a cooperative test according to the first test information, select an untested test path for testing, and avoid selecting a tested path, so that repeated tests can be reduced, and the test efficiency can be improved.
Fig. 4 is a flowchart of another collaborative testing method according to an embodiment of the present application. The method of fig. 4 may be performed by a first electronic device. The first electronic device can be a mobile phone, a computer and the like. Referring to fig. 4, another method of collaborative testing may include:
step 410, receiving a test result set from the server, where the test result set includes a target test result from at least one target electronic device, and the target test result includes a target test path.
In this step, the server may include a data center, a server, and the like. The target electronic equipment can be mobile phone equipment and tablet equipment. The target test path may be a process of clicking on a path to be tested on the target electronic device. Taking a login module of a test mailbox as an example, a target electronic device page can be clicked to log in, then clicked to navigate to a user page, and finally to a creation user, the first electronic device may include a mobile phone with three pages, that is, a target test path operated on a mobile phone interface with three pages can be represented as login-navigation to the user page-creation user.
Before receiving the test result set from the server in this step 410, the first electronic device may further send a test result request to the server every preset period, where the test result request is used to request the test result set. The preset period can be set according to requirements. Further, the server department sends a test result set to the first electronic device according to the test result request from the first electronic device.
Step 420, determining a first test path according to the test result set, where the first test path is different from the target test path.
And 430, performing a cooperative test by using the first test path.
In this step, the first test path is different from the target test path, and the first test path is used for performing a cooperative test. Therefore, untested test paths are selected for testing, and tested paths are prevented from being selected, so that repeated testing is reduced.
In this embodiment of the application, after the performing the cooperative test by using the first test path, the cooperative test method may further include: acquiring a first test result of the first electronic device, wherein the first test result comprises a first test path of the first electronic device; and sending the first test result to the server, so that the server performs the cooperative test processing according to the first test result.
Wherein the sending the first test result to the server may include: and uploading the first test result to the server every other preset period, wherein the first test result can also comprise first test information used for indicating whether the test is successful and/or problems occur in the test. Therefore, the server side can perform the collaborative testing processing according to the first testing result, and the testing efficiency is improved.
In the method for collaborative testing provided by the embodiment of the application, a test result set from a server is received, where the test result set includes a target test result from at least one target electronic device, and the target test result includes a target test path. And determining a first test path according to the test result set, wherein the first test path is different from the target test path. And carrying out cooperative test by utilizing the first test path. Therefore, the first electronic device can select the untested test path for testing, and avoid selecting the tested path, so that repeated testing can be reduced, and the testing efficiency is improved.
Fig. 5 is a flowchart of another collaborative testing method according to an embodiment of the present application. The method of fig. 5 may be performed by a first electronic device. Referring to fig. 5, another method of collaborative testing may include:
step 510, receiving a test result set from the server, where the test result set includes a target test result from at least one target electronic device, and the target test result includes a target test path.
In this embodiment of the application, optionally, after the receiving of the test result set from the server, the test result set may also be displayed. In this way, the user can conveniently see the test result sets and select an appropriate test result set from them.
Step 520, determining a first test path according to the test result set, wherein the first test path is different from the target test path.
Step 530, after the cooperative test is performed by using the first test path, obtaining a first test result of the first electronic device, where the first test result includes the first test path of the first electronic device.
And 540, sending the first test result to the server, so that the server performs the collaborative test processing according to the first test result set.
The step can include uploading a first test result to the server every other preset period; the first test result further comprises first test information indicating whether the test was successful and/or a problem occurred in the test. The preset period may be set according to a requirement, for example, 30 seconds, 1 minute, or 2 minutes. For example, the first electronic device uploads the first test result every 1 minute. In the case where the first test information includes information indicating whether the test is successful, the first test information may include test success information or test failure information. For example, the words "test successful" or "test failed" may be displayed for one test path. The displayed text can be the first test information.
In the method for collaborative testing provided by the embodiment of the application, a test result set from a server is received, where the test result set includes a target test result from at least one target electronic device, and the target test result includes a target test path. And determining a first test path according to the test result set, wherein the first test path is different from the target test path. After the first test path is used for carrying out the collaborative test, a first test result of the first electronic device is obtained, the first test result comprises the first test path of the first electronic device, and the first test result is sent to the server, so that the server carries out the collaborative test processing according to the first test result set. Therefore, the first electronic device can select the untested test path for testing according to the test result set, and avoid selecting the tested path, thereby reducing repeated tests and improving the test efficiency. Meanwhile, the first electronic device can upload the first test result obtained by the first electronic device to the server, so that the server can conveniently perform the cooperative test processing.
Fig. 6 is a flowchart of another collaborative testing method according to an embodiment of the present application. Referring to fig. 6, another method of collaborative testing may include:
at step 610, recording the test path by establishing an engine.
In this step, the engine may be deployed in a server. The engine may be a distributed test engine; various parameters required by the engine test can be configured in advance; the engine may also be used to record test path and interface information.
Step 620, uploading the test path to a link central repository.
The link central repository may be a database that stores test paths.
In step 630, the cooperative terminal 1 obtains a test result set of the link central warehouse.
In this step, the cooperative terminal 1 may select a first target test path for testing according to the test result set. After the test is completed, the test result including the first target test path may be recorded in the test result set.
In this way, the first target test path may be included in the set of test results.
In step 640, the cooperative terminal 2 obtains a test result set of the link central warehouse.
In this step, the cooperative terminal 2 may select a second target test path for testing according to the test result set. After the test is completed, the test result including the second target test path may be recorded in the test result set.
In this way, the second target test path may be included in the set of test results.
In step 650, the cooperative terminal 3 obtains a test result set of the link central warehouse.
In this step, the cooperative terminal 3 may select a third target test path for testing according to the test result set. After the test is completed, the test result including the third target test path may be recorded in the test result set.
In this way, the third target test path may be included in the set of test results.
It should be noted that the cooperative terminal 1, the cooperative terminal 2, and the cooperative terminal 3 may all be computers, workstations, mobile phones, etc., and the number of the cooperative terminals may be multiple.
In the method for collaborative testing provided by the embodiment of the application, the engine is established to record the testing path, the link central warehouse obtains the testing path, and the collaborative terminal can obtain the testing result set in the link central warehouse to select the untested testing path for testing. Therefore, each cooperative terminal can select the untested test path for testing according to the test result set in the link central warehouse, and avoids selecting the tested path, so that repeated testing can be reduced, and the testing efficiency is improved.
Fig. 7 is a block diagram of a device for collaborative testing according to the present application. The apparatus 700 for collaborative testing in the embodiment of the present application can be applied to a server. The apparatus 700 for collaborative testing may include an obtaining module 710, a processing module 720, and a sending module 730.
The obtaining module 710 is configured to obtain a first test result of a first electronic device, where the first test result includes a first test path of the first electronic device.
And the processing module 720 is configured to add the first test result to the test result set.
A sending module 730, configured to send the test result set to a second electronic device, so that the second electronic device selects a test path different from the first test path according to the test result set to perform a collaborative test.
In the apparatus for collaborative testing provided in the embodiment of the present application, an obtaining module 710 obtains a first test result of a first electronic device, where the first test result includes a first test path of a first user sending module device; the processing module 720 adds the first test result to the test result set; and sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test. Therefore, the second electronic device can select a test path different from the first test path to perform the cooperative test according to the test result set, that is, select an untested test path to perform the test, and avoid selecting a tested path, thereby reducing the repeated tests and improving the test efficiency.
Optionally, in an embodiment of the present application, in the process of acquiring the first test result of the first electronic device, the acquiring module 710 may specifically be configured to: and receiving a first test result uploaded by the first electronic equipment every other preset period.
Optionally, in an embodiment of the present application, the first test result further includes first test information used for indicating whether the test is successful and/or a problem occurs in the test, and the first electronic device and the second electronic device are distributed cooperative test devices.
Optionally, in an embodiment of the present application, before the sending the test result set to the second electronic device, the obtaining module 710 may be further configured to receive a test result request from the second electronic device, where the test result request is used to request the test result set.
Fig. 8 is a block diagram of another apparatus for collaborative testing provided in the present application. The apparatus 800 for collaborative testing in the embodiment of the present application may be applied to a first electronic device. The apparatus 800 for co-testing may include a receiving module 810 and a processing module 820.
A receiving module 810, configured to receive a test result set from a server, where the test result set includes a target test result from at least one target electronic device, and the target test result includes a target test path;
a processing module 820, configured to determine a first test path according to the test result set, where the first test path is different from the target test path; and carrying out cooperative test by utilizing the first test path.
In the device for collaborative testing provided by the embodiment of the application, a receiving module receives a test result set from a server, the test result set includes a target test result from at least one target electronic device, and the target test result includes a target test path; the processing module determines a first test path according to the test result set, wherein the first test path is different from the target test path; and carrying out cooperative test by utilizing the first test path. Therefore, the first electronic device can select the untested test path for testing by receiving the test result set, and avoid selecting the tested path, thereby reducing repeated tests and improving the test efficiency.
Optionally, in an embodiment of the present application, the device for collaborative testing may further include: the device comprises an acquisition module and a sending module. Wherein:
the obtaining module is configured to obtain a first test result of the first electronic device after the processing module performs the cooperative test by using the first test path, where the first test result includes the first test path of the first electronic device;
the sending module is configured to send the first test result to the server, so that the server performs the collaborative test processing according to the first test result set.
Optionally, in an embodiment of the application, in the process of sending the first test result to the server, the sending module may be specifically configured to: uploading the first test result to the server every other preset period; the first test result further comprises first test information indicating whether the test was successful and/or a problem occurred in the test.
Optionally, in an embodiment of the application, the sending module may be further configured to send a test result request to the server every preset period before the receiving module receives the test result set from the server, where the test result request is used to request the test result set.
Optionally, in an embodiment of the present application, the cooperative testing apparatus further includes: and the display module is used for displaying the test result set after the receiving module receives the test result set from the server.
Fig. 9 is a schematic diagram of a server provided in the present application. The server 900 provided in the embodiment of the present application may include: a processor 910 and a memory 920. The memory 920 stores a program or instructions running on the processor, and the program or instructions, when executed by the processor 910, implement the steps of any one of the collaborative testing methods provided by the embodiments of the present application.
Fig. 10 is a schematic diagram of an electronic device provided herein. The electronic device 1000 provided in the embodiment of the present application may include: a processor 1010 and a memory 1020. The memory 1020 stores a program or instructions running on the processor, and the program or instructions, when executed by the processor 1010, implement the steps of any one of the collaborative testing methods provided by the embodiments of the present application.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above method for collaborative testing, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above method for collaborative testing, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the above embodiment of the method for collaborative testing, and achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for collaborative testing is applied to a server and comprises the following steps:
acquiring a first test result of first electronic equipment, wherein the first test result comprises a first test path of the first electronic equipment;
adding the first test result into a test result set;
and sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set to carry out the cooperative test.
2. The collaborative testing method according to claim 1, wherein the obtaining of the first test result of the first electronic device comprises: and receiving a first test result uploaded by the first electronic equipment every other preset period.
3. The method according to claim 1, wherein the first test result further includes first test information indicating whether the test is successful and/or a problem occurs in the test, and the first electronic device and the second electronic device are distributed cooperative test devices.
4. The collaborative testing method according to claim 1, wherein prior to the sending of the set of test results to the second electronic device, the method further comprises:
receiving a test result request from the second electronic device, wherein the test result request is used for requesting a test result set.
5. A method for collaborative testing, applied to a first electronic device, includes:
receiving a test result set from a server, wherein the test result set comprises a target test result from at least one target electronic device, and the target test result comprises a target test path;
determining a first test path according to the test result set, wherein the first test path is different from the target test path;
and carrying out cooperative test by utilizing the first test path.
6. The co-testing method according to claim 5, wherein after the co-testing with the first testing path, the co-testing method further comprises:
acquiring a first test result of the first electronic device, wherein the first test result comprises a first test path of the first electronic device;
and sending the first test result to the server, so that the server performs the cooperative test processing according to the first test result.
7. The cooperative testing method according to claim 6, wherein said sending the first test result to the server comprises: uploading the first test result to the server every other preset period; the first test result further comprises first test information indicating whether the test was successful and/or a problem occurred in the test.
8. The collaborative testing method according to claim 5, wherein before the receiving the set of test results from the server, the method further comprises:
and sending a test result request to the server every other preset period, wherein the test result request is used for requesting a test result set.
9. An apparatus for collaborative testing, the apparatus comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a first test result of first electronic equipment, and the first test result comprises a first test path of the first electronic equipment;
the processing module is used for adding the first test result into a test result set;
and the sending module is used for sending the test result set to second electronic equipment, so that the second electronic equipment selects a test path different from the first test path according to the test result set for carrying out the cooperative test.
10. An electronic device, comprising:
a receiving module, configured to receive a test result set from a server, where the test result set includes a target test result from at least one target user equipment, and the target test result includes a target test path;
the processing module is used for determining a first test path according to the test result set, wherein the first test path is different from the target test path; and carrying out cooperative test by utilizing the first test path.
CN202210081794.3A 2022-01-24 2022-01-24 Method and device for collaborative testing and electronic equipment Pending CN114510418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210081794.3A CN114510418A (en) 2022-01-24 2022-01-24 Method and device for collaborative testing and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210081794.3A CN114510418A (en) 2022-01-24 2022-01-24 Method and device for collaborative testing and electronic equipment

Publications (1)

Publication Number Publication Date
CN114510418A true CN114510418A (en) 2022-05-17

Family

ID=81549134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210081794.3A Pending CN114510418A (en) 2022-01-24 2022-01-24 Method and device for collaborative testing and electronic equipment

Country Status (1)

Country Link
CN (1) CN114510418A (en)

Similar Documents

Publication Publication Date Title
CN111522922B (en) Log information query method and device, storage medium and computer equipment
CN107908541B (en) Interface testing method and device, computer equipment and storage medium
CN105099811B (en) Interface testing method and device
US10362086B2 (en) Method and system for automating submission of issue reports
CN110378749B (en) Client similarity evaluation method and device, terminal equipment and storage medium
US20130054792A1 (en) Cloud-based performance testing of functionality of an application prior to completion of development
CN111460356B (en) Automatic login method, device, medium and equipment
WO2013075612A1 (en) Auto login method and device
CN109815119B (en) APP link channel testing method and device
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN106603296A (en) Log processing method and device
CN111198797B (en) Operation monitoring method and device and operation analysis method and device
CN103902446A (en) Network server automated testing method and device
CN110737645A (en) data migration method between different systems, data migration system and related equipment
CN111258904A (en) Webpage element testing method and related device
CN114629929A (en) Log recording method, device and system
CN116644250B (en) Page detection method, page detection device, computer equipment and storage medium
CN116719750A (en) Software testing method and device, server equipment and storage medium
CN111949537A (en) Interface test method, device, equipment and medium
CN107483294B (en) Method and device for monitoring network request
CN114510418A (en) Method and device for collaborative testing and electronic equipment
CN110737549A (en) Application testing method, device, server and system
CN109447844A (en) A kind of management method of electronization test report
CN111367703B (en) Fault checking method and device
CN112988560A (en) Method and device for testing system robustness

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