CN109359032A - Test data collection method, device, system and electronic equipment - Google Patents

Test data collection method, device, system and electronic equipment Download PDF

Info

Publication number
CN109359032A
CN109359032A CN201811032242.3A CN201811032242A CN109359032A CN 109359032 A CN109359032 A CN 109359032A CN 201811032242 A CN201811032242 A CN 201811032242A CN 109359032 A CN109359032 A CN 109359032A
Authority
CN
China
Prior art keywords
test
screenshot
equipment
software
test result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811032242.3A
Other languages
Chinese (zh)
Other versions
CN109359032B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201811032242.3A priority Critical patent/CN109359032B/en
Publication of CN109359032A publication Critical patent/CN109359032A/en
Application granted granted Critical
Publication of CN109359032B publication Critical patent/CN109359032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

This application discloses a kind of test data collection method, device, system and electronic equipments.Wherein method includes: and controls test equipment by test software to test equipment under test, then, receive the test data of the equipment under test of the test equipment feedback, and the test data is shown on the test result interface of the test software, and screenshot is carried out to the test result interface, test result screenshot is obtained, and the test result screenshot is sent to server.Thus, so that server can obtain test data by analyzing test result screenshot, it facilitates server and obtains test data, the generation for uploading the development language mismatch case between Database Systems in the programming language and server adapted to by the upload interface of test equipment is avoided, the maintenance cost of test data collection is reduced.

Description

Test data collection method, device, system and electronic equipment
Technical field
This application involves the field of test technology more particularly to a kind of test data collection method, device, electronic equipment and meters Calculation machine readable storage medium storing program for executing.
Background technique
During producing electronic equipment, need to survey the device of electronic equipment and the function of application software Examination, in the related technology, tests electronic equipment generally by the test equipment in each test station, and by each The application programming interface of test equipment uploads test data.
However, inventor has found that the mode for uploading test data at least has following skill during realizing the application Art problem: (1) since test equipment each test station in be by distinct device manufacturer provided, and the test of each producer The programming language that the interface that device data uploads uses is different, and the form of package interface and the environment of calling are also different, holds It easily causes test data and uploads development language environment between Database Systems and mismatch, to need to develop various language forms Software, caused by maintenance cost increase.(2) it needs to connect network in test equipment and uploads data, and the survey in test station It when trying equipment without network interface, needs to increase the network interface of transmission data, is debugged at this time, it may be necessary to shut down, generate It needs to shut down, to cause the waste of capacity utilization.
Summary of the invention
The purpose of the application is intended to solve above-mentioned one of technical problem at least to a certain extent.
For this purpose, first purpose of the application is to propose a kind of test data collection method.This method makes server Test data can be obtained by analyzing test result screenshot, server is facilitated and obtains test data, avoid because test is set The development language mismatch case between Database Systems is uploaded in the programming language and server that standby upload interface is adapted to Generation, reduce test data collection maintenance cost.
Second purpose of the application is to propose a kind of test data collection device.
The third purpose of the application is to propose a kind of test data collection system.
The 4th purpose of the application is to propose a kind of electronic equipment.
The 5th purpose of the application is to propose a kind of computer readable storage medium.
The 6th purpose of the application is to propose a kind of computer program product.
In order to achieve the above objectives, the test data collection method that the application first aspect embodiment proposes, comprising: pass through survey Examination software control test equipment tests equipment under test;Receive the test of the equipment under test of the test equipment feedback Data;The test data is shown on the test result interface of the test software, and the test result interface is carried out Screenshot obtains test result screenshot;The test result screenshot is sent to server, the test result screenshot is used for for institute State the test data that server obtains the equipment under test according to the test result screenshot.
In order to achieve the above objectives, the test data collection device that the application second aspect embodiment proposes, comprising: test control Molding block tests equipment under test for controlling test equipment by test software;Receiving module, for receiving the survey Try the test data of the equipment under test of equipment feedback;Screen capture module, at the test result interface of the test software The upper display test data, and screenshot is carried out to the test result interface, obtain test result screenshot;Communication module is used In the test result screenshot is sent to server, the test result screenshot is used for for the server according to the test As a result screenshot obtains the test data of the equipment under test.
In order to achieve the above objectives, the test data collection system that the application third aspect embodiment proposes, the system packet Include test equipment, equipment under test, control equipment and server, in which: control equipment, for controlling the survey by test software Examination equipment tests the equipment under test;Receive the test data of the equipment under test of the test equipment feedback;? The test data is shown on the test result interface of the test software, and screenshot is carried out to the test result interface, is obtained To test result screenshot;The test result screenshot is sent to the server;The server, for according to the test As a result screenshot obtains the test data of the equipment under test
In order to achieve the above objectives, the electronic equipment that the application fourth aspect embodiment proposes, comprising: memory, processor And the computer program that can be run on a memory and on a processor is stored, when the processor executes described program, realize Test data collection method described in the application first aspect embodiment.
In order to achieve the above objectives, the non-transitorycomputer readable storage medium that the application fourth aspect embodiment proposes, It is stored thereon with computer program, test described in the application first aspect embodiment is realized when described program is executed by processor Method of data capture.
The 5th aspect embodiment of the application proposes a kind of computer program product, when in the computer program product When instruction processing unit executes, test data collection method described in the application first aspect embodiment is executed.
According to the test data collection method, device, system and electronic equipment of the embodiment of the present application, pass through test software control Test equipment processed tests equipment under test, then, receives the test number of the equipment under test of the test equipment feedback According to, and the test data is shown on the test result interface of the test software, and carry out to the test result interface Screenshot obtains test result screenshot, and the test result screenshot is sent to server.As a result, server passes through Analysis test result screenshot can obtain test data, facilitate server and obtain test data, avoid because of test equipment Upload the hair that the development language mismatch case between Database Systems is uploaded in the programming language and server that interface is adapted to It is raw, reduce the maintenance cost of test data collection.In addition, uploading test result screenshot to server by control equipment, keep away Exempt from the occurrence of needing to shut down the communication interface for increasing test equipment because test equipment is without communication interface, improves production The utilization rate of equipment, reduces costs.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart according to the test data collection method of the application one embodiment;
Fig. 2 is the flow chart according to the test data collection method of the application another embodiment;
Fig. 3 is the flow chart according to the test data collection method of the application another embodiment;
Fig. 4 is the structural schematic diagram according to the test data collection device of the application one embodiment;
Fig. 5 is the structural schematic diagram according to the test data collection device of the application another embodiment;
Fig. 6 is the structural schematic diagram according to the test data collection device of the application another embodiment;
Fig. 7 is the structural schematic diagram according to the test data collection device of the application further embodiment;
Fig. 8 is the structural schematic diagram according to the test data collection system of the application one embodiment;
Fig. 9 is the structural schematic diagram of the test data collection system of one specific embodiment of the application;
Figure 10 is the flow chart of the test data collection method of one specific embodiment of the application;
Figure 11 is the structural schematic diagram according to the electronic equipment of the application one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
Below with reference to the accompanying drawings the test data collection method, device, electronic equipment and computer of the embodiment of the present application are described Readable storage medium storing program for executing.
Fig. 1 is the flow chart according to the test data collection method of the application one embodiment.
As shown in Figure 1, the test data collection method may include:
Step 101, test equipment is controlled by test software to test equipment under test.
Wherein, it should be noted that the test data collection method of the embodiment of the present application can be applied to the embodiment of the present application Test data collection device, which can be configured in the control equipment of the embodiment of the present application.
Wherein, which can be the hardware that such as personal computer, tablet computer etc. have various operating systems Equipment.
Wherein, it is to be understood that having in control equipment can be to the test software that test equipment is controlled.
Wherein, equipment under test can be various types of electronic equipments, for example, equipment under test can be smart phone, just Portable device, personal computer, tablet computer etc..
The embodiment of property as an example, in the process of production equipment under test, each test station need by pair The test equipment answered tests the function of electronic device in equipment under test or application software.
Wherein, electronic device can include but is not limited to antenna, display screen, sensor etc..
Wherein, it is to be understood that in order to can accurately test equipment under test, in usual each test station The test content that test equipment tests equipment under test is different.
Wherein, it should be noted that control of the method for data capture of the embodiment suitable for each test station is set It is standby.
Step 102, the test data of the equipment under test of test equipment feedback is received.
Specifically, test equipment is according to the instruction of test software to the function of the electronic device applications software in equipment under test It is tested, and the corresponding test data of equipment under test is fed back into control equipment.
Step 103, test data is shown on the test result interface of test software, and test result interface is cut Figure, obtains test result screenshot.
In order to provide accurate screenshot to server, the workload of server analysis screenshot is reduced, as an example property Embodiment, during being tested by test equipment equipment under test, control equipment receive equipment under test After the test data of feedback, accordingly, the test result interface for controlling equipment corresponds to index item and shows corresponding test value.This When, can when detecting that the content of test result interface display changes, to the target detection result interface of content change into Row screenshot obtains test result screenshot.
Wherein, it should be noted that in different application scene, carried out in the target detection result interface to content change The mode of screenshot can be different, are illustrated below:
It as an example, can be by controlling equipment when detecting that the content of test result interface display changes Automatic screenshot function screenshot is carried out to the target detection result interface of content change.
It, can be soft by screenshotss when detecting that the content of test result interface display changes as another example Part carries out screenshot to the target detection result interface of content change.
In order to quickly carry out screenshot to target detection result interface, the embodiment of property, is leading to as an example Cross test software control test equipment equipment under test is tested before, it can be determined that whether test software opens;If judgement Test software is opened, then automatically turns on the screenshotss software for being directed to test software, and control screenshotss software and be in background operation state, With facilitate it is subsequent need screenshot when, screenshot is carried out to test result interface by the screenshotss software of running background.
As another illustrative embodiment, in order to which quickly screenshot can be carried out to target detection result interface, Before being tested by test software control test equipment equipment under test, it can be determined that whether test software opens;If sentencing Disconnected test software is opened, then starts the automatic screenshot function of control equipment, with facilitate it is subsequent need screenshot when, pass through control equipment Auto Cut-screen Function to test result interface carry out rapid screenshot.
Step 104, test result screenshot is sent to server, test result screenshot is used to tie for server according to test The test data of fruit screenshot acquisition equipment under test.
Wherein, it is to be understood that under different application scene, equipment is controlled after obtaining test result screenshot, it can be real When or at interval of preset time, the test result screenshot controlled in equipment is sent to server.
Accordingly, for server after receiving the test result screenshot that control equipment is sent, server cuts test result Figure carries out optical character identification (Optical Character Recognition, OCR), and according to control equipment, optical identification As a result and with the corresponding test result resolution rules of control equipment, the corresponding test data of equipment under test is obtained, and will test Data save in the database, to facilitate other systems to be based on test data use for statistical analysis.
As a kind of possible implementation, test result screenshot can be sent to server (such as FTP clothes by controlling equipment Be engaged in device) specified directory under.Accordingly, server is monitored specified directory, there is new survey in the case where monitoring specified directory After test result screenshot, server carries out optical character identification (Optical Character to test result screenshot Recognition, OCR), detailed test data is obtained, and be saved in presetting database, to facilitate subsequent other systems base Test data use for statistical analysis in presetting database.
Wherein, it is to be understood that test result screenshot can be sent to server by predetermined manner by control equipment.
Wherein, predetermined manner may include wireless mode and wired mode.
Wherein, it should be noted that in actual application, it is with wireless that control equipment can be arranged according to actual needs Test result screenshot is sent to server by mode or wired mode, which is not construed as limiting this.
According to the test data collection method of the embodiment of the present application, test equipment is controlled to equipment under test by test software It is tested, then, receives the test data of the equipment under test of test equipment feedback, and at the test result interface of test software Upper display test data, and screenshot is carried out to test result interface, test result screenshot is obtained, and test result screenshot is sent out Give server.As a result, server can obtain test data by analyzing test result screenshot, facilitates server and obtain Test data is taken, avoids in the programming language and server adapted to by the upload interface of test equipment and uploads Database Systems Between development language mismatch case generation, reduce test data collection maintenance cost.In addition, passing through control equipment Test result screenshot is uploaded to server, is avoided because test equipment is without communication interface, needs to shut down the logical of increase test equipment The generation for believing interface case, improves the utilization rate of production equipment, reduces costs.
On the basis of based on the above embodiment, test data is based in order to facilitate subsequent server, equipment under test is divided It analyses, as an example the embodiment of property, as shown in Fig. 2, this method can also include:
Step 201, the log interface show log information of test software is controlled, wherein log information includes test equipment Obtained test log is tested, test log includes test item, test data;
Step 202, screenshot is carried out to log interface, obtains log screenshot.
Step 203, log screenshot is sent to server, log screenshot is used to obtain for server corresponding with log screenshot Test item test data.
In the present embodiment, the corresponding screenshot of test log obtained by being tested test equipment by control equipment is sent to Server facilitates subsequent server and further obtains test data related with equipment under test according to test log, with convenient Other systems are based on test data use for statistical analysis.
Fig. 3 is the flow chart according to the test data collection method of the application one embodiment.
As shown in figure 3, the test data collection method may include:
Step 301, test equipment is controlled by test software to test equipment under test.
Step 302, the test data of the equipment under test of test equipment feedback is received.
Step 303, test data is shown on the test result interface of test software, and test result interface is cut Figure, obtains test result screenshot.
Wherein, it should be noted that the step of aforementioned explanation to step 101-103 is also applied for the embodiment 301-303, details are not described herein again.
Step 304, determine that the quantity of test result screenshot reaches preset threshold.
Wherein, preset threshold is the amount threshold of pre-set test result screenshot, for example, preset threshold can be 100.
Step 305, test result screenshot is sent to server, test result screenshot is used to tie for server according to test The test data of fruit screenshot acquisition equipment under test.
Specifically, control equipment is monitored the quantity of test result screenshot, in the number for judging test result screenshot When amount reaches preset threshold, equipment is controlled by corresponding test result screenshot and is sent to server.
For example, it is assumed that preset threshold 120 reaches in control equipment monitoring to the quantity to test result screenshot When 120, test result screenshot can be sent to server by communication module by control equipment.
Wherein, it should be noted that in order to avoid because saving screenshot to the occupancy of control device memory, as one kind Illustrative embodiment can delete the test result screenshot sent after test result screenshot is sent to server.
As a kind of possible implementation, in order to improve stability, after test result screenshot is sent to server, Can be set for test result screenshot the pot-life, after the pot-life for monitoring test result screenshot expires, delete corresponding Test result screenshot.
Wherein, the pot-life is the pre-set time, for example, the pot-life of settable test result screenshot is one It deletes corresponding test result screenshot after saving test result screenshot one day.It reduces as a result, and saves test result screenshot To the occupancy of control device memory.
Corresponding with the test data collection method that above-mentioned several embodiments provide, a kind of embodiment of the application also provides A kind of test data collection device, since test data collection device provided by the embodiments of the present application and above-mentioned several embodiments mention The test data collection method of confession is corresponding, therefore is also applied for this implementation in the embodiment of aforementioned test data collection method The test data collection device that example provides, is not described in detail in the present embodiment.Fig. 4 is according to the application one embodiment The structural schematic diagram of test data collection device.As shown in figure 4, the test data collection device may include testing control module 110, receiving module 120, screen capture module 130 and communication module 140, in which:
Testing control module 110 tests equipment under test for controlling test equipment by test software.
Receiving module 120, the test data of the equipment under test for receiving test equipment feedback.
Screen capture module 130, for showing test data on the test result interface of test software, and to test result circle Face carries out screenshot, obtains test result screenshot.
Communication module 140, for test result screenshot to be sent to server, test result screenshot is used for for server root The test data of equipment under test is obtained according to test result screenshot.
In one embodiment of the application, screen capture module 130 is specifically used for: detecting test result interface display Content when changing, screenshot is carried out to the target detection result interface of content change, obtains test result screenshot.
In one embodiment of the application, on the basis of shown in Fig. 4, as shown in figure 5, the device further include:
Journal displaying module 150, for controlling the log interface show log information of test software, wherein log information Obtained test log is tested including test equipment, test log includes test item, test data.
Wherein, screen capture module 130 are also used to carry out screenshot to log interface, obtain log screenshot.
Wherein, communication module 140 are also used to for log screenshot being sent to server, and log screenshot for server for obtaining Take the test data of test item corresponding with log screenshot.
In one embodiment of the application, in order to improve screenshot efficiency, on the basis of shown in Fig. 4, as shown in fig. 6, The device can also include:
Preprocessing module 160, for judging whether test software opens;If judging, test software is opened, and is automatically turned on For the screenshotss software of test software, and controls screenshotss software and be in background operation state;
Wherein, screen capture module 130 are specifically used for: being cut by the screenshotss software of running background to test result interface Figure.
Wherein, it should be noted that the structure of the preprocessing module 160 in above-mentioned Installation practice shown in fig. 6 can also To be included in aforementioned Installation practice shown in fig. 5, which is not construed as limiting this.
In one embodiment of the application, on the basis of fig. 4, as shown in fig. 7, the device is also to include:
Determining module 170, for determining test result before test result screenshot is sent to server by communication module The quantity of screenshot reaches preset threshold.
Wherein, it should be noted that the structure of the determining module 170 in above-mentioned Installation practice shown in Fig. 7 can also be with Included in earlier figures 5 and Installation practice shown in fig. 6, which is not construed as limiting this.
According to the test data collection device of the embodiment of the present application, according to the test data collection side of the embodiment of the present application Method controls test equipment by test software and tests equipment under test, then, receives the equipment under test of test equipment feedback Test data, and test data is shown on the test result interface of test software, and screenshot is carried out to test result interface, Test result screenshot is obtained, and test result screenshot is sent to server.As a result, server passes through analysis test knot Fruit screenshot can obtain test data, facilitate server and obtain test data, avoid the upload interface institute because of test equipment The generation that the development language mismatch case between Database Systems is uploaded in the programming language and server of adaptation, reduces survey Try the maintenance cost of data collection.In addition, uploading test result screenshot to server by control equipment, avoid because test is set For no communication interface, need to shut down increase test equipment communication interface the occurrence of, improve the utilization rate of production equipment, It reduces costs.
In order to realize above-described embodiment, the application also proposed a kind of test data collection system.
Fig. 8 is the structural schematic diagram according to the test data collection system of the application one embodiment.
As shown in figure 8, the system includes test equipment 10, equipment under test 20, control equipment 30 and server 40, in which:
Equipment 30 is controlled, equipment under test 20 is tested for controlling test equipment 10 by test software;It receives and surveys Try the test data for the equipment under test 20 that equipment 10 is fed back;Test data is shown on the test result interface of test software, and Screenshot is carried out to test result interface, obtains test result screenshot;Test result screenshot is sent to server 40.
Server 40, for obtaining the test data of equipment under test 10 according to test result screenshot.
The embodiment of property as an example, control equipment can send test result screenshot to server (such as FTP Server) specified directory under.Accordingly, server is monitored specified directory, has in the case where monitoring specified directory new After test result screenshot, server carries out optical character identification (Optical Character to test result screenshot Recognition, OCR), detailed test data is obtained, and be saved in presetting database, to facilitate subsequent other systems base Test data use for statistical analysis in presetting database.
Wherein, it is to be understood that test result screenshot can be sent to server by predetermined manner by control equipment.
Wherein, predetermined manner may include wireless mode and wired mode.
Wherein, it should be noted that in actual application, it is with wireless that control equipment can be arranged according to actual needs Test result screenshot is sent to server by mode or wired mode, which is not construed as limiting this.
Wherein, it should be noted that the server in the embodiment is a kind of server in logic, in practical application In, the server for analyzing test result screenshot and the server for saving test data can be separately positioned or integrally disposed, should Embodiment is not construed as limiting this.
Wherein, Fig. 9 is the structural schematic diagram of the test data collection system of one specific embodiment of the application.Wherein, it needs It is noted that being illustrated for controlling equipment and wirelessly being sent to ftp server in Fig. 9, also, FTP takes Corresponding test data is sent to database server for analyzing test result screenshot by business device, passes through data Library server saves test data.
Below with reference to Fig. 9 and Figure 10 to test data collection system collect test data process carry out detailed process into Row description, detailed process are as follows:
1, control equipment controls test equipment by test software and tests equipment under test.
2, control equipment receives the test data of the equipment under test of test equipment feedback, and shows on test result interface Test data.
3, control equipment judges whether the content of test result interface display changes, if it is not, then continuing to execute step 3, if so, thening follow the steps 4.
4, control equipment carries out screenshot to the target detection result interface of content change.
5, control equipment uploads to test result screenshot on ftp server specified directory.
6, server judges test result screenshot whether is newly increased on specified directory, if it is not, step 6 is then continued to execute, if It is to then follow the steps 7.
7, server identifies the test result screenshot newly increased by picture recognition software, obtains test data.
8, test data is sent to database server by server, and database server saves test data, with convenient Data analysis system exploitation analysis test data.
Wherein, it should be noted that the aforementioned explanation to test data collection method embodiment is also applied for the reality The test data collection system of example is applied, which repeats no more this.
According to the test data collection system of the embodiment of the present application, equipment is controlled by test software and controls test equipment pair Equipment under test is tested, and then, receives the test data of the equipment under test of test equipment feedback, and in the test of test software Test data is shown in result interface, and screenshot is carried out to test result interface, obtains test result screenshot, and test is tied Fruit screenshot is sent to server.As a result, server can obtain test data by analyzing test result screenshot, facilitate Server obtains test data, avoids in the programming language and server adapted to by the upload interface of test equipment and uploads number According to the generation of the development language mismatch case between the system of library, the maintenance cost of test data collection is reduced.In addition, passing through It controls equipment and uploads test result screenshot to server, avoid because test equipment is without communication interface, need to shut down increase test The occurrence of communication interface of equipment, improves the utilization rate of production equipment, reduces costs.
In order to realize above-described embodiment, the application also proposed a kind of electronic equipment.
Figure 11 is the structural schematic diagram according to the electronic equipment of the application one embodiment.
As shown in figure 11, which may include: memory 710, processor 720 and is stored in memory On 1010 and the computer program 1030 that can run on processor 1020, when processor 1020 executes program 1030, this is realized Apply for the test data collection method of any of the above-described a embodiment.
In order to realize above-described embodiment, the application also proposed a kind of non-transitorycomputer readable storage medium, thereon It is stored with computer program, the test data collection side of any of the above-described a embodiment of the application is realized when program is executed by processor Method.
In the description of the present application, it is to be understood that term " first ", " second " are used for description purposes only, and cannot It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present application, " multiple " It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.

Claims (13)

1. a kind of test data collection method characterized by comprising
Test equipment is controlled by test software to test equipment under test;
Receive the test data of the equipment under test of the test equipment feedback;
The test data is shown on the test result interface of the test software, and the test result interface is cut Figure, obtains test result screenshot;
The test result screenshot is sent to server, the test result screenshot is used for for the server according to the survey Test result screenshot obtains the test data of the equipment under test.
2. being obtained the method according to claim 1, wherein described carry out screenshot to the test result interface Test result screenshot, comprising:
When detecting that the content of the test result interface display changes, to the target detection result of the content change Interface carries out screenshot, obtains the test result screenshot.
3. the method according to claim 1, wherein further include:
Control the log interface show log information of the test software, wherein the log information includes the test equipment Obtained test log is tested, the test log includes test item, test data;
Screenshot is carried out to the log interface, obtains log screenshot;
The log screenshot is sent to the server, the log screenshot is used to obtain and the log for the server The test data of the corresponding test item of screenshot.
4. the method according to claim 1, wherein controlling test equipment to tested by test software described Before equipment is tested, further includes:
Judge whether the test software opens;
If judging, the test software is opened, and automatically turns on the screenshotss software for being directed to the test software, and controls described cut Screen software is in background operation state;
It is described that screenshot is carried out to the test result interface, comprising:
Screenshot is carried out to the test result interface by the screenshotss software of running background.
5. method according to claim 1-4, which is characterized in that send the test result screenshot described Before server, further includes:
Determine that the quantity of the test result screenshot reaches preset threshold.
6. a kind of test data collection device characterized by comprising
Testing control module tests equipment under test for controlling test equipment by test software;
Receiving module, the test data of the equipment under test for receiving the test equipment feedback;
Screen capture module, for showing the test data on the test result interface of the test software, and to the test Result interface carries out screenshot, obtains test result screenshot;
Communication module, for the test result screenshot to be sent to server, the test result screenshot is used to supply the clothes Business device obtains the test data of the equipment under test according to the test result screenshot.
7. device according to claim 6, which is characterized in that the screen capture module is specifically used for:
When detecting that the content of the test result interface display changes, to the target detection result of the content change Interface carries out screenshot, obtains the test result screenshot.
8. device according to claim 6, which is characterized in that further include:
Journal displaying module, for controlling the log interface show log information of the test software, wherein the log information Obtained test log is tested including the test equipment, the test log includes test item, test data;
The screen capture module is also used to carry out screenshot to the log interface, obtains log screenshot;
The communication module is also used to for the log screenshot being sent to the server, and the log screenshot is for described in confession Server obtains the test data of the test item corresponding with the log screenshot.
9. device according to claim 6, which is characterized in that further include:
Preprocessing module, for judging whether the test software opens;If judging, the test software is opened, and is automatically turned on For the screenshotss software of the test software, and controls the screenshotss software and be in background operation state;
The screen capture module, is specifically used for:
Screenshot is carried out to the test result interface by the screenshotss software of running background.
10. according to the described in any item devices of claim 6-9, which is characterized in that further include:
Determining module, for determining the survey before the test result screenshot is sent to server by the communication module The quantity of test result screenshot reaches preset threshold.
11. a kind of test data collection system, which is characterized in that the system comprises test equipment, equipment under test, control equipment And server, in which:
Equipment is controlled, the equipment under test is tested for controlling the test equipment by test software;Described in reception The test data of the equipment under test of test equipment feedback;The survey is shown on the test result interface of the test software Data are tried, and screenshot is carried out to the test result interface, obtain test result screenshot;The test result screenshot is sent to The server;
The server, for obtaining the test data of the equipment under test according to the test result screenshot.
12. a kind of electronic equipment characterized by comprising memory, processor and storage are on a memory and can be in processor The computer program of upper operation when the processor executes described program, is realized as described in any one of claims 1 to 5 Test data collection method.
13. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the journey The test data collection method as described in any one of claims 1 to 5 is realized when sequence is executed by processor.
CN201811032242.3A 2018-09-05 2018-09-05 Test data collection method, device and system and electronic equipment Active CN109359032B (en)

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 true CN109359032A (en) 2019-02-19
CN109359032B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969082A (en) * 2019-10-28 2020-04-07 中国信息通信研究院 Clock synchronization test inspection method and system
CN113376502A (en) * 2021-04-26 2021-09-10 曙光信息产业(北京)有限公司 FPGA board card testing method and device, server and computer readable storage medium
CN115357501A (en) * 2022-08-24 2022-11-18 中国人民解放军32039部队 Automatic testing method and system for space flight measurement and control software
CN115547402A (en) * 2022-10-24 2022-12-30 深圳三地一芯电子有限责任公司 Zero drop monitoring method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
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
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
US20150339218A1 (en) * 2014-05-20 2015-11-26 International Business Machines Corporation Merging automated testing reports
CN105786709A (en) * 2016-03-22 2016-07-20 东软集团股份有限公司 Test problem submitting method and system
US20160364324A1 (en) * 2015-06-10 2016-12-15 International Business Machines Corporation Dynamic Test Topology Visualization
CN106484622A (en) * 2016-10-18 2017-03-08 网易(杭州)网络有限公司 Method of testing, apparatus and system
CN107066376A (en) * 2016-12-15 2017-08-18 中国航天科工集团第四研究院第四总体设计部 A kind of automatic test verification method tested for GUI
CN107991600A (en) * 2017-11-29 2018-05-04 成都锐成芯微科技股份有限公司 Automatic test approach and its test system

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
US20150339218A1 (en) * 2014-05-20 2015-11-26 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
US20160364324A1 (en) * 2015-06-10 2016-12-15 International Business Machines Corporation Dynamic Test Topology Visualization
CN105786709A (en) * 2016-03-22 2016-07-20 东软集团股份有限公司 Test problem submitting method and system
CN106484622A (en) * 2016-10-18 2017-03-08 网易(杭州)网络有限公司 Method of testing, apparatus and system
CN107066376A (en) * 2016-12-15 2017-08-18 中国航天科工集团第四研究院第四总体设计部 A kind of automatic test verification method tested for GUI
CN107991600A (en) * 2017-11-29 2018-05-04 成都锐成芯微科技股份有限公司 Automatic test approach and its test system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YANG FENG: "Multi-objective test report prioritization using image understanding", 《2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE)》 *
刘煦: "应用图像对比方法的UI自动化功能测试", 《CNKI优秀硕士学位论文全文库 信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969082A (en) * 2019-10-28 2020-04-07 中国信息通信研究院 Clock synchronization test inspection method and system
CN110969082B (en) * 2019-10-28 2023-05-26 中国信息通信研究院 Clock synchronous test inspection method and system
CN113376502A (en) * 2021-04-26 2021-09-10 曙光信息产业(北京)有限公司 FPGA board card testing method and device, server and computer readable storage medium
CN115357501A (en) * 2022-08-24 2022-11-18 中国人民解放军32039部队 Automatic testing method and system for space flight measurement and control software
CN115357501B (en) * 2022-08-24 2024-04-05 中国人民解放军32039部队 Automatic testing method and system for aerospace measurement and control software
CN115547402A (en) * 2022-10-24 2022-12-30 深圳三地一芯电子有限责任公司 Zero drop monitoring method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109359032B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN109359032A (en) Test data collection method, device, system and electronic equipment
EP1407370B1 (en) Method and system for collecting and retrieving time-series, real-time and non-real-time data
CN100474194C (en) Information processing device, operation state management device, information processing method
CN108320278A (en) Product defects detect localization method, device, equipment and computer-readable medium
TW200905589A (en) Work management apparatus and work management method
AU2002310479A1 (en) Method and system for collecting and retrieving time-series, real-time and non-real-time data
CN103917987A (en) Measurement of belt wear through edge detection of a raster image
CN105303105A (en) Window message interception method and device and terminal equipment
WO2014126576A2 (en) Churn prediction in a broadband network
US10771994B2 (en) Method and test system for mobile network testing as well as a network testing system
CN109581106A (en) Test equipment control method, device, system and electronic equipment
CN113419298B (en) Multi-parameter hydrological meteorological data acquisition device
CN101266487A (en) Manufacturing course product quality control system and method based on network
KR102543064B1 (en) System for providing manufacturing environment monitoring service based on robotic process automation
CN108322737A (en) Image frame per second measurement method and device
CN108566528A (en) A kind of monitor video storage system
CN110247796A (en) Monitoring alarm method, apparatus and relevant device
CN109582549A (en) A kind of recognition methods of device type and device
CN112506757A (en) Automatic test method, system, computer device and medium thereof
CN109710517A (en) Integration test method, device and computer equipment based on automated test tool
CN104123469B (en) Detection scheduling system and method for context consistency in pervasive computing environment
CN106656837A (en) Positioning method and device of network congestion problem
CN111460909A (en) Vision-based goods location management method and device
CN112527610A (en) Method and device for monitoring operation state of equipment
CN113123955A (en) Plunger pump abnormality detection method and device, storage medium and electronic device

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