CN106959921A - Automatic test approach, terminal, platform and system - Google Patents
Automatic test approach, terminal, platform and system Download PDFInfo
- Publication number
- CN106959921A CN106959921A CN201710090288.XA CN201710090288A CN106959921A CN 106959921 A CN106959921 A CN 106959921A CN 201710090288 A CN201710090288 A CN 201710090288A CN 106959921 A CN106959921 A CN 106959921A
- Authority
- CN
- China
- Prior art keywords
- test
- scheme
- testing
- automatic test
- command sequence
- 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
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/3684—Test management for test design, e.g. generating new test cases
-
- 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
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 present invention provides a kind of automatic test approach, terminal, platform and system, and this method includes:Protocol information is obtained to automatically testing platform;The protocol information is parsed to generate test command sequence, the test command sequence is asserted and to asserting that each dom elements are tested including some identification DOM Document Object Model (Document Object Model, abbreviation dom) elements;Perform the test command sequence to be identified and test with each dom elements in the user interface (UI) to software under testing, feedback information is generated when performing and respectively asserting and is sent to automatically testing platform for generation test report.The present invention utilizes dom elements completely the same characteristic of structure in android system and IOS systems, and same set of testing scheme need to only be used for android versions and ios release by realizing, so as to reduce testing cost and strengthen automatic test stability;Be also equipped with simultaneously platform can the multiple terminals of wireless adaptation, while carry out multi-thread test, and the advantages of automatically generate test report.
Description
Technical field
The application is related to software testing technology field, and in particular to a kind of automatic test approach, terminal, platform and system.
Background technology
Mobile app develops into mixing (Hybrid) framework, then component till now from primary (native) framework of early stage
Change framework, development technique is constantly brought forth new ideas, and test automation framework also emerges in an endless stream, for example, have Appium, Robotium,
Each class framework such as Calabash and EarlGrey.Test team is implemented in automatic test using existing automation tools
During the automatic test scheme of oneself product, it tends to be difficult to reduce manual testing's cost, and worries are in the easy-to-use of automation tools
Property, learning cost and operation success rate are all difficult to meet new testing requirement.Particularly present component is usually that third party opens
Hair, instructs third-party testing librarian use to need the framework programmed to expend high time cost and human cost.
For APP software of the same assembly operating on webview of Android (android) version and ios release, deposit
The demand of same set of testing scheme is being used for android versions and ios release.But in existing testing scheme, for same
Android (android) version and the same component control of ios release of one APP software, the property element identified are complete
It is complete different, cause, when recognizing the control, to need that different marks are respectively configured for android versions and ios release, survey
Examination personnel need to safeguard two sets of testing schemes, so as to add maintenance cost, are also added not to operation automatic test scheme
Stability.
In addition, in test process, third-party Service Component sometimes need to be only tested, but the page of specific components is past
Get to need third party's components page of test, tediously long testing procedure increase after some necessary steps toward needing to perform
The unstability of operation automatic test, may be interrupted before third party components page is reached.
The content of the invention
In view of drawbacks described above of the prior art or deficiency, expect that provide one kind makes for android versions and ios release
With same set of testing scheme to reduce testing cost and strengthen the automatic test approach of automatic test stability, terminal, platform
And system;
And further expectation offer one kind supports that directly jumping into third party's components page is tested to strengthen automation survey
Try automatic test approach, terminal, platform and the system of stability.
In a first aspect, the present invention provides a kind of automatic test approach suitable for automatic test terminal, this method includes:
Protocol information is obtained to automatically testing platform;
The protocol information is parsed to generate test command sequence, the test command sequence includes some identification documents pair
As asserting and to asserting that each dom elements are tested for model (Document Object Model, abbreviation dom) element;
The test command sequence is performed to be identified and survey with each dom elements in the user interface (UI) to software under testing
Examination, feedback information is generated when performing and respectively asserting and is sent to automatically testing platform for generation test report.
Preferably, the test command sequence also includes position (scheme) element;
Parse the protocol information is also included with generating to test after command sequence:
The test command sequence is performed to jump directly to the page to be tested according to scheme elements.
Second aspect, the present invention provides a kind of automatic test approach suitable for automatically testing platform, and this method includes:
By visual testing scheme configuration interface obtain configured in the interface to each dom in software under testing UI
The testing scheme that element is identified and tested;
Protocol information is generated according to acquired testing scheme, parses and holds after being obtained for automatic test terminal
OK;
Some feedback informations that automatic test terminal is returned are received, test report is generated according to each feedback information.
Preferably, scheme elements are configured with testing scheme, the testing scheme includes following test action:According to being matched somebody with somebody
The scheme elements put jump directly to the page to be tested.
The third aspect, the present invention provides a kind of automatic test terminal, including:
First communication unit, be configured to automatically testing platform obtain protocol information, by feedback information send to
Automatically testing platform is for generation test report;
Resolution unit, is configured to parsing protocol information to generate test command sequence, the test command sequence bag
Include asserting and to asserting that each dom elements are tested for some identification dom elements;
Test cell, is configured to carry out test command sequence each dom elements in software under testing UI are identified
And test, and generate feedback information when performing and respectively asserting.
Preferably, test command sequence also includes scheme elements.The test cell is further configured to carry out test
Command sequence according to scheme elements to jump directly to the page to be tested.
Fourth aspect, the present invention provides a kind of automatically testing platform, including:
Dispensing unit, is configured to visual testing scheme configuration interface and obtains pair configured in the interface
The testing scheme that each dom elements in software under testing UI are identified and tested;
Encapsulation unit, is configured to generate protocol information according to acquired testing scheme;
Second communication unit, is configured to send to automatic test terminal to parse and hold by the protocol information
OK, some feedback informations that the automatic test terminal is returned are received;
Reporting unit, is configured to according to each feedback information generation test report.
Preferably, scheme elements are configured with testing scheme, the testing scheme includes following test action:According to being matched somebody with somebody
The scheme elements put jump directly to the page to be tested.
5th aspect, the present invention provides a kind of Auto-Test System, including some above-mentioned automatic test terminals, and, on
State automatically testing platform.
6th aspect, the present invention also provides a kind of equipment, including one or more processors and memory, wherein memory
Comprising the instruction that can be performed by the one or more processors make it that the one or more processors perform above-mentioned first aspect
The automatic test approach of offer, or, the automatic test approach that above-mentioned second aspect is provided.
7th aspect, the present invention also provides a kind of computer-readable recording medium for the computer program that is stored with, the calculating
Machine program makes computer perform the automatic test approach that above-mentioned first aspect is provided, or, the automatic survey that above-mentioned second aspect is provided
Method for testing.
Automatic test approach, terminal, platform and the system that many embodiments of the present invention are provided pass through in automatically testing platform
The testing scheme that middle configuration packages are identified and tested to each dom elements in software under testing UI, and in automatic test terminal
Middle parsing is performed to be tested with the UI completed to software under testing, is tied using dom elements in android system and IOS systems
The completely the same characteristic of structure, same set of testing scheme need to only be used for android versions and ios release by realizing, so as to drop
Low testing cost simultaneously strengthens automatic test stability;Being also equipped with automatically testing platform simultaneously can the multiple automatic test of wireless adaptation
Terminal, the advantages of without physical connection, multi-thread test can be carried out simultaneously, and automatically generate test report;
Automatic test approach, terminal, platform and the system that some embodiments of the invention are provided pass through in automatically testing platform
In the testing scheme that is configured in the interface is obtained by visual testing scheme configuration interface so that third-party testing people
Member in configuration interface without, by programmed configurations testing scheme, so as to reduce the configuration difficulty of testing scheme, and saving
Train the time cost and human cost of third-party testing personnel;
Automatic test approach, terminal, platform and the system that some embodiments of the invention are provided are further by test side
Configure scheme elements in case, and jump directly to according to the scheme elements configured the test action of the page to be tested,
Realizing directly jump into third party's components page and tested, so as to enhance the stability of automatic test.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other
Feature, objects and advantages will become more apparent upon:
A kind of flow chart for automatic test approach that Fig. 1 provides for one embodiment of the invention.
Fig. 2 is a kind of flow chart of preferred embodiment of method shown in Fig. 1.
The flow chart for another automatic test approach that Fig. 3 provides for one embodiment of the invention.
Fig. 4 is a kind of flow chart of preferred embodiment of method shown in Fig. 3.
A kind of structural representation for automatic test terminal that Fig. 5 provides for one embodiment of the invention.
A kind of structural representation for automatically testing platform that Fig. 6 provides for one embodiment of the invention.
Fig. 7 is a kind of structural representation of preferred embodiment of platform shown in Fig. 6.
A kind of structural representation for Auto-Test System that Fig. 8 provides for one embodiment of the invention.
A kind of structural representation for equipment that Fig. 9 provides for one embodiment of the invention.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that, in order to
It is easy to illustrate only the part related to invention in description, accompanying drawing.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
A kind of flow chart for automatic test approach that Fig. 1 provides for one embodiment of the invention.
As shown in figure 1, in the present embodiment, the present invention provides a kind of automatic test side suitable for automatic test terminal
Method, this method includes:
S12:Protocol information is obtained to automatically testing platform.
Specifically, in the present embodiment, each protocol information stored in automatically testing platform is with parameter CaseID
As identity, automatic test terminal only need to send CaseID, i.e., after automatically testing platform is logged in automatically testing platform
The corresponding protocol information of automatically testing platform return can be obtained.In more embodiments, step S12 can be also configured to
After logging in automatically testing platform the different modes such as the protocol information needed for download are being selected by browsing testing scheme catalogue
Protocol information is obtained, identical technique effect can be achieved.
S14:The protocol information is parsed to generate test command sequence.The test command sequence includes some identification texts
Shelves object model (Document Object Model, abbreviation dom) elements being asserted and each dom elements tested
Assert.
Specifically, in the present embodiment, protocol information is js files, wherein being packaged with some UI to software under testing
The test action that is identified or tests of each dom elements, in more embodiments, protocol information can be also configured to more
The file of many different-formats.Automatic test terminal is obtained after js files in step s 12, and js files are entered in step S14
Row parsing, generation includes the test command sequence of some test instructions.Wherein, part test instruction includes some to each dom
What element was identified asserts, another part test instruction include it is some each dom elements for being identified are tested break
Speech.
S16:The test command sequence is performed to be identified with each dom elements in the user interface (UI) to software under testing
And test, feedback information is generated when performing and respectively asserting and is sent to automatically testing platform for generation test report.
Specifically, automatic test terminal performs each test in the test command sequence that parsing is obtained in step S14 successively
Instruction, so that each dom elements in identifying software UI to be tested each component, and every test is carried out to each dom elements,
Some feedback informations are generated when being asserted described in execution is each, the feedback information generated is sent to automatically testing platform for generation
Test report.
Because dom elements possess the completely the same characteristic of structure in android system and IOS systems, therefore this implementation
The above-mentioned automatic test approach that example is provided can use identical test to same APP Android versions and ios release
Scheme, without configuring different marks and safeguarding two sets of test cases.
Fig. 2 is a kind of flow chart of preferred embodiment of method shown in Fig. 1.
As shown in Fig. 2 in a preferred embodiment, test command sequence also includes position (scheme) element.Step S14
Also include afterwards:
S15:The test command sequence is performed to jump directly to the page to be tested according to scheme elements.
Specifically, in common existing testing scheme, one third party's components page of test generally requires to first pass through superfluous
Long path reaches the page, such as in wechat APP, it is necessary to by main interface-" I "-" wallet "-" third party's service " this
One path could enter third party's components page;And in the present embodiment, match somebody with somebody in step S12 in acquired protocol information
It is equipped with the test command sequence for parsing and obtaining in scheme elements, therefore step S14 and also includes the scheme elements, in step
In rapid S15, the location paths provided according to the scheme elements, you can jump directly to page to be tested by performing test instruction
Face, so that the test that test page configured in every protocol information is treated in step s 16, without passing through again
Tediously long path progressively reaches the page to be tested.The software to be tested tested for there is multiple components pages to need, can also be followed
Ring step S15-S16, jumps to each page to be tested and is tested one by one.
In the present embodiment, above-mentioned feedback information includes:Execution time, executor tests id, performs step, mistake class
Type.In more embodiments, also feedback information can be configured to according to the actual requirements to include above-mentioned arbitrary one or more, and
It may further include other parameters or information commonly used in the art in generation test report.
The flow chart for another automatic test approach that Fig. 3 provides for one embodiment of the invention.
As shown in figure 3, in the present embodiment, the present invention also provides a kind of automatic test side suitable for automatically testing platform
Method, this method includes:
S22:By visual testing scheme configuration interface obtain configured in the interface in software under testing UI
The testing scheme that each dom elements are identified and tested.
Specifically, all kinds of configuration components are provided in visual testing scheme configuration interface, tester is without carrying out
Programming can complete the configuration of testing scheme in the interface by all kinds of configuration components.
In the present embodiment, testing scheme includes some test actions, such as the test including reaching the page to be tested is moved
Make, recognize the test action of dom elements in the page to be tested, the test that the dom elements identified carry out each class testing is moved
Make, etc..
Testing scheme also includes following configuration information:Sequence of movement, manner of execution, write-in value, element value, identification method,
Action specification.In more embodiments, can also according to the actual requirements by testing scheme be configured to include above-mentioned arbitrary one or
Multinomial configuration information, it is possible to further comprise other all kinds of configuration informations commonly used in the art in configuration testing scheme.
S24:Protocol information is generated according to acquired testing scheme, parsed simultaneously after being obtained for automatic test terminal
Perform.
Specifically, with method shown in Fig. 1 accordingly, in the present embodiment, by acquired in step S22 in step S24
Testing scheme is packaged into js files, parses and performs after being obtained for automatic test terminal, in more embodiments, will can also survey
Examination scheme is packaged into the file of other different-formats.
S26:Some feedback informations that automatic test terminal is returned are received, test report is generated according to each feedback information.
Specifically, with method shown in Fig. 1 accordingly, in the present embodiment, the feedback information bag in method shown in Fig. 2
Include:Execution time, executor tests id, performs step, type of error.In more embodiments, same can configure includes difference
The feedback information of information.
Automatically testing platform is received after each feedback information that automatic test terminal is returned, according to above-mentioned every letter therein
Breath, automatically generates the test report of pre-configured format.
In a preferred embodiment, scheme elements are configured with testing scheme, it is dynamic that the testing scheme includes following test
Make:Scheme elements according to being configured jump directly to the page to be tested.
Specifically, automatically testing platform in visual testing scheme configuration interface by providing configuration scheme elements
Configuration component, get the testing scheme for being configured with scheme elements and be packaged into protocol information, for automatic test
Terminal parses after obtaining and performs the method shown in Fig. 2.
Fig. 4 is a kind of flow chart of preferred embodiment of method shown in Fig. 3.
As shown in figure 4, in a preferred embodiment, also including after step S26:
S28:Query statement or analysis instruction are received, according to query statement or analysis instruction to corresponding feedback information
And/or test report is inquired about or analyzed, generate Query Result or analysis result and return.
Specifically, tester can send query statement or analysis instruction by automatic test terminal configuration concurrency, also may be used
To be logged in other any terminals, such as PC terminals after automatically testing platform, configuration generation query statement or analysis instruction.From
Dynamic test platform is received after query statement or analysis instruction, can carry out inquiry point to corresponding feedback information and test report
Analysis, generates result and returns.
A kind of structural representation for automatic test terminal that Fig. 5 provides for one embodiment of the invention.Automatic survey shown in Fig. 5
The method performed shown in Fig. 1-2 can be corresponded to by trying terminal.
As shown in figure 5, in the present embodiment, the present invention provides a kind of automatic test terminal 10, including:
First communication unit 11, is configured to obtain protocol information to automatically testing platform, feedback information is sent
To automatically testing platform for generation test report;
Resolution unit 13, is configured to parsing protocol information to generate test command sequence, the test command sequence
Including asserting and to asserting that each dom elements are tested for some identification dom elements;
Test cell 15, is configured to carry out test command sequence to know each dom elements in software under testing UI
Other and test, and generate feedback information when performing and respectively asserting.
Specifically, in the present embodiment, automatic test terminal 10 is configured to the APP softwares being arranged in mobile phone.
In more embodiments, automatic test terminal 10 can also be configured to be arranged on the distinct devices such as PC according to the actual requirements
In software;Or, the hardware unit tested automatically is exclusively used in, for example, handheld test terminal device integrated etc.;It is
As for the equipment of other combination thereof types, for example, the first communication unit 11 and resolution unit 13 are configured to and mobile communication
The hardware unit of connection, test cell 15 are configured to software being arranged in mobile phone, etc..
In a preferred embodiment, test command sequence also includes scheme elements.
Test cell 15 is further configured to carry out test command sequence to jump directly to treat according to scheme elements
Test page.Concrete principle is referring to above-mentioned on method shown in Fig. 2 and its explanation of preferred embodiment, and here is omitted.
A kind of structural representation for automatically testing platform that Fig. 6 provides for one embodiment of the invention.Automatic survey shown in Fig. 6
The method performed shown in Fig. 3 can be corresponded to by trying platform.
As shown in fig. 6, in the present embodiment, the present invention also provides a kind of automatically testing platform 20, including:
Dispensing unit 21, is configured to visual testing scheme configuration interface and obtains what is configured in the interface
The testing scheme that each dom elements in software under testing UI are identified and tested;
Encapsulation unit 23, is configured to generate protocol information according to acquired testing scheme;
Second communication unit 25, is configured to send to automatic test terminal to parse simultaneously by the protocol information
Perform, receive some feedback informations that the automatic test terminal is returned;
Reporting unit 27, is configured to according to each feedback information generation test report.
Specifically, in the present embodiment, automatically testing platform 20 is configured to install software in a computer.
In more embodiments, automatically testing platform 20 can also be configured to be arranged on mobile terminal etc. no according to the actual requirements
With the software in equipment;Or, being exclusively used in carrying out configuration testing scheme and generating the hardware unit of the functions such as test report.
Fig. 7 is a kind of structural representation of preferred embodiment of platform shown in Fig. 6.Automatically testing platform shown in Fig. 7
The method performed shown in Fig. 4 can be corresponded to.
As shown in fig. 7, in a preferred embodiment, the second communication unit 25 be further configured to receive query statement or
Analysis instruction, returns to Query Result or analysis result.
Automatically testing platform 20 also includes:
Query unit 29, is configured to according to query statement or analysis instruction to corresponding feedback information and/or test
Report is inquired about or analyzed, generation Query Result or analysis result.Concrete principle referring to it is above-mentioned on method shown in Fig. 4 and its
The explanation of preferred embodiment, here is omitted.
A kind of structural representation for Auto-Test System that Fig. 8 provides for one embodiment of the invention.
As shown in figure 8, in the present embodiment, the present invention also provides a kind of Auto-Test System, including some any of the above-described
The automatic test terminal 10 that embodiment is provided, and the automatically testing platform 20 that any of the above-described embodiment is provided.
A kind of structural representation for equipment that Fig. 9 provides for one embodiment of the invention.
As shown in figure 9, as on the other hand, present invention also provides a kind of equipment 900, including one or more centres
Unit (CPU) 901 is managed, it can add according to the program being stored in read-only storage (ROM) 902 or from storage part 908
The program that is downloaded in random access storage device (RAM) 903 and perform various appropriate actions and processing.In RAM903, also deposit
Contain equipment 900 and operate required various programs and data.CPU901, ROM902 and RAM903 pass through the phase each other of bus 904
Even.Input/output (I/O) interface 905 is also connected to bus 904.
I/O interfaces 905 are connected to lower component:Importation 906 including keyboard, mouse etc.;Penetrated including such as negative electrode
The output par, c 907 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 908 including hard disk etc.;
And the communications portion 909 of the NIC including LAN card, modem etc..Communications portion 909 via such as because
The network of spy's net performs communication process.Driver 910 is also according to needing to be connected to I/O interfaces 905.Detachable media 911, such as
Disk, CD, magneto-optic disk, semiconductor memory etc., are arranged on driver 910, in order to read from it as needed
Computer program be mounted into as needed storage part 908.
Especially, in accordance with an embodiment of the present disclosure, the automatic test approach of any of the above-described embodiment description can be implemented
For computer software programs.For example, embodiment of the disclosure includes a kind of computer program product, it includes being tangibly embodied in
Computer program on machine readable media, the computer program includes the program code for being used for performing automatic test approach.
In such embodiments, the computer program can be downloaded and installed by communications portion 909 from network, and/or from
Detachable media 911 is mounted.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of various embodiments of the invention, method and computer journey
Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation
The part of one module of table, program segment or code, the part of the module, program segment or code is used comprising one or more
In the executable instruction for realizing defined logic function.It should also be noted that in some realizations as replacement, being marked in square frame
The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually
It can perform substantially in parallel, they can also be performed in the opposite order sometimes, depending on this is according to involved function.Also
It is noted that the combination of each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart, Ke Yitong
Function as defined in performing or the special hardware based system of operation is crossed to realize, or can be by specialized hardware with calculating
The combination of machine instruction is realized.
Being described in unit or module involved in the embodiment of the present application can be realized by way of software, can also
Realized by way of hardware.Described unit or module can also be set within a processor, for example, each unit can
With the software program being provided in computer or intelligent movable equipment or the hardware unit being separately configured.Wherein, this
The title of a little units or module does not constitute the restriction to the unit or module in itself under certain conditions.
As another aspect, present invention also provides a kind of computer-readable recording medium, the computer-readable storage medium
Matter can be the computer-readable recording medium included in the device of above-described embodiment;Can also be individualism, it is unassembled
Enter the computer-readable recording medium in equipment.Computer-readable recording medium storage has one or more than one program, should
Program is used for performing the automatic test side for being described in the offer of the application any embodiment by one or more than one processor
Method.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the application design, is appointed by above-mentioned technical characteristic or its equivalent feature
Other technical schemes formed by meaning combination.Such as features described above has similar functions with (but not limited to) disclosed herein
Technical characteristic carry out mutually replace formed by technical scheme.
Claims (16)
1. a kind of automatic test approach, it is characterised in that methods described includes:
Protocol information is obtained to automatically testing platform;
The protocol information is parsed to generate test command sequence, the test command sequence includes some identification documents pair
As asserting and to asserting that each dom elements are tested for model (Document Object Model, abbreviation dom) element;
The test command sequence is performed to be identified and survey with each dom elements in the user interface (UI) to software under testing
Examination, perform it is each it is described assert when generation feedback information and send to the automatically testing platform for generation test report.
2. automatic test approach according to claim 1, it is characterised in that the test command sequence also includes position
(scheme) element;
The parsing protocol information is also included with generating to test after command sequence:
The test command sequence is performed to jump directly to the page to be tested according to the scheme elements.
3. automatic test approach according to claim 1 or 2, it is characterised in that the feedback information include it is following at least
One:Execution time, executor tests id, performs step, type of error.
4. a kind of automatic test approach, it is characterised in that methods described includes:
By visual testing scheme configuration interface obtain configured in the interface in software under testing UI each dom member
The testing scheme that element is identified and tested;
Protocol information is generated according to acquired testing scheme, parses and performs after being obtained for automatic test terminal;
Some feedback informations that the automatic test terminal is returned are received, test report is generated according to each feedback information.
5. automatic test approach according to claim 4, it is characterised in that scheme members are configured with the testing scheme
Element, the testing scheme includes following test action:Scheme elements according to being configured jump directly to the page to be tested.
6. automatic test approach according to claim 4, it is characterised in that it is dynamic that the testing scheme includes some tests
Make, and at least one following configuration information:Sequence of movement, manner of execution, write-in value, element value, identification method, action is said
It is bright.
7. automatic test approach according to claim 4, it is characterised in that the feedback information includes following at least one
:Execution time, executor tests id, performs step, type of error.
8. the automatic test approach according to claim any one of 4-7, it is characterised in that the reception automatic test
Some feedback informations that terminal is returned, also include after generating test report according to each feedback information:
Receive query statement or analysis instruction, according to the query statement or analysis instruction to corresponding feedback information and/or
Test report is inquired about or analyzed, and is generated Query Result or analysis result and is returned.
9. a kind of automatic test terminal, it is characterised in that including:
First communication unit, is configured to obtain protocol information to automatically testing platform, feedback information is sent to described
Automatically testing platform is for generation test report;
Resolution unit, is configured to parse the protocol information to generate test command sequence, the test command sequence
Including asserting and to asserting that each dom elements are tested for some identification dom elements;
Test cell, is configured to carry out the test command sequence each dom elements in software under testing UI are identified
And test, and perform it is each it is described assert when generate feedback information.
10. automatic test terminal according to claim 9, it is characterised in that the test command sequence also includes
Scheme elements;
The test cell is further configured to carry out the test command sequence directly to be jumped according to the scheme elements
Go to the page to be tested.
11. a kind of automatically testing platform, it is characterised in that including:
Dispensing unit, be configured to visual testing scheme configuration interface obtain configured in the interface to be measured
The testing scheme that each dom elements in software UI are identified and tested;
Encapsulation unit, is configured to generate protocol information according to acquired testing scheme;
Second communication unit, is configured to send the protocol information to automatic test terminal for parsing and performing,
Receive some feedback informations that the automatic test terminal is returned;
Reporting unit, is configured to according to each feedback information generation test report.
12. automatically testing platform according to claim 11, it is characterised in that be configured with scheme in the testing scheme
Element, the testing scheme includes following test action:Scheme elements according to being configured jump directly to the page to be tested.
13. the automatically testing platform according to claim 11 or 12, it is characterised in that second communication unit is further
It is configured to receive query statement or analysis instruction, returns to Query Result or analysis result;
The automatically testing platform also includes:
Query unit, is configured to report corresponding feedback information and/or test according to the query statement or analysis instruction
Announcement is inquired about or analyzed, generation Query Result or analysis result.
14. a kind of Auto-Test System, it is characterised in that including some automatic tests as described in claim any one of 9-10
Terminal, and the automatically testing platform as described in claim any one of 11-13.
15. a kind of equipment, it is characterised in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors
The method as any one of claim 1-3 is performed, or, the method as any one of claim 4-7.
16. a kind of computer-readable recording medium for the computer program that is stored with, it is characterised in that the program is executed by processor
Methods of the Shi Shixian as any one of claim 1-3, or, the method as any one of claim 4-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710090288.XA CN106959921A (en) | 2017-02-20 | 2017-02-20 | Automatic test approach, terminal, platform and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710090288.XA CN106959921A (en) | 2017-02-20 | 2017-02-20 | Automatic test approach, terminal, platform and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106959921A true CN106959921A (en) | 2017-07-18 |
Family
ID=59481604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710090288.XA Pending CN106959921A (en) | 2017-02-20 | 2017-02-20 | Automatic test approach, terminal, platform and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106959921A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107608659A (en) * | 2017-08-25 | 2018-01-19 | 北京智行鸿远汽车有限公司 | Design method applied to the LabVIEW of response multitask software architecture |
CN108459959A (en) * | 2017-12-29 | 2018-08-28 | 北京五八信息技术有限公司 | User interface automated testing method, device, equipment and storage medium |
CN108845925A (en) * | 2018-03-30 | 2018-11-20 | 新华三技术有限公司 | Web page test method, device, electronic equipment and computer-readable medium |
CN109144850A (en) * | 2018-07-23 | 2019-01-04 | 上海携程商务有限公司 | The test method interactively communicated and system of mobile terminal |
CN109815130A (en) * | 2018-12-26 | 2019-05-28 | 中链科技有限公司 | The storage method and system of software compatibility test based on block chain |
CN111209183A (en) * | 2018-11-22 | 2020-05-29 | 中国电信股份有限公司 | UI function traversal test method and device |
CN111475394A (en) * | 2019-01-24 | 2020-07-31 | 阿里巴巴集团控股有限公司 | Application testing method and device |
CN112148579A (en) * | 2019-06-26 | 2020-12-29 | 腾讯科技(深圳)有限公司 | User interface testing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679658A (en) * | 2015-03-17 | 2015-06-03 | 百度在线网络技术(北京)有限公司 | Test method and test system for WEB pages |
US20150242380A1 (en) * | 2014-02-27 | 2015-08-27 | International Business Machines Corporation | Checking testing coverage |
CN105095067A (en) * | 2014-05-21 | 2015-11-25 | 北京奇虎科技有限公司 | User interface element object identification and automatic test method and apparatus |
CN105260299A (en) * | 2015-09-17 | 2016-01-20 | 安一恒通(北京)科技有限公司 | Method, device, and system for software test |
CN105868100A (en) * | 2015-12-22 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Android system-based automatic test method and device |
CN105912473A (en) * | 2016-04-15 | 2016-08-31 | 上海海万信息科技有限公司 | BDD-based mobile APP automatic testing platform and testing method |
-
2017
- 2017-02-20 CN CN201710090288.XA patent/CN106959921A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150242380A1 (en) * | 2014-02-27 | 2015-08-27 | International Business Machines Corporation | Checking testing coverage |
CN105095067A (en) * | 2014-05-21 | 2015-11-25 | 北京奇虎科技有限公司 | User interface element object identification and automatic test method and apparatus |
CN104679658A (en) * | 2015-03-17 | 2015-06-03 | 百度在线网络技术(北京)有限公司 | Test method and test system for WEB pages |
CN105260299A (en) * | 2015-09-17 | 2016-01-20 | 安一恒通(北京)科技有限公司 | Method, device, and system for software test |
CN105868100A (en) * | 2015-12-22 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Android system-based automatic test method and device |
CN105912473A (en) * | 2016-04-15 | 2016-08-31 | 上海海万信息科技有限公司 | BDD-based mobile APP automatic testing platform and testing method |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107608659A (en) * | 2017-08-25 | 2018-01-19 | 北京智行鸿远汽车有限公司 | Design method applied to the LabVIEW of response multitask software architecture |
CN108459959A (en) * | 2017-12-29 | 2018-08-28 | 北京五八信息技术有限公司 | User interface automated testing method, device, equipment and storage medium |
CN108845925A (en) * | 2018-03-30 | 2018-11-20 | 新华三技术有限公司 | Web page test method, device, electronic equipment and computer-readable medium |
CN108845925B (en) * | 2018-03-30 | 2022-02-11 | 新华三技术有限公司 | Web page testing method and device, electronic equipment and computer readable medium |
CN109144850A (en) * | 2018-07-23 | 2019-01-04 | 上海携程商务有限公司 | The test method interactively communicated and system of mobile terminal |
CN109144850B (en) * | 2018-07-23 | 2022-02-11 | 上海携程商务有限公司 | Method and system for testing interactive communication of mobile terminal |
CN111209183A (en) * | 2018-11-22 | 2020-05-29 | 中国电信股份有限公司 | UI function traversal test method and device |
CN109815130A (en) * | 2018-12-26 | 2019-05-28 | 中链科技有限公司 | The storage method and system of software compatibility test based on block chain |
CN111475394A (en) * | 2019-01-24 | 2020-07-31 | 阿里巴巴集团控股有限公司 | Application testing method and device |
CN111475394B (en) * | 2019-01-24 | 2023-06-20 | 阿里巴巴集团控股有限公司 | Application testing method and device |
CN112148579A (en) * | 2019-06-26 | 2020-12-29 | 腾讯科技(深圳)有限公司 | User interface testing method and device |
CN112148579B (en) * | 2019-06-26 | 2023-10-03 | 腾讯科技(深圳)有限公司 | User interface testing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106959921A (en) | Automatic test approach, terminal, platform and system | |
CN105487864B (en) | The method and apparatus of Code automatic build | |
CN107704393B (en) | Data test method, apparatus and electronic equipment | |
US20090271351A1 (en) | Rules engine test harness | |
WO2021109928A1 (en) | Creation method, usage method and apparatus for machine learning scheme template | |
CN108446190A (en) | interface test method and device | |
CN104407779B (en) | The arrangement display methods and device of graphical interfaces | |
CN100512274C (en) | Device and method for simulating communication system capable of easily controlling protocol message | |
CN109636681A (en) | Contract generation method, device, equipment and storage medium | |
CN105912473A (en) | BDD-based mobile APP automatic testing platform and testing method | |
CN107526676A (en) | A kind of cross-system method of testing and device | |
Kumar | Reviewing software testing models and optimization techniques: an analysis of efficiency and advancement needs | |
CN103530209B (en) | A kind of code keypad automated testing method | |
CN107729246A (en) | For the auxiliary test methods of intended application, device, equipment and storage medium | |
US20050044490A1 (en) | Framework for creating user interfaces for web application programs | |
Garcia et al. | A Requirements-to-Implementation Mapping Tool for Requirements Traceability. | |
CN108256716A (en) | The method and apparatus of flow and/or atom flow is configured/performed based on table | |
CN104484093B (en) | The arrangement display methods and device of graphical interfaces | |
CN109739764A (en) | A kind of applied program testing method and device | |
CN108132881A (en) | A kind of automated testing method and system | |
Besrour et al. | Assessment and evaluation of requirements elicitation techniques using analysis determination requirements framework | |
CN108877806B (en) | Test verification system for test instruction type voice control system | |
CN107509215A (en) | A kind of wireless authentication automated testing method and system | |
CN110334014A (en) | For user interface automated testing method, system, server and storage medium | |
CN103034990A (en) | Method and device for checking publications |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170718 |