CN104951400A - Method and device for testing product - Google Patents

Method and device for testing product Download PDF

Info

Publication number
CN104951400A
CN104951400A CN201510408714.0A CN201510408714A CN104951400A CN 104951400 A CN104951400 A CN 104951400A CN 201510408714 A CN201510408714 A CN 201510408714A CN 104951400 A CN104951400 A CN 104951400A
Authority
CN
China
Prior art keywords
test
data
result
test operation
target product
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
CN201510408714.0A
Other languages
Chinese (zh)
Other versions
CN104951400B (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.)
Baidu Online Network Technology Beijing Co Ltd
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

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

Abstract

An embodiment of the invention discloses a method and a device for testing a product. The method comprises steps as follows: a test case for a target product is received and comprises data of at least one test operation; operation equipment executes the test operation on target equipment corresponding to the target product according to the data of the test operation, and data of a test operation result are collected from the target equipment. With the adoption of the embodiment, one function of the target product can be subjected to the same testing for multiple times under the condition of no detailed understanding of the target product, manual intervention is reduced in the testing process, and the product testing effect and efficiency can be improved.

Description

To the method and apparatus that product is tested
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus that product is tested.
Background technology
Along with the development of computer technology, the kind of product (as software) is more and more abundanter, and the quality of product quality becomes more and more important, like this, before product comes into operation, just needs to test product.
When testing target product, usually undertaken by manual mode.Tester, by clicking the respective keys in terminal device, tests the target product installed in this terminal device.After having tested, by checking whether the test result that terminal device exports meets expection operating result, determines whether pass through the test of target product.
At least there is following problem in aforementioned method of testing product: in the process of test target product, often needs repeatedly to test a certain function of target product, and during manual test, the data that each test uses are different.Such as, for clicking operation, user clicks the different coordinate positions of terminal device display interface, and the data that its test uses are different.If test crash, user is difficult to the operation carrying out again clicking same coordinate position, and then cannot find the reason of test crash.And the test speed of manual test is very limited and comparatively slow, thus make to the effect of product test and efficiency poor.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus tested product, by test case, test operation is carried out to described target product, thus identical test can be carried out repeatedly to a certain function of target product, and effect and efficiency that product is tested can be improved.
For achieving the above object, The embodiment provides a kind of method that product is tested.Described method comprises, and receive the test case being used for target product, described test case comprises the data of at least one test operation; According to the data of described test operation, perform described test operation by the operating equipment pair target device corresponding to described target product, and from the data of described target device collecting test operating result.
Alternatively, the data of described test operation use the data presetting the test procedure that programming language is write, or the user that the data of described test operation comprise record performs the service data of described test operation and the data of execution sequence by operating equipment to described target device.
Alternatively, described operating equipment is mechanical arm, is previously provided with opereating specification and nominal operation power in described mechanical arm, and described opereating specification comprises start position information and end position information.
Alternatively, the data of the expection operating result corresponding to described test operation are also comprised in described test case, described method also comprises: by the data of the described data of expection operating result and the result of test operation of collection being compared, determine the test result to described target product.
Alternatively, described method also comprises: the data of the result of test operation of collection be written in the test log to described target product.
Alternatively, the process of the described data from described target device collecting test operating result comprises: by image capture device, the view data of collecting test operating result from the predetermined results acquisition region of described target device.
Alternatively, described image capture device is high-speed camera equipment or scanner.
Alternatively, described method also comprises: performing in the process of described test operation by operating equipment to described target device, obtain the detected value of the preset term of the described target device detected by sensor, wherein, described preset term at least comprises the one in the middle of temperature, humidity, electric current, voltage, power consumption and pressure; According to the detected value of described target device and the test result to described target product, determine the usability of described target product.
For achieving the above object, embodiments of the invention additionally provide a kind of device tested product.Described device comprises: receiver module, and for receiving the test case for target product, described test case comprises the data of at least one test operation; Result data acquisition module, for the data according to described test operation, performs described test operation by the operating equipment pair target device corresponding to described target product, and from the data of described target device collecting test operating result.
Alternatively, the data of described test operation use the data presetting the test procedure that programming language is write, or the user that the data of described test operation comprise record performs the service data of described test operation and the data of execution sequence by operating equipment to described target device.
Alternatively, described operating equipment is mechanical arm, is previously provided with opereating specification and nominal operation power in described mechanical arm, and described opereating specification comprises start position information and end position information.
Alternatively, the data of the expection operating result corresponding to described test operation are also comprised in described test case, described device also comprises: test result determination module, for by the data of the described data of expection operating result and the result of test operation of collection being compared, determine the test result to described target product.
Alternatively, described device also comprises: Data write. module, and the data for the result of test operation by collection are written in the test log to described target product.
Alternatively, described result data acquisition module is also for passing through image capture device, the view data of collecting test operating result from the predetermined results acquisition region of described target device.
Alternatively, described image capture device is high-speed camera equipment or scanner.
Alternatively, described device also comprises: detected value acquisition module, for performing in the process of described test operation by operating equipment to described target device, obtain the detected value of the preset term of the described target device detected by sensor, wherein, described preset term at least comprises the one in the middle of temperature, humidity, electric current, voltage, power consumption and pressure; Performance determination module, for according to the detected value of described target device and the test result to described target product, determines the usability of described target product.
The method and apparatus that product is tested that the embodiment of the present invention provides, by the data of at least one test operation in test case, the operating equipment pair target device corresponding to target product is utilized to perform described test operation, and the data of collecting test operating result, make when specifically not understanding target product, identical test is carried out repeatedly to its a certain function, easily find the reason of test crash, and artificial intervention is decreased in the process of test, effect and efficiency that product is tested can be improved.
Accompanying drawing explanation
The process flow diagram to the method that product is tested that Fig. 1 provides for the embodiment of the present invention;
The another kind that Fig. 2 provides for the embodiment of the present invention is to the process flow diagram of the method that product is tested;
The structural representation of system for testing product that Fig. 3 provides for the embodiment of the present invention;
The display interface schematic diagram that target product is tested that Fig. 4 provides for the embodiment of the present invention;
The structural representation to the device that product is tested that Fig. 5 provides for the embodiment of the present invention;
The another kind that Fig. 6 provides for the embodiment of the present invention is to the structural representation of the device that product is tested.
Embodiment
The inventive concept of this programme is, a kind of Black-box Testing technical scheme is proposed, the target product that will test is as black box, by the data of the test operation in the test case of described target product, the target device utilizing operating equipment corresponding to described target product carries out test operation, and obtains the result of test operation of described test operation.Thus, when specifically not understanding target product, identical test being carried out repeatedly to its a certain function, easily finds the reason of test crash.In addition, in test process, reduce artificial intervention, effect and efficiency that product is tested can be improved.
For this reason, generate one or more test case by various ways, two kinds of optional generating modes are below provided.
Mode one, uses default programming language to be that the test operation that will carry out writes corresponding test procedure, and the data of described test procedure form test case.
Wherein, programming language can comprise multiple, such as C language, JAVA language etc., test case can be for test described target product and a group of working out comprises the data acquisition of test operation and expection operating result, whether meets a certain particular demands by target product described in testing case.Test operation can comprise one or more, such as clicking operation, slide etc.The data of test operation, except comprising the data such as clicking operation or slide, also can comprise the data such as the dragging distance of the position coordinates of clicking operation, the glide direction of slide or drag operation.
Particularly, when understanding the principle of work of target product or the course of work etc. are concrete, can analyze the test purpose of described target product in advance, obtain carrying out this and test the test operation needing to carry out, the testing scheme to described target product is formulated based on this, then, a kind of programming language (as JAVA language) can be selected, testing scheme according to formulating writes corresponding test procedure, after having write, generate corresponding test case by Test cases technology equipment (as computing machine or mobile phone etc.).
Mode two, forms test case based on pre-recorded user by the data of operating equipment to service data and execution sequence that described target device performs described test operation.
Particularly, user tests described target product by operating equipment, and in test process, can record the data performing the data of described test operation and the execution sequence of described test operation, Test cases technology equipment can use the above-mentioned data genaration test case of record.
In addition, the equipment used when operating equipment can be and perform described test operation, as computing machine, server or certain mechanical part (as mechanical arm etc.) etc.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail the method and apparatus that product is tested.
Embodiment one
Fig. 1 is the process flow diagram to the method that product is tested that the embodiment of the present invention provides.Described method is performed by the computer system comprising device as shown in Figure 5.
As shown in Figure 1, in step S110, receive the test case being used for target product, described test case comprises the data of at least one test operation.
Wherein, target product can be the software product or hardware product etc. that will test, software product can be installed on the software in terminal device (as mobile phone, computer etc.), and hardware product can be the some parts etc. in certain terminal device or certain terminal device.
Particularly, Test cases technology equipment (as computer or mobile phone etc.) can be used in advance to generate one or more test case, concrete process see the content of aforementioned generating test use case, can not repeat them here.When understanding the principle of work of target product or the course of work etc. are concrete, when needing to test the corresponding function of target product, required for this test test case used can be sent to the testing apparatus (as computer or numerically-controlled machine etc.) for testing described target product, described testing apparatus can receive described test case.
In step S120, according to the data of described test operation, perform described test operation by the operating equipment pair target device corresponding to described target product, and from the data of described target device collecting test operating result.
Wherein, if described target product is software product, then corresponding target device can be the equipment that described software product is installed, as mobile phone or computer etc.; If described target product is hardware product, then corresponding target device can be the equipment belonging to described hardware product, as described in hardware product be the display screen of mobile phone, then target device can mobile phone belonging to described display screen.
Particularly, after described testing apparatus receives test case, the data of test operation wherein can be extracted, and the data of described test operation are resolved, then, described testing apparatus uses the analysis result obtained to test described target product by operating equipment, such as, described test operation is clicking operation, the position coordinates of clicking operation can be comprised in the data of described test operation, then described testing apparatus by operating equipment according to described position coordinates, click the relevant position of target device, target device responds described clicking operation and exports corresponding result of test operation, now, the data of result of test operation as described in described equipment gathers by corresponding parts (as sensor).
The method that product is tested that the embodiment of the present invention provides, by the data of at least one test operation in test case, the operating equipment pair target device corresponding to target product is utilized to perform described test operation, and the data of collecting test operating result, make when specifically not understanding target product, identical test is carried out repeatedly to its a certain function, easily find the reason of test crash, and artificial intervention is decreased in the process of test, effect and efficiency that product is tested can be improved.
Embodiment two
Fig. 2 is the process flow diagram of another embodiment to the method that product is tested provided by the invention, and described embodiment can be considered another concrete implementation of Fig. 1.
As shown in Figure 2, in step S210, receive the test case being used for target product, described test case comprises the data of at least one test operation.
Wherein, the step content of step S210 is corresponding identical with the step content of step S 110 as above, does not repeat at this.
On this basis, the data of described test operation obtain by various ways, based on the mode of aforementioned two kinds of generating test use cases, namely the test program generation test case preset programming language and write is used, and by operating equipment, the service data of described test operation and the data genaration test case of execution sequence are performed to described target device by the user of record, accordingly, the data of test operation can have two kinds of obtain manners, specifically comprise: the data of described test operation use the data presetting the test procedure that programming language is write, or the user that the data of described test operation comprise record performs the service data of described test operation and the data of execution sequence by operating equipment to described target device.
In step S220, according to the data of described test operation, perform described test operation by the operating equipment pair target device corresponding to described target product, and from the data of described target device collecting test operating result.
Wherein, the step content of step S220 is corresponding identical with the step content of step S120 as above, does not repeat at this.
In addition, described operating equipment can comprise multiple, below provides a kind of operating equipment, specifically can be: described operating equipment is mechanical arm, be previously provided with opereating specification and nominal operation power in described mechanical arm, described opereating specification comprises start position information and end position information.
Wherein, mechanical arm, in the process of carrying out test operation, has certain opereating specification usually, and when mechanical arm exceeds described opereating specification, described mechanical arm cannot complete corresponding test operation.In described mechanical arm except being previously provided with opereating specification and nominal operation power, the information such as the translational speed of mechanical arm, translational acceleration can also be provided with.
On this basis, the process of step S220 can be: as shown in Figure 3, after described testing apparatus gets the data of described test operation, the data of described test operation are resolved, and send to mechanical arm by resolving the corresponding operational order obtained, mechanical arm performs corresponding test operation by described operational order to described target device, and from the data of described target device collecting test operating result.
In addition, the described result of test operation gathered can be shown in a variety of forms, such as, described result of test operation is image, then the process of the above-mentioned data from described target device collecting test operating result can be: by image capture device, the view data of collecting test operating result in the presumptive area of described target device.
Wherein, image capture device can comprise multiple, such as picture pick-up device or scanner etc.Presumptive area can be preassigned region in the display interface of described target device, or also can be any appointed area of described target device, as described in the region etc. at power supply part (as battery) place of target device.
Particularly, as shown in Figure 3, after operating equipment performs corresponding test operation to described target device, described testing apparatus starts image capture device, the image camera function of described image capture device startup self takes the image in the presumptive area of described target device, and can using the view data of its view data as described result of test operation.
It should be noted that, described test operation is performed for the ease of the operating equipment pair target device corresponding to described target product, in certain instances, described testing apparatus controls by the behavior of remote server controlling functions to corresponding remote server of self, can perform the test operation required for testing to make operating equipment to target product.
On this basis, the data of the result of test operation of collection can be carried out record, and compare by the data of the data of expection operating result in described test case and the result of test operation of collection, determine the test result to described target product, specifically can as the process of step S230 and step S240.
In step S230, the data of the result of test operation of collection are written in the test log to described target product.
Particularly, the result of test operation that target product is tested is checked for the ease of user is follow-up, described testing apparatus can carry out record to the data of the result of test operation collected, corresponding process can be: described testing apparatus can generate the test log for recording the result of test operation to described target product in advance, whenever using test case to carry out Black-box Testing to certain product, described testing apparatus can obtain the data of result of test operation, and can described data be written in described test log, like this, user is by checking described test log, understand the result of test operation obtained after at every turn test operation being performed to target product, so that user improves target product.
The data of the expection operating result corresponding to described test operation also can be comprised in described test case, in step S240, by the data of the described data of expection operating result and the result of test operation of collection being compared, determine the test result to described target product.
Wherein, expection operating result can be identical with the display form of result of test operation, and such as, expection operating result and result of test operation are all images or are all word etc.
Particularly, after described testing apparatus collects result of test operation, expection operating result in itself and described test case can be compared, thus determine the test result to described target product, its test result can be: if both data are mated mutually, then can determine to pass through the test of described target product, if both data are not mated, then can determine not pass through or test crash the test of described target product.
In addition, be the situation of image based on described result of test operation, then the process of corresponding step S240 can comprise: according to the image analysis algorithm preset, the view data of result of test operation gathered and the view data of described expection operating result are analyzed, obtain image analysis result, if to be the view data of described result of test operation identical with the data of described expection operating result or mate for described image analysis result, then signal is passed through in exportable test, if to be the view data of described result of test operation completely different from the data of described expection operating result or do not mate for described image analysis result, then exportable test crash signal.Wherein, described test is shown by the mode of the flicker of corresponding pilot lamp by signal and described test crash signal, also by showing the mode displaying etc. of corresponding prompting frame.
In order to the process tested described target product is better described, be described in detail below in conjunction with the process of concrete example to abovementioned steps S210 ~ S240, specific as follows:
As shown in Figure 4, target product is software product, and target device is mobile phone, and test operation is click keys, and the button of click comprises " button 1 ", " button 2 " and " button 3 " in Fig. 4, and results acquisition region as shown in Figure 4.Wherein, conveniently user is to the test of target product, " button 1 ", " button 2 " and " button 3 " can be set to different colors, if button 1 is red, button 2 is blue, and button 3 is green, accordingly, the color in results acquisition region can show according to the color of the button clicked, such as, during click keys 1, results acquisition region can be shown in red, during click keys 2, results acquisition region can be shown as blueness etc.The test case for testing above-mentioned target product is generated by Test cases technology equipment, such as:
Function main
Motor On//mechanical arm electric motor starting
The safe altitude of clearH=0//definition mechanical arm
The position that realH=-40//definition mechanical arm declines, the height namely during its click screen
Pld=XY (0,110, clearH, 0) // definition reference position
Prt=XY (150,0, clearH, 0) // definition end position
Power High//power of motor
SpeedS 1//translational speed
AccelS 5//translational acceleration
The position of P101=XY (56,425, realH, 0) // button 1
The position of P102=XY (60,425, realH, 0) // button 2
The position of P103=XY (70,425, realH, 0) // button 3
Go P101//mechanical arm moves to P101, i.e. click keys 1
Go Prt//mechanical arm moves to end position, prevents mechanical arm from affecting image acquisition
Catch result_pic_1//collection image, and image name is stored as result_pic_1
ROI_1=(200,250,250,280) // choose one piece of image-region, as region-of-interest
Image and the image of expection operating result of Cmp result_pic_1:expect_pic_1:ROI_1//contrast region-of-interest, determine the test result to described target product
end
Above-mentioned test case is only the test case of the button 1 clicked in target product, and the test case for button 2 and button 3 correspondence can be write according to the test case of above-mentioned button 1 correspondence, does not repeat them here.The Black-box Testing to target product can be completed by above-mentioned test procedure, and obtain corresponding test result.
In order to ensure by described test case, target product being tested to the phenomenon that there will not be test crash, or again occur to make the phenomenon of last test crash, by described test case, target product is repeatedly tested, testing time can be arranged according to actual conditions, as 1000 is inferior.In the case, testing apparatus can record test by the number of times with test crash, can determine that test is by the probability with test crash further.Test crash may be caused by different reasons, and the test crash that different reason causes also can be added up and record to testing apparatus, improves target product so that follow-up.
On this basis, also by the detected value of the preset term of described target device and the test result to described target product, the usability of described target product is judged, specifically can as the process of step S250 and step S260.
In step S250, performing in the process of described test operation by operating equipment to described target device, obtain the detected value of the preset term of the described target device detected by sensor, wherein, described preset term at least comprises the one in the middle of temperature, humidity, electric current, voltage, power consumption and pressure.
Wherein, sensor can comprise multiple, as temperature sensor, humidity sensor and pressure transducer etc.
Particularly, when described testing apparatus start described operating equipment start to perform described test operation to described target device time, described testing apparatus can start corresponding sensor, the detected value of described target device respective item is detected in real time by sensor, such as, the temperature value of target device described in the process that described test operation performs to described target device is detected by temperature sensor.Different target devices, its corresponding test item can be different, such as, if target device is mobile phone, then described preset term can be the output current and/or voltage etc. of temperature, power consumption, battery, if target device is air purifier, then described preset term can be PM2.5, formaldehyde etc.
In step S260, according to the detected value of described target device and the test result to described target product, determine the usability of described target product.
Particularly, can be the detected value of described target device and corresponding weight is pre-set to the test result of described target product, comprehensively can be analyzed to the detected value of described target device with to the test result of described target product by corresponding weight, obtain the usability of described target product, such as, if the detected value of described target device has exceeded predetermined threshold, and the test crash to described target product, then can determine that the usability of described target product is poor or can think the corresponding function existing defects of described target product, follow-uply can to improve target product for corresponding defect.
The method that product is tested that the embodiment of the present invention provides, on the one hand, by expecting in the data of the result of test operation gathered when specifically not understanding target product and test case that the data of operating result compare, determine the test result to described target product, it is more objective to make the test of target product, decrease the subjective factor manually determining test result, improve reliability and accuracy that described target product is tested, on the other hand, the detected value of the preset term of target device is detected by sensor, thus the usability of described target product is judged, make not only to rest on the aspect of testing the performance of target product to the test processes of target product, also take into account the impact of operation on target device of target product, the reliability that further raising is tested described target product and accuracy, and when specifically not understanding target product, identical test can be carried out repeatedly to its a certain function, thus find the reason of test crash, and in the process of test, decrease artificial intervention, effect and efficiency that product is tested can be improved.
Embodiment three
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of device tested product.As shown in Figure 5, the described device tested product comprises receiver module 510 and result data acquisition module 520.
Receiver module 510 is for receiving the test case for target product, and described test case comprises the data of at least one test operation.
Result data acquisition module 520, for the data according to described test operation, performs described test operation by the operating equipment pair target device corresponding to described target product, and from the data of described target device collecting test operating result.
Alternatively, the data of described test operation use the data presetting the test procedure that programming language is write, or the user that the data of described test operation comprise record performs the service data of described test operation and the data of execution sequence by operating equipment to described target device.
Alternatively, described operating equipment is mechanical arm, is previously provided with opereating specification and nominal operation power in described mechanical arm, and described opereating specification comprises start position information and end position information.
Further, the data of the expection operating result corresponding to described test operation are also comprised in described test case, on basis embodiment illustrated in fig. 5, the device that product is tested can also be comprised as shown in Figure 6: test result determination module 530, for by the data of the described data of expection operating result and the result of test operation of collection being compared, determine the test result to described target product.
Further, as shown in Figure 6, describedly can also to comprise the device that product is tested: Data write. module 540, the data for the result of test operation by collection are written in the test log to described target product.
Alternatively, result data acquisition module 520 is also for passing through image capture device, the view data of collecting test operating result from the predetermined results acquisition region of described target device.
Alternatively, described image capture device is high-speed camera equipment or scanner.
Further, describedly can also to comprise the device that product is tested: detected value acquisition module, for performing in the process of described test operation by operating equipment to described target device, obtain the detected value of the preset term of the described target device detected by sensor, wherein, described preset term at least comprises the one in the middle of temperature, humidity, electric current, voltage, power consumption and pressure; Performance determination module, for according to the detected value of described target device and the test result to described target product, determines the usability of described target product.
The method that product is tested that the embodiment of the present invention provides, by the data of at least one test operation in test case, the operating equipment pair target device corresponding to target product is utilized to perform described test operation, and the data of collecting test operating result, make when specifically not understanding target product, identical test is carried out repeatedly to its a certain function, easily find the reason of test crash, and artificial intervention is decreased in the process of test, effect and efficiency that product is tested can be improved.
Further, in the present embodiment, on the one hand, by expecting in the data of the result of test operation gathered when specifically not understanding target product and test case that the data of operating result compare, determine the test result to described target product, it is more objective to make the test of target product, decreases the subjective factor manually determining test result, improves the reliability and accuracy of testing described target product, on the other hand, the detected value of the preset term of target device is detected by sensor, thus the usability of described target product is judged, make not only to rest on the aspect of testing the performance of target product to the test processes of target product, also take into account the impact of operation on target device of target product, the reliability that further raising is tested described target product and accuracy, and when specifically not understanding target product, identical test can be carried out repeatedly to its a certain function, thus find the reason of test crash, and in the process of test, decrease artificial intervention, effect and efficiency that product is tested can be improved.
It may be noted that, according to the needs implemented, each step/parts described in the application more multi-step/parts can be split as, also the part operation of two or more step/parts or step/parts new step/parts can be combined into, to realize object of the present invention.
Above-mentioned can at hardware according to method of the present invention, realize in firmware, or be implemented as and can be stored in recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk) in software or computer code, or be implemented and will be stored in the computer code in local recording medium by the original storage of web download in remote logging medium or nonvolatile machine readable media, thus method described here can be stored in use multi-purpose computer, such software process on the recording medium of application specific processor or able to programme or specialized hardware (such as ASIC or FPGA).Be appreciated that, computing machine, processor, microprocessor controller or programmable hardware comprise and can store or receive the memory module of software or computer code (such as, RAM, ROM, flash memory etc.), when described software or computer code by computing machine, processor or hardware access and perform time, realize disposal route described here.In addition, when the code for realizing the process shown in this accessed by multi-purpose computer, multi-purpose computer is converted to the special purpose computer for performing the process shown in this by the execution of code.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (16)

1. to the method that product is tested, it is characterized in that, described method comprises:
Receive the test case being used for target product, described test case comprises the data of at least one test operation;
According to the data of described test operation, perform described test operation by the operating equipment pair target device corresponding to described target product, and from the data of described target device collecting test operating result.
2. method according to claim 1, is characterized in that, the data of described test operation use the data presetting the test procedure that programming language is write, or
The user that the data of described test operation comprise record performs the service data of described test operation and the data of execution sequence by operating equipment to described target device.
3. method according to claim 2, is characterized in that, described operating equipment is mechanical arm, is previously provided with opereating specification and nominal operation power in described mechanical arm, and described opereating specification comprises start position information and end position information.
4. the method according to any one of claims 1 to 3, is characterized in that, also comprise the data of the expection operating result corresponding to described test operation in described test case, described method also comprises:
By the data of the described data of expection operating result and the result of test operation of collection being compared, determine the test result to described target product.
5. the method according to any one of Claims 1 to 4, is characterized in that, described method also comprises:
The data of the result of test operation of collection are written in the test log to described target product.
6. the method according to any one of Claims 1 to 5, is characterized in that, the process of the described data from described target device collecting test operating result comprises:
By image capture device, the view data of collecting test operating result from the predetermined results acquisition region of described target device.
7. method according to claim 6, is characterized in that, described image capture device is high-speed camera equipment or scanner.
8. the method according to any one of Claims 1 to 5, is characterized in that, described method also comprises:
Performing in the process of described test operation by operating equipment to described target device, obtain the detected value of the preset term of the described target device detected by sensor, wherein, described preset term at least comprises the one in the middle of temperature, humidity, electric current, voltage, power consumption and pressure;
According to the detected value of described target device and the test result to described target product, determine the usability of described target product.
9. to the device that product is tested, it is characterized in that, described device comprises:
Receiver module, for receiving the test case for target product, described test case comprises the data of at least one test operation;
Result data acquisition module, for the data according to described test operation, performs described test operation by the operating equipment pair target device corresponding to described target product, and from the data of described target device collecting test operating result.
10. device according to claim 9, is characterized in that, the data of described test operation use the data presetting the test procedure that programming language is write, or
The user that the data of described test operation comprise record performs the service data of described test operation and the data of execution sequence by operating equipment to described target device.
11. devices according to claim 10, is characterized in that, described operating equipment is mechanical arm, are previously provided with opereating specification and nominal operation power in described mechanical arm, and described opereating specification comprises start position information and end position information.
12. devices according to any one of claim 9 ~ 11, it is characterized in that, also comprise the data of the expection operating result corresponding to described test operation in described test case, described device also comprises:
Test result determination module, for by the data of the described data of expection operating result and the result of test operation of collection being compared, determines the test result to described target product.
13. devices according to any one of claim 9 ~ 12, it is characterized in that, described device also comprises:
Data write. module, the data for the result of test operation by collection are written in the test log to described target product.
14. devices according to any one of claim 9 ~ 13, is characterized in that, described result data acquisition module also for:
By image capture device, the view data of collecting test operating result from the predetermined results acquisition region of described target device.
15. devices according to claim 14, is characterized in that, described image capture device is high-speed camera equipment or scanner.
16. devices according to any one of claim 9 ~ 13, it is characterized in that, described device also comprises:
Detected value acquisition module, for performing in the process of described test operation by operating equipment to described target device, obtain the detected value of the preset term of the described target device detected by sensor, wherein, described preset term at least comprises the one in the middle of temperature, humidity, electric current, voltage, power consumption and pressure;
Performance determination module, for according to the detected value of described target device and the test result to described target product, determines the usability of described target product.
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 true CN104951400A (en) 2015-09-30
CN104951400B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487957A (en) * 2015-11-20 2016-04-13 广东欧珀移动通信有限公司 Acquisition method and device of power consumption situation data
WO2019029038A1 (en) * 2017-08-08 2019-02-14 Ecorenew Dmcc A method of testing a component of an electronic processing device
CN109902029A (en) * 2019-04-17 2019-06-18 深圳市新国都支付技术有限公司 A kind of test method and test device for POS terminal
CN110022244A (en) * 2019-04-03 2019-07-16 北京字节跳动网络技术有限公司 Method and apparatus for sending information
WO2019153111A1 (en) * 2018-02-06 2019-08-15 Splunk, Inc. Intermittent failure metrics in technological processes
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
CN113468048A (en) * 2021-06-21 2021-10-01 上汽通用五菱汽车股份有限公司 System testing method, device, equipment and computer readable storage medium

Citations (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
CN101634601A (en) * 2009-08-17 2010-01-27 深圳华为通信技术有限公司 Method and device for testing mechanical reliability of mobile phones
CN101739768A (en) * 2009-12-01 2010-06-16 中国建设银行股份有限公司 System and method for automatically testing self-service equipment
CN102164196A (en) * 2011-04-19 2011-08-24 广东欧珀移动通信有限公司 Automatic mobile phone current testing method
CN103698686A (en) * 2013-12-11 2014-04-02 华为技术有限公司 Signal testing method and signal testing equipment
CN104679017A (en) * 2013-11-29 2015-06-03 中国银联股份有限公司 Automatic test device and test method for mobile terminal application program

Patent Citations (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
CN101634601A (en) * 2009-08-17 2010-01-27 深圳华为通信技术有限公司 Method and device for testing mechanical reliability of mobile phones
CN101739768A (en) * 2009-12-01 2010-06-16 中国建设银行股份有限公司 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
CN103698686A (en) * 2013-12-11 2014-04-02 华为技术有限公司 Signal testing method and signal testing equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487957A (en) * 2015-11-20 2016-04-13 广东欧珀移动通信有限公司 Acquisition method and device of power consumption situation data
CN105487957B (en) * 2015-11-20 2019-03-08 Oppo广东移动通信有限公司 Power consumption condition collecting method and device
WO2019029038A1 (en) * 2017-08-08 2019-02-14 Ecorenew Dmcc A 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
US10831648B2 (en) 2018-02-06 2020-11-10 Splunk Inc. Intermittent failure metrics in technological processes
US11409645B1 (en) 2018-02-06 2022-08-09 Splunk Inc. Intermittent failure metrics in technological processes
CN110022244A (en) * 2019-04-03 2019-07-16 北京字节跳动网络技术有限公司 Method and apparatus for sending 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
CN113468048A (en) * 2021-06-21 2021-10-01 上汽通用五菱汽车股份有限公司 System testing method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN104951400B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN104951400A (en) Method and device for testing product
CN109086203B (en) Page detection method and device
CN111459700B (en) Equipment fault diagnosis method, diagnosis device, diagnosis equipment and storage medium
CN108804302B (en) Remote testing method, system and related equipment
US10019346B2 (en) Generating software test script from video
JP5705395B2 (en) Signal analyzer
CN110213258B (en) Abnormity monitoring method and device for vehicle CAN bus and computer equipment
CN107766209B (en) Central control automation test method, device, equipment and computer readable storage medium
CN105302714A (en) Method and apparatus for monitoring memory leak in test process
JP2009032099A (en) Scenario creation apparatus and scenario creation program
CN104503910A (en) Product test method by monitoring users' using behavior
CN104536863A (en) Application program test method and device
CN109884533B (en) Method and device for diagnosing battery fault, equipment and storage medium
CN110806965A (en) Automatic test method, device, equipment and medium
CN105354138A (en) Method for determining specific control attribute of mobile phone page
CN110968501A (en) Linkage testing method and device for application program compatibility
CN107977318A (en) A kind of energy consumption and performance test methods of Android application programs
CN110764960B (en) Solid state disk firmware testing method
JP2008232968A (en) Signal analyzer, method, and program
CN114356218A (en) Data error correction method, device and medium for Flash memory
CN116628564B (en) Model training method and system for detecting generator state
CN111258875A (en) Interface test method and system, electronic device and storage medium
CN115576737B (en) Abnormality detection method, abnormality detection device, electronic device, and storage medium
CN111597111A (en) Application program starting speed monitoring method and device
CN111291239B (en) Method, device, equipment and storage medium for testing unit

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