CN104951400B - The method and apparatus that product is tested - Google Patents

The method and apparatus that product is tested Download PDF

Info

Publication number
CN104951400B
CN104951400B CN201510408714.0A CN201510408714A CN104951400B CN 104951400 B CN104951400 B CN 104951400B CN 201510408714 A CN201510408714 A CN 201510408714A CN 104951400 B CN104951400 B CN 104951400B
Authority
CN
China
Prior art keywords
test
data
result
target product
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510408714.0A
Other languages
Chinese (zh)
Other versions
CN104951400A (en
Inventor
邢亮
李雅杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510408714.0A priority Critical patent/CN104951400B/en
Publication of CN104951400A publication Critical patent/CN104951400A/en
Application granted granted Critical
Publication of CN104951400B publication Critical patent/CN104951400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • General Factory Administration (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The embodiment of the invention discloses the method and apparatus that a kind of pair of product is tested.The described method includes: receiving the test case for being used for target product, the test case includes the data of at least one test operation;According to the data of the test operation, by operation equipment pair target device execution corresponding with the target product test operation, and from the data of the target device collecting test operating result.Using the embodiment of the present invention, repeatedly identical test can be carried out to a certain function of target product, and reduce artificial intervention during the test to target product without specifically understanding, the effect and efficiency tested product can be improved.

Description

The method and apparatus that product is tested
Technical field
The present invention relates to the method and apparatus that field of computer technology, in particular to a kind of pair of product are tested.
Background technique
With the continuous development of computer technology, the type of product (such as software) is more and more abundant, the superiority and inferiority of product quality It becomes more and more important, in this way, before product comes into operation, it is necessary to test product.
When testing target product, usually carried out by way of manual.Tester is set by clicking terminal Respective keys in standby, test the target product installed in the terminal device.After the completion of test, by checking that terminal is set Whether the test result of standby output meets expected operating result, tests whether to pass through to target product to determine.
During the aforementioned method tested product is the prior art has at least the following problems: test target product, It generally requires to test a certain function of target product repeatedly, and when manual test, it is different that the data used are tested every time. For example, user clicks the different coordinate positions of terminal device display interface for clicking operation, the data used are tested not Together.If test crash, user is difficult the operation for carrying out clicking same coordinate position again, and then can not find test crash Reason.Moreover, the test speed of manual test is very limited and relatively slow so that the effect and efficiency to product test compared with Difference.
Summary of the invention
The embodiment of the present invention provides the method and apparatus that a kind of pair of product is tested, by test case to the mesh It marks product and carries out test operation, carry out repeatedly identical test so as to a certain function to target product, and can be improved to production The effect and efficiency that product are tested.
In order to achieve the above objectives, the embodiment provides the methods that a kind of pair of product is tested.The method Including receiving the test case for being used for target product, the test case includes the data of at least one test operation;According to institute The data for stating test operation execute the test operation by operation equipment pair target device corresponding with the target product, And from the data of the target device collecting test operating result.
Optionally, the data of the test operation are the data for the test program write using default programming language, or The data of the test operation include that the user of record executes the test operation to the target device by operating equipment The data of operation data and execution sequence.
Optionally, the operation equipment is mechanical arm, is previously provided with opereating specification and nominal operation in the mechanical arm Power includes start position information and end position information in the opereating specification.
It optionally, further include the data of expected operating result corresponding with the test operation, institute in the test case State method further include: by the way that the data of the expected operating result are compared with the data of the result of test operation of acquisition, Determine the test result to the target product.
Optionally, the method also includes: the data of the result of test operation of acquisition are written to the target product Test log in.
Optionally, the processing of the data from the target device collecting test operating result includes: to be adopted by image Collect equipment, the image data of collecting test operating result from the scheduled results acquisition region of the target device.
Optionally, described image acquisition equipment is high-speed camera equipment or scanner.
Optionally, the method also includes: by operate equipment the test operation is being executed to the target device In the process, the detected value of the preset term of the target device detected by sensor is obtained, wherein the preset term One of work as including at least temperature, humidity, electric current, voltage, power consumption and pressure;According to the detected value of the target device and right The test result of the target product determines the service performance of the target product.
In order to achieve the above objectives, the embodiments of the present invention also provide the devices that a kind of pair of product is tested.The dress Setting includes: receiving module, and for receiving the test case for being used for target product, the test case includes at least one test behaviour The data of work;Result data acquisition module passes through operation equipment pair and the target for the data according to the test operation The corresponding target device of product executes the test operation, and from the data of the target device collecting test operating result.
Optionally, the data of the test operation are the data for the test program write using default programming language, or The data of the test operation include that the user of record executes the test operation to the target device by operating equipment The data of operation data and execution sequence.
Optionally, the operation equipment is mechanical arm, is previously provided with opereating specification and nominal operation in the mechanical arm Power includes start position information and end position information in the opereating specification.
It optionally, further include the data of expected operating result corresponding with the test operation, institute in the test case State device further include: test result determining module, for by the way that the test of the data of the expected operating result and acquisition is grasped The data for making result are compared, and determine the test result to the target product.
Optionally, described device further include: Data write. module, the data write-in of the result of test operation for that will acquire Into the test log to the target product.
Optionally, the result data acquisition module is also used to through image capture device, from the pre- of the target device The image data of collecting test operating result in fixed results acquisition region.
Optionally, described image acquisition equipment is high-speed camera equipment or scanner.
Optionally, described device further include: detected value obtains module, for by operating equipment to the target device During executing the test operation, the detection of the preset term of the target device detected by sensor is obtained Value, wherein the preset term includes at least temperature, humidity, electric current, voltage, power consumption and pressure and one of works as;Performance determines Module determines the target product for the detected value according to the target device and the test result to the target product Service performance.
The method and apparatus provided in an embodiment of the present invention tested product, pass through at least one of test case The data of test operation execute the test operation using operation equipment pair target device corresponding with target product, and acquire The data of result of test operation, so that being carried out to its a certain function multiple to target product without specifically understanding Identical test is easy the reason of finding test crash, and reduces artificial intervention during the test, can be improved The effect and efficiency that product is tested.
Detailed description of the invention
Fig. 1 is the flow chart of the method provided in an embodiment of the present invention tested product;
Fig. 2 is the flow chart for the method that another kind provided in an embodiment of the present invention tests product;
Fig. 3 is the structural schematic diagram of the system provided in an embodiment of the present invention for being tested product;
Fig. 4 is the display interface schematic diagram provided in an embodiment of the present invention tested target product;
Fig. 5 is the structural schematic diagram of the device provided in an embodiment of the present invention tested product;
Fig. 6 is the structural schematic diagram for the device that another kind provided in an embodiment of the present invention tests product.
Specific embodiment
The inventive concept of this programme is to propose a kind of Black-box Testing technical solution, using target product to be tested as black Box, by the data of the test operation in the test case of the target product, using operation equipment to the target product pair The target device answered carries out test operation, and obtains the result of test operation of the test operation.Do not have as a result, to target product In the case where having specific understanding, repeatedly identical test is carried out to its a certain function, is easy the reason of finding test crash.This Outside, artificial intervention is reduced during the test, and the effect and efficiency tested product can be improved.
For this purpose, one or more test cases can be generated in several ways, two kinds of optional generating modes presented below.
Mode one is that the test operation that will be carried out writes corresponding test program, the survey using default programming language The data for trying program constitute test case.
Wherein, programming language may include a variety of, such as C language, JAVA language etc., and test case can be as to the mesh Marking one group that product is tested and worked out includes test operation and the data acquisition system for being expected operating result, can pass through test case Test whether the target product meets a certain particular demands.Test operation may include it is one or more, such as clicking operation, Slide etc..The data of test operation may also include clicking operation in addition to including the data such as clicking operation or slide The data such as the dragging distance of position coordinates, the glide direction of slide or drag operation.
Specifically, to target product working principle or the course of work etc. without specifically understanding in the case where, can be preparatory The test purpose of the target product is analyzed, obtains carrying out the test operation that this test needs to carry out, based on this system It is fixed then that a kind of programming language (such as JAVA language) may be selected, according to the test of formulation to the testing scheme of the target product The corresponding test program of program can be raw by Test cases technology equipment (such as computer or mobile phone) after the completion of writing At corresponding test case.
Mode two executes the test operation to the target device by operating equipment based on pre-recorded user The data of operation data and execution sequence constitute test case.
Specifically, user can test the target product by operating equipment, and during the test, can remember Record executes the data of the data of the test operation and the execution sequence of the test operation, and Test cases technology equipment can be used The above-mentioned data of record generate test case.
In addition, operation equipment can be the equipment used when executing the test operation, such as computer, server or certain machine Tool component (such as mechanical arm) etc..
The method and apparatus tested with reference to the accompanying drawing product the embodiment of the present invention are described in detail.
Embodiment one
Fig. 1 is the flow chart of the method provided in an embodiment of the present invention tested product.By including as shown in Figure 5 The computer system of device execute the method.
As shown in Figure 1, receiving the test case for being used for target product in step S110, the test case includes at least The data of one test operation.
Wherein, target product can be software product or hardware product to be tested etc., and software product can be mounted to Software in terminal device (such as mobile phone, computer), hardware product can be certain in certain terminal device or certain terminal device One component etc..
Specifically, Test cases technology equipment (such as computer or mobile phone) can be used to generate one or more tests in advance to use Example, specific processing can be found in the aforementioned content for generating test case, and details are not described herein.To target product working principle or It, can be by this when needing the corresponding function to target product to test in the case that course of work etc. is without specifically understanding The test case used needed for test is sent to test equipment (such as computer or numerical control for being tested the target product Lathe etc.), the test equipment can receive the test case.
It is corresponding with the target product by operation equipment pair according to the data of the test operation in step S120 Target device executes the test operation, and from the data of the target device collecting test operating result.
Wherein, if the target product is software product, corresponding target device can be the software product institute The equipment of installation, such as mobile phone or computer;If the target product is hardware product, corresponding target device can be institute Equipment belonging to hardware product is stated, the display screen that such as hardware product is mobile phone, then target device can be the display screen Affiliated mobile phone.
Specifically, after the test equipment receives test case, it can extract the data of test operation therein, and right The data of the test operation are parsed, and then, the test equipment can use obtained parsing result by operation equipment The target product is tested, for example, the test operation is clicking operation, may include in the data of the test operation The position coordinates of clicking operation, then the test equipment can click target device by operation equipment according to the position coordinates Corresponding position, target device responds the clicking operation and simultaneously exports corresponding result of test operation, at this point, the equipment can lead to Cross the data that corresponding component (such as sensor) acquires the result of test operation.
The method provided in an embodiment of the present invention tested product is tested by least one of test case and is grasped The data of work execute the test operation using operation equipment pair target device corresponding with target product, and collecting test is grasped Make the data of result, so that carrying out to its a certain function repeatedly identical to target product without specifically understanding Test, is easy the reason of finding test crash, and reduce artificial intervention during the test, can be improved to product The effect and efficiency tested.
Embodiment two
Fig. 2 is the flow chart of another embodiment of the method provided by the invention tested product, the implementation Example can be considered another concrete implementation scheme of Fig. 1.
As shown in Fig. 2, receiving the test case for being used for target product in step S210, the test case includes at least The data of one test operation.
Wherein, the step content of step S210 and the step content of step S 110 as above are corresponding identical, do not do herein superfluous It states.
On this basis, the data of the test operation can obtain in several ways, be tested based on aforementioned two kinds of generations The mode of use-case, i.e., the test program generation test case write using default programming language, and it is logical by the user of record It crosses operation equipment and test use is generated to the data of operation data and execution sequence that the target device executes the test operation Example, correspondingly, the data of test operation can be there are two types of acquisition modes, specifically include: the data of the test operation are using pre- If the user that the data for the test program that programming language is write or the data of the test operation include record is set by operation It is standby that the operation data of the test operation and the data of execution sequence are executed to the target device.
It is corresponding with the target product by operation equipment pair according to the data of the test operation in step S220 Target device executes the test operation, and from the data of the target device collecting test operating result.
Wherein, the step content of step S220 and the step content of step S120 as above are corresponding identical, do not do herein superfluous It states.
In addition, the operation equipment may include a kind of a variety of, operation equipment presented below, concretely: the operation is set Standby is mechanical arm, is previously provided with opereating specification and nominal operation power in the mechanical arm, includes in the opereating specification Beginning location information and end position information.
Wherein, mechanical arm usually has certain opereating specification, when mechanical arm exceeds during carrying out test operation When the opereating specification, the mechanical arm will be unable to complete corresponding test operation.It is removed in the mechanical arm and is previously provided with behaviour Make to be also provided with the information such as movement speed, the translational acceleration of mechanical arm outside range and nominal operation power.
On this basis, the processing of step S220 can are as follows: as shown in figure 3, the test equipment gets the test behaviour After the data of work, the data of the test operation are parsed, and the corresponding operation instruction that parsing obtains is sent to machine Tool arm, mechanical arm execute corresponding test operation to the target device by the operational order, and from the target device The data of collecting test operating result.
In addition, the result of test operation of acquisition can be shown in a variety of forms, for example, the result of test operation is figure Picture, then the processing of the above-mentioned data from the target device collecting test operating result can are as follows: by image capture device, from institute State the image data of collecting test operating result in the presumptive area of target device.
Wherein, image capture device may include a variety of, such as picture pick-up device or scanner etc..Presumptive area can be institute Preassigned region in the display interface of target device is stated, or be also possible to the target device be arbitrarily designated region, Region etc. as where the power supply part (such as battery) of the target device.
Specifically, as shown in figure 3, after operating equipment to target device execution corresponding test operation, the survey It tries equipment and starts image capture device, the image camera function that described image acquisition equipment starts itself shoots the target device Presumptive area in image, and can be using its image data as the image data of the result of test operation.
It should be noted that equipment pair target device corresponding with the target product executes the survey for ease of operation Examination operation, in certain instances, the test equipment can be by the remote server control functions of itself to corresponding long-range The behavior of server is controlled, so that operation equipment can execute test operation required for testing to target product.
On this basis, the data of the result of test operation of acquisition can be recorded, and the test case can be passed through In the data of expection operating result be compared with the data of the result of test operation of acquisition, to determine to the target product Test result, specifically can be such as the processing of step S230 and step S240.
In step S230, the data of the result of test operation of acquisition are written to the test log to the target product In.
Specifically, the result of test operation tested target product, the test are checked for the ease of user is subsequent Equipment can record the data of collected result of test operation, and corresponding processing can are as follows: the test equipment can be preparatory Generate the test log for record result of test operation to the target product, whenever use test case to certain product into When row Black-box Testing, the test equipment can obtain the data of result of test operation, and the data can be written to the survey It tries in log, in this way, user can understand and obtain after executing test operation to target product every time by checking the test log Result of test operation, in order to which user improves target product.
The data that may also include expected operating result corresponding with the test operation in the test case, in step S240 is determined by being compared the data of the expected operating result with the data of the result of test operation of acquisition to institute State the test result of target product.
Wherein, it is contemplated that operating result can be identical with the display form of result of test operation, for example, it is contemplated that operating result with Result of test operation is all image or is all text etc..
It specifically, can be by itself and the expection in the test case after the test equipment collects result of test operation Operating result is compared, so that it is determined that the test result of the target product, test result can are as follows: if the number of the two According to being mutually matched, then it can determine that the test to the target product passes through, if the data of the two mismatch, can determine to institute The test for stating target product does not pass through or test crash.
In addition, the case where being image based on the result of test operation, the then processing of corresponding step S240 can include: root According to preset image analysis algorithm, the picture number of image data and the expected operating result to the result of test operation of acquisition According to comparing and analyzing, image analysis result is obtained, if described image analysis result is the image of the result of test operation Data are identical as the data of the expected operating result or match, then exportable test is by signal, if described image is analyzed As a result the data for the image data of the result of test operation and the expected operating result are entirely different or mismatch, then may be used Export test crash signal.Wherein, the test can pass through corresponding indicator light by signal and the test crash signal The mode of flashing is shown, can also be shown by way of showing corresponding prompting frame.
In order to better illustrate the processing tested the target product, below with reference to specific example to aforementioned step The processing of rapid S210~S240 is described in detail, specific as follows:
As shown in figure 4, target product is software product, target device is mobile phone, and test operation is click keys, click Key includes " key 1 ", " key 2 " and " key 3 " in Fig. 4, and results acquisition region is as shown in Figure 4.Wherein, it uses for convenience Test of the family to target product can set different colors for " key 1 ", " key 2 " and " key 3 ", if key 1 is red Color, key 2 are blue, and key 3 is green, correspondingly, the color in results acquisition region can according to the color of the key of click into Row display, for example, results acquisition region can be shown in red when click keys 1, when click keys 2, results acquisition region can be shown It is shown as blue etc..The test case for testing above-mentioned target product can be generated by Test cases technology equipment, such as:
Function main
Motor On//mechanical arm electric motor starting
ClearH=0//definition mechanical arm safe altitude
Height when realH=-40//definition mechanical arm decline position, i.e. its click screen
Pld=XY (0,110, clearH, 0) // definition initial position
Prt=XY (150,0, clearH, 0) // definition end position
Power High//power of motor
1//movement speed of SpeedS
5//translational acceleration of AccelS
The position of P101=XY (56,425, realH, 0) // key 1
The position of P102=XY (60,425, realH, 0) // key 2
The position of P103=XY (70,425, realH, 0) // key 3
Go P101//mechanical arm is moved to P101, i.e. click keys 1
Go Prt//mechanical arm is moved to end position, prevents mechanical arm from influencing Image Acquisition
Catch result_pic_1//acquisition image, and image name is stored as result_pic_1
ROI_1=(200,250,250,280) // one piece of image-region of selection, as region-of-interest
Cmp result_pic_1:expect_pic_1:ROI_1//comparison region-of-interest image and expected operating result Image, to determine the test result to the target product
end
Above-mentioned test case is only the test case for clicking the key 1 in target product, corresponding for key 2 and key 3 Test case can be write according to the corresponding test case of above-mentioned key 1, details are not described herein.It can be complete by above-mentioned test program The Black-box Testing of pairs of target product, and obtain corresponding test result.
In order to ensure by the test case to target product carry out test be not in test crash the phenomenon that, or The phenomenon that in order to make last test crash, occurs again, can repeatedly be tested by the test case target product, Testing time can be configured according to the actual situation, and such as 1000 is inferior.In the case, the recordable test of test equipment by and The number of test crash can further determine that test passes through the probability with test crash.Test crash may be by different originals Because caused by, test equipment is also statistics available and records test crash caused by different reasons, changes so as to subsequent to target product Into.
On this basis, the detected value of the preset term of the target device and the survey to the target product can also be passed through Test result determines the service performance of the target product, specifically can be such as the processing of step S250 and step S260.
In step S250, during executing the test operation to the target device by operation equipment, obtain The detected value of the preset term of the target device detected by sensor, wherein the preset term includes at least temperature Degree, humidity, electric current, voltage, power consumption and pressure one of are worked as.
Wherein, sensor may include a variety of, such as temperature sensor, humidity sensor and pressure sensor.
Specifically, start to execute the target device test behaviour when the test equipment starts the operation equipment When making, the test equipment can start corresponding sensor, pass through target device respective item described in sensor real-time detection Detected value, for example, the target during being detected by temperature sensor to the target device execution test operation The temperature value of equipment.Different target devices, corresponding detection project can be different, for example, if target device is mobile phone, Then the preset term can be temperature, power consumption, the output electric current of battery and/or voltage etc., if target device is that air is net Change device, then the preset term can be PM2.5, formaldehyde etc..
Institute is determined according to the detected value of the target device and to the test result of the target product in step S260 State the service performance of target product.
Specifically, can for the target device detected value and the test result of the target product is preset accordingly Weight, detected value to the target device and the test result of the target product can be carried out comprehensive by corresponding weight Analysis is closed, the service performance of the target product is obtained, for example, if the detected value of the target device has been more than predetermined threshold Value then can determine that the service performance of the target product is poor or be believed that institute and to the test crash of the target product The corresponding function existing defects of target product are stated, it is subsequent that target product is improved for corresponding defect.
The method provided in an embodiment of the present invention that product is tested, on the one hand, by that will not have to target product The data of expected operating result are compared in the data and test case of the result of test operation acquired in the case where specific understanding Compared with the determining test result to the target product reduces artificial determine and survey so that the test to target product is more objective The subjective factor of test result improves the reliability and accuracy tested the target product;On the other hand, pass through sensing Device detects the detected value of the preset term of target device, to determine the service performance of the target product, so that right The test processes of target product not only rest on the level tested the performance of target product, it is also contemplated that target production Influence of the operation of product to target device further increases the reliability and accuracy tested the target product, and And to target product without specifically understanding, repeatedly identical test can be carried out to its a certain function, to search The reason of to test crash, and reduce artificial intervention during the test, the effect tested product can be improved Fruit and efficiency.
Embodiment three
Based on the same technical idea, the embodiment of the invention also provides the devices that a kind of pair of product is tested.Such as Fig. 5 Shown, the device tested product includes receiving module 510 and result data acquisition module 520.
Receiving module 510 is used to receive the test case for target product, and the test case includes at least one survey Try the data of operation.
Result data acquisition module 520 is used for the data according to the test operation, passes through operation equipment pair and the mesh It marks the corresponding target device of product and executes the test operation, and from the data of the target device collecting test operating result.
Optionally, the data of the test operation are the data for the test program write using default programming language, or The data of the test operation include that the user of record executes the test operation to the target device by operating equipment The data of operation data and execution sequence.
Optionally, the operation equipment is mechanical arm, is previously provided with opereating specification and nominal operation in the mechanical arm Power includes start position information and end position information in the opereating specification.
It further, further include the data of expected operating result corresponding with the test operation in the test case, On the basis of embodiment shown in Fig. 5, the device as shown in FIG. 6 tested product can further include: test result determines Module 530, for by being compared the data of the expected operating result with the data of the result of test operation of acquisition, really The fixed test result to the target product.
Further, as shown in fig. 6, the device tested product can further include: Data write. module 540, For being written to the data of the result of test operation of acquisition in the test log to the target product.
Optionally, result data acquisition module 520 is also used to through image capture device, from the predetermined of the target device Results acquisition region in collecting test operating result image data.
Optionally, described image acquisition equipment is high-speed camera equipment or scanner.
Further, the device tested product can further include: detected value obtains module, for passing through behaviour During making equipment to the target device execution test operation, acquisition is set by the target that sensor detects The detected value of standby preset term, wherein the preset term includes at least temperature, humidity, electric current, voltage, power consumption and pressure One of when;Performance determining module, for the detected value according to the target device and the test knot to the target product Fruit determines the service performance of the target product.
The method provided in an embodiment of the present invention tested product is tested by least one of test case and is grasped The data of work execute the test operation using operation equipment pair target device corresponding with target product, and collecting test is grasped Make the data of result, so that carrying out to its a certain function repeatedly identical to target product without specifically understanding Test, is easy the reason of finding test crash, and reduce artificial intervention during the test, can be improved to product The effect and efficiency tested.
Further, in this embodiment, on the one hand, by that will be acquired to target product without specifically understanding The data of result of test operation be compared with the data of operating result expected in test case, determine to the target product Test result reduce the artificial subjective factor for determining test result, improve so that the test to target product is more objective The reliability and accuracy that the target product is tested;On the other hand, the default of target device is detected by sensor The detected value of project, to determine the service performance of the target product, so that not to the test processes of target product Only reside within the level tested the performance of target product, it is also contemplated that the operation of target product is to target device It influences, further increases the reliability and accuracy tested the target product, and do not having to target product In the case that body understands, repeatedly identical test can be carried out to its a certain function, thus the reason of finding test crash, and Reduce artificial intervention during the test, the effect and efficiency tested product can be improved.
It may be noted that each step/component described in this application can be split as more multistep according to the needs of implementation Two or more step/components or the part operation of step/component can also be combined into new step/component by suddenly/component, To achieve the object of the present invention.
It is above-mentioned to be realized in hardware, firmware according to the method for the present invention, or be implemented as being storable in recording medium Software or computer code in (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through network downloading Original storage in long-range recording medium or nonvolatile machine readable media and the meter that will be stored in local recording medium Calculation machine code, so that method described herein can be stored in using general purpose computer, application specific processor or programmable or specially It is handled with such software in the recording medium of hardware (such as ASIC or FPGA).It is appreciated that computer, processor, micro- Processor controller or programmable hardware include can store or receive software or computer code storage assembly (for example, RAM, ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and execute, realize herein The processing method of description.In addition, when general purpose computer accesses the code for realizing the processing being shown here, the execution of code General purpose computer is converted to the special purpose computer for being used for executing the processing being shown here.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (14)

1. the method that a kind of pair of product is tested, which is characterized in that the described method includes:
The test case for being used for target product is received, the test case includes the data of at least one test operation;
According to the data of the test operation, by described in the target device execution corresponding with the target product of operation equipment pair Test operation, and from the data of the target device collecting test operating result;
The method also includes: during executing the test operation to the target device by operation equipment, obtain The detected value of the preset term of the target device detected by sensor, wherein the preset term includes at least temperature Degree, humidity, electric current, voltage, power consumption and pressure one of are worked as;It is produced according to the detected value of the target device and to the target The test result of product determines the service performance of the target product, specifically includes: for the detected value of the target device and to institute The test result for stating target product presets corresponding weight, by corresponding weight to the detected value of the target device and Comprehensive analysis is carried out to the test result of the target product, obtains the service performance of the target product.
2. the method according to claim 1, wherein the data of the test operation are using default programming language The data for the test program write, or
The data of the test operation include that the user of record executes the test behaviour to the target device by operation equipment The operation data of work and the data of execution sequence.
3. pre- in the mechanical arm according to the method described in claim 2, it is characterized in that, the operation equipment is mechanical arm It is first provided with opereating specification and nominal operation power, includes start position information and end position information in the opereating specification.
4. method described in any one of claim 1 to 3, which is characterized in that further include in the test case and institute The data that test operation is expected operating result accordingly are stated, the method also includes:
By being compared the data of the expected operating result with the data of the result of test operation of acquisition, determine to described The test result of target product.
5. method described in any one of claim 1 to 3, which is characterized in that the method also includes:
The data of the result of test operation of acquisition are written in the test log to the target product.
6. method described in any one of claim 1 to 3, which is characterized in that described acquire from the target device is surveyed The processing of data for trying operating result includes:
By image capture device, the figure of collecting test operating result from the scheduled results acquisition region of the target device As data.
7. according to the method described in claim 6, it is characterized in that, described image acquisition equipment is high-speed camera equipment or scanning Instrument.
8. the device that a kind of pair of product is tested, which is characterized in that described device includes:
Receiving module, for receiving the test case for being used for target product, the test case includes at least one test operation Data;
Result data acquisition module passes through operation equipment pair and the target product for the data according to the test operation Corresponding target device executes the test operation, and from the data of the target device collecting test operating result;
Described device further include: detected value obtains module, for executing the survey to the target device by operation equipment During examination operation, the detected value of the preset term of the target device detected by sensor is obtained, wherein described Preset term includes at least temperature, humidity, electric current, voltage, power consumption and pressure and one of works as;Performance determining module is used for root Detected value according to the target device and the test result to the target product, determine the service performance of the target product, Corresponding weight is preset specifically for the detected value for the target device and to the test result of the target product, is led to It crosses corresponding weight and carries out comprehensive analysis to the detected value of the target device and to the test result of the target product, obtain The service performance of the target product.
9. device according to claim 8, which is characterized in that the data of the test operation are using default programming language The data for the test program write, or
The data of the test operation include that the user of record executes the test behaviour to the target device by operation equipment The operation data of work and the data of execution sequence.
10. device according to claim 9, which is characterized in that the operation equipment is mechanical arm, pre- in the mechanical arm It is first provided with opereating specification and nominal operation power, includes start position information and end position information in the opereating specification.
11. device according to any one of claims 8 to 10, which is characterized in that further include in the test case with The test operation is expected the data of operating result, described device accordingly further include:
Test result determining module, for by by the number of the data of the expected operating result and the result of test operation of acquisition According to being compared, the test result to the target product is determined.
12. device according to any one of claims 8 to 10, which is characterized in that described device further include:
Data write. module, for the data of the result of test operation of acquisition to be written to the test log to the target product In.
13. device according to any one of claims 8 to 10, which is characterized in that the result data acquisition module is also For:
By image capture device, the figure of collecting test operating result from the scheduled results acquisition region of the target device As data.
14. device according to claim 13, which is characterized in that described image acquisition equipment is high-speed camera equipment or sweeps Retouch instrument.
CN201510408714.0A 2015-07-13 2015-07-13 The method and apparatus that product is tested Active CN104951400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510408714.0A CN104951400B (en) 2015-07-13 2015-07-13 The method and apparatus that product is tested

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510408714.0A CN104951400B (en) 2015-07-13 2015-07-13 The method and apparatus that product is tested

Publications (2)

Publication Number Publication Date
CN104951400A CN104951400A (en) 2015-09-30
CN104951400B true CN104951400B (en) 2019-02-22

Family

ID=54166067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510408714.0A Active CN104951400B (en) 2015-07-13 2015-07-13 The method and apparatus that product is tested

Country Status (1)

Country Link
CN (1) CN104951400B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487957B (en) * 2015-11-20 2019-03-08 Oppo广东移动通信有限公司 Power consumption condition collecting method and device
US20190050869A1 (en) * 2017-08-08 2019-02-14 Lau Gary Q Method of Testing a Component of an Electronic Processing Device
WO2019153111A1 (en) 2018-02-06 2019-08-15 Splunk, Inc. Intermittent failure metrics in technological processes
CN110022244B (en) * 2019-04-03 2020-08-28 北京字节跳动网络技术有限公司 Method and apparatus for transmitting information
CN109902029A (en) * 2019-04-17 2019-06-18 深圳市新国都支付技术有限公司 A kind of test method and test device for POS terminal
CN110415101A (en) * 2019-06-19 2019-11-05 深圳壹账通智能科技有限公司 Products Show test method, device, computer equipment and storage medium
CN111015736A (en) * 2019-12-18 2020-04-17 长沙智能制造研究总院有限公司 Click test method based on cooperative robot
CN113468048B (en) * 2021-06-21 2023-03-28 上汽通用五菱汽车股份有限公司 System testing method, device, equipment and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976526A (en) * 2006-11-15 2007-06-06 华为技术有限公司 Mobile telephone automation testing system and testing method
CN101634601B (en) * 2009-08-17 2011-07-20 华为终端有限公司 Method and device for testing mechanical reliability of mobile phones
CN101739768B (en) * 2009-12-01 2011-12-28 中国建设银行股份有限公司 System and method for automatically testing self-service equipment
CN102164196A (en) * 2011-04-19 2011-08-24 广东欧珀移动通信有限公司 Automatic mobile phone current testing method
CN104679017A (en) * 2013-11-29 2015-06-03 ***股份有限公司 Automatic test device and test method for mobile terminal application program
CN103698686B (en) * 2013-12-11 2017-04-12 华为技术有限公司 Signal testing method and signal testing equipment

Also Published As

Publication number Publication date
CN104951400A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN104951400B (en) The method and apparatus that product is tested
CN105988924B (en) A kind of non-intrusion type embedded software graphic user interface automated testing method
CN111459700B (en) Equipment fault diagnosis method, diagnosis device, diagnosis equipment and storage medium
CN109739755B (en) Fuzzy test system based on program tracking and mixed execution
US10019346B2 (en) Generating software test script from video
CN107145445A (en) The automatic analysis method and system of the daily record that reports an error of software automated testing
CN110221979A (en) Performance test methods, device, equipment and the storage medium of application program
CN111639002B (en) Sleep power consumption testing method, system, computer equipment and storage medium
CN107483283B (en) Communication reliability test method and device
CN112147967A (en) Automatic generation method and device for scene test case of automobile controller
CN111830039B (en) Intelligent product quality detection method and device
CN105354138A (en) Method for determining specific control attribute of mobile phone page
CN114255784A (en) Substation equipment fault diagnosis method based on voiceprint recognition and related device
CN109101414B (en) Massive UI test generation method and device based on buried point data
CN108804298B (en) Device for testing response time of SCADA system
CN103336739B (en) Method for testing software and platform
CN111258875A (en) Interface test method and system, electronic device and storage medium
CN115080342A (en) Method and system for automatically processing test data of power board card
CN114168461A (en) Performance test method and system applied to domestic operating system
CN113923443A (en) Network video recorder testing method and device and computer readable storage medium
CN114356218A (en) Data error correction method, device and medium for Flash memory
CN113591147A (en) Data extraction method and device, computer equipment and storage medium
CN111291239A (en) Unit testing method, device, equipment and storage medium
CN107102938B (en) Test script updating method and device
CN112214403B (en) Automatic test method, device and system based on protection device model file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant