CN109471789B - Multi-device management method and device for testing, server and storage medium - Google Patents

Multi-device management method and device for testing, server and storage medium Download PDF

Info

Publication number
CN109471789B
CN109471789B CN201811025069.4A CN201811025069A CN109471789B CN 109471789 B CN109471789 B CN 109471789B CN 201811025069 A CN201811025069 A CN 201811025069A CN 109471789 B CN109471789 B CN 109471789B
Authority
CN
China
Prior art keywords
test
server
tested
application program
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811025069.4A
Other languages
Chinese (zh)
Other versions
CN109471789A (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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811025069.4A priority Critical patent/CN109471789B/en
Publication of CN109471789A publication Critical patent/CN109471789A/en
Application granted granted Critical
Publication of CN109471789B publication Critical patent/CN109471789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

A multi-device management method for testing, comprising: the first server distributes the application program to be tested and the automatic test scripts corresponding to the application program to be tested to a plurality of second servers, so that the second servers inform the plurality of test equipment to install the application program to be tested and the automatic test scripts of the application program to be tested; when a test instruction for automatically testing an application program to be tested is received, state information of a plurality of test devices is acquired; controlling a plurality of test devices to execute test cases in the automatic test scripts of the application program to be tested through a plurality of second servers according to the state information; and receiving a plurality of test reports reported by a plurality of second servers, and aggregating the plurality of test reports into a final test report. The invention also provides a multi-equipment management device, a server and a storage medium for testing. The cloud technology is adopted, so that the problems that the equipment state information cannot be synchronized in real time and the test tasks need to be executed on different servers can be solved.

Description

Multi-device management method and device for testing, server and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a multi-device management method and device for testing, a server and a storage medium.
Background
At present, test equipment with a data calculation processing function is more widely applied, for example, smart phones, palm computers, tablet computers and the like, a terminal can be loaded and run various application programs, and most of the application programs are third-party application programs independent of an operating system of the test equipment. Application testing is required each time a new application is released. The existing application program testing method mainly adopts centralized automatic testing, namely, a user only needs to provide a tested application program, an automatic testing script is uploaded to a remote server, and a plurality of testing devices are controlled by the remote server to execute the testing script in parallel, so that the testing efficiency can be improved. However, the application program automation test using a plurality of test devices usually faces two problems: the problem that the equipment state information cannot be synchronized in real time is solved, and the problem that a test task needs to be executed on a server under the same network is solved.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a server and a storage medium for managing multiple devices for testing, which can solve the problems that the device status information cannot be synchronized in real time and the testing task needs to be executed on different servers.
A first aspect of the present invention provides a multi-device management method for testing, applied to a first server, where the first server is connected to a plurality of second servers, and each of the second servers is connected to a plurality of testing devices, the method including:
distributing an application program to be tested and automatic test scripts corresponding to the application program to be tested to the second servers, so that the second servers inform the test equipment to install the application program to be tested and the automatic test scripts corresponding to the application program to be tested;
when a test instruction for automatically testing the application program to be tested is received, state information of the plurality of test devices is obtained;
controlling the plurality of test equipment to execute test cases in the automatic test scripts of the application program to be tested through the plurality of second servers according to the state information;
and receiving a plurality of test reports reported by the plurality of second servers, and aggregating the plurality of test reports into a final test report.
Preferably, the method further comprises:
and acquiring the state information of the corresponding test equipment sent by each second server every other preset time period, and updating the equipment state information table in the first server.
Preferably, the controlling, by the plurality of second servers, the plurality of test devices to execute the test cases in the automatic test script of the application program to be tested according to the state information includes:
acquiring test equipment with a connection state corresponding to a first connection state in the plurality of test equipment as first alternative test equipment;
acquiring test equipment corresponding to the test case number smaller than a preset test case number threshold in the first candidate test equipment as second candidate test equipment;
and sending the ID number of the second candidate test device and the IP address of the corresponding second server to the corresponding second server.
Preferably, the controlling, by the plurality of second servers, the plurality of test devices to execute the test cases in the automatic test script of the application program to be tested according to the state information includes:
providing a display interface, wherein the display interface displays the plurality of test devices and the state information of each test device;
receiving options corresponding to the test equipment selected by a user;
and sending the ID number of the corresponding test equipment and the IP address of the corresponding second server to the corresponding second server according to the selected option.
A second aspect of the present invention provides a multi-device management method for testing, applied to a second server, where the second server is connected to a first server, and the second server is further connected to multiple test devices, the method including:
receiving an application program to be tested and an automatic test script corresponding to the application program to be tested, which are sent by the first server;
distributing the application program to be tested and the automatic test script of the application program to be tested to the plurality of test devices, so that the plurality of test devices install the application program to be tested and the automatic test script of the application program to be tested;
acquiring the state information of each test device every other a preset time period, and reporting the state information to the first server;
when a test instruction sent by the first server is received, controlling the plurality of test devices to execute a test case in an automatic test script of the application program to be tested according to the test instruction;
when a plurality of test reports sent by the plurality of test devices are received, the plurality of test reports are reported to the first server.
Preferably, after the state information of the test device is acquired every preset time period, the method further includes:
judging whether the state information of each test device is changed;
and when the state information of the test equipment is determined to be changed, reporting the state information of the test equipment with the changed state information to the first server.
A third aspect of the present invention provides a multi-device management apparatus for testing, which runs in a first server, the first server is connected to a plurality of second servers, and each of the second servers is connected to a plurality of testing devices, the apparatus comprising:
the distribution module is used for distributing the application program to be tested and the automatic test scripts corresponding to the application program to be tested to the second servers, so that the second servers inform the test equipment to install the application program to be tested and the automatic test scripts corresponding to the application program to be tested;
the acquisition module is used for acquiring the state information of the plurality of test devices when receiving a test instruction for automatically testing the application program to be tested;
the control module is used for controlling the plurality of test equipment to execute the test cases in the automatic test scripts of the application program to be tested through the plurality of second servers according to the state information;
and the receiving module is used for receiving the plurality of test reports reported by the plurality of second servers and aggregating the plurality of test reports into a final test report.
A fourth aspect of the present invention provides a multi-device management apparatus for testing, running in a second server, the second server being connected to a first server, the second server being further connected to a plurality of testing devices, the apparatus comprising:
the receiving module is used for receiving the application program to be tested and the automatic test script corresponding to the application program to be tested, which are sent by the first server;
the distribution module is used for distributing the application program to be tested and the automatic test script of the application program to be tested to the plurality of test devices, so that the plurality of test devices install the application program to be tested and the automatic test script of the application program to be tested;
the acquisition module is used for acquiring the state information of each test device every other preset time period and reporting the state information to the first server;
the control module is used for controlling the plurality of test devices to execute the test cases in the automatic test scripts of the application program to be tested according to the test instructions when the test instructions sent by the first server are received;
and the reporting module is used for reporting the plurality of test reports to the first server when receiving the plurality of test reports sent by the plurality of test devices.
A fifth aspect of the invention provides a server, the terminal comprising a processor for implementing the multi-device management method for testing when executing a computer program stored in a memory.
A sixth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the multi-device management method for testing.
According to the multi-device management method, the multi-device management device, the servers and the storage medium for testing, a first server and a plurality of second servers connected with the first server are arranged, each second server can also be provided with a plurality of testing devices, and the first server controls the plurality of testing devices to execute parallel testing, so that automatic testing is realized, the workload of manual testing is reduced, and the labor cost is reduced; in addition, the state information of the testing equipment in the first server is updated in real time, and the testing equipment is controlled to execute the test case according to the state information of the testing equipment, so that when the testing tasks are distributed, the testing equipment which is successfully connected with the second server and has fewer current testing tasks can be selected, the testing tasks are prevented from being distributed to the testing equipment which is not successfully connected with the second server, or the testing equipment which has more testing tasks is considered to be distributed to the testing equipment, the resources of the idle testing equipment are effectively and reasonably utilized, and the testing efficiency is improved; finally, the test mode of the invention is not limited by the communication network region of the test equipment, is very close to the real operation environment of the tested application program, and improves the test quality.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is an application environment architecture diagram of a multi-device management method for testing according to an embodiment of the present invention.
Fig. 2 is a flowchart of a multi-device management method for testing according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a multi-device management method for testing according to a third embodiment of the present invention.
Fig. 4 is a structural diagram of a multi-device management apparatus for testing according to a fourth embodiment of the present invention.
Fig. 5 is a structural diagram of a multi-device management apparatus for testing according to a fifth embodiment of the present invention.
Fig. 6 is a schematic diagram of a first server according to a sixth embodiment of the present invention.
Fig. 7 is a schematic diagram of a second server according to a seventh embodiment of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Example one
Fig. 1 is an application environment architecture diagram of a multi-device management method for testing according to an embodiment of the present invention.
The multi-equipment management method for testing is applied to an environment formed by one or more servers and/or terminals. For example, an environment formed by a first server 3 and a second server 4 and a plurality of test devices 5. The first server 3 is communicatively connected to a plurality of second servers 4 via a first network, such as ethernet. Each second server 4 is communicatively connected to a plurality (e.g., 30) of test devices 5 via a second network, such as a metropolitan area network or a local area network. In this embodiment, the first server 3 may be a Master server, and the first server 3 may be deployed with a proxy service. The first server 3 is a computer with multi-device management capabilities for testing. The first server 3 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
In this embodiment, the second server 4 may be a Slave server, and the second server 4 may be deployed with an execution service. The first server 3 is a computer with transceiving capabilities.
In this embodiment, the testing device 5 may be a terminal or a fixed terminal for executing an application testing task. The test equipment 5 is not limited to a personal computer, a smart phone, a tablet computer, a desktop or all-in-one machine with a camera, and the like. The terminal can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The terminal can be in man-machine interaction with a client in a keyboard mode, a mouse mode, a remote controller mode, a touch panel mode or a voice control device mode.
Example two
Fig. 2 is a flowchart of a multi-device management method for testing according to a second embodiment of the present invention.
In this embodiment, the method for managing multiple devices for testing may be applied to the first server, and for the first server that needs to perform multiple device management for testing, the functions of multiple device management for testing provided by the method of the present invention may be directly integrated on the first server, or may be run on the first server in the form of a Software Development Kit (SDK).
As shown in fig. 1, the multi-device management method for testing specifically includes the following steps, and the order of the steps in the flowchart may be changed and some steps may be omitted according to different requirements.
S21: and distributing the application program to be tested and the automatic test script corresponding to the application program to be tested to a plurality of second servers, so that the second servers inform a plurality of test equipment to install the application program to be tested and the automatic test script corresponding to the application program to be tested.
In this embodiment, a tester provides and uploads an installation package of an application program to be tested, and at the same time, an automatic test script corresponding to the application program to be tested is packaged and uploaded to a first server. The first server distributes the installation package of the application program to be tested and the automatic test scripts of the corresponding packaged application program to be tested to a plurality of second servers, the second servers distribute the installation package of the application program to be tested and the automatic test scripts of the corresponding packaged application program to be tested to a plurality of test devices so as to inform the plurality of test devices to download the installation package of the application program to be tested and the automatic test scripts of the corresponding packaged application program to be tested and complete the installation of the application program to be tested, and meanwhile, the automatic test scripts of the application program to be tested are installed and run.
The automatic test script of the application program to be tested is a program code written by a tester according to the functions of the application program to be tested, and the program code can be automatically operated by test equipment and is used for automatically testing each function of the application program to be tested. The automatic test script can provide a test result after running, and the automatic test script can directly generate a test report by using the test result.
S22: and when a test instruction for automatically testing the application program to be tested is received, acquiring the state information of the plurality of test devices.
In this embodiment, a function switch for starting the test instruction may be provided on the first server, and the test instruction is triggered and started through the function switch. The function switch can be a virtual icon or a voice command. When a user touches the virtual icon or sends a preset voice, the first server detects that the virtual icon receives a touch signal or the first server receives the preset voice, the first server considers that a function switch for starting a test instruction is triggered, and the test is started.
When the first server receives a test instruction for the automatic test of the application program to be tested, the state information of each of the plurality of test devices may be acquired from a device state information table pre-stored in the first server. The device status information table records status information of each testing device, and the status information may include: an identification number (ID) of the test device, an Internet Protocol (IP) address of the corresponding second server, a connection state, and the number of current test cases. The identification number of the testing device is an Identity unique to the testing device, and may be, for example, an International Mobile Equipment Identity (IMEI). The connection state may include: the first connection state may be 1 to indicate that the test device has successfully connected to the second server, and the second connection state may be 0 to indicate that the test device has not connected to the second server. The number of test cases is the sum of the number of test cases currently executed by the test equipment and the number of test cases to be executed. It should be understood that the number of test cases currently being executed by one test device may only be 1 or 0, and if the number of test cases currently being executed is 1, it indicates that the test device is currently executing the test cases, and possibly one or more test cases to be executed are in the execution queue. If the number of the test cases currently being executed is 0, it indicates that the test equipment does not execute any test case currently, and the number of the test cases to be executed is inevitably 0, that is, the test equipment is currently in an idle state, and it is impossible that the test cases to be executed are in the execution queue.
Preferably, the method may further comprise: and acquiring the state information of the corresponding test equipment sent by each second server every other preset time period, and updating the equipment state information table in the first server.
In this embodiment, each of the second servers may obtain, every other preset time period, state information of each of the plurality of corresponding test devices, and determine whether the state information of each of the test devices changes, and when it is determined that the state information of the test device changes, report the state information of the test device whose state information changes to the first server, so that the first server updates the state information of the corresponding test device in the device state information table. The preset time period may be 1 minute. The second server acquires the state information of the corresponding test equipment at intervals of a preset time period and synchronously reports the changed state information to the first server, so that the first server can acquire the latest state information of the test equipment at the first time, and the test task can be conveniently distributed to the corresponding test equipment according to the state information.
S23: and controlling a plurality of test devices to execute the test cases in the automatic test scripts of the application program to be tested through a plurality of second servers according to the state information.
The controlling, by the plurality of second servers, the plurality of test devices to execute the test case in the automatic test script of the application program to be tested according to the state information may specifically include:
1) Acquiring test equipment with a connection state corresponding to a first connection state in the plurality of test equipment as first alternative test equipment;
the test equipment corresponding to the first connection state is acquired, so that the test equipment successfully connected with the second server can be selected, and the test equipment corresponding to the second connection state is eliminated, namely the test equipment which is not successfully connected with the second server is eliminated.
2) Obtaining test equipment corresponding to the condition that the current test case number in the first alternative test equipment is smaller than a preset test case number threshold value, and taking the test equipment as second alternative test equipment;
the preset threshold value of the number of the test cases is a preset critical value of the test cases. And when the current test case number of the test equipment exceeds the preset test case number threshold value, considering that the current test tasks of the test equipment are more, and not suitable for redistributing the test tasks. And when the current test case number of the test equipment is less than or equal to the preset test case number threshold, the current test tasks of the test equipment are considered to be fewer, and the test tasks can be redistributed.
3) And the first server sends the ID number of the second candidate test device and the IP address of the corresponding second server to the corresponding second server.
And the first server sends the ID number of the second candidate test device and the IP address of the corresponding second server to the corresponding second server so as to control the corresponding test device to execute the test case in the automatic test script of the application program to be tested through the second server.
The automatic test script of the application program to be tested comprises a plurality of test cases, each test case can comprise a plurality of test steps, and the first server controls corresponding test equipment to execute the test steps in the test cases through the second server.
In other embodiments, the controlling, by the plurality of second servers, the plurality of test devices to execute the test case in the automatic test script of the application program to be tested according to the state information may specifically include:
1) Providing a display interface, wherein the display interface displays a plurality of test devices and the state information of each test device;
2) Receiving options corresponding to the test equipment selected by a user;
3) And sending the ID number of the corresponding test equipment and the IP address of the corresponding second server to the corresponding second server according to the selected option.
And according to the selected option, sending the ID number of the corresponding test equipment and the IP address of the corresponding second server to the corresponding second server so as to control the corresponding test equipment to execute the test case in the automatic test script of the application program to be tested through the second server.
S24: and receiving a plurality of test reports reported by a plurality of second servers, and aggregating the plurality of test reports into a final test report.
In this embodiment, after the test device executes the test case, the automatic test script automatically generates a test report, and reports the generated test report to the corresponding second server. And after the test equipment executes a test case, the automatic test script generates a test report. And after receiving the test report reported by the corresponding test equipment, the second server reports the test report to the first server.
The test report may include: name of test case, serial number of test case, test result and running time. The test results include: test success or test failure. Only one test result is included in a test report, i.e., the test result in the test report is either a successful test or a failed test. Different labels may be used to indicate different test results, for example, a first label 1 indicates that the test result is a test success, and a second label 0 indicates that the test result is a test failure. The test results may be saved in json.
In summary, in the multi-device management method for testing according to the embodiment of the present invention, by setting one first server and a plurality of second servers connected to the first server, each second server may also deploy a plurality of testing devices, and the first server controls the plurality of testing devices to execute parallel testing, so that not only is automatic testing realized, but also the workload of manual testing is reduced, and the labor cost is reduced; in addition, the state information of the testing equipment in the first server is updated in real time, and the testing equipment is controlled to execute the test case according to the state information of the testing equipment, so that when the testing tasks are distributed, the testing equipment which is successfully connected with the second server and has fewer current testing tasks can be selected, the testing tasks are prevented from being distributed to the testing equipment which is not successfully connected with the second server, or the testing equipment which has more testing tasks is considered to be distributed to the testing equipment, the resources of the idle testing equipment are effectively and reasonably utilized, and the testing efficiency is improved; finally, the test mode of the invention is not limited by the communication network region of the test equipment, is very close to the real operation environment of the tested application program, and improves the test quality.
EXAMPLE III
Fig. 3 is a flowchart of a multi-device management method for testing according to a third embodiment of the present invention.
In this embodiment, the method for managing multiple devices for testing may be applied to the second server, and for the second server that needs to perform multiple device management for testing, the functions of multiple device management for testing provided by the method of the present invention may be directly integrated on the second server, or may be run on the second server in the form of a Software Development Kit (SDK).
As shown in fig. 3, the multi-device management method for testing specifically includes the following steps, and the order of the steps in the flowchart may be changed and some steps may be omitted according to different requirements.
S31: and receiving the application program to be tested and the automatic test script of the application program to be tested, which are sent by the first server.
And providing and uploading an installation package of the application program to be tested by a tester, and simultaneously, packaging an automatic test script corresponding to the application program to be tested and uploading the automatic test script to the first server. The first server distributes the installation package of the application program to be tested and the automatic test script of the application program to be tested to a plurality of second servers. And the second server receives the application program to be tested and the automatic test script of the application program to be tested, which are sent by the first server.
S32: and distributing the application program to be tested and the automatic test script of the application program to be tested to the plurality of test devices, so that the plurality of test devices install the application program to be tested and the automatic test script of the application program to be tested.
And the second server distributes the installation package of the application program to be tested and the automatic test script of the application program to be tested to a plurality of test devices so as to inform the plurality of test devices to download the installation package of the application program to be tested and the automatic test script of the application program to be tested and complete the installation of the application program to be tested, and simultaneously installs and runs the automatic test script of the application program to be tested.
The automatic test script of the application program to be tested is a program code written by a tester according to the functions of the application program to be tested, and the program code can be automatically operated by test equipment and is used for automatically testing each function of the application program to be tested. The automatic test script can provide a test result after running, and the automatic test script can directly generate a test report by using the test result.
S33: and acquiring the state information of each test device every other a preset time period, and reporting the state information to the first server.
The second server obtains the state information of each test device of the corresponding plurality of test devices every preset time period, for example, 1 minute, and reports the state information to the first server.
Preferably, after the second server acquires the state information of the test device every preset time period, the method may further include: judging whether the state information of each test device is changed; and when the state information of the test equipment is determined to be changed, reporting the state information of the test equipment with the changed state information to the first server.
And reporting the state information of the test equipment with changed state information to the first server so that the first server can update the state information of the corresponding test equipment in the equipment state information table.
S34: and when the test instruction sent by the first server is received, controlling the plurality of test devices to execute the test cases in the automatic test script of the application program to be tested according to the test instruction.
And when the second server receives the test instruction sent by the first server, controlling the test equipment to execute the test case in the automatic test script of the application program to be tested. Specifically, when the second server receives the test instruction sent by the first server, the corresponding test device is controlled to execute the test case according to the ID number of the test device in the test instruction and the IP address of the corresponding second server.
S35: when a plurality of test reports sent by a plurality of test devices are received, reporting the plurality of test reports to the first server.
And after the test equipment executes the test case, generating a test report and sending the test report to the second server. And the second server reports the test report to the first server after receiving the test report. The first server receives a plurality of test reports and summarizes the test reports into a final test report.
In summary, in the multi-device management method for testing in the embodiment of the present invention, by setting one first server and a plurality of second servers connected to the first server, each second server may also deploy a plurality of testing devices, and the first server controls the plurality of testing devices to execute parallel testing, so that automated testing is implemented, workload of manual testing is reduced, and labor cost is reduced.
Fig. 2 to 3 above describe the multi-device management method for testing according to the present invention in detail, and in conjunction with fig. 4 to 7, functional modules of a software apparatus for implementing the multi-device management method for testing and a hardware apparatus architecture for implementing the multi-device management method for testing are described below.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
Example four
Fig. 4 is a structural diagram of a multi-device management apparatus for testing according to a fourth embodiment of the present invention.
In some embodiments, the multi-device management apparatus for testing 30 runs in a first server. The first server is connected with a plurality of second servers through a network, and each second server is provided with a plurality of testing devices. The multi-device management apparatus for testing 30 may include a plurality of functional modules composed of program code segments. The program code of each program segment in the multi-device management apparatus for testing 30 may be stored in the memory of the first server and executed by the at least one processor to perform (see fig. 2 for details) the management of the multi-device for testing.
In this embodiment, the multi-device management apparatus 30 for testing may be divided into a plurality of functional modules according to the functions performed by the apparatus. The functional module may include: a distribution module 301, an acquisition module 302, a control module 303 and a receiving module 304. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The distribution module 301 is configured to distribute the application program to be tested and the automatic test script corresponding to the application program to be tested to a plurality of second servers, so that the second servers notify a plurality of test devices to install the application program to be tested and the automatic test script corresponding to the application program to be tested.
In this embodiment, the tester provides and uploads the installation package of the application program to be tested, and at the same time, packages the automatic test script corresponding to the application program to be tested and uploads the packaged automatic test script to the first server. The distribution module 301 distributes the installation package of the application program to be tested and the automatic test scripts of the corresponding packaged application program to be tested to a plurality of second servers, and the second servers distribute the installation package of the application program to be tested and the automatic test scripts of the corresponding packaged application program to be tested to a plurality of test devices so as to inform the plurality of test devices to download the installation package of the application program to be tested and the automatic test scripts of the corresponding packaged application program to be tested and complete the installation of the application program to be tested, and install and run the automatic test scripts of the application program to be tested at the same time.
The automatic test script of the application program to be tested is a program code written by a tester according to the functions of the application program to be tested, and the program code can be automatically operated by test equipment and is used for automatically testing each function of the application program to be tested. The automatic test script can provide a test result after running, and the automatic test script can directly generate a test report by using the test result.
An obtaining module 302, configured to obtain status information of the multiple test devices when a test instruction for automatically testing the application to be tested is received.
In this embodiment, a function switch for starting the test instruction may be provided on the first server, and the test instruction is triggered and started through the function switch. The function switch can be a virtual icon or a voice command. When a user touches the virtual icon or sends a preset voice, the first server detects that the virtual icon receives a touch signal or the first server receives the preset voice, the first server thinks that a function switch for starting a test instruction is triggered, and the test is started.
When receiving a test instruction for automatically testing the application program to be tested, the obtaining module 302 may obtain the state information of each of the plurality of test devices from a device state information table pre-stored in the first server. The device status information table records status information of each testing device, and the status information may include: an identification number (ID) of the test device, an Internet Protocol (IP) address of the corresponding second server, a connection state, and the number of current test cases. The identification number of the testing device is an Identity unique to the testing device, and may be, for example, an International Mobile Equipment Identity (IMEI).
The connection state may include: the first connection state may be 1 to indicate that the test device has successfully connected to the second server, and the second connection state may be 0 to indicate that the test device has not connected to the second server. The number of test cases is the sum of the number of test cases currently executed by the test equipment and the number of test cases to be executed. It should be understood that the number of test cases currently being executed by one test device may only be 1 or 0, and if the number of test cases currently being executed is 1, it indicates that the test device is currently executing the test cases, and possibly one or more test cases to be executed are in the execution queue. If the number of the test cases currently being executed is 0, it indicates that the test equipment does not execute any test case currently, and the number of the test cases to be executed is inevitably 0, that is, the test equipment is currently in an idle state, and the test cases which are not possible to be executed are in the execution queue.
Preferably, the obtaining module 302 is further configured to: and acquiring the state information of the corresponding test equipment sent by each second server every other preset time period, and updating the equipment state information table in the first server.
In this embodiment, each of the second servers may obtain, every other preset time period, state information of each of the plurality of corresponding test devices, and determine whether the state information of each of the test devices changes, and when it is determined that the state information of the test device changes, report the state information of the test device whose state information changes to the first server, so that the first server updates the state information of the corresponding test device in the device state information table. The preset time period may be 1 minute. The second server acquires the state information of the corresponding test equipment at intervals of a preset time period and synchronously reports the changed state information to the first server, so that the first server can acquire the latest state information of the test equipment at the first time, and the test task can be conveniently distributed to the corresponding test equipment according to the state information.
And the control module 303 is configured to control, according to the state information, a plurality of test devices to execute a test case in the automatic test script of the application program to be tested through a plurality of second servers.
The controlling, by the plurality of second servers, the plurality of test devices to execute the test case in the automatic test script of the application program to be tested according to the state information may specifically include:
1) Acquiring test equipment with a connection state corresponding to a first connection state in the plurality of test equipment as first alternative test equipment;
the test equipment corresponding to the first connection state is obtained, so that the test equipment successfully connected with the second server can be selected, and the test equipment corresponding to the second connection state is eliminated, namely the test equipment not successfully connected with the second server is eliminated.
2) Obtaining test equipment corresponding to the condition that the current test case number in the first alternative test equipment is smaller than a preset test case number threshold value, and taking the test equipment as second alternative test equipment;
the preset threshold value of the number of the test cases is a preset critical value of the test cases. And when the current test case number of the test equipment exceeds the preset test case number threshold, the current test tasks of the test equipment are considered to be more, and the test tasks are not suitable to be redistributed. And when the current test case number of the test equipment is less than or equal to the preset test case number threshold value, the current test tasks of the test equipment are considered to be fewer, and the test tasks can be redistributed.
3) And the first server sends the ID number of the second candidate test device and the IP address of the corresponding second server to the corresponding second server.
And the first server sends the ID number of the second candidate test device and the IP address of the corresponding second server to the corresponding second server so as to control the corresponding test device to execute the test case in the automatic test script of the application program to be tested through the second server.
The automatic test script of the application program to be tested comprises a plurality of test cases, each test case can comprise a plurality of test steps, and the first server controls corresponding test equipment to execute the test steps in the test cases through the second server.
In other embodiments, the controlling, by a plurality of second servers, a plurality of test devices to execute the test case in the automatic test script of the application to be tested according to the state information may specifically include:
1) Providing a display interface, wherein the display interface displays a plurality of test devices and the state information of each test device;
2) Receiving options corresponding to the test equipment selected by a user;
3) And sending the ID number of the corresponding test equipment and the IP address of the corresponding second server to the corresponding second server according to the selected option.
And according to the selected option, sending the ID number of the corresponding test equipment and the IP address of the corresponding second server to the corresponding second server so as to control the corresponding test equipment to execute the test case in the automatic test script of the application program to be tested through the second server.
The receiving module 304 is configured to receive a plurality of test reports reported by a plurality of second servers, and assemble the plurality of test reports into a final test report.
In this embodiment, after the test device executes the test case, the automatic test script automatically generates a test report, and reports the generated test report to the corresponding second server. And after the test equipment executes a test case, the automatic test script generates a test report. And after receiving the test report reported by the corresponding test equipment, the second server reports the test report to the first server.
The test report may include: name of test case, number of test case, test result and running time. The test results include: test success or test failure. Only one test result is included in one test report, i.e. the test result in the test report is either a successful test or a failed test. Different identifiers can be used to indicate different test results, for example, a first identifier 1 indicates that the test result is a test success, and a second identifier 0 indicates that the test result is a test failure. The test results may be saved in json.
In summary, in the multi-device management apparatus for testing in the embodiment of the present invention, by setting one first server and a plurality of second servers connected to the first server, each second server may also deploy a plurality of testing devices, and the first server controls the plurality of testing devices to execute parallel testing, so that not only is automatic testing realized, but also the workload of manual testing is reduced, and the labor cost is reduced; in addition, the state information of the testing equipment in the first server is updated in real time, and the testing equipment is controlled to execute the test case according to the state information of the testing equipment, so that when the testing task is distributed, the testing equipment which is successfully connected with the second server and has fewer current testing tasks can be selected, the testing task is prevented from being distributed to the testing equipment which is not successfully connected with the second server, or the testing equipment which has more testing tasks is considered to be distributed to the testing equipment, the resources of the idle testing equipment are effectively and reasonably utilized, and the testing efficiency is improved; finally, the test mode of the invention is not limited by the communication network region of the test equipment, is very close to the real operation environment of the tested application program, and improves the test quality.
EXAMPLE five
Fig. 5 is a structural diagram of a multi-device management apparatus for testing according to a fifth embodiment of the present invention.
In some embodiments, the multi-device management apparatus for testing 40 operates in a second server. The first server is connected with a plurality of second servers through a network, and each second server is provided with a plurality of testing devices. The multi-device management apparatus for testing 40 may include a plurality of functional modules composed of program code segments. The program code of each program segment in the multi-device management apparatus for testing 40 may be stored in the memory of the first server and executed by the at least one processor to perform (see fig. 3 for details) the management of the multi-device for testing.
In this embodiment, the multi-device management apparatus 40 for testing may be divided into a plurality of functional modules according to the functions executed by the apparatus. The functional module may include: a receiving module 401, a distributing module 402, an obtaining module 403, a control module 404 and a reporting module 405. The modules referred to herein are a series of computer program segments stored in a memory that can be executed by at least one processor and that perform a fixed function. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The receiving module 401 is configured to receive an application program to be tested and an automatic test script of the application program to be tested, where the application program to be tested is sent by a first server.
And providing and uploading the installation package of the application program to be tested by a tester, and simultaneously packaging the automatic test script corresponding to the application program to be tested and uploading the packaged automatic test script to the first server. The first server distributes the installation package of the application program to be tested and the automatic test script of the application program to be tested to a plurality of second servers. And the second server receives the application program to be tested and the automatic test script of the application program to be tested, which are sent by the first server.
A distributing module 402, configured to distribute the application to be tested and the automatic test script of the application to be tested to a plurality of corresponding test devices, so that the plurality of test devices install the application to be tested and the automatic test script of the application to be tested.
And the second server distributes the installation package of the application program to be tested and the automatic test script of the application program to be tested to a plurality of test devices so as to inform the plurality of test devices to download the installation package of the application program to be tested and the automatic test script of the application program to be tested and complete the installation of the application program to be tested, and simultaneously installs and runs the automatic test script of the application program to be tested.
The automatic test script of the application program to be tested is a program code written by a tester according to the functions of the application program to be tested, and the program code can be automatically operated by test equipment and is used for automatically testing each function of the application program to be tested. The automatic test script can provide a test result after running, and the automatic test script can directly utilize the test result to generate a test report.
An obtaining module 403, configured to obtain state information of each test device every preset time period, and report the state information to the first server.
The second server obtains the state information of each test device of the corresponding plurality of test devices every preset time period, for example, 1 minute, and reports the state information to the first server.
Preferably, after the second server acquires the state information of the test device every preset time period, the method may further include: and judging whether the state information of each test device changes or not, and reporting the state information of the test device with the changed state information to the first server when the state information of the test device is determined to change.
And reporting the state information of the test equipment with changed state information to the first server so that the first server can update the state information of the corresponding test equipment in the equipment state information table.
The control module 404 is configured to, when receiving a test instruction sent by the first server, control the multiple test devices to execute a test case in the automatic test script of the application program to be tested according to the test instruction.
And when the second server receives the test instruction sent by the first server, controlling the test equipment to execute the test case in the automatic test script of the application program to be tested. Specifically, when the second server receives the test instruction sent by the first server, the second server controls the corresponding test equipment to execute the test case according to the ID number of the test equipment in the test instruction and the corresponding IP address of the second server.
A reporting module 405, configured to report, when receiving multiple test reports sent by multiple test devices, the multiple test reports to the first server.
And after the test equipment executes the test case, generating a test report and sending the test report to the second server. And the second server reports the test report to the first server after receiving the test report. The first server receives a plurality of test reports and summarizes the test reports into a final test report.
In summary, in the multi-device management apparatus for testing in the embodiment of the present invention, by setting one first server and a plurality of second servers connected to the first server, each second server may also deploy a plurality of testing devices, and the first server controls the plurality of testing devices to execute parallel testing, so that automated testing is implemented, workload of manual testing is reduced, and labor cost is reduced.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a first server according to a sixth embodiment of the present invention. In the preferred embodiment of the present invention, the first server 3 comprises a memory 31, at least one processor 32, at least one communication bus 33 and a transceiver 34.
It will be appreciated by those skilled in the art that the configuration of the first server shown in fig. 6 does not limit the embodiments of the present invention, and may be a bus-type configuration or a star-type configuration, and the first server 3 may include more or less hardware or software than those shown, or different component arrangements.
In some embodiments, the first server 3 includes a terminal capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The first server 3 may further include a client device, which includes, but is not limited to, any electronic product capable of interacting with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, and the like.
It should be noted that the first server 3 is only an example, and other existing or future electronic products, such as those that can be adapted to the present invention, should also be included in the scope of the present invention, and is included by reference.
In some embodiments, the memory 31 is used for storing program codes and various data, such as the multi-device management apparatus 30 for testing installed in the first server 3, and realizes high-speed and automatic access to programs or data during the operation of the first server 3. The Memory 31 includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable rewritable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc Memory, a magnetic disk Memory, a tape Memory, or any other medium capable of being used to carry or store data and readable by a computer.
In some embodiments, the at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The at least one processor 32 is a Control Unit (Control Unit) of the first server 3, connects various components of the entire first server 3 by using various interfaces and lines, and executes various functions of the first server 3 and processes data, for example, a function of multi-device management for testing, by running or executing programs or modules stored in the memory 31 and calling data stored in the memory 31.
In some embodiments, the at least one communication bus 33 is arranged to enable connection communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the first server 3 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The first server 3 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a terminal, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
In a further embodiment, in conjunction with fig. 4, the at least one processor 32 may execute the operating device of the first server 3 and various installed applications (such as the multi-device management apparatus 30 for testing), program codes, and the like, for example, the above modules.
The memory 31 has program code stored therein, and the at least one processor 32 can call the program code stored in the memory 31 to perform related functions. For example, the various modules illustrated in fig. 4 are program code stored in the memory 31 and executed by the at least one processor 32 to implement the functions of the various modules for the purpose of multi-device management for testing.
In one embodiment of the invention, the memory 31 stores a plurality of instructions that are executed by the at least one processor 32 to enable testing of a multi-device application.
Specifically, the at least one processor 32 may refer to the description of the relevant steps in the embodiment corresponding to fig. 2, which is not repeated herein.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a second server according to a seventh embodiment of the present invention. In the preferred embodiment of the present invention, the second server 4 comprises a memory 41, at least one processor 42, at least one communication bus 43, and a transceiver 44.
It should be understood by those skilled in the art that the configuration of the second server shown in fig. 7 does not limit the embodiment of the present invention, and the second server 4 may have a bus-type configuration or a star-type configuration, and may further include more or less hardware or software than those shown in the figure, or different component arrangements.
In some embodiments, the second server 4 includes a terminal capable of automatically performing numerical calculation and/or information processing according to instructions set in advance or stored in advance, and the hardware includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The second server 4 may further comprise a client device, which includes, but is not limited to, any electronic product capable of interacting with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, and the like.
It should be noted that the second server 4 is only an example, and other existing or future electronic products, such as may be adapted to the present invention, should also be included in the scope of the present invention, and is included by reference.
In some embodiments, the memory 41 is used for storing program codes and various data, such as the multi-device management apparatus 40 for testing installed in the second server 4, and implementing high-speed and automatic access to programs or data during the operation of the second server 4. The Memory 41 includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, a magnetic disk storage, a tape storage, or any other medium capable of being used to carry or store data and readable by a computer.
In some embodiments, the at least one processor 42 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The at least one processor 42 is a Control Unit (Control Unit) of the second server 4, connects various components of the entire second server 4 by using various interfaces and lines, and executes various functions of the second server 4 and processes data, for example, a function of multi-device management for testing, by running or executing programs or modules stored in the memory 41 and calling data stored in the memory 41.
In some embodiments, the at least one communication bus 43 is arranged to enable connection communication between the memory 41 and the at least one processor 42, etc.
Although not shown, the second server 4 may further include a power supply (such as a battery) for supplying power to various components, and preferably, the power supply may be logically connected to the at least one processor 42 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The second server 4 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the embodiments described are illustrative only and are not to be construed as limiting the scope of the claims.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a terminal, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
In a further embodiment, in conjunction with fig. 5, the at least one processor 42 may execute the operating device of the second server 4 and various installed applications (such as the multi-device management apparatus 40 for testing), program codes, and the like, for example, the above modules.
The memory 41 has program code stored therein that the at least one processor 42 can call to perform related functions. For example, the various modules illustrated in fig. 5 are program code stored in the memory 41 and executed by the at least one processor 42 to implement the functions of the various modules for the purpose of multi-device management for testing.
In one embodiment of the invention, the memory 41 stores a plurality of instructions that are executed by the at least one processor 42 to enable testing of an application program for multiple devices.
Specifically, the at least one processor 42 may refer to the description of the relevant steps in the embodiment corresponding to fig. 3, which is not repeated herein.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. A multi-device management method for testing, applied to a first server, wherein the first server is connected to a plurality of second servers, and each of the second servers is connected to a plurality of testing devices, the method comprising:
distributing an application program to be tested and automatic test scripts corresponding to the application program to be tested to the second servers, so that the second servers inform the test equipment to install the application program to be tested and the automatic test scripts corresponding to the application program to be tested;
when a test instruction for automatically testing the application program to be tested is received, state information of the plurality of test devices is acquired, wherein the state information comprises: the connection state is used for indicating whether the test equipment is successfully connected with the corresponding second server, and the test case number is the sum of the test case number currently executed by the test equipment and the test case number to be executed;
controlling the plurality of test devices to execute the test cases in the automatic test scripts of the application program to be tested through the plurality of second servers according to the state information, wherein the test cases comprise: providing a display interface, wherein the state information of each test device is displayed on the display interface; receiving options corresponding to the test equipment selected by a user; according to the selected option, the identification number of the corresponding test equipment is sent to the corresponding second server, and the test equipment corresponding to the identification number is controlled by the second server to execute the test case in the automatic test script of the application program to be tested;
and receiving a plurality of test reports reported by the plurality of second servers, and aggregating the plurality of test reports into a final test report.
2. The method of claim 1, wherein the method further comprises:
and acquiring the state information of the corresponding test equipment sent by each second server every other preset time period, and updating the equipment state information table in the first server.
3. The method of claim 1, wherein the controlling, by the plurality of second servers, the plurality of test devices to execute the test cases in the automated test script of the application under test according to the state information further comprises:
acquiring test equipment with a connection state corresponding to a first connection state in the plurality of test equipment as first alternative test equipment;
acquiring test equipment corresponding to the test case number smaller than a preset test case number threshold in the first candidate test equipment as second candidate test equipment;
and sending the identification number of the second candidate test equipment and the IP address of the corresponding second server to the corresponding second server.
4. A multi-device management method for testing, applied to a second server, the second server being connected to a first server, the second server being further connected to a plurality of testing devices, the method comprising:
receiving an application program to be tested and an automatic test script corresponding to the application program to be tested, which are sent by the first server;
distributing the application program to be tested and the automatic test script of the application program to be tested to the plurality of test devices, so that the plurality of test devices install the application program to be tested and the automatic test script of the application program to be tested;
acquiring state information of each test device every other preset time period, and reporting the state information to the first server, wherein the state information comprises: the connection state is used for indicating whether the test equipment is successfully connected with the corresponding second server, and the test case number is the sum of the test case number currently executed by the test equipment and the test case number to be executed;
receiving a test instruction sent by the first server, wherein the first server provides a display interface, and the display interface displays the plurality of test devices and state information of each test device; receiving options corresponding to the test equipment selected by a user; according to the selected option, the identification number of the corresponding testing equipment is sent to the corresponding second server, and the testing equipment corresponding to the identification number is controlled to execute the test case in the automatic testing script of the application program to be tested according to the testing instruction;
when a plurality of test reports sent by the plurality of test devices are received, the plurality of test reports are reported to the first server.
5. The method of claim 4, wherein after acquiring the status information of the test device every preset time period, the method further comprises:
judging whether the state information of each test device is changed;
and when the state information of the test equipment is determined to be changed, reporting the state information of the test equipment with the changed state information to the first server.
6. A multi-device management apparatus for testing, operating in a first server, said first server being connected to a plurality of second servers, each of said second servers being connected to a plurality of test devices, said apparatus comprising:
the distribution module is used for distributing the application program to be tested and the automatic test scripts corresponding to the application program to be tested to the plurality of second servers, so that the second servers inform the plurality of test equipment to install the application program to be tested and the automatic test scripts corresponding to the application program to be tested;
an obtaining module, configured to obtain state information of the multiple test devices when a test instruction for automatically testing the application to be tested is received, where the state information includes: the connection state is used for indicating whether the test equipment is successfully connected with the corresponding second server, and the test case number is the sum of the test case number currently executed by the test equipment and the test case number to be executed;
the control module is used for controlling the plurality of test devices to execute the test cases in the automatic test scripts of the application program to be tested through the plurality of second servers according to the state information, and comprises the following steps: providing a display interface, wherein the state information of each test device is displayed on the display interface; receiving options corresponding to the test equipment selected by a user; according to the selected option, the identification number of the corresponding test equipment is sent to the corresponding second server, and the test equipment corresponding to the identification number is controlled by the second server to execute the test case in the automatic test script of the application program to be tested;
and the receiving module is used for receiving the plurality of test reports reported by the plurality of second servers and aggregating the plurality of test reports into a final test report.
7. A multi-device management apparatus for testing, operating in a second server, the second server being connected to a first server, the second server being further connected to a plurality of test devices, the apparatus comprising:
the receiving module is used for receiving the application program to be tested and the automatic test script corresponding to the application program to be tested, which are sent by the first server;
the distribution module is used for distributing the application program to be tested and the automatic test script of the application program to be tested to the plurality of test devices, so that the plurality of test devices install the application program to be tested and the automatic test script of the application program to be tested;
an obtaining module, configured to obtain state information of each test device every preset time period, and report the state information to the first server, where the state information includes: the connection state is used for indicating whether the test equipment is successfully connected with the corresponding second server, and the test case number is the sum of the test case number currently executed by the test equipment and the test case number to be executed;
the control module is used for receiving a test instruction sent by the first server, wherein the first server provides a display interface, and the display interface displays the plurality of test devices and the state information of each test device; receiving options corresponding to the test equipment selected by a user; according to the selected option, the identification number of the corresponding testing equipment is sent to the corresponding second server, and the testing equipment corresponding to the identification number is controlled to execute the test case in the automatic testing script of the application program to be tested according to the testing instruction;
and the reporting module is used for reporting the plurality of test reports to the first server when receiving the plurality of test reports sent by the plurality of test devices.
8. A server, characterized in that a terminal comprises a processor for implementing a multi-device management method for testing according to any one of claims 1 to 3 or for implementing a multi-device management method for testing according to claim 4 or 5 when executing a computer program stored in a memory.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a multi-device management method for testing according to any one of claims 1 to 3 or carries out a multi-device management method for testing according to claim 4 or 5.
CN201811025069.4A 2018-09-04 2018-09-04 Multi-device management method and device for testing, server and storage medium Active CN109471789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811025069.4A CN109471789B (en) 2018-09-04 2018-09-04 Multi-device management method and device for testing, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811025069.4A CN109471789B (en) 2018-09-04 2018-09-04 Multi-device management method and device for testing, server and storage medium

Publications (2)

Publication Number Publication Date
CN109471789A CN109471789A (en) 2019-03-15
CN109471789B true CN109471789B (en) 2023-04-11

Family

ID=65661694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811025069.4A Active CN109471789B (en) 2018-09-04 2018-09-04 Multi-device management method and device for testing, server and storage medium

Country Status (1)

Country Link
CN (1) CN109471789B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532141A (en) * 2019-08-30 2019-12-03 峰米(北京)科技有限公司 A kind of automatization test system and method, a kind of storage medium of intelligent display terminal
CN112540881B (en) * 2019-09-20 2023-11-14 深圳宏芯宇电子股份有限公司 Storage device test management method and storage device test management system
CN110750453B (en) * 2019-09-24 2023-08-18 彩讯科技股份有限公司 HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN111159031B (en) * 2019-12-24 2023-11-24 珠海市小源科技有限公司 Method for automatically testing application mobile terminal, computer device and computer readable storage medium
CN111258898B (en) * 2020-01-15 2023-03-28 深圳平安医疗健康科技服务有限公司 Automatic testing method and device, computer equipment and storage medium
CN111444097A (en) * 2020-03-25 2020-07-24 北京奇艺世纪科技有限公司 Test method and test system
CN114172832A (en) * 2020-09-11 2022-03-11 阿里巴巴集团控股有限公司 Internet of things testing method and device, central control equipment and computer equipment
CN112256560A (en) * 2020-09-22 2021-01-22 北京达佳互联信息技术有限公司 Application program testing method and device and electronic equipment
CN112306887A (en) * 2020-11-12 2021-02-02 广州方硅信息技术有限公司 Program test distribution method and corresponding device, equipment and medium
CN112395192A (en) * 2020-11-16 2021-02-23 北京五八信息技术有限公司 Information processing method and device
CN113238901B (en) * 2021-05-10 2023-02-17 展讯通信(上海)有限公司 Multi-device automatic testing method and device, storage medium and computer device
CN114024735B (en) * 2021-11-02 2024-02-02 北京天融信网络安全技术有限公司 Multi-task parallel feature library testing method and device
CN113836040A (en) * 2021-11-03 2021-12-24 盐城金堤科技有限公司 Application program testing method and device, computer storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970650A (en) * 2014-04-09 2014-08-06 广州杰赛科技股份有限公司 Distributed testing method and device
CN105205003A (en) * 2015-10-28 2015-12-30 努比亚技术有限公司 Automated testing method and device based on clustering system
CN106354629A (en) * 2016-08-19 2017-01-25 南京慕测信息科技有限公司 Construction method of iOS system mobile application automatic test system based on multiple stages of servers
CN106484622A (en) * 2016-10-18 2017-03-08 网易(杭州)网络有限公司 Method of testing, apparatus and system
CN107368419A (en) * 2017-07-27 2017-11-21 千寻位置网络有限公司 Automatic test approach and system, service terminal, memory under distributed environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10162735B2 (en) * 2015-09-30 2018-12-25 Red Hat, Inc. Distributed system test automation framework

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970650A (en) * 2014-04-09 2014-08-06 广州杰赛科技股份有限公司 Distributed testing method and device
CN105205003A (en) * 2015-10-28 2015-12-30 努比亚技术有限公司 Automated testing method and device based on clustering system
CN106354629A (en) * 2016-08-19 2017-01-25 南京慕测信息科技有限公司 Construction method of iOS system mobile application automatic test system based on multiple stages of servers
CN106484622A (en) * 2016-10-18 2017-03-08 网易(杭州)网络有限公司 Method of testing, apparatus and system
CN107368419A (en) * 2017-07-27 2017-11-21 千寻位置网络有限公司 Automatic test approach and system, service terminal, memory under distributed environment

Also Published As

Publication number Publication date
CN109471789A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN109471789B (en) Multi-device management method and device for testing, server and storage medium
CN109359031B (en) Multi-device application program testing method and device, server and storage medium
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
CN104360878B (en) A kind of method and device of application software deployment
US9483314B2 (en) Systems and methods for fault tolerant batch processing in a virtual environment
CN110457197B (en) Service testing method, device, computer equipment and storage medium
CN104583960A (en) Transaction-level health monitoring of online services
US11354150B1 (en) Utilizing maintenance event windows to determine placement of instances
CN103336696A (en) Software updating method and system for testing instrument
CN106713042B (en) Method and device for determining network topology
CN107797914A (en) Code process method, apparatus and code delivery system
CN112445575A (en) Multi-cluster resource scheduling method, device and system
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
JP2023519774A (en) Automated test method, apparatus, electronic device, storage medium, and program
CN111953809B (en) Method, device, equipment and system for managing resource address
CN111459510A (en) Cross-network operating system installation method and device, electronic equipment and medium
CN109491762B (en) Container state control method and device, storage medium and electronic equipment
CN111209333A (en) Data updating method, device, terminal and storage medium
CN111784185A (en) Distributed power distribution communication network timed task scheduling system
CN110795118A (en) Cloud platform upgrading tool and upgrading method
US20240103824A1 (en) Server management apparatus and server management method
CN103914339A (en) Server management system and server management method
CN115277398A (en) Cluster network configuration method and device
EP3058499A1 (en) Automatic identification of returned merchandise in a data center

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