CN110209572A - Ui testing method, ui testing system and terminal - Google Patents
Ui testing method, ui testing system and terminal Download PDFInfo
- Publication number
- CN110209572A CN110209572A CN201910372330.6A CN201910372330A CN110209572A CN 110209572 A CN110209572 A CN 110209572A CN 201910372330 A CN201910372330 A CN 201910372330A CN 110209572 A CN110209572 A CN 110209572A
- Authority
- CN
- China
- Prior art keywords
- test
- human
- computer interaction
- interaction element
- setting
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 233
- 230000003993 interaction Effects 0.000 claims abstract description 85
- 238000000034 method Methods 0.000 claims abstract description 40
- 230000000694 effects Effects 0.000 claims abstract description 30
- 238000011990 functional testing Methods 0.000 claims abstract description 29
- 230000002452 interceptive effect Effects 0.000 claims description 26
- 238000004590 computer program Methods 0.000 claims description 22
- 230000004044 response Effects 0.000 claims description 14
- 230000008569 process Effects 0.000 abstract description 19
- 238000012423 maintenance Methods 0.000 abstract description 8
- 238000004891 communication Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 22
- 238000012545 processing Methods 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
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 application is suitable for field of communication technology, provides a kind of ui testing method, ui testing system and terminal, and wherein method includes: the human-computer interaction element for including in identification user interface to be measured;Obtain the setting effect of the human-computer interaction element;It is acted on based on the setting, according to the test data write in advance, functional test is carried out to the human-computer interaction element and is outputed test result, general applicability of the test process when testing the unknown page is promoted, eliminates the test delay and maintenance cost of conventional user interfaces automatic test.
Description
Technical field
The application belongs to field of communication technology more particularly to a kind of ui testing method, ui testing system
And terminal.
Background technique
With the rapid development of the terminals such as mobile phone, plate, terminal enters people's lives extensively, and raw for people
Various aspects in work are brought great convenience.
And universal with terminal, application in terminal also extreme enrichment, people are to user circle in application or in webpage
Face requirement is also being continuously improved.For the more preferable usage experience for realizing user interface, progress user interface oneself is generally required
Dynamicization test.
The realization of prevalent user interface automation test at present, is all based on known interface, positions known interface element, compiles
It writes script and carries out page operation.The drawbacks of this automation ui testing it is obvious that when the page deliver test after, tester
Member needs to take considerable time the automatized script write with debugging corresponding page, can just carry out page automatic test;And work as
When page elements are changed, tester needs corresponding modification script, and without the applicability in test process, and user interface is certainly
The repetition debugging of script and test parameter causes the delay and maintenance cost of apparent testing time with modification in dynamicization test.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of ui testing method, ui testing system and end
End, it is poor for applicability to solve user interface automatic test in the prior art, and the repetition of script and test parameter is debugged and is repaired
The problem of being transformed into the delay and maintenance cost of apparent testing time.
The first aspect of the embodiment of the present application provides a kind of ui testing method, comprising:
Identify the human-computer interaction element for including in user interface to be measured;
Obtain the setting effect of the human-computer interaction element;
It is acted on based on the setting, according to the test data write in advance, functional test is carried out to the human-computer interaction element
And output test result.
The second aspect of the embodiment of the present application provides a kind of ui testing system, comprising:
Identification module, the human-computer interaction element for including in user interface to be measured for identification;
First obtains module, and the setting for obtaining the human-computer interaction element acts on;
Test module, for being acted on based on the setting, according to the test data write in advance, to the human-computer interaction element
It carries out functional test and outputs test result.
The third aspect of the embodiment of the present application provides a kind of terminal, including memory, processor and is stored in described
In memory and the computer program that can run on the processor, the processor are realized when executing the computer program
The step of method as described above.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has the step of computer program, the computer program realizes method as described above when being executed by processor.
The 5th aspect of the application provides a kind of computer program product, and the computer program product includes computer
Program is realized when the computer program is executed by one or more processors such as the step of above-mentioned first aspect the method.
Therefore the embodiment of the present application obtains people by identifying the human-computer interaction element for including in user interface to be measured
The setting of machine interactive elements acts on, and then is acted on based on the setting, according to the test data write in advance, to the man-machine interactive elements
It carries out functional test and outputs test result, so that when facing the unknown page, it can be automatically in the test in the unknown page
Appearance is identified, and the effect according to the page elements and corresponding page elements identified, is realized to the page in the page to be measured
Result output is tested and carried out to the automation traversal of element, promotes general applicability of the test process when testing the unknown page,
And simplify test and debugging and test parameter configuration process, eliminate the test delay of conventional user interfaces automatic test and maintenance at
This.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow chart one of ui testing method provided by the embodiments of the present application;
Fig. 2 is a kind of flowchart 2 of ui testing method provided by the embodiments of the present application;
Fig. 3 is a kind of structure chart of ui testing system provided by the embodiments of the present application;
Fig. 4 is a kind of structure chart of terminal provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, terminal described in the embodiment of the present application is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but there is touching
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In following discussion, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal may include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one of the following or multiple: drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be executed at the terminal can be used such as touch sensitive surface at least one is public
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.In this way, the public physical structure of terminal is (for example, touch
Sensing surface) it can support the various application programs with user interface intuitive and transparent for a user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in the present embodiment, each process
Execution sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It is a kind of flow chart one of ui testing method provided by the embodiments of the present application referring to Fig. 1, Fig. 1.Such as Fig. 1 institute
Show, a kind of ui testing method, method includes the following steps:
Step 101, the human-computer interaction element for including in user interface to be measured is identified.
The user interface to be measured is specially the user interface of pending interactive function test.The human-computer interaction element identified
For at least one.
The user interface to be measured can be the user interface in application or in webpage, for example, electric business website, social network sites
User interface in the equal application such as webpages or contract management system, mailbox.
Wherein, human-computer interaction element refers specifically to can to carry out the interface element of human-computer interaction (such as input frame, button surpasses
Link, uploading control, page turning control, single choice check box etc.).Those human-computer interaction elements are usually to carry out page operation Shi Suocao
The interface element of work.
Identification to human-computer interaction element, specifically may is that by page elements write setting rule it is man-machine to identify
Interactive elements.It is illustrated by taking html page as an example: opening User Page, obtained the corresponding html source code of User Page, be based on
The redaction rule of html page elements can identify all man-machine interactive elements on page-out.Such as rule are write by identification
Content recognition in then with " href " keyword goes out hyperlink human-computer interaction element, has the content recognition of " link " keyword
The human-computer interaction element that can be jumped after clicking out.
Specifically, the implementing precondition of step 101 is to identify in the case where getting test run input in step 101
Before the human-computer interaction element for including in user interface to be measured, further includes:
Test run input is obtained, is inputted in response to the test run, executes the step 101.
Step 102, the setting effect of human-computer interaction element is obtained.
Setting effect is specially element function corresponding to interpersonal interactive elements;The specific element function and interpersonal interaction
Keyword in the redaction rule of element is corresponding.
In specific implementation, setting effect is, for example, the function that some keyword code should have in html source code
Energy.Such as link keyword refer to be exactly this keying elements click can jump;Href means that hyperlink.
Such as after obtaining html page, detect in the page comprising < a href=" login.html " class="
Login " id=" homeLogin " rel=" nofollow "><span>it logs in</span></a>this element, then with home banking
Default some aspect ratios pair just can know that its effect is generally used for logging in.
Step 103, it is acted on based on the setting, according to the test data write in advance, function is carried out to the man-machine interactive elements
Test.
It is acted on for setting corresponding to human-computer interaction element, the test data write in advance is input to human-computer interaction element
It is middle to carry out corresponding functional test.
Optionally, which can be a plurality of, according to the test data write in advance, to the man-machine friendship
When mutual element carries out functional test, comprising: matching obtains a people with current setting effect from the test data write in advance
The target detection data that machine interactive elements match carry out functional test to the personal-machine interactive elements.
After user interface to be measured, which is delivered, tests, tester only needs less than 1 minutes configuration test data and phase
The test parameter answered can run test, and the test for also not needing change last time occur changing in page elements in interface to be measured
Parameter, eliminate in user interface automatic test repeat debugging and test parameter modify caused by test delay with maintenance at
This.
Step 104, output test result.
The step includes: the one test report page of display, includes: that operation log and test are tied in the test report page
Fruit.After test, system, which summarizes all operation logs and test result, is shown to the test report page, with display test knot
Fruit checks to tester.
Ui testing method in the embodiment of the present application, by identifying the man-machine friendship for including in user interface to be measured
Mutual element, obtains the setting effect of human-computer interaction element, and then is acted on based on the setting, right according to the test data write in advance
The man-machine interactive elements carry out functional test and output test result, so that when facing the unknown page, it can be automatically to unknown
Test content in the page is identified, and the effect according to the page elements and corresponding page elements identified, realization pair
Result output is tested and carried out to the automation traversal of page elements in the page to be measured, promotes test process when testing the unknown page
General applicability, and simplify test and debugging and test parameter configuration process, eliminate the survey of conventional user interfaces automatic test
Examination delay and maintenance cost.
Further, described to identify the human-computer interaction member for including in user interface to be measured as an optional embodiment
Before element, further includes:
Obtain the test data document uploaded, wherein include the pre- test number write in the test data document
According to.
The test data document can be excel table or database file etc..Tester can be used for example
Excel table writes common test data, and test data is, for example, that multiple groups log in account number cipher.
Wherein, a user interface to be measured can prepare more set test datas, and more set test data parameters, which can be, includes
In a test data document, or it is separately contained in corresponding test data document.
One scene can prepare more set test datas, can be thus ready in advance in primary test according to user
Data, in test scene under different input conditions interface availability.
Further, described to identify the human-computer interaction member for including in user interface to be measured as an optional embodiment
Before element, further includes:
Receive the newly-built input of test assignment;
In response to the newly-built input of the test assignment, test assignment is established, includes: the use to be measured in the test assignment
The home address at family interface and/or the type of test data.
Before carrying out automatic test, needs to create a test in the automation ui testing system and appoint
Business, and sets the home address of corresponding user interface, and will open browser to enter user in test visits
The page asked;The required survey of upload deletion that test data type, such as account number cipher etc. log in test data, document is set
Try document.
Referring to fig. 2, Fig. 2 is a kind of flow chart one of ui testing method provided by the embodiments of the present application.Such as Fig. 2 institute
Show, the ui testing method in the embodiment of the present application, method includes the following steps:
Step 201, the human-computer interaction element for including in user interface to be measured is identified.
The realization process of the step and the realization process of abovementioned steps 101 are identical, and details are not described herein again.
Further, abovementioned steps 102 obtain the setting effect of the human-computer interaction element, in specific implementation, can have
Body includes:
Step 202, general identifications corresponding to human-computer interaction element are obtained.
Specifically, which is specially encoded key included in the written in code rule of human-computer interaction element
Word.
Step 203, it according to the general identifications, from preset home banking, searches target corresponding with the general identifications and sets
It is set for using.
Home banking can be preset, includes the corresponding pass between different general identifications and setting effect in the home banking
System.
The home banking can be configured in newly-built test assignment, this can be directly connected to when testing beginning
Home banking simultaneously reads the content in home banking, matches to the general identifications in human-computer interaction element, realizes to human-computer interaction
The identification and acquisition of the setting effect of element.
Step 204, determine that goal-setting effect is that the setting of man-machine interactive elements acts on.
To get to corresponding to the man-machine of the general identifications after finding out goal-setting effect corresponding with the general identifications
The setting of interactive elements acts on.
Further, abovementioned steps 103 are acted on based on the setting, according to the test data write in advance, to described man-machine
Interactive elements carry out functional test may particularly include in specific implementation:
Step 205, it is acted on based on the setting, human-computer interaction element is combined.
The man-machine interactive elements are at least one, which refers to based on the corresponding setting effect of human-computer interaction element,
It is associated to setting effect or mutual corresponding human-computer interaction element is combined, the human-computer interaction element after combination is made jointly
With the set-up function realized in user interface.
The combination specifically can be between the permutation and combination carried out human-computer interaction element or other combinations.
Step 206, according to the test data write in advance, functional test is successively carried out to the element combinations obtained after combination.
Available at least one set element combinations after human-computer interaction element combinations.
Such as: the html element comprising register is identified in user interface, will recommend element combinations: user name is defeated
Enter control element, code input control element and log in and clicks button element.Element combinations that will be obtained after combination, in conjunction with pre-
The test data write, such as multiple groups user account and password are realized and are tested the login function of this group of element combinations.
It can also be such as: after may including login in detecting current test interface and registering two page functions,
Automatically the human-computer interaction element in interface will be combined, correspond respectively to log in and registers two application scenarios, from pre-
Corresponding test case is extracted in the test data write, and a variety of different surveys are combined to the element combinations under two scenes respectively
Examination data combination carries out traversal test.
During being somebody's turn to do, the test for carrying out logging in combine scenes can be automatically attempted to.
Further, wherein as an optional embodiment, should be obtained according to the test data write in advance to after combination
To element combinations successively carry out functional test, comprising:
Obtain page positioning of the human-computer interaction element in the user interface to be measured;It is positioned according to the page,
The pre- test data write is input in the human-computer interaction element after combination to carry out test run.
When the element combinations obtained after to combination successively carry out functional test, need that different man-machine interactive elements is combined to exist
Page positioning in user interface, to realize element when carrying out functional test to different element combinations binding test use-cases
Accurate positionin and test case accurate input, convenient for the combined test to human-computer interaction element included in the unknown page
The implementation of process.
Further, abovementioned steps 104 output test result, and in specific implementation, may particularly include:
Step 207, human-computer interaction element is obtained in functional test procedures, obtains the target person of user interface response to be measured
Machine interactive elements.
In the functional test procedures of human-computer interaction element, if human-computer interaction element obtains user interface response to be measured,
Then think that the functional test of the man-machine interactive elements or human-computer interaction element combinations is successfully responded.
Step 208, automatic test script corresponding with the man-machine interactive elements of target is generated.
Wherein, the man-machine interactive elements of target corresponding to the automatic test script specifically can be single human-computer interaction member
The element combinations of human-computer interaction element after element, or combination.
Generating the automatic test script can make tester recognize that obtaining user interface in functional test responds
Test thread and the test thread corresponding to automatic test script.
Step 209, automatic test script is exported.
The automatic test script is exported so that tester understands being applied in combination for test result and subsequent effective script,
Realize showing to the validity test of human-computer interaction element function in unknown interface and test result.
Ui testing method in the embodiment of the present application, by identifying the man-machine friendship for including in user interface to be measured
Mutual element, obtains the setting effect of human-computer interaction element, and then is acted on based on the setting, right according to the test data write in advance
The man-machine interactive elements carry out functional test and output test result, so that when facing the unknown page, it can be automatically to unknown
Test content in the page is identified, and the effect according to the page elements and corresponding page elements identified, realization pair
Result output is tested and carried out to the automation traversal of page elements in the page to be measured, promotes test process when testing the unknown page
General applicability, and simplify test and debugging and test parameter configuration process, eliminate the survey of conventional user interfaces automatic test
Examination delay and maintenance cost.
It is the structure chart that Fig. 3 is a kind of ui testing system provided by the embodiments of the present application, in order to just referring to Fig. 3
In explanation, part relevant to the embodiment of the present application is illustrated only.
The ui testing system 300 includes: that identification module 301, first obtains module 302 and test module 303.
Identification module 301, the human-computer interaction element for including in user interface to be measured for identification.
First obtains module 302, and the setting for obtaining the human-computer interaction element acts on.
Test module 303, for being acted on based on the setting, according to the test data write in advance, to the human-computer interaction
Element carries out functional test and outputs test result.
First obtains module 302, comprising:
First acquisition submodule, for obtaining general identifications corresponding to the human-computer interaction element;
Submodule is searched, for from preset home banking, searching and the general identifications pair according to the general identifications
The goal-setting effect answered;
Submodule is determined, for determining that the goal-setting effect is that the setting of the human-computer interaction element acts on.
The test module 303 includes:
Submodule is combined, for being acted on based on the setting, the human-computer interaction element is combined;
Submodule is tested, for successively carrying out function to the element combinations obtained after combination according to the test data write in advance
It can test.
The test submodule, is specifically used for:
Obtain page positioning of the human-computer interaction element in the user interface to be measured;It is positioned according to the page,
The pre- test data write is input in the human-computer interaction element after combination to carry out test run.
The test module 303 includes:
Second acquisition submodule obtains described to be measured for obtaining the human-computer interaction element in functional test procedures
The man-machine interactive elements of target of user interface response;
Submodule is generated, for generating automatic test script corresponding with the man-machine interactive elements of the target;
Output sub-module, for exporting the automatic test script.
The ui testing system further include:
Second obtains module, for obtaining the test data document uploaded, wherein includes institute in the test data document
State the pre- test data write.
The ui testing system further include:
Receiving module, for receiving the newly-built input of test assignment;
Task creates module, for establishing test assignment, the test assignment in response to the newly-built input of the test assignment
In include: the home address of the user interface to be measured and/or the type of test data.
Ui testing system in the embodiment of the present application, by identifying the man-machine friendship for including in user interface to be measured
Mutual element, obtains the setting effect of human-computer interaction element, and then is acted on based on the setting, right according to the test data write in advance
The man-machine interactive elements carry out functional test and output test result, so that when facing the unknown page, it can be automatically to unknown
Test content in the page is identified, and the effect according to the page elements and corresponding page elements identified, realization pair
Result output is tested and carried out to the automation traversal of page elements in the page to be measured, promotes test process when testing the unknown page
General applicability, and simplify test and debugging and test parameter configuration process, eliminate the survey of conventional user interfaces automatic test
Examination delay and maintenance cost.
Ui testing system provided by the embodiments of the present application can be realized the implementation of above-mentioned ui testing method
Each process of example, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
Fig. 4 is a kind of structure chart of terminal provided by the embodiments of the present application.As shown in the drawing, the terminal 4 of the embodiment is wrapped
It includes: processor 40, memory 41 and being stored in the computer that can be run in the memory 41 and on the processor 40
Program 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal 4 is described.For example, the computer program 42 can be divided into
Identification module, first obtain module, test module, the second acquisition module, receiving module and task and create module.Wherein, first
The first acquisition submodule can be divided into, searches submodule and determine submodule by obtaining module.Test module can be divided
Zygote module and test submodule in groups.Wherein, test module can be divided into the second acquisition submodule, generate submodule and
Output sub-module.Each module concrete function is as follows:
Identification module, the human-computer interaction element for including in user interface to be measured for identification.
First obtains module, and the setting for obtaining the human-computer interaction element acts on.
Test module, for being acted on based on the setting, according to the test data write in advance, to the human-computer interaction element
It carries out functional test and outputs test result.
First acquisition submodule, for obtaining general identifications corresponding to the human-computer interaction element;
Submodule is searched, for from preset home banking, searching and the general identifications pair according to the general identifications
The goal-setting effect answered;
Submodule is determined, for determining that the goal-setting effect is that the setting of the human-computer interaction element acts on.
Submodule is combined, for being acted on based on the setting, the human-computer interaction element is combined;
Submodule is tested, for successively carrying out function to the element combinations obtained after combination according to the test data write in advance
It can test.
The test submodule, is specifically used for:
Obtain page positioning of the human-computer interaction element in the user interface to be measured;It is positioned according to the page,
The pre- test data write is input in the human-computer interaction element after combination to carry out test run.
Second acquisition submodule obtains described to be measured for obtaining the human-computer interaction element in functional test procedures
The man-machine interactive elements of target of user interface response;
Submodule is generated, for generating automatic test script corresponding with the man-machine interactive elements of the target;
Output sub-module, for exporting the automatic test script.
Second obtains module, for obtaining the test data document uploaded, wherein includes institute in the test data document
State the pre- test data write.
Receiving module, for receiving the newly-built input of test assignment;
Task creates module, for establishing test assignment, the test assignment in response to the newly-built input of the test assignment
In include: the home address of the user interface to be measured and/or the type of test data.
The terminal 4 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.Institute
Stating terminal 4 may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only eventually
The example at end 4, the not restriction of structure paired terminal 4 may include than illustrating more or fewer components, or the certain portions of combination
Part or different components, such as the terminal can also include input-output equipment, network access equipment, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal 4, such as the hard disk or memory of terminal 4.It is described
Memory 41 is also possible to the External memory equipment of the terminal 4, such as the plug-in type hard disk being equipped in the terminal 4, intelligence
Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card)
Deng.Further, the memory 41 can also both include the internal storage unit of the terminal 4 or set including external storage
It is standby.The memory 41 is for other programs and data needed for storing the computer program and the terminal.It is described to deposit
Reservoir 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed terminal and method can pass through others
Mode is realized.For example, terminal embodiment described above is only schematical, for example, the division of the module or unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of ui testing method characterized by comprising
Identify the human-computer interaction element for including in user interface to be measured;
Obtain the setting effect of the human-computer interaction element;
It is acted on based on the setting, according to the test data write in advance, functional test and defeated is carried out to the human-computer interaction element
Test result out.
2. ui testing method according to claim 1, which is characterized in that described to obtain the human-computer interaction element
Setting effect, comprising:
Obtain general identifications corresponding to the human-computer interaction element;
According to the general identifications, from preset home banking, goal-setting effect corresponding with the general identifications is searched;
Determine that the goal-setting effect is that the setting of the human-computer interaction element acts on.
3. ui testing method according to claim 1, which is characterized in that it is described to be acted on based on the setting, according to
According to the test data write in advance, functional test is carried out to the human-computer interaction element, comprising:
It is acted on based on the setting, the human-computer interaction element is combined;
According to the test data write in advance, functional test is successively carried out to the element combinations obtained after combination.
4. ui testing method according to claim 3, which is characterized in that described according to the test number write in advance
According to successively carrying out functional test to the element combinations obtained after combination, comprising:
Obtain page positioning of the human-computer interaction element in the user interface to be measured;
According to the page position, by the pre- test data write be input to combination after the human-computer interaction element in
Carry out test run.
5. ui testing method according to claim 1, which is characterized in that described to output test result, comprising:
The human-computer interaction element is obtained in functional test procedures, obtains the man-machine friendship of target of the user interface response to be measured
Mutual element;
Generate automatic test script corresponding with the man-machine interactive elements of the target;
Export the automatic test script.
6. ui testing method according to claim 1, which is characterized in that wrapped in the identification user interface to be measured
Before the human-computer interaction element contained, further includes:
Obtain the test data document uploaded, wherein include the pre- test data write in the test data document.
7. ui testing method according to claim 1, which is characterized in that wrapped in the identification user interface to be measured
Before the human-computer interaction element contained, further includes:
Receive the newly-built input of test assignment;
In response to the newly-built input of the test assignment, test assignment is established, includes: user circle to be measured in the test assignment
The home address in face and/or the type of test data.
8. a kind of ui testing system characterized by comprising
Identification module, the human-computer interaction element for including in user interface to be measured for identification;
First obtains module, and the setting for obtaining the human-computer interaction element acts on;
Test module, according to the test data write in advance, carries out the human-computer interaction element for being acted on based on the setting
Functional test simultaneously outputs test result.
9. a kind of terminal, including memory, processor and storage can be run in the memory and on the processor
Computer program, which is characterized in that the processor is realized when executing the computer program as claim 1 to 7 is any
The step of item the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910372330.6A CN110209572A (en) | 2019-05-06 | 2019-05-06 | Ui testing method, ui testing system and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910372330.6A CN110209572A (en) | 2019-05-06 | 2019-05-06 | Ui testing method, ui testing system and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110209572A true CN110209572A (en) | 2019-09-06 |
Family
ID=67785517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910372330.6A Pending CN110209572A (en) | 2019-05-06 | 2019-05-06 | Ui testing method, ui testing system and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209572A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740134A (en) * | 2019-10-18 | 2020-01-31 | 苏州浪潮智能科技有限公司 | URL authentication test method, device, equipment and medium |
CN112835809A (en) * | 2021-03-22 | 2021-05-25 | 亿企赢网络科技有限公司 | Test data setting method, device, equipment and medium based on browser |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729285A (en) * | 2012-10-11 | 2014-04-16 | 腾讯科技(深圳)有限公司 | Method, device and system for testing web page |
CN105095067A (en) * | 2014-05-21 | 2015-11-25 | 北京奇虎科技有限公司 | User interface element object identification and automatic test method and apparatus |
CN107122301A (en) * | 2017-04-27 | 2017-09-01 | 武汉斗鱼网络科技有限公司 | Interface detection method and device |
CN109144871A (en) * | 2018-08-17 | 2019-01-04 | 北京邮电大学 | A kind of recognition methods of automatic test element and device |
CN109408367A (en) * | 2018-09-03 | 2019-03-01 | 深圳壹账通智能科技有限公司 | A kind of method and terminal of the control element identifying interactive interface |
-
2019
- 2019-05-06 CN CN201910372330.6A patent/CN110209572A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729285A (en) * | 2012-10-11 | 2014-04-16 | 腾讯科技(深圳)有限公司 | Method, device and system for testing web page |
CN105095067A (en) * | 2014-05-21 | 2015-11-25 | 北京奇虎科技有限公司 | User interface element object identification and automatic test method and apparatus |
CN107122301A (en) * | 2017-04-27 | 2017-09-01 | 武汉斗鱼网络科技有限公司 | Interface detection method and device |
CN109144871A (en) * | 2018-08-17 | 2019-01-04 | 北京邮电大学 | A kind of recognition methods of automatic test element and device |
CN109408367A (en) * | 2018-09-03 | 2019-03-01 | 深圳壹账通智能科技有限公司 | A kind of method and terminal of the control element identifying interactive interface |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740134A (en) * | 2019-10-18 | 2020-01-31 | 苏州浪潮智能科技有限公司 | URL authentication test method, device, equipment and medium |
CN112835809A (en) * | 2021-03-22 | 2021-05-25 | 亿企赢网络科技有限公司 | Test data setting method, device, equipment and medium based on browser |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108415832B (en) | Interface automation test method, device, equipment and storage medium | |
CN109683953B (en) | Method and device for processing configuration file based on visual interface | |
US9189377B1 (en) | Automation testing using descriptive maps | |
CN111552633A (en) | Interface abnormal call testing method and device, computer equipment and storage medium | |
CN109376078A (en) | Test method, terminal device and the medium of mobile application | |
CN109460663A (en) | A kind of intelligence contract auditing method, device and its storage medium | |
CN103678115B (en) | The apparatus and method of the position of source code mistake are detected in mixed mode program | |
CN109388376A (en) | Risk of software development appraisal procedure, device, equipment and readable storage medium storing program for executing | |
CN107729246A (en) | For the auxiliary test methods of intended application, device, equipment and storage medium | |
CN110377522A (en) | The test method for scene of trading, calculates equipment and medium at device | |
CN109828906A (en) | UI automated testing method, device, electronic equipment and storage medium | |
CN109614327A (en) | Method and apparatus for output information | |
CN110209572A (en) | Ui testing method, ui testing system and terminal | |
CN106095948A (en) | The querying method of form, device and equipment | |
CN107257968A (en) | It was found that unique formulary in electrical form | |
CN103955425A (en) | Webpage (WEB) exploring testing device and method | |
US10719482B2 (en) | Data comparison | |
CN109800165A (en) | A kind of front end system test method and device | |
CN111488386A (en) | Data query method and device | |
CN110362294A (en) | Development task executes method, apparatus, electronic equipment and storage medium | |
WO2023115831A1 (en) | Application testing method and apparatus, electronic device and storage medium | |
CN108984386A (en) | Test method, device and the storage medium of application program search | |
CN108875374A (en) | Malice PDF detection method and device based on document node type | |
CN109766228A (en) | Verification method and device on a kind of line based on interface | |
CN113742156A (en) | Joint debugging method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190906 |
|
RJ01 | Rejection of invention patent application after publication |