CN105512043A - Test method and device - Google Patents

Test method and device Download PDF

Info

Publication number
CN105512043A
CN105512043A CN201510983340.5A CN201510983340A CN105512043A CN 105512043 A CN105512043 A CN 105512043A CN 201510983340 A CN201510983340 A CN 201510983340A CN 105512043 A CN105512043 A CN 105512043A
Authority
CN
China
Prior art keywords
test
display screen
terminal
application
test target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510983340.5A
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.)
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 CN201510983340.5A priority Critical patent/CN105512043A/en
Publication of CN105512043A publication Critical patent/CN105512043A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a test method and device. The embodiment of the method comprises the specific steps of obtaining test information, wherein the test information comprises a test target on a predetermined display interface with application to be tested and test operation of the test target; based on parameters of a display screen of a terminal connected to a local device, setting the display size of a browse window of the local device, and determining the mapping relation between the browse window of the local device and the display screen of the terminal; according to the determined mapping relation, executing the test operation on the test target which is located on the predetermined display interface with application to be tested and displayed on the display screen, and returning result information of the test operation. By means of the implementation mode, automated testing of an application front end is achieved, the test process is simplified, and test efficiency is improved.

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, the conventional means of application testing comprises manual test and automatic test.Manual test needs tester to spend the plenty of time to go consuming time, effort, uninteresting, the test assignment that repeats, and testing efficiency is low.Automatic test mainly rely on equipment self carry operating system support test frame carry out, different operating system (such as ios, android) uses different test frames, often kind of test frame relies on all by force the interface that operating system itself provides, use different development processs, need to build different development environments, have a strong impact on testing efficiency, secondly above-mentioned automatization testing technique can only support that limited front end displaying application is tested, and application coverage rate is wide not.
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.
First aspect, this application provides a kind of method of testing, and described method comprises: obtain detecting information, wherein said detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to described test target; Based on be connected to the machine terminal display screen optimum configurations the machine browse window display size, determine the mapping relations browsing the display screen of window and described terminal of the machine; According to determined mapping relations, the test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation.
In certain embodiments, described according to determined mapping relations, test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation, comprise: sectional drawing process is carried out in the test target region on the described predetermined display interface browsing the application described to be measured that window shows of the machine, obtains test target sectional drawing; Adjust according to the size of determined mapping relations by described test target sectional drawing; Test target sectional drawing after adjustment is mated with the screenshot capture of the described terminal of reception, the position coordinates of the test target on the described predetermined display interface of the application described to be measured that the display screen of described terminal shows is determined according to matching result, wherein, described screenshot capture is that the described predetermined display interface that display screen to described terminal shows carries out sectional drawing and obtains; Described test operation is performed to the test target at described position coordinates place and returns the object information of test operation.
In certain embodiments, described according to determined mapping relations, test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation, comprise: receive the test result image that described terminal returns, wherein, described test result image after described test operation is complete, carries out sectional drawing to the interface that the display screen of described terminal shows obtain.
In certain embodiments, described based on be connected to the machine terminal display screen optimum configurations the machine browse window display size after, described method also comprises: the described predetermined display interface showing described application to be measured on the display screen browsing window and described terminal of the machine respectively.
In certain embodiments, described terminal is mobile terminal.
Second aspect, this application provides a kind of proving installation, described device comprises: acquiring unit, is configured for acquisition detecting information, and wherein said detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to described test target; Determining unit, be configured for based on the terminal being connected to the machine display screen optimum configurations the machine browse window display size, determine the mapping relations browsing the display screen of window and described terminal of the machine; Test cell, is configured for according to determined mapping relations, and the test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation.
In certain embodiments, described test cell is configured for further: sectional drawing process is carried out in the test target region on the described predetermined display interface browsing the application described to be measured that window shows of the machine, obtains test target sectional drawing; Adjust according to the size of determined mapping relations by described test target sectional drawing; Test target sectional drawing after adjustment is mated with the screenshot capture of the described terminal of reception, the position coordinates of the test target on the described predetermined display interface of the application described to be measured that the display screen of described terminal shows is determined according to matching result, wherein, described screenshot capture is that the described predetermined display interface that display screen to described terminal shows carries out sectional drawing and obtains; Described test operation is performed to the test target at described position coordinates place and returns the object information of test operation.
In certain embodiments, described test cell is configured for further: receive the test result image that described terminal returns, wherein, described test result image after described test operation is complete, carries out sectional drawing to the interface that the display screen of described terminal shows obtain.
In certain embodiments, described device also comprises: display unit, is configured for the described predetermined display interface showing described application to be measured on the display screen browsing window and described terminal of the machine respectively.
In certain embodiments, described terminal is mobile terminal.
The method of testing that the application provides and device, by determining the mapping relations browsing the display screen of window and terminal of the machine, then based on determined mapping relations, predetermined test operation is performed to the test target on the predetermined display interface of the application to be measured that the display screen of terminal shows, and return the object information of test, thus tester without the need under building development environment, writing the prerequisite of test code, realize the automatic test of application front end, simplify test process, improve testing efficiency.
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 exemplary system architecture figure that the application can be applied to wherein;
Fig. 2 is the process flow diagram of an embodiment of method of testing according to the application;
Fig. 3 is the schematic diagram of an application scenarios of method of testing 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;
Fig. 6 is the structural representation of the computer system be suitable for for the terminal device or server realizing the embodiment of the present 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.Below with reference to the accompanying drawings and describe the application in detail in conjunction with the embodiments.
Fig. 1 shows the exemplary system architecture 100 can applying the method for testing of the application or the embodiment of proving installation.
As shown in Figure 1, system architecture 100 can comprise test terminal equipment 101, measured terminal equipment 102, network 103 and server 104.Can be communicated by various connected mode (such as wired connection, wireless connections) between test terminal equipment 101 and measured terminal equipment 102, such as test terminal equipment 101 can directly be tested the application that measured terminal equipment 102 is installed by wired connection mode.Network 103 is in order between test terminal equipment 101 and server 104 and provide the medium of communication link between measured terminal equipment 102 and server 104.Network 103 can comprise various connection type, such as wired, wireless communication link or fiber optic cables etc.
User can use test terminal equipment 101, measured terminal equipment 102 mutual by network 103 and server 104, to receive or to send message etc.Test terminal equipment 101 can be provided with various browser application, measured terminal equipment 102 can be installed the application of various telecommunication customer end, such as web browser applications, the application of shopping class, search class application, JICQ, mailbox client, social platform software etc.
Test terminal equipment 101, measured terminal equipment 102 can be the various electronic equipments with display screen, such as test terminal equipment 101 can include but not limited to desk-top computer, pocket computer on knee, panel computer etc., measured terminal equipment 102 can include but not limited to smart mobile phone, E-book reader, MP3 player (MovingPictureExpertsGroupAudioLayerIII, dynamic image expert compression standard audio frequency aspect 3), MP4 (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert compression standard audio frequency aspect 4) player etc.
Server 104 can be to provide the server of various service, such as, to the backstage web page server that the webpage of display on test terminal equipment 101, measured terminal equipment 102 provides support.
It should be noted that, the method for testing that the embodiment of the present application provides generally is performed by test terminal equipment 101, and correspondingly, proving installation is generally positioned in test terminal equipment 101.
Should be appreciated that, the number of the test terminal equipment in Fig. 1, measured terminal equipment, network and server is only schematic.According to realizing needs, the test terminal equipment of arbitrary number, measured terminal equipment, network and server can be had.
Continue with reference to figure 2, show the flow process 200 of an embodiment of the method for testing according to the application.Described method of testing, comprises the following steps:
Step 201, obtains detecting information.
In the present embodiment, in order to test application to be measured, the electronic equipment (the test terminal equipment in such as Fig. 1) performing test job needs to obtain the detecting information of user for this application configuration to be measured, wherein, above-mentioned detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to this test target.Here, application (such as browser application is shown in the above-mentioned application to be measured various front ends that can be mounted in terminal (the measured terminal equipment 102 in such as Fig. 1), search class is applied, the application etc. of embedded front end display function), above-mentioned test target can be web page element (such as word, picture, website links, image link etc.), also can be the button etc. on predetermined display page, above-mentioned test operation can be the various operations for above-mentioned test target, such as click, slide, Text Input, stir, pressing, double-click, hovering etc., especially click, slide and Text Input.In the present embodiment, above-mentioned detecting information directly can be inputted by above-mentioned electronic equipment by user.
Step 202, based on be connected to the machine terminal display screen optimum configurations the machine browse window display size, determine the mapping relations browsing the display screen of window and terminal of the machine.
In the present embodiment, above-mentioned electronic equipment can be communicated by wired connection mode or radio connection with above-mentioned terminal, wherein, above-mentioned radio connection includes but not limited to the radio connection that bluetooth connects, WiFi connects and other are developed now known or future.Above-mentioned electronic equipment can browse window display size according to the display screen optimum configurations the machine of the above-mentioned terminal obtained in advance, such as, above-mentioned electronic equipment can according to the resolution of the display screen of above-mentioned terminal, dots per inch (dpi, equipment independent pixel (the DP browsing window of parameter acquiring the machine such as dotsperinch), deviceindependentpixels), and use this equipment independent pixel that the machine is set browse window display size.Afterwards, above-mentioned electronic equipment is according to the mapping relations browsing the display screen of window and terminal browsing display screen parameter determination the machine of the display screen of window display size and terminal arranged.
In some optional implementations of the present embodiment, above-mentioned terminal can be mobile terminal, such as, can be mobile phone or the panel computer of having installed different operating system (such as ios, android).
Step 203, according to determined mapping relations, performs test operation to the test target on the predetermined display interface of the application to be measured that the display screen of terminal shows and returns the object information of test operation.
In the present embodiment, first above-mentioned electronic equipment positions above-mentioned test target the machine, such as above-mentioned electronic equipment can position above-mentioned test target according to existing front end element locator meams, afterwards according to the mapping relations browsing the display screen of window and terminal of the machine determined in step 202, the position coordinates of test target is determined in the predetermined display interface of the application above-mentioned to be measured then shown from the display screen of above-mentioned terminal, finally above-mentioned test operation performed to this position coordinates and return the object information of test operation, wherein, the above results information can text message, voice messaging, image information etc.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can receive the test result image that above-mentioned terminal returns, wherein, above-mentioned test result image after above-mentioned test operation is complete, carries out sectional drawing to the interface that the display screen of above-mentioned terminal shows obtain.Usually, user can judge according to the test result image returned to perform the result after test operation to test target, such as, if test target is an image link on webpage, performed the test of clicking operation by above-mentioned electronic equipment, whether user can normally redirect after can judging to click this test target by judging the sectional drawing of the test result image that return the whether webpage that this image link is corresponding.
In some optional implementations of the present embodiment, above-mentioned electronic equipment based on be connected to the machine terminal display screen optimum configurations the machine browse window display size after, can also comprise: the described predetermined display interface showing above-mentioned application to be measured on the display screen browsing window and above-mentioned terminal of the machine respectively.
Continue a schematic diagram of the application scenarios see Fig. 3, Fig. 3 being method of testing according to the present embodiment.In the application scenarios of Fig. 3, first user configures the text link " dendrocole " on the predetermined display interface of application to be tested and the clicking operation to text link by computer; Then, computer according to obtain in advance be connected to display screen optimum configurations the machine of the terminal of computer browse window display size, and determine the mapping relations browsing the display screen of window and mobile phone of the machine; Last according to the mapping relations determined, the text link that the display screen of BOT machine shows performs clicking operation, after clicking operation, the display screen of mobile phone shows the page that text link is corresponding, and returns the object information after clicking operation.
The method that above-described embodiment of the application provides performs test operation by test terminal equipment to the test target on the predetermined display interface of the application to be measured that the display screen of measured terminal equipment shows, thus achieve automatic test, and do not need in test process to build development environment, simplify test process, improve testing efficiency.
With further reference to Fig. 4, it illustrates the flow process 400 of another embodiment of method of testing.The flow process 400 of this method of testing, comprises the following steps:
Step 401, obtains detecting information.
In the present embodiment, first the electronic equipment (the test terminal equipment in such as Fig. 1) performing test job can obtain the detecting information of user for this application configuration to be measured, wherein, above-mentioned detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to this test target.Here, application is shown in the various front ends that above-mentioned application to be measured can be mounted in terminal (the measured terminal equipment 102 in such as Fig. 1).
Step 402, based on be connected to the machine terminal display screen optimum configurations the machine browse window display size, determine the mapping relations browsing the display screen of window and terminal of the machine.
In the present embodiment, above-mentioned electronic equipment can communicate with above-mentioned terminal.Above-mentioned electronic equipment can browse window display size according to the display screen optimum configurations the machine of the above-mentioned terminal obtained in advance, and according to the mapping relations browsing the display screen of window and terminal browsing display screen parameter determination the machine of the display screen of window display size and terminal arranged.
Step 403, carries out sectional drawing process by the test target region on the predetermined display interface browsing the application to be measured that window shows of the machine, obtains test target sectional drawing.
In the present embodiment, above-mentioned electronic equipment positions from the predetermined display interface browsing the application to be measured that window shows of the machine above-mentioned test target, and sectional drawing process is carried out in the region of locating the above-mentioned test target place obtained, obtain test target sectional drawing.
Step 404, adjusts according to the size of determined mapping relations by test target sectional drawing.
In the present embodiment, above-mentioned electronic equipment can adjust according to obtaining in step 402 size of mapping relations by the test target sectional drawing obtained in step 403, such as, if the mapping relations browsing the display screen of window and above-mentioned terminal of the machine are 1:2, then the size of the test target sectional drawing obtained in step 403 is amplified 2 times.
Step 405, mates the test target sectional drawing after adjustment with the screenshot capture of the terminal of reception, the position coordinates of the test target on the predetermined display interface of the application to be measured that the display screen according to matching result determination terminal shows.
In the present embodiment, above-mentioned electronic equipment can by the test target sectional drawing that obtains after adjustment in step 404 by image processing algorithm (such as, template matching algorithm etc.) mate with the screenshot capture of the terminal received, find the position coordinates of test target sectional drawing in above-mentioned screenshot capture after adjustment, wherein, above-mentioned screenshot capture is that the predetermined display interface that display screen to terminal shows carries out sectional drawing and obtains.
Step 406, performs test operation to the test target at position coordinates place and returns the object information of test operation.
In the present embodiment, above-mentioned electronic equipment can perform above-mentioned test operation to the position coordinates found in step 405, and returns the object information of test operation.
As can be seen from Figure 4, compared with the embodiment that Fig. 2 is corresponding, the flow process 400 of the method for testing in the present embodiment highlights the step of the position coordinates being searched test target by test target sectional drawing on the display screen of above-mentioned terminal.Thus, the present embodiment describe scheme can robotization search test target position coordinates exactly, thus realize test efficiently and accurately.
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. 2, and this device specifically can be applied in various electronic equipment.
As shown in Figure 5, the proving installation 500 described in the present embodiment comprises: acquiring unit 501, determining unit 502 and test cell 503.Wherein, acquiring unit 501 is configured for acquisition detecting information, and wherein above-mentioned detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to above-mentioned test target; Determining unit 502 be configured for based on the terminal being connected to the machine display screen optimum configurations the machine browse window display size, determine the mapping relations browsing the display screen of window and above-mentioned terminal of the machine; Test cell 503 is configured for according to determined mapping relations, and the test target on the above-mentioned predetermined display interface of the application above-mentioned to be measured that the display screen to above-mentioned terminal shows performs above-mentioned test operation and returns the object information of test operation.
In the present embodiment, the acquiring unit 501 of proving installation 500 can obtain the detecting information of user for this application configuration to be measured, and wherein, above-mentioned detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to this test target.
In the present embodiment, above-mentioned determining unit 502 can browse window display size according to the display screen optimum configurations the machine of the above-mentioned terminal obtained in advance.Afterwards, above-mentioned electronic equipment is according to the mapping relations browsing the display screen of window and terminal browsing display screen parameter determination the machine of the display screen of window display size and terminal arranged.
In the present embodiment, based on the determined mapping relations of above-mentioned determining unit 502, test cell 503 can perform test operation to the test target on the predetermined display interface of the application to be measured that the display screen of above-mentioned terminal shows and return the object information of test operation.
Below with reference to Fig. 6, it illustrates the structural representation of the computer system 600 of terminal device or the server be suitable for for realizing the embodiment of the present application.
As shown in Figure 6, computer system 600 comprises CPU (central processing unit) (CPU) 601, and it or can be loaded into the program random access storage device (RAM) 603 from storage area 608 and perform various suitable action and process according to the program be stored in ROM (read-only memory) (ROM) 602.In RAM603, also store system 600 and operate required various program and data.CPU601, ROM602 and RAM603 are connected with each other by bus 604.I/O (I/O) interface 605 is also connected to bus 604.
I/O interface 605 is connected to: the importation 606 comprising keyboard, mouse etc. with lower component; Comprise the output 607 of such as cathode-ray tube (CRT) (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.; Comprise the storage area 608 of hard disk etc.; And comprise the communications portion 609 of network interface unit of such as LAN card, modulator-demodular unit etc.Communications portion 609 is via the network executive communication process of such as the Internet.Driver 610 is also connected to I/O interface 605 as required.Detachable media 611, such as disk, CD, magneto-optic disk, semiconductor memory etc., be arranged on driver 610 as required, so that the computer program read from it is mounted into storage area 608 as required.
Especially, according to embodiment of the present disclosure, the process that reference flow sheet describes above may be implemented as computer software programs.Such as, embodiment of the present disclosure comprises a kind of computer program, and it comprises the computer program visibly comprised on a machine-readable medium, and described computer program comprises the program code for the method shown in flowchart.In such embodiments, this computer program can be downloaded and installed from network by communications portion 609, and/or is mounted from detachable media 611.
Process flow diagram in accompanying drawing and block diagram, illustrate according to the architectural framework in the cards of the system of the various embodiment of the application, method and computer program product, function and operation.In this, each square frame in process flow diagram or block diagram can represent a part for module, program segment or a code, and a part for described module, program segment or code comprises one or more executable instruction for realizing the logic function specified.Also it should be noted that at some as in the realization of replacing, the function marked in square frame also can be different from occurring in sequence of marking in accompanying drawing.Such as, in fact the square frame that two adjoining lands represent can perform substantially concurrently, and they also can perform by contrary order sometimes, and this determines according to involved function.Also it should be noted that, the combination of the square frame in each square frame in block diagram and/or process flow diagram and block diagram and/or process flow diagram, can realize by the special hardware based system of the function put rules into practice or operation, or can realize with the combination of specialized hardware and computer instruction.
Be described in unit involved in the embodiment of the present application to 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, determining unit and test cell.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 " obtaining the unit of detecting information ".
As another aspect, present invention also provides a kind of non-volatile computer storage medium, this non-volatile computer storage medium can be the non-volatile computer storage medium comprised in device described in above-described embodiment; Also can be individualism, be unkitted the non-volatile computer storage medium allocated in terminal.Above-mentioned non-volatile computer storage medium stores one or more program, when one or more program described is performed by an equipment, make described equipment: obtain detecting information, wherein said detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to described test target; Based on be connected to the machine terminal display screen optimum configurations the machine browse window display size, determine the mapping relations browsing the display screen of window and described terminal of the machine; According to determined mapping relations, the test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation.
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 (10)

1. a method of testing, is characterized in that, described method comprises:
Obtain detecting information, wherein said detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to described test target;
Based on be connected to the machine terminal display screen optimum configurations the machine browse window display size, determine the mapping relations browsing the display screen of window and described terminal of the machine;
According to determined mapping relations, the test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation.
2. method according to claim 1, it is characterized in that, described according to determined mapping relations, the test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation, comprising:
Sectional drawing process is carried out in test target region on the described predetermined display interface browsing the application described to be measured that window shows of the machine, obtains test target sectional drawing;
Adjust according to the size of determined mapping relations by described test target sectional drawing;
Test target sectional drawing after adjustment is mated with the screenshot capture of the described terminal of reception, the position coordinates of the test target on the described predetermined display interface of the application described to be measured that the display screen of described terminal shows is determined according to matching result, wherein, described screenshot capture is that the described predetermined display interface that display screen to described terminal shows carries out sectional drawing and obtains;
Described test operation is performed to the test target at described position coordinates place and returns the object information of test operation.
3. method according to claim 1, it is characterized in that, described according to determined mapping relations, the test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation, comprising:
Receive the test result image that described terminal returns, wherein, described test result image after described test operation is complete, carries out sectional drawing to the interface that the display screen of described terminal shows obtain.
4. method according to claim 1, is characterized in that, based on be connected to the machine terminal display screen optimum configurations the machine browse window display size after, described method also comprises:
The display screen browsing window and described terminal of the machine shows the described predetermined display interface of described application to be measured respectively.
5. method according to claim 1, is characterized in that, described terminal is mobile terminal.
6. a proving installation, is characterized in that, described device comprises:
Acquiring unit, is configured for acquisition detecting information, and wherein said detecting information comprises the test target on the predetermined display interface of application to be measured and the test operation to described test target;
Determining unit, be configured for based on the terminal being connected to the machine display screen optimum configurations the machine browse window display size, determine the mapping relations browsing the display screen of window and described terminal of the machine;
Test cell, is configured for according to determined mapping relations, and the test target on the described predetermined display interface of the application described to be measured that the display screen to described terminal shows performs described test operation and returns the object information of test operation.
7. device according to claim 6, is characterized in that, described test cell is configured for further:
Sectional drawing process is carried out in test target region on the described predetermined display interface browsing the application described to be measured that window shows of the machine, obtains test target sectional drawing;
Adjust according to the size of determined mapping relations by described test target sectional drawing;
Test target sectional drawing after adjustment is mated with the screenshot capture of the described terminal of reception, the position coordinates of the test target on the described predetermined display interface of the application described to be measured that the display screen of described terminal shows is determined according to matching result, wherein, described screenshot capture is that the described predetermined display interface that display screen to described terminal shows carries out sectional drawing and obtains;
Described test operation is performed to the test target at described position coordinates place and returns the object information of test operation.
8. device according to claim 6, is characterized in that, described test cell is configured for further:
Receive the test result image that described terminal returns, wherein, described test result image after described test operation is complete, carries out sectional drawing to the interface that the display screen of described terminal shows obtain.
9. device according to claim 6, is characterized in that, described device also comprises:
Display unit, is configured for the described predetermined display interface showing described application to be measured on the display screen browsing window and described terminal of the machine respectively.
10. device according to claim 6, is characterized in that, described terminal is mobile terminal.
CN201510983340.5A 2015-12-24 2015-12-24 Test method and device Pending CN105512043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510983340.5A CN105512043A (en) 2015-12-24 2015-12-24 Test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510983340.5A CN105512043A (en) 2015-12-24 2015-12-24 Test method and device

Publications (1)

Publication Number Publication Date
CN105512043A true CN105512043A (en) 2016-04-20

Family

ID=55720044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510983340.5A Pending CN105512043A (en) 2015-12-24 2015-12-24 Test method and device

Country Status (1)

Country Link
CN (1) CN105512043A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383789A (en) * 2016-12-05 2017-02-08 广州唯品会信息科技有限公司 Software interface test method and software interface test system
CN106776317A (en) * 2016-12-15 2017-05-31 百度在线网络技术(北京)有限公司 Method of testing and device
CN108877806A (en) * 2018-06-29 2018-11-23 中国航空无线电电子研究所 System is verified in the test for testing instruction type speech control system
CN109189678A (en) * 2018-08-22 2019-01-11 中国平安人寿保险股份有限公司 A kind of webpage function verification method, computer readable storage medium and server
CN110502419A (en) * 2018-05-17 2019-11-26 阿里巴巴集团控股有限公司 A kind of test method of graphic user interface, device and equipment
CN110968513A (en) * 2019-11-29 2020-04-07 北京云测信息技术有限公司 Recording method and device of test script
CN113138888A (en) * 2021-04-30 2021-07-20 北京市商汤科技开发有限公司 Function detection method and device, electronic equipment and storage medium
CN113204494A (en) * 2021-05-29 2021-08-03 长沙市到家悠享家政服务有限公司 Terminal remote test platform and method, electronic equipment and readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436416A (en) * 2011-09-17 2012-05-02 北京迈凯互动网络科技有限公司 Testing system and method for mobile equipment
US20130036365A1 (en) * 2006-01-25 2013-02-07 Brandt Technologies Limited System and Method for Effecting Simultaneous Control of Remote Computers
CN104008043A (en) * 2013-02-21 2014-08-27 腾讯科技(深圳)有限公司 Method for testing across terminals and to-be-tested terminals and testing terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130036365A1 (en) * 2006-01-25 2013-02-07 Brandt Technologies Limited System and Method for Effecting Simultaneous Control of Remote Computers
CN102436416A (en) * 2011-09-17 2012-05-02 北京迈凯互动网络科技有限公司 Testing system and method for mobile equipment
CN104008043A (en) * 2013-02-21 2014-08-27 腾讯科技(深圳)有限公司 Method for testing across terminals and to-be-tested terminals and testing terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106383789A (en) * 2016-12-05 2017-02-08 广州唯品会信息科技有限公司 Software interface test method and software interface test system
CN106776317A (en) * 2016-12-15 2017-05-31 百度在线网络技术(北京)有限公司 Method of testing and device
CN110502419A (en) * 2018-05-17 2019-11-26 阿里巴巴集团控股有限公司 A kind of test method of graphic user interface, device and equipment
CN108877806A (en) * 2018-06-29 2018-11-23 中国航空无线电电子研究所 System is verified in the test for testing instruction type speech control system
CN109189678A (en) * 2018-08-22 2019-01-11 中国平安人寿保险股份有限公司 A kind of webpage function verification method, computer readable storage medium and server
CN110968513A (en) * 2019-11-29 2020-04-07 北京云测信息技术有限公司 Recording method and device of test script
CN113138888A (en) * 2021-04-30 2021-07-20 北京市商汤科技开发有限公司 Function detection method and device, electronic equipment and storage medium
CN113204494A (en) * 2021-05-29 2021-08-03 长沙市到家悠享家政服务有限公司 Terminal remote test platform and method, electronic equipment and readable medium

Similar Documents

Publication Publication Date Title
CN105512043A (en) Test method and device
CN102123195B (en) Apparatus and method for providing bookmark service in communication terminal
CN105528408A (en) Page display method and apparatus
US20160117287A1 (en) Method and Apparatus for Rendering Websites on Physical Devices
CN105447204A (en) Website recognition method and apparatus
CN105763630A (en) Information pushing method and device applied to mobile terminal
CN105101122A (en) Verification code input method and device
CN106326120B (en) Regression testing method and device for application software and electronic equipment
CN113282488B (en) Terminal test method and device, storage medium and terminal
CN105205174A (en) File processing method and device for distributed system
CN104881273A (en) Webpage rendering analysis method and terminal device
CN107391277A (en) Information processing method and device
CN107015912A (en) Realize system, method, device and the electronic equipment of remote debugging
CN110908922A (en) Application program testing method and device
CN104978276A (en) Method, device and system used for detecting software
US20200204458A1 (en) Terminal device, ui expansion method, and ui expansion program
CN105138875A (en) Identification method and device for user information
CN108121648B (en) Interface error monitoring method
CN105224611A (en) Based on the operation processing method of browser, device and browser
CN107451163B (en) Animation display method and device
CN104850444A (en) Software installation package distribution method, software installation package distribution device, software installation method and software installation device
CN111258904A (en) Webpage element testing method and related device
CN106970870B (en) Webpage test platform, webpage test method and webpage test system
CN105243100A (en) Map rendering method, and method and apparatus for providing rendering target information
CN105139217A (en) Method, apparatus and system used for acquiring user information

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420