CN104699610A - Test method and device - Google Patents

Test method and device Download PDF

Info

Publication number
CN104699610A
CN104699610A CN201510109236.3A CN201510109236A CN104699610A CN 104699610 A CN104699610 A CN 104699610A CN 201510109236 A CN201510109236 A CN 201510109236A CN 104699610 A CN104699610 A CN 104699610A
Authority
CN
China
Prior art keywords
clicking operation
measured
reference value
recorded information
pixel reference
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.)
Pending
Application number
CN201510109236.3A
Other languages
Chinese (zh)
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.)
Anyi Hengtong Beijing Technology Co Ltd
Original Assignee
Anyi Hengtong Beijing 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 Anyi Hengtong Beijing Technology Co Ltd filed Critical Anyi Hengtong Beijing Technology Co Ltd
Priority to CN201510109236.3A priority Critical patent/CN104699610A/en
Publication of CN104699610A publication Critical patent/CN104699610A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a test method and a device. One embodiment of the method comprises the steps of obtaining a recorded information sequence, wherein each piece of recorded information in the recorded information sequence comprises click position coordinates and click time corresponding to a first click operation in a first click operation sequence of a to-be-tested application and region pixel reference values of a display region contained in the to-be-tested application; exerting a second click operation sequentially on the to-be-tested application according to the recorded information sequence, obtaining region pixel reference values corresponding to the second click operation; and based on the comparison of region pixel reference values corresponding to the second click operation and the region pixel reference values corresponding to the corresponding first click operation in the recorded information sequence, determining whether the to-be-tested application passes the test. According to the test method, whether changes of a to-be-tested application interface are correct is automatically judged, so as to be favorable for more efficient application testing.

Description

Method of testing and device
Technical field
The application relates to field of computer technology, is specifically related to software technology field, particularly relates to method of testing and device.
Background technology
Application testing is the process that a kind of correctness to application, integrality, security and quality are identified.Whether application testing can carry out usually as follows: operate application under defined terms, to find application error, weigh application quality, and can meet design requirement to it and assess.
At present, a kind of conventional means of application testing is automatic test.Automatic test is a kind of test process artificial behavioral test driven being converted into the behavioral test that machine performs, main flow script type and recording type are divided into the automatic test of application.The function that script type automatic test can realize is comparatively powerful, but higher to the technical requirement of user.And compared with script type automatic test, the technical requirement of recording type automatic test to user is lower, but most recording type automatic test only has the recording of testing process and playback and the judgement lacked test result, especially lacks the judgement of the test result of the change correctness to application interface.
Summary of the invention
The object of the application is the method for testing and the device that propose a kind of improvement, solves the technical matters that above background technology part is mentioned.
On the one hand, this application provides a kind of method of testing, described method comprises: obtain recorded information sequence, the every bar recorded information in wherein said recorded information sequence comprise the click location coordinate of corresponding first clicking operation in the first clicking operation sequence to application to be measured, click time and described application to be measured comprise the area pixel reference value of viewing area; Based on described recorded information sequence, the second clicking operation is performed successively to described application to be measured, and obtain area pixel reference value corresponding to described second clicking operation; Based on the comparison of area pixel reference value corresponding to the first clicking operation that the area pixel reference value that the second clicking operation is corresponding is corresponding to described recorded information sequence, determine that whether described application to be measured is by test.
In certain embodiments, describedly determine whether described application to be measured is comprised by test: if for each second clicking operation performed successively, area pixel reference value corresponding to the first clicking operation that area pixel reference value corresponding to the second clicking operation is corresponding to described recorded information sequence is all mated, then determine that described application to be measured is by test.
In certain embodiments, describedly determine described application to be measured whether by test, comprise: if area pixel reference value corresponding to area pixel reference value corresponding to the second clicking operation first clicking operation corresponding to described recorded information sequence is not mated, then determine described application to be measured by test.
In certain embodiments, described method also comprises: after determining that described application to be measured is not by test, and the display unsanctioned relevant information of test also stops performing the second follow-up clicking operation.
In certain embodiments, described second clicking operation is performed successively to described application to be measured, comprising: judge the second clicking operation perform before described application to be measured comprise viewing area the area pixel reference value that whether comprises with the Article 1 recorded information in described recorded information sequence of area pixel reference value match; If so, then the second clicking operation is performed successively to described application to be measured.
In certain embodiments, the School Affairs of described area pixel reference value comprise the to by described application to be measured pixel value of the pixel of viewing area.
On the other hand, this application provides a kind of proving installation, described device comprises: acquiring unit, be configured for and obtain recorded information sequence, the every bar recorded information in wherein said recorded information sequence comprise the click location coordinate of corresponding first clicking operation in the first clicking operation sequence to application to be measured, click time and described application to be measured comprise the area pixel reference value of viewing area; Performance element, is configured for based on described recorded information sequence, performs the second clicking operation successively to described application to be measured, and obtains area pixel reference value corresponding to described second clicking operation; Determining unit, is configured for the comparison based on area pixel reference value corresponding to the first clicking operation that the area pixel reference value that the second clicking operation is corresponding is corresponding to described recorded information sequence, determines that whether described application to be measured is by test.
In certain embodiments, described determining unit comprises: the first determination module, if be configured for for each second clicking operation performed successively, area pixel reference value corresponding to the first clicking operation that area pixel reference value corresponding to the second clicking operation is corresponding to described recorded information sequence is all mated, then determine that described application to be measured is by test.
In certain embodiments, described determining unit comprises: the second determination module, if the area pixel reference value being configured for area pixel reference value corresponding to the second clicking operation first clicking operation corresponding to described recorded information sequence corresponding is not mated, then determine described application to be measured not by test.
In certain embodiments, described device also comprises: result treatment unit, be configured for after described second determination module determines that described application to be measured is not by test, the display unsanctioned relevant information of test also indicates described performance element to stop performing the second follow-up clicking operation.
In certain embodiments, described performance element comprises: judge module, be configured for judge the second clicking operation perform before described application to be measured comprise viewing area the area pixel reference value that whether comprises with the Article 1 recorded information in described recorded information sequence of area pixel reference value match; Execution module, is configured for if then perform the second clicking operation successively to described application to be measured.
In certain embodiments, the School Affairs of described area pixel reference value comprise the to by described application to be measured pixel value of the pixel of viewing area.
The method of testing that the application provides and device, by obtaining recorded information sequence, perform the second clicking operation successively based on the application to be measured of recorded information sequence pair subsequently and obtain area pixel reference value corresponding to above-mentioned second clicking operation, last again based on the comparison of area pixel reference value corresponding to the first clicking operation that the area pixel reference value that the second clicking operation is corresponding is corresponding to above-mentioned recorded information sequence, thus determine that whether application to be measured is by test, achieve the automatic decision of the change correctness to application interface to be measured, thus contribute to realizing application testing more efficiently.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, the other features, objects and advantages of the application will become more obvious:
Fig. 1 is the process flow diagram of an embodiment of method of testing according to the application;
Fig. 2 is the process flow diagram of an embodiment of generation recorded information sequence according to the application;
Fig. 3 a is the effect schematic diagram of the display interface of an application of opening according to the application;
Fig. 3 b is the effect schematic diagram covering a transparent window on the display interface applied shown in Fig. 3 a according to the application;
Fig. 4 is the process flow diagram of another embodiment of method of testing according to the application;
Fig. 5 is the structural representation of an embodiment of proving installation according to the application.
Embodiment
Below in conjunction with drawings and Examples, the application is described in further detail.Be understandable that, specific embodiment described herein is only for explaining related invention, but not the restriction to this invention.It also should be noted that, for convenience of description, in accompanying drawing, illustrate only the part relevant to Invention.
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present application and appended claims is also intended to comprise most form, unless context clearly represents other implications.
Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining " or " in response to detection ".Similarly, depend on linguistic context, phrase " if determination " or " if detecting (the conditioned disjunction event of statement) " can be construed as " when determining " or " in response to determining " or " when detecting (the conditioned disjunction event of statement) " or " in response to detection (the conditioned disjunction event of statement) ".Below with reference to the accompanying drawings and describe the application in detail in conjunction with the embodiments.
Please refer to Fig. 1, it illustrates the flow process 100 of an embodiment of the method for testing according to the application.The present embodiment is mainly applied in this way in the electronic equipment including display screen and illustrates, this electronic equipment can comprise desk-top computer, pocket computer on knee, smart mobile phone, panel computer, E-book reader, MP3 player (Moving Picture ExpertsGroup Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio frequency aspect 4) player etc.Described method of testing, comprises the following steps:
Step 101, obtains recorded information sequence.
In the present embodiment, in order to test application (such as browser application, map class application etc.), the electronic equipment performing test job needs the recorded information sequence first obtaining this application.Wherein, the sequence that recorded information sequence is made up of according to particular order (such as time sequencing) at least one recorded information, the every bar recorded information in this sequence comprise the click location coordinate of corresponding first clicking operation in the first clicking operation sequence to application to be measured, click time and above-mentioned application to be measured comprise the area pixel reference value of viewing area.
In the present embodiment, above-mentioned recorded information sequence can be kept in test case file, this test case file can be stored in again in the storer of the electronic equipment self performing test job, and at this moment, this electronic equipment directly locally can obtain this test case file; Above-mentioned test case file can also be stored in remote server (such as to testing the background server provided support), at this moment, this electronic equipment can receive this test case file by wired connection mode or radio connection from remote server.Above-mentioned radio connection includes but not limited to 3G/4G connection, WiFi connection, bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection and other radio connection developed known or future now.
For each embody rule, it can be different for testing adopted recorded information sequence to it, and Fig. 2 gives the process flow diagram of an embodiment of the generation recorded information sequence according to the application.The generation method 200 of this recorded information sequence, comprises the following steps:
Step 201, opens the application needing test.
In the present embodiment, the user of electronic equipment can open the application needing test.As shown in Figure 3 a, Fig. 3 a shows the effect schematic diagram of the display interface of the application that is opened.
Step 202, creates record window.
Then, the transparent and record window that covers to be measured apply above consistent with application size to be measured is created.Fig. 3 b shows the effect schematic diagram covering a transparent window 301 in the application of opening.Note that for illustrated object, transparent window 301 represents with the square frame with oblique line in fig 3b, but this transparent window 301 also can can't see oblique line thus completely transparent.
Step 203, catches the click event sequence on record window, and generates recorded information sequence according to this click event sequence.
In this step, can catch the click event that transparent window 301 occurs (such as mouse clicks time or finger click event).When user carries out clicking operation by mouse or finger to application to be measured, when namely there occurs click event, what in fact this user clicked is transparent window 301.
When there occurs one click event, a recorded information can be generated by means of the click event of transparent window 301 catches, this recorded information can comprise: the click location coordinate corresponding with this clicking operation, such as, with the position coordinates that rectangular coordinate system represents; The click time, this click time can be relative time, and such as during first time clicking operation, this click time is registered as 0 second, and then its click time is registered as 2 seconds to the second time clicking operation occurred afterwards for 2 seconds; And, this to be measured application corresponding with this clicking operation comprise the area pixel reference value of viewing area (namely transparent window 301 overlay areas).
In this application, area pixel reference value can adopt but be not limited to following value: this application to be measured comprise the summation of the pixel value of the pixel of viewing area; This application to be measured comprise the pixel value sum of the pixel of the odd/even pixel column of viewing area; Application to be measured comprise the School Affairs of the pixel value of some or all pixel of viewing area, such as, the checking algorithm that can pass through CRC (Cyclic Redundancy Check, cyclic redundancy check (CRC)) algorithm or Adler-32 algorithm and so on to come in zoning all or the School Affairs of the pixel value of some pixel.It should be noted that, after clicking operation, the screen display of application to be measured may change, thus, area pixel reference value corresponding respectively before and after clicking operation also may be different, and the present embodiment can record the area pixel reference value before screen display changes.
In this step, based on each bar recorded information generated according to each click event, finally can generate recorded information sequence, and this recorded information sequence is kept in test case file.
Step 102, based on recorded information sequence, performs the second clicking operation successively to application to be measured, and obtains area pixel reference value corresponding to above-mentioned second clicking operation.
In the present embodiment, perform the electronic equipment of test job after obtaining recorded information sequence by step 101, based on each bar recorded information in above-mentioned recorded information sequence, according to time sequencing (sequencing of the click time such as comprised according to each bar recorded information), the second clicking operation is performed to application to be measured.Wherein, the click time of above-mentioned second clicking operation is corresponding with the click time of the first clicking operation corresponding to this second clicking operation, and the click location of above-mentioned second clicking operation is also corresponding with the click location of the first clicking operation corresponding to this second clicking operation.When execution the second clicking operation, also area pixel reference value corresponding to this second clicking operation will be obtained.
Exemplarily, if the recorded information corresponding with m (m is natural number) order one clicking operation comprises: the click location coordinate (x corresponding with this m order one clicking operation, y), wherein with application to be measured comprise the lower left corner of viewing area for initial point, x is the horizontal ordinate of click location, y is the ordinate of click location, and x, y are specifically as follows number of pixels; The click time is s (s is natural number) second, and this click time is relative time, namely have passed through s second relative to m-1 order one clicking operation; This to be measured application institute corresponding with this m order one clicking operation comprises the area pixel reference value w1 of viewing area, this w1 be this m application to be measured that a clicking operation is corresponding one after another comprise the summation of the pixel value of the pixel of viewing area.At this moment, can perform as follows and the m time the second clicking operation that above-mentioned m order one clicking operation is corresponding: s second after the m-1 time the second clicking operation, carry out clicking operation at position coordinates (x, y) place; Meanwhile, obtain the to be measured application corresponding with above-mentioned clicking operation comprise the summation w2 of the pixel value of the pixel of viewing area.
Step 103, based on the comparison of area pixel reference value corresponding to the first clicking operation that the area pixel reference value that the second clicking operation is corresponding is corresponding to recorded information sequence, determines that whether application to be measured is by test.
In the present embodiment, the electronic equipment performing test job can obtain area pixel reference value corresponding to the second clicking operation by means of step 102; Afterwards, the area pixel reference value of the first clicking operation (the first namely corresponding with this second clicking operation clicking operation) corresponding to recorded information sequence for this area pixel reference value can compare by it, namely compare these two area pixel reference values whether consistent or coupling, finally determine that whether above-mentioned application to be measured is by test according to the result compared.Such as, according to the example in step 102, above-mentioned electronic equipment can compare the magnitude relationship between area pixel reference value w1 corresponding to the m order one clicking operation area pixel reference value w2 corresponding with the m time the second clicking operation.
In some optional implementations of the present embodiment, can according to determining application to be measured with under type whether by test: if for each second clicking operation performed successively, area pixel reference value corresponding to the first clicking operation that area pixel reference value corresponding to the second clicking operation is corresponding to above-mentioned recorded information sequence is all mated, then determine that above-mentioned application to be measured is by test.That is, the area pixel reference value that the area pixel reference value only having each second clicking operation to obtain and the first corresponding clicking operation obtain is mated, and could determine that above-mentioned application to be measured is by test.
In some optional implementations of the present embodiment, can also according to determine application to be measured with under type whether by test: if area pixel reference value corresponding to area pixel reference value corresponding to the second clicking operation first clicking operation corresponding in above-mentioned recorded information sequence is not mated, then determine above-mentioned application to be measured by testing.That is, as long as the area pixel reference value that the area pixel reference value that obtains of any one second clicking operation and the first corresponding clicking operation obtain does not match, above-mentioned application to be measured just can be determined by test.Alternatively, after determining that above-mentioned application to be measured is not by test, the unsanctioned relevant information of test (such as showing the information of " test is not passed through ") can also be shown and stop performing the second follow-up clicking operation.
For the present embodiment, the scene of application can be, after electronic equipment obtains and comprises the test case file of recorded information sequence, click location coordinate included by each recorded information in above-mentioned recorded information sequence and click temporal information, automatically the second clicking operation is performed successively to application to be measured, and relatively determine that whether application to be measured is by testing based on the area pixel reference value that the second clicking operation the is corresponding area pixel reference value corresponding with the first corresponding clicking operation.The method that above-described embodiment of the application provides contributes to realizing the more efficient test to application.
With further reference to Fig. 4, it illustrates the flow process 400 of another embodiment of the method for testing according to the application.The flow process 400 of this method of testing, comprises the following steps:
Step 401, obtains recorded information sequence.
In the present embodiment, need first to obtain the recorded information sequence of this application to applying the electronic equipment tested.Wherein, the sequence that recorded information sequence is made up of according to particular order (such as time sequencing) at least one recorded information, the every bar recorded information in this sequence comprise the click location coordinate of corresponding first clicking operation in the first clicking operation sequence to application to be measured, click time and above-mentioned application to be measured comprise the area pixel reference value of viewing area.
Step 402, judge application to be measured comprise viewing area the area pixel reference value that whether comprises with the Article 1 recorded information in above-mentioned recorded information sequence of area pixel reference value match.
In the present embodiment, electronic equipment is before the recorded information sequence obtained based on step 401 performs test, first judge above-mentioned application to be measured comprise viewing area the area pixel reference value that whether comprises with the Article 1 recorded information in above-mentioned recorded information sequence of area pixel reference value match, to judge whether application to be measured is in the state can carrying out proper testing.
If above-mentioned two area pixel reference values are couplings, then illustrate the clicking operation corresponding to Article 1 recorded information of the state of at this moment application to be measured and above-mentioned recorded information sequence occur before state consistent, that is, application to be measured is in the state can carrying out proper testing.
Step 403, if so, then based on recorded information sequence, performs the second clicking operation successively to application to be measured, and obtains area pixel reference value corresponding to the second clicking operation.
In the present embodiment, perform the electronic equipment of test job when the judged result of step 402 is for being, based on each bar recorded information in the recorded information sequence that step 401 obtains, according to time sequencing (sequencing of the click time such as comprised according to each bar recorded information), the second clicking operation is performed to application to be measured.When execution the second clicking operation, also obtain the area pixel reference value that this second clicking operation is corresponding.
Step 404, based on the comparison of area pixel reference value corresponding to the first clicking operation that the area pixel reference value that the second clicking operation is corresponding is corresponding to recorded information sequence, determines that whether application to be measured is by test.
In the present embodiment, the electronic equipment performing test job can obtain area pixel reference value corresponding to the second clicking operation by means of step 403; Afterwards, the area pixel reference value of the first clicking operation (the first namely corresponding with this second clicking operation clicking operation) corresponding to recorded information sequence for this area pixel reference value can compare by it, namely compare these two area pixel reference values whether consistent or coupling, finally determine that whether above-mentioned application to be measured is by test according to the result compared.
In the present embodiment, the step 401 in above-mentioned realization flow, step 403 and step 404 are substantially identical with the step 101 in previous embodiment, step 102 and step 103 respectively, do not repeat them here.
As can be seen from Figure 4, the embodiment corresponding with Fig. 1 unlike, the flow process 400 of the method for testing in the present embodiment had more judge application to be measured comprise viewing area the step 402 that matches of the area pixel reference value that whether comprises with the Article 1 recorded information in recorded information sequence of area pixel reference value.By the step 402 increased, whether the scheme that the present embodiment describes contributes to determining test environment normal initialization, and this contributes to realizing more effective application testing.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides an a kind of embodiment of proving installation, this device embodiment is corresponding with the embodiment of the method shown in Fig. 1, and this device specifically can be applied in electronic equipment.
As shown in Figure 5, the proving installation 500 described in the present embodiment comprises: acquiring unit 501, performance element 502 and determining unit 503.Wherein, acquiring unit 501 is configured for and obtains recorded information sequence, the every bar recorded information wherein in this recorded information sequence comprise the click location coordinate of corresponding first clicking operation in the first clicking operation sequence to application to be measured, click time and this application to be measured comprise the area pixel reference value of viewing area; Performance element 502 is configured for based on this recorded information sequence, performs the second clicking operation successively to this application to be measured, and obtains area pixel reference value corresponding to this second clicking operation; And determining unit 503 is configured for the comparison based on area pixel reference value corresponding to the first clicking operation that the area pixel reference value that the second clicking operation is corresponding is corresponding to this recorded information sequence, determine that whether this application to be measured is by test.
In the present embodiment, in order to test application (such as browser application, map class application etc.), proving installation 500 needs the recorded information sequence first being obtained this application by acquiring unit 501.Wherein, the sequence that recorded information sequence is made up of according to particular order (such as time sequencing) at least one recorded information, the every bar recorded information in this sequence comprise the click location coordinate of corresponding first clicking operation in the first clicking operation sequence to application to be measured, click time and above-mentioned application to be measured comprise the area pixel reference value of viewing area.
In the present embodiment, proving installation 500 is after obtaining recorded information sequence by acquiring unit 501, performance element 502 can based on each bar recorded information in above-mentioned recorded information sequence, performs the second clicking operation to application to be measured according to time sequencing (the click time such as comprised according to recorded information and from the order after arriving first).When execution the second clicking operation, performance element 502 can also obtain area pixel reference value corresponding to this second clicking operation.
In the present embodiment, proving installation 500 can obtain area pixel reference value corresponding to the second clicking operation by means of performance element 502; Afterwards, the area pixel reference value of the first clicking operation (the first namely corresponding with this second clicking operation clicking operation) corresponding to recorded information sequence for this area pixel reference value can compare by determining unit 503, finally determines that whether above-mentioned application to be measured is by test according to the result compared.
Alternatively, if for each second clicking operation performed successively, area pixel reference value corresponding to the first clicking operation that area pixel reference value corresponding to the second clicking operation is corresponding to above-mentioned recorded information sequence is all mated, then determining unit 503 determines that above-mentioned application to be measured is by test.And if area pixel reference value corresponding to area pixel reference value corresponding to the second clicking operation first clicking operation corresponding to above-mentioned recorded information sequence is not mated, then determining unit 503 determines above-mentioned application to be measured by test.
It will be understood by those skilled in the art that above-mentioned proving installation 500 also comprises some other known features, such as processor, storeies etc., in order to unnecessarily fuzzy embodiment of the present disclosure, these known structures are not shown in Figure 5.In addition, should be appreciated that, the coupling each other of shown or discussed units/modules or connect can be electrically, the direct-coupling of machinery or other form or directly connect, also can be by the indirect coupling of some interfaces, device or module or indirectly connect.
Unit involved in the embodiment of the present application can be realized by the mode of software, also can be realized by the mode of hardware.Described unit also can be arranged within a processor, such as, can be described as: a kind of processor comprises acquiring unit, performance element and determining unit.Wherein, the title of these unit does not form the restriction to this unit itself under certain conditions, and such as, acquiring unit can also be described to " being configured for the unit obtaining recorded information sequence ".
As another aspect, present invention also provides a kind of computer-readable recording medium, this computer-readable recording medium can be the computer-readable recording medium comprised in device described in above-described embodiment; Also can be individualism, be unkitted the computer-readable recording medium allocated in electronic equipment.Described computer-readable recording medium stores more than one or one program, and described program is used for performance description in the method for testing of the application by one or more than one processor.
More than describe and be only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art are to be understood that, invention scope involved in the application, be not limited to the technical scheme of the particular combination of above-mentioned technical characteristic, also should be encompassed in when not departing from described inventive concept, other technical scheme of being carried out combination in any by above-mentioned technical characteristic or its equivalent feature and being formed simultaneously.The technical characteristic that such as, disclosed in above-mentioned feature and the application (but being not limited to) has similar functions is replaced mutually and the technical scheme formed.

Claims (12)

1. a method of testing, is characterized in that, described method comprises:
Obtain recorded information sequence, the every bar recorded information in wherein said recorded information sequence comprise the click location coordinate of corresponding first clicking operation in the first clicking operation sequence to application to be measured, click time and described application to be measured comprise the area pixel reference value of viewing area;
Based on described recorded information sequence, the second clicking operation is performed successively to described application to be measured, and obtain area pixel reference value corresponding to described second clicking operation;
Based on the comparison of area pixel reference value corresponding to the first clicking operation that the area pixel reference value that the second clicking operation is corresponding is corresponding to described recorded information sequence, determine that whether described application to be measured is by test.
2. method according to claim 1, is characterized in that, describedly determines whether described application to be measured is comprised by test:
If for each second clicking operation performed successively, area pixel reference value corresponding to the first clicking operation that area pixel reference value corresponding to the second clicking operation is corresponding to described recorded information sequence is all mated, then determine that described application to be measured is by test.
3. method according to claim 1, is characterized in that, describedly determines described application to be measured whether by test, comprising:
If area pixel reference value corresponding to the first clicking operation that area pixel reference value corresponding to the second clicking operation is corresponding to described recorded information sequence is not mated, then determine described application to be measured by test.
4. method according to claim 3, is characterized in that, described method also comprises: after determining that described application to be measured is not by test, and the display unsanctioned relevant information of test also stops performing the second follow-up clicking operation.
5. according to the method one of claim 1-4 Suo Shu, it is characterized in that, described second clicking operation performed successively to described application to be measured, comprising:
Judge the second clicking operation perform before described application to be measured comprise viewing area the area pixel reference value that whether comprises with the Article 1 recorded information in described recorded information sequence of area pixel reference value match;
If so, then the second clicking operation is performed successively to described application to be measured.
6. according to the method one of claim 1-4 Suo Shu, it is characterized in that, described area pixel reference value comprises by described application to be measured the School Affairs of the pixel value of the pixel of viewing area.
7. a proving installation, is characterized in that, described device comprises:
Acquiring unit, be configured for and obtain recorded information sequence, the every bar recorded information in wherein said recorded information sequence comprise the click location coordinate of corresponding first clicking operation in the first clicking operation sequence to application to be measured, click time and described application to be measured comprise the area pixel reference value of viewing area;
Performance element, is configured for based on described recorded information sequence, performs the second clicking operation successively to described application to be measured, and obtains area pixel reference value corresponding to described second clicking operation;
Determining unit, is configured for the comparison based on area pixel reference value corresponding to the first clicking operation that the area pixel reference value that the second clicking operation is corresponding is corresponding to described recorded information sequence, determines that whether described application to be measured is by test.
8. device according to claim 7, is characterized in that, described determining unit comprises:
First determination module, if be configured for for each second clicking operation performed successively, area pixel reference value corresponding to the first clicking operation that area pixel reference value corresponding to the second clicking operation is corresponding to described recorded information sequence is all mated, then determine that described application to be measured is by test.
9. device according to claim 7, is characterized in that, described determining unit comprises:
Second determination module, if the area pixel reference value being configured for area pixel reference value corresponding to the second clicking operation first clicking operation corresponding to described recorded information sequence corresponding is not mated, then determines described application to be measured not by test.
10. device according to claim 9, it is characterized in that, described device also comprises: result treatment unit, be configured for after described second determination module determines that described application to be measured is not by test, the display unsanctioned relevant information of test also indicates described performance element to stop performing the second follow-up clicking operation.
11., according to the device one of claim 7-10 Suo Shu, is characterized in that, described performance element comprises:
Judge module, be configured for judge the second clicking operation perform before described application to be measured comprise viewing area the area pixel reference value that whether comprises with the Article 1 recorded information in described recorded information sequence of area pixel reference value match;
Execution module, is configured for if then perform the second clicking operation successively to described application to be measured.
12., according to the device one of claim 7-10 Suo Shu, is characterized in that, described area pixel reference value comprises by described application to be measured the School Affairs of the pixel value of the pixel of viewing area.
CN201510109236.3A 2015-03-12 2015-03-12 Test method and device Pending CN104699610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510109236.3A CN104699610A (en) 2015-03-12 2015-03-12 Test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510109236.3A CN104699610A (en) 2015-03-12 2015-03-12 Test method and device

Publications (1)

Publication Number Publication Date
CN104699610A true CN104699610A (en) 2015-06-10

Family

ID=53346763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510109236.3A Pending CN104699610A (en) 2015-03-12 2015-03-12 Test method and device

Country Status (1)

Country Link
CN (1) CN104699610A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446073A (en) * 2018-09-28 2019-03-08 天津字节跳动科技有限公司 A kind of software collaboration test method, device and electronic equipment
CN110046009A (en) * 2019-02-19 2019-07-23 阿里巴巴集团控股有限公司 Method for recording, device, server and readable storage medium storing program for executing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android-platform-based automated testing method and testing tool
CN103268289A (en) * 2013-06-18 2013-08-28 北京云测信息技术有限公司 Method and system for transcribing and applying test script on mobile terminal
CN103365779A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Software test method and system
CN103577322A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 Click testing method and device
CN103810106A (en) * 2014-03-06 2014-05-21 安一恒通(北京)科技有限公司 Method and device for testing fluency of interfaces
CN103955428A (en) * 2014-04-30 2014-07-30 百度在线网络技术(北京)有限公司 Method and equipment for testing response speed of application
CN104407980A (en) * 2014-12-17 2015-03-11 用友软件股份有限公司 Mobile application automated testing device and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android-platform-based automated testing method and testing tool
CN103577322A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 Click testing method and device
CN103268289A (en) * 2013-06-18 2013-08-28 北京云测信息技术有限公司 Method and system for transcribing and applying test script on mobile terminal
CN103365779A (en) * 2013-07-09 2013-10-23 广东欧珀移动通信有限公司 Software test method and system
CN103810106A (en) * 2014-03-06 2014-05-21 安一恒通(北京)科技有限公司 Method and device for testing fluency of interfaces
CN103955428A (en) * 2014-04-30 2014-07-30 百度在线网络技术(北京)有限公司 Method and equipment for testing response speed of application
CN104407980A (en) * 2014-12-17 2015-03-11 用友软件股份有限公司 Mobile application automated testing device and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446073A (en) * 2018-09-28 2019-03-08 天津字节跳动科技有限公司 A kind of software collaboration test method, device and electronic equipment
CN109446073B (en) * 2018-09-28 2022-05-24 天津字节跳动科技有限公司 Software collaborative testing method and device and electronic equipment
CN110046009A (en) * 2019-02-19 2019-07-23 阿里巴巴集团控股有限公司 Method for recording, device, server and readable storage medium storing program for executing
CN110046009B (en) * 2019-02-19 2022-08-23 创新先进技术有限公司 Recording method, recording device, server and readable storage medium

Similar Documents

Publication Publication Date Title
US7584435B2 (en) Web usage overlays for third-party web plug-in content
CN103810089B (en) Automatically testing gesture-based applications
CN104102643B (en) A kind of method and apparatus for carrying out page snapshot
US8823794B2 (en) Measuring device user experience through display outputs
US8819630B2 (en) Automatic test tool for webpage design with micro-browsers on mobile platforms
CN105453052B (en) Method for assessing user interface and computing device
CN107025174B (en) Method, device and readable storage medium for user interface anomaly test of equipment
US9213625B1 (en) Method and apparatus for performing automated user-interface layout testing
US10216377B2 (en) Visual regression analysis
CN107666987A (en) Robotic process automates
US20120151318A1 (en) Method and system for generating inspection data and using the inspection data for recording observations of an inspection site
CN103814373A (en) Automatic classification adjustment of recorded actions for automation script
CN107562338A (en) Picture inspection method, device, electronic equipment and storage medium
US9560272B2 (en) Electronic device and method for image data processing
JP2021507436A (en) Dynamic Web page visitor behavior analysis information providing device and website visitor behavior analysis information providing method using this device
CN103345738B (en) Method for checking object based on area-of-interest and device
CN110321278B (en) System testing method and device, computer equipment and storage medium
CN104699610A (en) Test method and device
CN109165372B (en) Webpage loading method, device, equipment and storage medium
US20160196240A1 (en) Method of displaying content and electronic device implementing same
JP2021507435A (en) Dynamic Web page visitor behavior analysis information providing device and website visitor behavior analysis information providing method using this device
CN107145494A (en) A kind of method and device for browsing thumbnail in webpage
JP2009223568A (en) Scenario-generating device and program
CN107515821B (en) Control testing method and device
CN111258875A (en) Interface test method and system, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150610

RJ01 Rejection of invention patent application after publication