CN109359032B - Test data collection method, device and system and electronic equipment - Google Patents
Test data collection method, device and system and electronic equipment Download PDFInfo
- Publication number
- CN109359032B CN109359032B CN201811032242.3A CN201811032242A CN109359032B CN 109359032 B CN109359032 B CN 109359032B CN 201811032242 A CN201811032242 A CN 201811032242A CN 109359032 B CN109359032 B CN 109359032B
- Authority
- CN
- China
- Prior art keywords
- test
- screenshot
- test result
- software
- server
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
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 test data collection method, a test data collection device, a test data collection system and electronic equipment. The method comprises the following steps: the method comprises the steps of controlling a testing device to test tested equipment through testing software, then receiving testing data of the tested equipment fed back by the testing device, displaying the testing data on a testing result interface of the testing software, carrying out screenshot on the testing result interface to obtain a testing result screenshot, and sending the testing result screenshot to a server. Therefore, the server can obtain the test data by analyzing the test result screenshots, the server can conveniently obtain the test data, the situation that the development languages between the programming language adapted to the uploading interface of the test equipment and the uploading database system in the server are not matched is avoided, and the maintenance cost of test data collection is reduced.
Description
Technical Field
The present application relates to the field of test technologies, and in particular, to a test data collection method and apparatus, an electronic device, and a computer-readable storage medium.
Background
In the process of producing electronic equipment, the functions of devices and application software of the electronic equipment need to be tested, and in the related art, the electronic equipment is generally tested through test equipment on each test station, and test data is uploaded through an application programming interface of each test equipment.
However, in the process of implementing the present application, the inventors found that the way of uploading the test data at least has the following technical problems: (1) because the test equipment on each test station is provided by different equipment manufacturers, the programming languages used by the test equipment data uploading interfaces of the manufacturers are different, the form of the packaging interface and the calling environment are different, the development language environment between the test data and the uploading database system is easily mismatched, software of various language types needs to be developed, and the maintenance cost is increased. (2) When the test equipment needs to be connected with a network to upload data and the test equipment on the test station does not have a network interface, the network interface for transmitting data needs to be added, at the moment, the test equipment needs to be shut down for debugging, and the test equipment needs to be shut down, so that the waste of the utilization rate of the equipment is caused.
Disclosure of Invention
The object of the present application is to solve at least to some extent one of the above mentioned technical problems.
To this end, a first object of the present application is to propose a test data collection method. The method ensures that the server can obtain the test data by analyzing the test result screenshot, is convenient for the server to obtain the test data, avoids the situation that the development language between the programming language adapted to the uploading interface of the test equipment and the uploading database system in the server is not matched, and reduces the maintenance cost of test data collection.
A second object of the present application is to provide a test data collection device.
A third object of the present application is to provide a test data collection system.
A fourth object of the present application is to provide an electronic device.
A fifth object of the present application is to propose a computer-readable storage medium.
A sixth object of the present application is to propose a computer program product.
In order to achieve the above object, an embodiment of the first aspect of the present application provides a test data collection method, including: controlling the test equipment to test the tested equipment through the test software; receiving test data of the tested device fed back by the test device; displaying the test data on a test result interface of the test software, and performing screenshot on the test result interface to obtain a test result screenshot; and sending the test result screenshot to a server, wherein the test result screenshot is used for the server to obtain the test data of the tested equipment according to the test result screenshot.
In order to achieve the above object, an embodiment of the second aspect of the present application provides a test data collection apparatus, including: the test control module is used for controlling the test equipment to test the tested equipment through the test software; the receiving module is used for receiving the test data of the tested device fed back by the test device; the screenshot module is used for displaying the test data on a test result interface of the test software and screenshot the test result interface to obtain a test result screenshot; and the communication module is used for sending the test result screenshot to a server, and the test result screenshot is used for the server to obtain the test data of the tested equipment according to the test result screenshot.
In order to achieve the above object, an embodiment of the third aspect of the present application provides a test data collection system, which includes a testing device, a device under test, a control device, and a server, wherein: the control equipment is used for controlling the test equipment to test the tested equipment through test software; receiving test data of the tested device fed back by the test device; displaying the test data on a test result interface of the test software, and performing screenshot on the test result interface to obtain a test result screenshot; sending the test result screenshot to the server; the server is used for acquiring the test data of the tested equipment according to the test result screenshot
To achieve the above object, an embodiment of a fourth aspect of the present application provides an electronic device, including: the test data collection method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the program, the test data collection method is realized.
To achieve the above object, a non-transitory computer-readable storage medium is provided in an embodiment of a fourth aspect of the present application, on which a computer program is stored, and the program, when executed by a processor, implements the test data collection method described in the embodiment of the first aspect of the present application.
An embodiment of a fifth aspect of the present application provides a computer program product, which when executed by an instruction processor in the computer program product, performs the test data collection method described in the embodiment of the first aspect of the present application.
According to the test data collection method, the test data collection device, the test data collection system and the electronic device, test software controls test equipment to test tested equipment, then test data of the tested equipment fed back by the test equipment is received, the test data is displayed on a test result interface of the test software, screenshot is conducted on the test result interface, a test result screenshot is obtained, and the test result screenshot is sent to a server. Therefore, the server can obtain the test data by analyzing the test result screenshots, the server can conveniently obtain the test data, the situation that the development languages between the programming language adapted to the uploading interface of the test equipment and the uploading database system in the server are not matched is avoided, and the maintenance cost of test data collection is reduced. In addition, the test result screenshots are uploaded to the server through the control equipment, the situation that the test equipment needs to be shut down and the communication interface of the test equipment needs to be increased due to the fact that the test equipment does not have the communication interface is avoided, the utilization rate of production equipment is improved, and cost is reduced.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing 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 flow diagram of a test data collection method according to one embodiment of the present application;
FIG. 2 is a flow chart of a test data collection method according to another embodiment of the present application;
FIG. 3 is a flow chart of a test data collection method according to yet another embodiment of the present application;
FIG. 4 is a schematic diagram of a test data collection apparatus according to one embodiment of the present application;
FIG. 5 is a schematic diagram of a test data collection apparatus according to another embodiment of the present application;
FIG. 6 is a schematic structural diagram of a test data collection apparatus according to yet another embodiment of the present application;
FIG. 7 is a schematic diagram of a test data collection apparatus according to yet another embodiment of the present application;
FIG. 8 is a schematic block diagram of a test data collection system according to one embodiment of the present application;
FIG. 9 is a block diagram of a test data collection system according to an exemplary embodiment of the present application;
FIG. 10 is a flow chart of a test data collection method according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of an electronic device according to one embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A test data collection method, an apparatus, an electronic device, and a computer-readable storage medium according to embodiments of the present application are described below with reference to the accompanying drawings.
FIG. 1 is a flow chart of a test data collection method according to one embodiment of the present application.
As shown in fig. 1, the test data collection method may include:
It should be noted that the test data collection method according to the embodiment of the present application can be applied to the test data collection device according to the embodiment of the present application, and the test data collection device can be configured on the control device according to the embodiment of the present application.
The control device may be a hardware device such as a personal computer, a tablet computer, etc. having various operating systems.
It should be understood that the control device has test software thereon, which can control the test device.
The device under test may be various types of electronic devices, for example, the device under test may be a smart phone, a portable device, a personal computer, a tablet computer, or the like.
As an exemplary embodiment, in the process of producing the device under test, each test station needs to test the functions of the electronic devices or application software in the device under test through the corresponding test equipment.
The electronic devices may include, but are not limited to, antennas, display screens, sensors, and the like.
It should be understood that, in order to accurately test the device under test, the test content of the test device tested by the device under test in each test station is usually different.
It should be noted that the data collection method of this embodiment is applicable to the control device in each test station.
And 102, receiving test data of the tested device fed back by the test device.
Specifically, the test equipment tests the functions of the electronic device application software in the tested equipment according to the instruction of the test software, and feeds back test data corresponding to the tested equipment to the control equipment.
And 103, displaying the test data on a test result interface of the test software, and performing screenshot on the test result interface to obtain a test result screenshot.
In order to provide an accurate screenshot for a server and reduce workload of analyzing the screenshot by the server, as an exemplary implementation manner, in a process of testing a device to be tested through a testing device, after a control device receives test data fed back by the device to be tested, a corresponding test value is displayed on a test result interface of the control device corresponding to an index item. At this time, when the content displayed on the test result interface is detected to be changed, the screenshot of the target test result interface with the changed content can be obtained, and the test result screenshot can be obtained.
It should be noted that, in different application scenarios, the ways of performing screenshot on the target test result interface with changed content may be different, which are illustrated as follows:
as an example, when it is detected that the content displayed on the test result interface changes, the screenshot may be performed on the target test result interface with the changed content through an automatic screenshot function of the control device.
As another example, when it is detected that the content displayed on the test result interface changes, screenshot may be performed on a target test result interface with the changed content through screenshot software.
In order to quickly capture a target test result interface, as an exemplary implementation manner, before the test device is controlled by test software to test the tested device, whether the test software is started or not can be judged; if the test software is judged to be started, screen capture software aiming at the test software is automatically started, and the screen capture software is controlled to be in a background running state, so that screen capture can be conveniently carried out on a test result interface through the screen capture software running in the background when screen capture is needed subsequently.
As another exemplary embodiment, in order to quickly perform screenshot on a target test result interface, before a test device is controlled by test software to test a device to be tested, whether the test software is started or not may be determined; and if the test software is judged to be started, starting an automatic screen capture function of the control equipment so as to facilitate quick screen capture of the test result interface through the automatic screen capture function of the control equipment when screen capture is required subsequently.
And 104, sending the test result screenshot to the server, wherein the test result screenshot is used for the server to obtain the test data of the tested equipment according to the test result screenshot.
It should be understood that, in different application scenarios, after the control device obtains the test result screenshot, the test result screenshot in the control device may be sent to the server in real time or at preset time intervals.
Correspondingly, after receiving the test result screenshot sent by the control device, the server performs Optical Character Recognition (OCR) on the test result screenshot, obtains test data corresponding to the tested device according to the control device, the Optical Recognition result and a test result analysis rule corresponding to the control device, and stores the test data in a database, so that other systems can perform statistical analysis and use based on the test data conveniently.
As a possible implementation, the control device may send the test result screenshot to a specified directory of a server (e.g., an FTP server). Correspondingly, the server monitors the specified directory, and after monitoring that a new test result screenshot exists in the specified directory, the server performs Optical Character Recognition (OCR) on the test result screenshot to obtain detailed test data, and stores the detailed test data in a preset database, so that other subsequent systems can perform statistical analysis and use based on the test data in the preset database.
The control device may send the test result screenshot to the server in a preset manner.
The preset mode may include a wireless mode and a wired mode.
It should be noted that, in the actual application process, the control device may be set according to actual requirements, and the test result screenshot is sent to the server in a wireless manner or a wired manner, which is not limited in this embodiment.
According to the test data collection method, the test equipment is controlled by the test software to test the tested equipment, then the test data of the tested equipment fed back by the test equipment is received, the test data is displayed on the test result interface of the test software, screenshot is conducted on the test result interface, a test result screenshot is obtained, and the test result screenshot is sent to the server. Therefore, the server can obtain the test data by analyzing the test result screenshots, the server can conveniently obtain the test data, the situation that the development languages between the programming language adapted to the uploading interface of the test equipment and the uploading database system in the server are not matched is avoided, and the maintenance cost of test data collection is reduced. In addition, the test result screenshots are uploaded to the server through the control equipment, the situation that the test equipment needs to be shut down and the communication interface of the test equipment needs to be increased due to the fact that the test equipment does not have the communication interface is avoided, the utilization rate of production equipment is improved, and cost is reduced.
Based on the foregoing embodiment, as an exemplary implementation manner, in order to facilitate a subsequent server to analyze a device under test based on test data, as shown in fig. 2, the method may further include:
and step 202, performing screenshot on the log interface to obtain a log screenshot.
And step 203, sending the log screenshot to the server, wherein the log screenshot is used for the server to obtain test data of the test item corresponding to the log screenshot.
In this embodiment, the control device sends the screenshot corresponding to the test log obtained by the test of the test device to the server, so that the subsequent server can further obtain test data related to the device to be tested according to the test log, and other systems can perform statistical analysis on the test data conveniently.
FIG. 3 is a flow chart of a test data collection method according to one embodiment of the present application.
As shown in fig. 3, the test data collection method may include:
It should be noted that the above explanation for steps 101-103 also applies to steps 301-303 of this embodiment, and is not repeated here.
And step 304, determining that the number of test result screenshots reaches a preset threshold value.
The preset threshold is a preset number threshold of test result screenshots, and for example, the preset threshold may be 100.
And 305, sending the test result screenshot to the server, wherein the test result screenshot is used for the server to obtain the test data of the tested equipment according to the test result screenshot.
Specifically, the control device monitors the number of test result screenshots, and when the number of test result screenshots is judged to reach a preset threshold value, the control device sends the corresponding test result screenshots to the server.
For example, assuming that the preset threshold is 120, when the control device monitors that the number of screenshots of the test result reaches 120, the control device may send the screenshots of the test result to the server through the communication module.
It should be noted that, in order to avoid occupation of a storage space of the control device due to saving of the screenshot, as an exemplary implementation, after the test result screenshot is sent to the server, the sent test result screenshot may be deleted.
As a possible implementation manner, in order to improve stability, after sending the test result screenshot to the server, a storage period may be set for the test result screenshot, and after monitoring that the storage period of the test result screenshot is expired, the corresponding test result screenshot is deleted.
The storage life is a preset time, for example, the storage life of the test result screenshot can be set to one day, and the corresponding test result screenshot is deleted after the test result screenshot is stored for one day. Therefore, the occupation of the storage space of the control equipment by storing the test result screenshots is reduced.
Corresponding to the test data collection methods provided in the foregoing embodiments, an embodiment of the present application further provides a test data collection device, and since the test data collection device provided in the embodiment of the present application corresponds to the test data collection methods provided in the foregoing embodiments, the embodiments of the test data collection method described above are also applicable to the test data collection device provided in the embodiment, and are not described in detail in the embodiment. FIG. 4 is a schematic diagram of a test data collection apparatus according to one embodiment of the present application. As shown in fig. 4, the test data collection apparatus may include a test control module 110, a receiving module 120, a screenshot module 130, and a communication module 140, wherein:
and the test control module 110 is used for controlling the test equipment to test the device to be tested through the test software.
The receiving module 120 is configured to receive test data of the device under test fed back by the testing device.
And the screenshot module 130 is configured to display the test data on a test result interface of the test software, and perform screenshot on the test result interface to obtain a test result screenshot.
And the communication module 140 is configured to send the test result screenshot to the server, where the test result screenshot is used for the server to obtain test data of the device under test according to the test result screenshot.
In an embodiment of the present application, the screenshot module 130 is specifically configured to: and when the content displayed on the test result interface is detected to be changed, screenshot is carried out on the target test result interface with the changed content, so as to obtain a test result screenshot.
In an embodiment of the present application, based on fig. 4, as shown in fig. 5, the apparatus further includes:
the log display module 150 is configured to control a log interface of the test software to display log information, where the log information includes a test log obtained by testing the test device, and the test log includes test items and test data.
The screenshot module 130 is further configured to capture a screenshot of the log interface to obtain a log screenshot.
The communication module 140 is further configured to send the log screenshot to the server, where the log screenshot is used for the server to obtain test data of the test item corresponding to the log screenshot.
In an embodiment of the present application, in order to improve the screenshot efficiency, on the basis shown in fig. 4, as shown in fig. 6, the apparatus may further include:
the preprocessing module 160 is used for judging whether the test software is started or not; if the test software is judged to be started, screen capturing software aiming at the test software is automatically started, and the screen capturing software is controlled to be in a background running state;
the screenshot module 130 is specifically configured to: and screenshot is carried out on the test result interface through screenshot software running in the background.
It should be noted that the structure of the preprocessing module 160 in the apparatus embodiment shown in fig. 6 may also be included in the apparatus embodiment shown in fig. 5, and the embodiment is not limited thereto.
In an embodiment of the present application, on the basis of fig. 4, as shown in fig. 7, the apparatus further includes:
the determining module 170 is configured to determine that the number of test result screenshots reaches a preset threshold before the communication module sends the test result screenshots to the server.
It should be noted that the structure of the determining module 170 in the apparatus embodiment shown in fig. 7 may also be included in the apparatus embodiments shown in fig. 5 and fig. 6, and the embodiment is not limited thereto.
According to the test data collection device and the test data collection method, test software controls test equipment to test tested equipment, then test data of the tested equipment fed back by the test equipment is received, the test data is displayed on a test result interface of the test software, screenshot is conducted on the test result interface, a test result screenshot is obtained, and the test result screenshot is sent to a server. Therefore, the server can obtain the test data by analyzing the test result screenshots, the server can conveniently obtain the test data, the situation that the development languages between the programming language adapted to the uploading interface of the test equipment and the uploading database system in the server are not matched is avoided, and the maintenance cost of test data collection is reduced. In addition, the test result screenshots are uploaded to the server through the control equipment, the situation that the test equipment needs to be shut down and the communication interface of the test equipment needs to be increased due to the fact that the test equipment does not have the communication interface is avoided, the utilization rate of production equipment is improved, and cost is reduced.
In order to implement the above embodiments, the present application further provides a test data collection system.
FIG. 8 is a block diagram of a test data collection system according to one embodiment of the present application.
As shown in fig. 8, the system includes a test device 10, a device under test 20, a control device 30, and a server 40, wherein:
the control device 30 is used for controlling the test device 10 to test the device 20 to be tested through the test software; receiving test data of the device under test 20 fed back by the test device 10; displaying test data on a test result interface of the test software, and performing screenshot on the test result interface to obtain a test result screenshot; the test result screenshot is sent to the server 40.
And the server 40 is used for acquiring the test data of the tested device 10 according to the test result screenshot.
As an exemplary embodiment, the control device may send the test result screenshot to a designated directory of a server (e.g., FTP server). Correspondingly, the server monitors the specified directory, and after monitoring that a new test result screenshot exists in the specified directory, the server performs Optical Character Recognition (OCR) on the test result screenshot to obtain detailed test data, and stores the detailed test data in a preset database, so that other subsequent systems can perform statistical analysis and use based on the test data in the preset database.
The control device may send the test result screenshot to the server in a preset manner.
The preset mode may include a wireless mode and a wired mode.
It should be noted that, in the actual application process, the control device may be set according to actual requirements, and the test result screenshot is sent to the server in a wireless manner or a wired manner, which is not limited in this embodiment.
It should be noted that the server in this embodiment is a logical server, and in practical application, the server for analyzing the test result screenshot and the server for storing the test data may be separately configured or integrally configured, which is not limited in this embodiment.
Fig. 9 is a schematic structural diagram of a test data collection system according to an embodiment of the present application. It should be noted that fig. 9 illustrates an example in which the control device wirelessly transmits the test result to the FTP server, and the FTP server is configured to analyze the test result screenshot, transmit the corresponding test data to the database server, and store the test data through the database server.
The following describes a specific process performed by the test data collection system in the process of collecting test data with reference to fig. 9 and 10, where the specific process is as follows:
1. the control equipment controls the test equipment to test the tested equipment through the test software.
2. And the control equipment receives the test data of the tested equipment fed back by the test equipment and displays the test data on a test result interface.
3. And the control equipment judges whether the content displayed on the test result interface changes, if not, the step 3 is continuously executed, and if so, the step 4 is executed.
4. And the control equipment performs screenshot on a target test result interface of the content change.
5. And the control equipment uploads the test result screenshot to a specified directory of the FTP server.
6. And (4) the server judges whether a test result screenshot is newly added on the appointed directory or not, if not, the step 6 is continuously executed, and if so, the step 7 is executed.
7. And the server identifies the newly added test result screenshot through the picture identification software to obtain test data.
8. The server sends the test data to the database server, and the database server stores the test data so as to facilitate the development and analysis of the test data by the data analysis system.
It should be noted that the foregoing explanation of the embodiment of the test data collection method is also applicable to the test data collection system of the embodiment, and the embodiment is not described again.
According to the test data collection system, the control device controls the test device to test the tested device through the test software, then receives the test data of the tested device fed back by the test device, displays the test data on the test result interface of the test software, conducts screenshot on the test result interface to obtain the test result screenshot, and sends the test result screenshot to the server. Therefore, the server can obtain the test data by analyzing the test result screenshots, the server can conveniently obtain the test data, the situation that the development languages between the programming language adapted to the uploading interface of the test equipment and the uploading database system in the server are not matched is avoided, and the maintenance cost of test data collection is reduced. In addition, the test result screenshots are uploaded to the server through the control equipment, the situation that the test equipment needs to be shut down and the communication interface of the test equipment needs to be increased due to the fact that the test equipment does not have the communication interface is avoided, the utilization rate of production equipment is improved, and cost is reduced.
In order to implement the above embodiments, the present application further provides an electronic device.
FIG. 11 is a schematic structural diagram of an electronic device according to one embodiment of the present application.
As shown in fig. 11, the electronic device 100 may include: the memory 710, the processor 720 and the computer program 1030 stored on the memory 1010 and operable on the processor 1020, when the processor 1020 executes the program 1030, implement the test data collection method according to any of the embodiments of the present application.
In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the test data collection method of any of the above embodiments of the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (13)
1. A method of test data collection, comprising:
controlling a testing device to test a tested device through testing software, wherein the testing software is installed on a control device;
receiving test data of the tested device fed back by the test device;
displaying the test data on a test result interface of the test software, and performing screenshot on the test result interface to obtain a test result screenshot, wherein the screenshot on the test result interface comprises screenshot on the test result interface through an automatic screenshot function of the control equipment;
and sending the test result screenshot to a server, wherein the test result screenshot is used for the server to obtain the test data of the tested equipment according to the test result screenshot.
2. The method of claim 1, wherein the screenshot of the test result interface to obtain a test result screenshot comprises:
and when the content displayed on the test result interface is detected to be changed, screenshot is carried out on the target test result interface with the changed content, so as to obtain the test result screenshot.
3. The method of claim 1, further comprising:
controlling a log interface of the test software to display log information, wherein the log information comprises a test log obtained by testing the test equipment, and the test log comprises test items and test data;
screenshot is carried out on the log interface to obtain a log screenshot;
and sending the log screenshot to the server, wherein the log screenshot is used for the server to obtain the test data of the test item corresponding to the log screenshot.
4. The method of claim 1, further comprising, before the controlling the testing device to test the device under test with the testing software:
judging whether the test software is started or not;
if the test software is judged to be started, screen capturing software aiming at the test software is automatically started, and the screen capturing software is controlled to be in a background running state;
the screenshot of the test result interface includes:
and screenshot is carried out on the test result interface through the screenshot software running in the background.
5. The method according to any one of claims 1-4, further comprising, before said sending said test result screenshot to a server:
and determining that the number of the test result screenshots reaches a preset threshold value.
6. A test data collection device, comprising:
the test control module is used for controlling the test equipment to test the tested equipment through test software, and the test software is installed on the control equipment;
the receiving module is used for receiving the test data of the tested device fed back by the test device;
the screenshot module is used for displaying the test data on a test result interface of the test software and screenshot the test result interface to obtain a test result screenshot, wherein the screenshot of the test result interface comprises the screenshot of the test result interface through an automatic screenshot function of the control equipment;
and the communication module is used for sending the test result screenshot to a server, and the test result screenshot is used for the server to obtain the test data of the tested equipment according to the test result screenshot.
7. The apparatus of claim 6, wherein the screenshot module is specifically configured to:
and when the content displayed on the test result interface is detected to be changed, screenshot is carried out on the target test result interface with the changed content, so as to obtain the test result screenshot.
8. The apparatus of claim 6, further comprising:
the log display module is used for controlling a log interface of the test software to display log information, wherein the log information comprises a test log obtained by testing the test equipment, and the test log comprises test items and test data;
the screenshot module is further used for screenshot of the log interface to obtain a log screenshot;
the communication module is further configured to send the log screenshot to the server, where the log screenshot is used for the server to obtain the test data of the test item corresponding to the log screenshot.
9. The apparatus of claim 6, further comprising:
the preprocessing module is used for judging whether the test software is started or not; if the test software is judged to be started, screen capturing software aiming at the test software is automatically started, and the screen capturing software is controlled to be in a background running state;
the screenshot module is specifically configured to:
and screenshot is carried out on the test result interface through the screenshot software running in the background.
10. The apparatus of any one of claims 6-9, further comprising:
and the determining module is used for determining that the number of the test result screenshots reaches a preset threshold before the communication module sends the test result screenshots to the server.
11. A test data collection system, comprising a test device, a device under test, a control device, and a server, wherein:
the control equipment is used for controlling the test equipment to test the tested equipment through test software, and the test software is installed on the control equipment; receiving test data of the tested device fed back by the test device; displaying the test data on a test result interface of the test software, and performing screenshot on the test result interface to obtain a test result screenshot, wherein the screenshot on the test result interface comprises screenshot on the test result interface through an automatic screenshot function of the control equipment; sending the test result screenshot to the server;
and the server is used for acquiring the test data of the tested equipment according to the test result screenshot.
12. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements a test data collection method according to any one of claims 1 to 5.
13. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the test data collection method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811032242.3A CN109359032B (en) | 2018-09-05 | 2018-09-05 | Test data collection method, device and system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811032242.3A CN109359032B (en) | 2018-09-05 | 2018-09-05 | Test data collection method, device and system and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109359032A CN109359032A (en) | 2019-02-19 |
CN109359032B true CN109359032B (en) | 2022-03-22 |
Family
ID=65350402
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811032242.3A Active CN109359032B (en) | 2018-09-05 | 2018-09-05 | Test data collection method, device and system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109359032B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110969082B (en) * | 2019-10-28 | 2023-05-26 | 中国信息通信研究院 | Clock synchronous test inspection method and system |
CN113760629A (en) * | 2020-06-15 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method, device and equipment for monitoring running state of application system |
CN113376502A (en) * | 2021-04-26 | 2021-09-10 | 曙光信息产业(北京)有限公司 | FPGA board card testing method and device, server and computer readable storage medium |
CN115357501B (en) * | 2022-08-24 | 2024-04-05 | 中国人民解放军32039部队 | Automatic testing method and system for aerospace measurement and control software |
CN115547402B (en) * | 2022-10-24 | 2023-05-05 | 深圳三地一芯电子股份有限公司 | Zero-loss monitoring method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647685A (en) * | 2013-12-18 | 2014-03-19 | 中国电子科技集团公司第四十一研究所 | Processing method for unloading and receiving test result information |
CN107066376A (en) * | 2016-12-15 | 2017-08-18 | 中国航天科工集团第四研究院第四总体设计部 | A kind of automatic test verification method tested for GUI |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9317416B2 (en) * | 2014-05-20 | 2016-04-19 | International Business Machines Corporation | Merging automated testing reports |
CN104035869A (en) * | 2014-06-19 | 2014-09-10 | 科大讯飞股份有限公司 | Application evaluation method, terminal, and server |
CN104536888A (en) * | 2014-12-24 | 2015-04-22 | 网易(杭州)网络有限公司 | Game testing method and system for mobile devices |
US10055340B2 (en) * | 2015-06-10 | 2018-08-21 | International Business Machines Corporation | Dynamic test topology visualization |
CN105786709A (en) * | 2016-03-22 | 2016-07-20 | 东软集团股份有限公司 | Test problem submitting method and system |
CN106484622B (en) * | 2016-10-18 | 2019-02-22 | 网易(杭州)网络有限公司 | Test method, apparatus and system |
CN107991600A (en) * | 2017-11-29 | 2018-05-04 | 成都锐成芯微科技股份有限公司 | Automatic test approach and its test system |
-
2018
- 2018-09-05 CN CN201811032242.3A patent/CN109359032B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647685A (en) * | 2013-12-18 | 2014-03-19 | 中国电子科技集团公司第四十一研究所 | Processing method for unloading and receiving test result information |
CN107066376A (en) * | 2016-12-15 | 2017-08-18 | 中国航天科工集团第四研究院第四总体设计部 | A kind of automatic test verification method tested for GUI |
Non-Patent Citations (2)
Title |
---|
Multi-objective test report prioritization using image understanding;Yang Feng;《2016 31st IEEE/ACM International Conference on Automated Software Engineering (ASE)》;20161006;第202 - 213页 * |
应用图像对比方法的UI自动化功能测试;刘煦;《cnki优秀硕士学位论文全文库 信息科技辑》;20120416;第I140-533页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109359032A (en) | 2019-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109359032B (en) | Test data collection method, device and system and electronic equipment | |
CN112596972B (en) | Test method, device and system of vehicle-mounted equipment and computer equipment | |
CN107688530B (en) | Software testing method and device | |
CN104536888A (en) | Game testing method and system for mobile devices | |
CN104240324A (en) | Routing inspection method, handheld routing inspection terminal and routing inspection server | |
CN108303969B (en) | Automatic testing device for vehicle-mounted ECU | |
CN109669798B (en) | Crash analysis method, crash analysis device, electronic equipment and storage medium | |
CN113470018B (en) | Hub defect identification method, electronic device, device and readable storage medium | |
CN111835799A (en) | Automatic acquisition system and method for vehicle log | |
CN114326677A (en) | Vehicle machine testing method and device | |
CN112069070A (en) | Page detection method, device, server and computer readable storage medium | |
CN115576315A (en) | Abnormity inspection method and device of inspection unit and electronic equipment | |
CN111310351A (en) | Method and device for monitoring state of workshop equipment, terminal equipment and storage medium | |
CN111966847A (en) | Report regression testing method, device and system | |
CN117010197A (en) | Equipment detection method and device based on digital twin | |
CN114034972B (en) | Intelligent cable fault determining method and device based on image data | |
CN112346440B (en) | Robot health monitoring method, device, equipment and readable storage medium | |
CN111143262A (en) | Switching device, instrument control system and instrument control method | |
CN115643600A (en) | Network communication quality prediction method and system suitable for networked unmanned aerial vehicle | |
CN117261924A (en) | Vehicle control method, device, equipment and storage medium | |
CN110691240B (en) | Mobile detection missing recording detection method and device | |
CN108121662A (en) | The collocation method and its device of test equipment | |
CN114356769A (en) | Software learning method, device, equipment and storage medium | |
CN113379285A (en) | Building environment monitoring method, building environment monitoring device, building environment monitoring equipment, storage medium and program product | |
CN110954214B (en) | Equipment testing method, device and system |
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 |