CN106991045A - Page method of calibration and device - Google Patents
Page method of calibration and device Download PDFInfo
- Publication number
- CN106991045A CN106991045A CN201710184199.1A CN201710184199A CN106991045A CN 106991045 A CN106991045 A CN 106991045A CN 201710184199 A CN201710184199 A CN 201710184199A CN 106991045 A CN106991045 A CN 106991045A
- Authority
- CN
- China
- Prior art keywords
- page
- test
- comparison element
- mode
- lookup mode
- 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/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 is, on a kind of page method of calibration and device, to belong to software test field.Method includes:After the completion of test case execution, the comparison element of preset number is obtained, each element that compares at least includes an expected page elements, and each element that compares is used to determine whether the test page that test case is obtained after the completion of performing is consistent with the expected page;At least one lookup mode based on page elements, is positioned on test page to the comparison element of preset number;If any lookup mode no-fix is to the comparison element of preset number at least one lookup mode, test page, which is verified, to fail;If any lookup mode navigates to the comparison element of preset number at least one lookup mode, test page is verified successfully.The present invention is verified to test page according to multiple comparison elements, positioned by a variety of lookup modes to comparing element, it is to avoid the check results that test page is verified are made a mistake, accuracy is improved after test case execution.
Description
Technical field
The present invention relates to software test field, more particularly to a kind of page method of calibration and device.
Background technology
With continuing to develop for Internet technology, and the mobile terminal such as smart mobile phone, tablet personal computer rapidly enters
The application that can be run in step, mobile terminal is more and more extensive, and increasing enterprise is put into the exploitation of application.Due to answering
In development process, using there may be defect or failure, these defects or failure are likely to result in all kinds of losses, or even meeting
The consequence of bringing on a disaster property, therefore, the quality problems of application turn into the focus of enterprise.In order to ensure the quality of application,
It is an essential link in application and development flow using test.When carrying out application test, it is necessary to should in tested
Corresponding test case is performed with middle, the test page of test case operation is obtained, and test page is verified, based on school
Test result and judge that application tests whether success.
In correlation technique, a certain comparison element of positioning when being verified to test page, it is necessary in test page,
If obtaining comparison element success, the page is verified successfully;If obtaining comparison element failure, page verification failure.
During the present invention is realized, inventor has found that correlation technique at least has problems with:
At present, when carrying out page verification, it only can compare element according to one and test page is verified, cause right
When test page is verified, easily make a mistake, accuracy is not high.
The content of the invention
To overcome problem present in correlation technique, the present invention provides a kind of page method of calibration and device.
First aspect according to embodiments of the present invention includes there is provided a kind of page method of calibration, methods described:
After the completion of test case execution, the comparison element of preset number is obtained, each element that compares at least includes one
It is expected that page elements, it is described it is each compare test page that element is used to determining that test case to obtain after the completion of performing whether with advance
The phase page is consistent;
At least one lookup mode based on page elements, to the comparison member of the preset number on the test page
Element is positioned;
If at least one lookup mode any lookup mode no-fix to the preset number comparison element,
The then test page verification failure;
If any lookup mode navigates to the comparison element of the preset number at least one lookup mode,
The test page is verified successfully.
Method provided in an embodiment of the present invention, after the completion of test case execution, is being surveyed by least one lookup mode
The comparison element of preset number is positioned on test page after the completion of example execution on probation so that can be according to multiple comparison elements pair
Test page is verified, and can be positioned by a variety of lookup modes to comparing element, it is to avoid test page is entered
The check results obtained after row verification make a mistake, and improve accuracy.
In another embodiment, at least one lookup mode based on page elements, on the test page
Comparison element progress positioning to the preset number includes:
Mode is searched based on first at least one lookup mode, the comparison is positioned on the test page
Element;
If the first lookup mode successfully positions the comparison element on the test page, complete to the ratio
Positioning to element;
If described first search mode on the test page no-fix to the comparison element, based on it is described at least
Second in a kind of lookup mode searches mode, and the comparison element is positioned on the test page;
At least one lookup mode is performed respectively, until navigating to the comparison element.
Method provided in an embodiment of the present invention, when first at least one lookup mode searches mode no-fix to comparison
Element, then positioned based on the second lookup mode at least one lookup mode to comparing element, and example is all at least one
Each planted in lookup mode searches mode, until the comparison element of preset number is found, if whole lookup modes is equal
No-fix is to element is compared, then test page verification failure so that the ratio of preset number can be determined according to a variety of lookup modes
To element, the accuracy of test page verification is improved.
In another embodiment, it is described after the completion of test case is performed, after the comparison element for obtaining preset number,
Methods described also includes:
If at least one lookup mode is only the 3rd lookup mode, mode is searched based on the 3rd, in the test
The comparison element of the preset number is positioned on the page;
If navigating to the comparison element of the preset number in preset time, the test page is verified successfully;
If no-fix is to the comparison element of the preset number in preset time, the test page, which is verified, to fail.
Method provided in an embodiment of the present invention, when being based only upon the 3rd lookup mode contrast locating to element, judges to compare member
Element whether appear on test page, when navigate to compare element appear on test page when, it is determined that test page verify
Success, when no-fix is appeared on test page to comparison element, is started waiting for, if navigating to comparison member in preset time
Element is appeared on test page, it is determined that test page is verified successfully so that when test case performs and there is delay, Ke Yigeng
Plus intelligently on test page contrast locating to element.
In another embodiment, at least one lookup mode based on page elements, on the test page
The comparison element of the preset number, which is positioned, also to be included:
If the comparison element is the changeless page elements of Android Android ends name text attribute, based on money
Source identifies resource-id and the comparison element is positioned;
If described compare the variable page elements that element is Android ends dynamic generation, based on path language xpath
The comparison element is positioned;
If the comparison element is the changeless page elements of IOS ends name text attribute, based on addressable mark
Accessibility_id or identifier identifier is positioned to the comparison element;
If described compare the variable page elements that element is IOS ends dynamic generation, based on IOS test scripts
Uiautomation is positioned to the comparison element.
Method provided in an embodiment of the present invention, can be set not for different types of comparison element in different mobile terminal
Same lookup mode, it is more intelligent so that the verification to test page is more accurate.
In another embodiment, methods described also includes:
If the test page verification failure, STF platforms are handled by network web access through type;
Based on the STF platforms, access control Control interfaces;
Remote debugging Remote_debug addresses are obtained at the Control interfaces;
Based on CMD, the Remote_debug addresses are connected, when the Remote_debug addresses are connected into
Work(, then carry out remote debugging, completes the test page verification.
Method provided in an embodiment of the present invention, when test page verifies failure, can obtain Remote_debug addresses,
And remote debugging is carried out based on the mobile terminal that Remote_debug addresses verify failure to test page, without to mobile terminal
Locally debugged, save substantial amounts of manpower and materials.
Second aspect according to embodiments of the present invention includes there is provided a kind of page calibration equipment, described device:
Element acquisition module, after the completion of being performed when test case, obtains the comparison element of preset number, each to compare
Element at least includes an expected page elements, and each element that compares is used to determine what test case was obtained after the completion of performing
Whether test page is consistent with the expected page;
First locating module, at least one lookup mode based on page elements, to institute on the test page
The comparison element for stating preset number is positioned;
Failure module, presets if being additionally operable to any lookup mode no-fix at least one lookup mode to described
The comparison element of number, then the test page verification failure;
Success module, if being additionally operable to any lookup mode at least one lookup mode navigates to the present count
Purpose compares element, then the test page is verified successfully.
Device provided in an embodiment of the present invention, after the completion of test case execution, is being surveyed by least one lookup mode
The comparison element of preset number is positioned on test page after the completion of example execution on probation so that can be according to multiple comparison elements pair
Test page is verified, and can be positioned by a variety of lookup modes to comparing element, it is to avoid test page is entered
The check results obtained after row verification make a mistake, and improve accuracy.
In another embodiment, first locating module includes:
First positioning submodule, for searching mode based on first at least one lookup mode, is surveyed described
The comparison element is positioned on the examination page;
Submodule is completed, if successfully positioning the comparison member on the test page for the first lookup mode
Element, then complete the positioning to the comparison element;
The first positioning submodule, if be additionally operable to the first lookup mode on the test page no-fix to institute
Comparison element is stated, then mode is searched based on second at least one lookup mode, institute is positioned on the test page
State comparison element;
The first positioning submodule, is additionally operable to perform at least one lookup mode respectively, until navigating to described
Compare element.
In another embodiment, described device also includes:
Second locating module, if being only the 3rd lookup mode at least one lookup mode, is looked into based on the 3rd
Mode is looked for, the comparison element of the preset number is positioned on the test page;
The success module, it is described to survey if the comparison element for navigating to the preset number in preset time
The examination page is verified successfully;
It is described failure module, if in preset time no-fix to the preset number comparison element, it is described
Test page verification failure.
In another embodiment, the locating module also includes:
Second positioning submodule, if being that Android Android ends name text attribute immobilizes for the comparison element
Page elements, then based on resource identification resource-id to it is described comparison element position;
3rd positioning submodule, if for the variable page elements that the comparison element is Android ends dynamic generation,
Then the comparison element is positioned based on path language xpath;
4th positioning submodule, if being the changeless page member of IOS ends name text attribute for the comparison element
Element, then positioned based on addressable mark accessibility_id or identifier identifier to the comparison element;
5th positioning submodule, if for the variable page elements that the comparison element is IOS ends dynamic generation, base
The comparison element is positioned in IOS test scripts uiautomation.
In another embodiment, described device also includes:
First access modules, fail if being verified for the test page, are handled by network web access through type
STF platforms;
Second access modules, for based on the STF platforms, access control Control interfaces;
Address acquisition module, for obtaining remote debugging Remote_debug addresses at the Control interfaces;
Link block, for based on CMD, the Remote_debug addresses being connected, as the Remote_
The successful connection of debug addresses, then carry out remote debugging, completes the test page verification.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention
Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of page method of calibration according to an exemplary embodiment;
Fig. 2A is a kind of schematic diagram of page method of calibration according to an exemplary embodiment;
Fig. 2 B are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 C are a kind of flow charts of page method of calibration according to an exemplary embodiment;
Fig. 2 D are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 E are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 F are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 G are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 H are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 I are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 J are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 K are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 L are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 2 M are a kind of schematic diagrames of page method of calibration according to an exemplary embodiment;
Fig. 3 A are a kind of block diagrams of page calibration equipment according to an exemplary embodiment;
Fig. 3 B are a kind of block diagrams of page calibration equipment according to an exemplary embodiment;
Fig. 3 C are a kind of block diagrams of page calibration equipment according to an exemplary embodiment;
Fig. 3 D are a kind of block diagrams of page calibration equipment according to an exemplary embodiment;
Fig. 3 E are a kind of block diagrams of page calibration equipment according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of page calibration equipment 400 according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
Fig. 1 is a kind of flow chart of page method of calibration according to an exemplary embodiment, as shown in figure 1, the party
Method comprises the following steps.
In a step 101, after the completion of test case execution, the comparison element of preset number is obtained, element is each compared
At least include an expected page elements, each element that compares is used for the test page for determining that test case is obtained after the completion of performing
It is whether consistent with the expected page.
In a step 102, at least one lookup mode based on page elements, to the ratio of preset number on test page
Element is positioned.
In step 103, if comparison of any lookup mode no-fix to preset number at least one lookup mode
Element, then test page verification failure.
At step 104, if any lookup mode navigates to the comparison member of preset number at least one lookup mode
Element, then test page verify successfully.
Method provided in an embodiment of the present invention, after the completion of test case execution, is being surveyed by least one lookup mode
The comparison element of preset number is positioned on test page after the completion of example execution on probation so that can be according to multiple comparison elements pair
Test page is verified, and can be positioned by a variety of lookup modes to comparing element, it is to avoid test page is entered
The check results obtained after row verification make a mistake, and improve accuracy.
In another embodiment, at least one lookup mode based on page elements, to present count on test page
Purpose, which compares element progress positioning, to be included:
Mode is searched based on first at least one lookup mode, contrast locating is to element on test page;
If first, which searches mode success contrast locating on test page, to element, completes the positioning to comparing element;
If first searches mode, no-fix is to element is compared on test page, based at least one lookup mode
Second searches mode, and contrast locating is to element on test page;
At least one lookup mode is performed respectively, until navigating to comparison element.
In another embodiment, after the completion of test case execution, after the comparison element for obtaining preset number, method
Also include:
If at least one lookup mode is only the 3rd lookup mode, mode is searched based on the 3rd, it is fixed on test page
The comparison element of position preset number;
If navigating to the comparison element of preset number in preset time, test page is verified successfully;
If no-fix is to the comparison element of preset number in preset time, test page, which is verified, to fail.
In another embodiment, at least one lookup mode based on page elements, to present count on test page
Purpose, which compares element and positioned, also to be included:
If comparison element is the changeless page elements of Android Android ends name text attribute, based on resource mark
Know resource-id and positioned to comparing element;
If comparing the variable page elements that element is Android ends dynamic generation, based on path language xpath contrasts
Element is positioned;
If comparison element is the changeless page elements of IOS ends name text attribute, based on addressable mark
Accessibility_id or identifier identifier is positioned to comparing element;
If the variable page elements that element is IOS ends dynamic generation are compared, based on IOS test scripts
Uiautomation is positioned to comparing element.
In another embodiment, this method also includes:
If test page verification failure, STF platforms are handled by network web access through type;
Based on STF platforms, access control Control interfaces;
Remote debugging Remote_debug addresses are obtained at Control interfaces;
Based on CMD, connection Remote_debug addresses when the successful connection of Remote_debug addresses, are then carried out
Remote debugging, completes test page verification.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure, herein no longer using any combination
Repeat one by one.
The embodiment of the present invention performs operation flow for the application test automation of complete set, and this holds using test automation
Row operation flow can utilize CI (Continuous integration, continuous integrating) platform construction, and the application test is automatic
Change and perform operation flow for performing the test to application automatically, can be made up of following seven parts:
Part I:It is automatic to restart what ADB (Android Debug Bridge, Android debugging bridge) was serviced and was tested
Mobile terminal.
In embodiments of the present invention, it is necessary to be tested by carrier of mobile terminal when testing application, therefore,
The mobile terminal at tested application place is required connect on the server of computer room, and survey is performed by server controls mobile terminal
Example on probation, completes the test to application.Wherein, when mobile terminal is connected into server, it can be connected based on ADB services
Connect, in order to prevent ADB services from making a mistake or mobile terminal occur the situation without response, therefore, server can periodically
The mobile terminal for restarting tested application place automatically ADB services and the mobile terminal at tested application place.
Server restarts the ADB services of the mobile terminal at tested application place and tested application place automatically
Mobile terminal operation can based on code realize, wherein, the core code that server is restarted automatically as shown in Figure 2 A, server
Cycle inlet porting can be provided, when detecting developer's click cycle inlet porting, the display cycle sets the page, in week
Phase sets the page to show a variety of alternative cycles and periodical input frame;Developer can click directly on the alternative cycle conduct of selection
Server periodically time for restarting automatically, can also input in periodical input frame needs the cycle of setting, to complete pair
The cycle that server is restarted automatically is set.When each cycle detection of server is to when needing to be restarted automatically, then automatically generate
Instruction of restarting;When detecting instruction of restarting generation, the terminal address of the current whole mobile terminals connected is obtained, by weight
Open instruction and send the whole mobile terminals indicated to terminal address.
In order that server knows whether mobile terminal restarts completion, for each mobile whole in whole mobile terminals
End, when receiving instruction of restarting, mobile terminal will be restarted, and generated and successfully instructed after completing to restart, based on
Connection between server, server is returned to by successfully instruction;When server receives the success that whole mobile terminals are returned
During instruction, just determine currently to restart success automatically, complete restarting the automatic of whole mobile terminals.
Part II:Mobile terminal connection status is checked.
In embodiments of the present invention, in order to avoid exception occurs for the connection between server and mobile terminal, server is needed
Connection that will be pair between whole mobile terminals is checked, checks whether the connection between mobile terminal is normal, if inspection
Occur exception to the connection between some mobile terminal, then pointed out on the home screen, so that developer is known currently
Exception occurs for the connection between mobile terminal and server, and connection is repaired.
Wherein, when whether connection of the server between inspection and mobile terminal be normal, heartbeat mode or wheel can be used
Inquiry mode is checked.When server uses heartbeat mode to check whether the connection between mobile terminal is normal, with service
The mobile terminal of device connection periodically can send heartbeat signal to server, and heartbeat signal is used to indicate current mobile terminal
Connection between server is normal, if server can periodically receive the heartbeat signal of mobile terminal transmission, takes
Business device can determine that the connection between mobile terminal is normal;If server fails to receive mobile terminal return in each cycle
Heartbeat signal, then server can determine that connection between mobile terminal occurs abnormal, it is necessary to be repaired to connection.Work as service
When whether device uses the connection between polling mode inspection and mobile terminal normal, server can be periodically to mobile terminal
Inquiry signal is sent, so that mobile terminal returns to confirmation signal after inquiry signal is received to server;If mobile terminal with
Connection between server is normal, then mobile terminal just can be returned after the inquiry signal of server transmission is received to server
Confirmation signal is returned, so that server knows that the connection between mobile terminal is normal;If the company between mobile terminal and server
Exception is connect, then mobile terminal may not receive the inquiry signal of server transmission, also or without normal direction server return to confirmation letter
Number, such server just can not receive the confirmation signal of mobile terminal, and server can determine that the connection between mobile terminal
Generation is abnormal, it is necessary to be repaired.
It should be noted that for the whether normal mode of the connection between server inspection and mobile terminal, the present invention
To this without specific restriction.
Part III:Using automatic packing.
In embodiments of the present invention, before testing application, in order to ensure that tested version is the newest of application
Version, to the latest edition of application improve, it is necessary to carry out the application being tested in the mobile terminal that has connected
Detection, judges whether the tested application installed in mobile terminal is the latest edition of application, if installed in mobile terminal
The application of tested application not latest edition, then need to obtain the application that current application can be updated to latest edition and install
Bag, is packed automatically to application.
When whether the tested application installed in judging mobile terminal is the latest edition of application, movement can be obtained
The version number for the application installed in terminal and the particular content of application, if according to the version number of application and application it is specific in
Hold and determine that the current version of application is latest edition, then following the can be continued executing with based on the application being currently installed in mobile terminal
Four parts;If determining the current version of application not latest edition according to the particular content of the version number of application and application,
According to the application identities and the current version number of application that application is currently installed in mobile terminal, current application can be updated to by acquisition
The application installation package of latest edition, is packed automatically to application, so that subsequently can be true according to the latest edition of current application
It is scheduled on the test case for needing to perform when testing the application installed in mobile terminal.Wherein, the particular content of application can
For the page iden-tity of current displayable whole pages in application, the tested application so installed in mobile terminal is judged is
During no latest edition for application, it can obtain the version number of application and the particular content of application, judge the version number of application
It is whether consistent with latest edition number, and the page iden-tity of displayable whole pages in the application of latest edition is obtained, with movement
The page iden-tity for the displayable whole pages of tested application installed in terminal is compared, if the quilt installed in mobile terminal
Test application version number it is consistent with latest edition number, and in the application of latest edition displayable whole pages page iden-tity
It is consistent with the page iden-tity of the displayable whole pages of the tested application installed in mobile terminal, then it represents that to be installed in terminal
Tested application is the latest edition of application;If the version number for the tested application installed in mobile terminal and latest edition number are not
Unanimously, and in the application of latest edition the tested application installed in the page iden-tity and mobile terminal of displayable whole pages
There is inconsistent page iden-tity in the page iden-tity of displayable whole pages, then it represents that the tested application installed in terminal is simultaneously
The non-latest edition for application.
Part IV:Pull the use-case code of newest test case.
In embodiments of the present invention, it is right in order to ensure can subsequently be tested according to newest test case application
The latest edition progress of application is perfect, accordingly, it would be desirable to pull the use-case code of newest test case according to the application of latest edition.
When pulling the use-case code of newest test case, server can be in use-case code database according to latest edition
The application identities of tested application determine the use-case code of tested application, and use-case code is pulled.Wherein, use-case code
Database is stored application identities with using corresponding use-case code is corresponding, is each out using corresponding use-case code
Hair personnel obtain according to application build.
Part V:For each application build test case, application is tested based on test case.
In embodiments of the present invention, it can determine that use-case code is corresponding in test case data storehouse according to use-case code
Test case.After the test case of tested application is got, server is by the application identities of application with being tested the test applied
Use-case correspondence is stored to local, is based on testing tested application with the corresponding test case of tested application so as to follow-up.
Test case is being started based on to using before testing, because an application may need to perform at least one
Test case, and there may be multiple applications and need to be tested, therefore, in order to perform at least one test case simultaneously,
Usually introduce burse mode and perform test., it is necessary to set device parameter at least one test case, this sets in burse mode
Standby parameter is used for the mobile terminal for indicating test case operation, and device parameter can use-U to represent.For at least one test case
Set after device parameter, in order to realize the concurrent of at least one test case, can will belong at least one son of same main task
Task is associated with least one test case, and based on multitask plug-in unit, performs the main task, so that device parameter is indicated
Mobile terminal can perform at least one test case simultaneously, realize the concurrent of test case.Wherein, multitask plug-in unit can be
Jenkins MultiJob Phase (integrated multitask) pin function, it is above-mentioned that test case is carried out simultaneously based on multitask plug-in unit
The process that hair is performed can be realized based on the code shown in Fig. 2 B.
Can be at least one subtask to collect the test result of subtasking after the completion of being performed in each subtask
In each subtask configuration association task, and obtained test result behind each subtask will be performed based on association subtask pass
Collection task is transported to, so that collection task realizes the collection to test result.
After test case is finished, the mobile terminal of implementation of test cases can show test page, in order to judge to survey
Whether example on probation runs succeeded on mobile terminals, and server needs to verify test page, judges obtained test sheets
Whether face is consistent with the expected page, however, it is determined that obtained test page is consistent with the expected page, it is determined that test page is carried out
Verify successfully;If it is determined that obtained test page and the expected page are inconsistent, it is determined that carry out verification failure to test page.Its
In, when being verified to test page, referring to Fig. 2 C, it can be realized based on following step 201 to step 205.
In step 201, after the completion of test case execution, the comparison element of preset number is obtained, element is each compared
At least include an expected page elements, each element that compares is used for the test page for determining that test case is obtained after the completion of performing
It is whether consistent with the expected page.
In embodiments of the present invention, it is to judge the test page obtained after the completion of test case execution with being expected the page
It is no consistent, it is necessary to be determined based on the comparison element on the expected page, the comparison element being also even expected on the page can surveyed
Positioned successfully on the examination page, then can determine that test page is consistent with the expected page;If it is expected that the comparison element on the page is being surveyed
Try to position failure on the page, then can determine that test page and the expected page are inconsistent.Due to true based on single comparison element
Determine test page relatively low with being expected the result the accuracy whether page unanimously obtains, therefore, present count is provided with the present invention
Purpose compares element, and each element that compares at least includes an expected page elements, can be by performing the generation shown in Fig. 2 D
Code is realized, it is ensured that the accuracy verified to test page.
In step 202., at least one lookup mode based on page elements, to the ratio of preset number on test page
Element is positioned, if any lookup mode navigates to the comparison element of preset number at least one lookup mode,
Test page is verified successfully;If comparison member of any lookup mode no-fix to preset number at least one lookup mode
Element, then perform following step 203.
In embodiments of the present invention, at least one lookup mode based on page elements, to present count on test page
Purpose compares element when being positioned, can be according to the number of the mode of lookup, and the comparison element of ways of carrying out is positioned, referring to following
Situation one and situation two.
Situation one, lookup mode at least include first and search mode and the second lookup mode.
When the comparison element of preset number is positioned on test page, it can be realized by performing the code shown in Fig. 2 E.
Mode can be searched based on first in a kind of lookup mode less first, contrast locating is to element on test page, if first looks into
Mode success contrast locating on test page is looked for element, then to complete the positioning to comparing element, namely test page is verified into
Work(;If first searches mode, no-fix, afterwards can be based at least one lookup mode to element is compared on test page
In second search mode, contrast locating is to element on test page, by that analogy, until navigating to comparison on the prediction page
Element.
Situation two, lookup mode are only the 3rd lookup mode.
In embodiments of the present invention, in order to avoid there is delay upon execution due to test case, and cause to test sheets
The verification in face makes a mistake,, can when the comparison element of preset number is positioned on test page when being based only upon the 3rd lookup mode
To be realized by performing the code shown in Fig. 2 F.Wherein, preset time can be set in server, and based on being in preset time
It is no to navigate to the comparison element of preset number, it is determined that whether the verification to test page succeeds.Wherein, when setting default
Between when, server can provide preset time inlet porting, and preset time inlet porting is clicked to enter when detecting developer
When, preset time setting interface is shown, sets display on interface to be available for when alternatively presetting of developer's selection in preset time
Between and preset time input frame, if developer have chosen alternative preset time, by developer choose it is alternative default
Time is used as preset time;If developer have input the time in preset time input frame, by developer input when
Between be used as preset time.
So, when positioning the comparison element of preset number on test page based on the 3rd lookup mode, if default
The comparison element of preset number is navigated in time, it is determined that test page is verified successfully;If no-fix is arrived in preset time
The comparison element of preset number, then test page verification failure.
Wherein, different types of comparison element is positioned in different mobile terminal in order to meet server, makes contrast locating pair
The mode of element is more flexible, therefore, for the comparison element on different types of comparison element and different mobile terminal,
No lookup mode can be used.If it is the changeless page member of Android Android ends name text attribute to compare element
Element, then positioned based on resource identification resource-id to comparing element;If comparison element is Android ends dynamic generation
Variable page elements, then based on path language xpath to compare element position;If comparison element is IOS ends title
The changeless page elements of text attribute, then based on addressable mark accessibility_id or identifier identifier
Positioned to comparing element;If comparing the variable page elements that element is IOS ends dynamic generation, pin is tested based on IOS
This uiautomation is positioned to comparing element.
If it should be noted that in above-mentioned two situations, whole lookup modes at least one in lookup mode are
Comparison element is navigated in test page, it is determined that test page verification failure, namely perform following step 203.
It should be noted that the above-mentioned process detected to test page is to be contrasted based on lookup mode in test page
Element is positioned, wherein, it may be based on lookup mode and positioned in the default page to comparing text, it is pre- to compare text
Text message in the phase page.When being positioned to comparing text, it can be realized based on the code shown in Fig. 2 G, to comparing
The process that text is positioned is consistent with to comparing the process that element positioned, and is no longer repeated herein.
In step 203, if comparison of any lookup mode no-fix to preset number at least one lookup mode
Element, then test page verification failure, STF platforms are handled by network web access through type.
In embodiments of the present invention, if any lookup mode no-fix is to preset number at least one lookup mode
Element is compared, then test page verification failure, therefore, in order to complete the verification to test page, to determine to cause test page
The reason for verification failure, to the mobile terminal for occurring test page verification failure, it is necessary to debug.
When being debugged to mobile terminal, if each debugging will verify test page the mobile terminal of failure
Pull up to come from the server of computer room and locally debugged, the workload of developer can be increased, therefore, it can be based on STF
(Smartphone Test Farm, smart mobile phone test platform) platform carries out remote debugging to mobile terminal.Wherein, to moving
, it is necessary to increase each mobile terminal between server in the presence of connection in STF platforms before dynamic terminal carries out remote debugging
Remote debugging address, when increasing remote debugging address to STF platforms, it is necessary to be carried out to the source code of STF platforms shown in Fig. 2 H
Code revision, so as to by the remote debugging address of each mobile terminal be added to STF platforms in.
When it is determined that test page verification fails, in order to be adjusted to the mobile terminal for occurring test page verification failure
Examination, can access STF platforms, and realize the remote debugging to mobile terminal based on STF platforms by Web (network).
In step 204, based on STF platforms, access control Control interfaces obtain remote debugging at Control interfaces
Remote_debug addresses.
In embodiments of the present invention, server, which is based on STF platforms, can click on mobile terminal for entering Control
The icon at (control) interface, Control interfaces can be accessed with this, and remote debugging Remote_ can be checked at Control interfaces
Debug addresses.
In step 205, based on CMD, Remote_debug addresses are connected, when Remote_debug addresses connect
Work(is connected into, then carries out remote debugging, test page verification is completed.
In embodiments of the present invention, when getting Remote_debug addresses, Remote_ can be inputted in CMD
Debug addresses, realize the mobile terminal being connected to indicated by Remote_debug addresses.Wherein, connect mobile whole to know
Whether end succeeds, and can check whether to be successfully connected to mobile terminal based on the code in Fig. 2 I.So, when be successfully connected to move
After dynamic terminal, just mobile terminal can be debugged, for example, the application installed on mobile terminal be unloaded and obtained
Page elements etc..
Part VI:Test case implementing result is collected.
In embodiments of the present invention, when being collected to test case implementing result, at least one subtask
Any one subtask, it is necessary to the associated task based on subtask, by the task description information transfer of subtask to collection
Task.Wherein, task description information can be the structure numbering Number of subtask, structure address URL, the total number variable of test case
The essential information of the subtasks such as name, failure variable name.
When collection task receives task description information, script can be triggered in order is built;By script simultaneously
Task based access control description information, gets the task run information of subtask, wherein, task run information may include successfully to test use
Number of cases, failure testing number of cases.
When getting the task run information of subtask, the corresponding variable text in task based access control operation information generation subtask
Part, so as to which subsequently circular mail can be sent based on variable files.
Part VII:Send circular mail.
In embodiments of the present invention, after variable files are generated, the corresponding variable in the subtask can be injected in subtask
File, the so subtask just can be parsed variable files, obtain task run information, and generate carrying task run
The circular mail of information, based on the test result after circular mail reminder application implementation of test cases.
It should be noted that in order to avoid the check results obtained after being verified to test page make a mistake, improving
A variety of lookup methods are provided with accuracy, therefore the embodiment of the present invention to verify test page, and in order to improve pair
Using the efficiency tested, the scheme of parallel implementation of test cases is added, so, server needs operation to be performed will
Increase, therefore, server performs above-mentioned operation for convenience, for server a key can be set to restart mobile terminal, a key
Status inquiry, a key stop service and one-key start service.Looked into setting a key to restart mobile terminal, a bonded state for server
When inquiry, a key stop service and one-key start service, it can be realized based on the code shown in Fig. 2 J.
Wherein, server performs when one key of execution restarts the operation of mobile terminal and restarts ADB automatically with above-mentioned server
The process of service and tested mobile terminal is consistent, is no longer repeated herein;
Server can be realized when performing the operation of bonded state inquiry based on the code shown in Fig. 2 K, namely service
Device can provide bonded state inquiry button in main interface, when detecting developer's triggering one bonded state inquiry button, then take
The ID (Identity, identity) and port numbers of testing service in the mobile terminal of business device acquisition implementation of test cases, and base
In ID and port numbers, the running status of testing service in mobile terminal, completion status inquiry are read.
Server can be realized when performing the operation of key stopping service based on the code shown in Fig. 2 L, namely service
Device can provide a key in main interface and stop service button, when detecting developer's triggering one key stopping service button, then take
At least one testing service currently run in the mobile terminal for device query execution test case of being engaged in, and obtain at least one test
The service name of service, generates first service list;Afterwards, based on first service list, sent at least one testing service
Halt instruction, so that at least one testing service is out of service.When any testing service stops fortune at least one testing service
After row, server just deletes the service name of testing service in first service list, generates second service list.Server
Whether be empty, if it is sky that server, which checks second service list, server completes to stop if checking second service list at any time
The operation of testing service;If server checks second service list non-NULL, server can perform above-mentioned acquisition again at least
The service name of one testing service, the step of sending halt instruction at least one testing service, until the second clothes of generation
Business list is sky, completes a key and stops servicing.
Server can be realized when performing the operation of one-key start service based on the code shown in Fig. 2 M, namely service
Device can provide one-key start service button in main interface, when detecting developer's triggering one-key start service button, then take
The first testing service and the second testing service being engaged in the mobile terminal of device acquisition implementation of test cases, wherein, the first test clothes
The testing service for being engaged in currently running in mobile terminal, the second testing service takes for the test being not currently running in mobile terminal
Business.Then, server sends service stopping instruction to the first testing service, so that the first testing service is out of service;So, when
Server detect the first testing service it is out of service after, just can send and start to the first testing service and the second testing service
Instruction, so that the first testing service and the second testing service startup optimization, complete one-key start service.
Method provided in an embodiment of the present invention, after the completion of test case execution, is being surveyed by least one lookup mode
The comparison element of preset number is positioned on test page after the completion of example execution on probation so that can be according to multiple comparison elements pair
Test page is verified, and can be positioned by a variety of lookup modes to comparing element, it is to avoid test page is entered
The check results obtained after row verification make a mistake, and improve accuracy.
In another embodiment, when at least one lookup mode first search mode no-fix to comparison element,
Then positioned based on the second lookup mode at least one lookup mode to comparing element, and example is searched all at least one
Each in mode searches mode, until the comparison element of preset number is found, if whole equal no-fix of lookup mode
To element is compared, then test page verification failure so that the comparison element of preset number can be determined according to a variety of lookup modes,
Improve the accuracy of test page verification.
In another embodiment, when being based only upon the 3rd lookup mode contrast locating to element, judge whether compare element
Appear on test page, when navigate to compare element appear on test page when, it is determined that test page verify successfully, when
No-fix to compare element appear on test page when, start waiting for, if navigated in preset time comparison element occur
On test page, it is determined that test page is verified successfully so that, can be more intelligent when test case performs and there is delay
Change ground on test page contrast locating to element.
In another embodiment, different look into can be set for different types of comparison element in different mobile terminal
Mode is looked for, it is more intelligent so that the verification to test page is more accurate.
In another embodiment, when test page verifies failure, Remote_debug addresses can be obtained, and be based on
The mobile terminal that Remote_debug addresses verify failure to test page carries out remote debugging, without carrying out this to mobile terminal
Ground is debugged, and saves substantial amounts of manpower and materials.
Fig. 3 A are a kind of block diagrams of page calibration equipment according to an exemplary embodiment.Reference picture 3A, the device
Including element acquisition module 301, the first locating module 302, failure module 303 and success module 304.
The element acquisition module 301, after the completion of being performed when test case, obtains the comparison element of preset number, often
Individual comparison element at least includes an expected page elements, and each element that compares is used to determine that test case is obtained after the completion of performing
Test page it is whether consistent with the expected page.
First locating module 302, at least one lookup mode based on page elements, to pre- on test page
If the comparison element of number is positioned.
The failure module 303, if for any lookup mode no-fix at least one lookup mode to preset number
Comparison element, then test page verification failure.
The success module 304, if navigating to preset number for any lookup mode at least one lookup mode
Element is compared, then test page is verified successfully.
In another embodiment, referring to Fig. 3 B, first locating module 302, including the first positioning He of submodule 3021
Complete submodule 3022.
The first positioning submodule 3021, for searching mode based on first at least one lookup mode, in test
Contrast locating is to element on the page;
The completion submodule 3022, if it is complete to element to search mode success contrast locating on test page for first
In contrast with positioning to element;
The first positioning submodule 3021, if it is first to comparing to be additionally operable to the first lookup mode no-fix on test page
Element, then search mode, contrast locating is to element on test page based on second at least one lookup mode;
The first positioning submodule 3021, is additionally operable to perform at least one lookup mode respectively, until navigating to comparison member
Element.
In another embodiment, referring to Fig. 3 C, the device also includes the second locating module 305.
Second locating module 305, if being only the 3rd lookup mode at least one lookup mode, is searched based on the 3rd
Mode, positions the comparison element of preset number on test page;
The success module 304, if being additionally operable to navigate to the comparison element of preset number, test page in preset time
Verify successfully;
The failure module 303, if being additionally operable in preset time no-fix to the comparison element of preset number, test sheets
Face verification failure.
In another embodiment, referring to Fig. 3 D, first locating module 302, in addition to the second positioning submodule 3023,
3rd positioning submodule 3024, the 4th positioning positioning submodule 3026 of submodule 3025 and the 5th.
The second positioning submodule 3023, if being that Android Android ends name text attribute is fixed not for comparing element
The page elements of change, then positioned based on resource identification resource-id to comparing element;
3rd positioning submodule 3024, if for comparing variable page member of the element for Android ends dynamic generation
Element, then positioned based on path language xpath to comparing element;
4th positioning submodule 3025, if being the changeless page of IOS ends name text attribute for comparing element
Element, then positioned based on addressable mark accessibility_id or identifier identifier to comparing element;
5th positioning submodule 3026, if for comparing the variable page elements that element is IOS ends dynamic generation,
Positioned based on IOS test scripts uiautomation to comparing element.
In another embodiment, referring to Fig. 3 E, the device also includes the first access modules 306, the second access modules
307, address acquisition module 308 and link block 309.
First access modules 306, fail if being verified for test page, are handled by network web access through type
STF platforms;
Second access modules 307, for based on STF platforms, access control Control interfaces;
The address acquisition module 308, for obtaining remote debugging Remote_debug addresses at Control interfaces;
The link block 309, for based on CMD, Remote_debug to be worked as in connection Remote_debug addresses
Address successful connection, then carry out remote debugging, completes test page verification.
The device that the embodiment of the present disclosure is provided, after the completion of test case execution, is being surveyed by least one lookup mode
The comparison element of preset number is positioned on test page after the completion of example execution on probation so that can be according to multiple comparison elements pair
Test page is verified, and can be positioned by a variety of lookup modes to comparing element, it is to avoid test page is entered
The check results obtained after row verification make a mistake, and improve accuracy.
In another embodiment, when at least one lookup mode first search mode no-fix to comparison element,
Then positioned based on the second lookup mode at least one lookup mode to comparing element, and example is searched all at least one
Each in mode searches mode, until the comparison element of preset number is found, if whole equal no-fix of lookup mode
To element is compared, then test page verification failure so that the comparison element of preset number can be determined according to a variety of lookup modes,
Improve the accuracy of test page verification.
In another embodiment, when being based only upon the 3rd lookup mode contrast locating to element, judge whether compare element
Appear on test page, when navigate to compare element appear on test page when, it is determined that test page verify successfully, when
No-fix to compare element appear on test page when, start waiting for, if navigated in preset time comparison element occur
On test page, it is determined that test page is verified successfully so that, can be more intelligent when test case performs and there is delay
Change ground on test page contrast locating to element.
In another embodiment, different look into can be set for different types of comparison element in different mobile terminal
Mode is looked for, it is more intelligent so that the verification to test page is more accurate.
In another embodiment, when test page verifies failure, Remote_debug addresses can be obtained, and be based on
The mobile terminal that Remote_debug addresses verify failure to test page carries out remote debugging, without carrying out this to mobile terminal
Ground is debugged, and saves substantial amounts of manpower and materials.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of the device 400 of page verification according to an exemplary embodiment.For example, device 400
It may be provided in a server.Reference picture 4, device 400 includes processing assembly 422, and it further comprises one or more places
Manage device, and as the memory resource representated by memory 432, for store can by the execution of processing assembly 422 instruction, example
Such as application program.The application program stored in memory 432 can include it is one or more each correspond to one group
The module of instruction.In addition, processing assembly 422 is configured as execute instruction, to perform above-mentioned page method of calibration.
Device 400 can also include the power management that a power supply module 426 is configured as performs device 400, and one has
Line or radio network interface 450 are configured as device 400 being connected to network, and input and output (I/O) interface 458.Dress
Putting 400 can operate based on the operating system for being stored in memory 432, such as Windows ServerTM, Mac OS XTM,
UnixTM,LinuxTM, FreeBSDTMOr it is similar.
Those skilled in the art will readily occur to its of the present invention after considering specification and putting into practice invention disclosed herein
Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (10)
1. a kind of page method of calibration, it is characterised in that methods described includes:
After the completion of test case execution, the comparison element of preset number is obtained, each element that compares at least includes an expection
Whether page elements, each element that compares is used to determine the test page obtained after the completion of test case execution with being expected page
Face is consistent;
At least one lookup mode based on page elements, enters on the test page to the comparison element of the preset number
Row positioning;
If any lookup mode no-fix is to the comparison element of the preset number, institute at least one lookup mode
State test page verification failure;
If any lookup mode navigates to the comparison element of the preset number at least one lookup mode, described
Test page is verified successfully.
2. according to the method described in claim 1, it is characterised in that at least one lookup mode based on page elements,
Comparison element progress positioning to the preset number on the test page includes:
Mode is searched based on first at least one lookup mode, the comparison member is positioned on the test page
Element;
If the first lookup mode successfully positions the comparison element on the test page, complete to compare member to described
The positioning of element;
If described first searches mode, no-fix is to the comparison element on the test page, based at least one
Second in lookup mode searches mode, and the comparison element is positioned on the test page;
At least one lookup mode is performed respectively, until navigating to the comparison element.
3. according to the method described in claim 1, it is characterised in that described after the completion of test case is performed, obtain present count
Purpose is compared after element, and methods described also includes:
If at least one lookup mode is only the 3rd lookup mode, mode is searched based on the 3rd, in the test page
The comparison element of the upper positioning preset number;
If navigating to the comparison element of the preset number in preset time, the test page is verified successfully;
If no-fix is to the comparison element of the preset number in preset time, the test page, which is verified, to fail.
4. according to the method described in claim 1, it is characterised in that at least one lookup mode based on page elements,
The comparison element of the preset number, which is positioned, on the test page also includes:
If the comparison element is the changeless page elements of Android Android ends name text attribute, based on resource mark
Know resource-id to position the comparison element;
If described compare the variable page elements that element is Android ends dynamic generation, based on path language xpath to institute
Comparison element is stated to be positioned;
If the comparison element is the changeless page elements of IOS ends name text attribute, based on addressable mark
Accessibility_id or identifier identifier is positioned to the comparison element;
If described compare the variable page elements that element is IOS ends dynamic generation, based on IOS test scripts
Uiautomation is positioned to the comparison element.
5. the method according to claim 1, it is characterised in that methods described also includes:
If the test page verification failure, STF platforms are handled by network web access through type;
Based on the STF platforms, access control Control interfaces;
Remote debugging Remote_debug addresses are obtained at the Control interfaces;
Based on CMD, the Remote_debug addresses are connected, when Remote_debug addresses successful connection, then
Remote debugging is carried out, the test page verification is completed.
6. a kind of page calibration equipment, it is characterised in that described device includes:
Element acquisition module, after the completion of being performed when test case, obtains the comparison element of preset number, each compares element
At least include an expected page elements, each element that compares is used for the test for determining that test case is obtained after the completion of performing
Whether the page is consistent with the expected page;
First locating module, at least one lookup mode based on page elements, to described pre- on the test page
If the comparison element of number is positioned;
Failure module, if for any lookup mode no-fix at least one lookup mode to the preset number
Element is compared, then the test page verification failure;
Success module, if navigating to the ratio of the preset number for any lookup mode at least one lookup mode
To element, then the test page is verified successfully.
7. device according to claim 6, it is characterised in that first locating module includes:
First positioning submodule, for searching mode based on first at least one lookup mode, in the test sheets
The comparison element is positioned on face;
Submodule is completed, if successfully positioning the comparison element on the test page for the first lookup mode,
Complete the positioning to the comparison element;
The first positioning submodule, if be additionally operable to the first lookup mode on the test page no-fix to the ratio
To element, then mode is searched based on second at least one lookup mode, the ratio is positioned on the test page
To element;
The first positioning submodule, is additionally operable to perform at least one lookup mode respectively, until navigating to the comparison
Element.
8. device according to claim 6, it is characterised in that described device also includes:
Second locating module, if being only the 3rd lookup mode at least one lookup mode, based on the 3rd lookup side
Formula, positions the comparison element of the preset number on the test page;
The success module, if being additionally operable to navigate to the comparison element of the preset number in preset time, the test
The page is verified successfully;
The failure module, if being additionally operable to the comparison element that in preset time no-fix arrives the preset number, the survey
Try page verification failure.
9. device according to claim 6, it is characterised in that first locating module also includes:
Second positioning submodule, if being the changeless page of Android Android ends name text attribute for the comparison element
Surface element, then positioned based on resource identification resource-id to the comparison element;
3rd positioning submodule, if for the variable page elements that the comparison element is Android ends dynamic generation, base
The comparison element is positioned in path language xpath;
4th positioning submodule, if being the changeless page elements of IOS ends name text attribute for the comparison element,
The comparison element is positioned based on addressable mark accessibility_id or identifier identifier;
5th positioning submodule, if for the variable page elements that the comparison element is IOS ends dynamic generation, being based on
IOS test scripts uiautomation is positioned to the comparison element.
10. the device according to claim 6, it is characterised in that described device also includes:
First access modules, fail if being verified for the test page, and handling STF by network web access through type puts down
Platform;
Second access modules, for based on the STF platforms, access control Control interfaces;
Address acquisition module, for obtaining remote debugging Remote_debug addresses at the Control interfaces;
Link block, for based on CMD, connecting the Remote_debug addresses, as the Remote_debug
Location successful connection, then carry out remote debugging, completes the test page verification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710184199.1A CN106991045A (en) | 2017-03-24 | 2017-03-24 | Page method of calibration and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710184199.1A CN106991045A (en) | 2017-03-24 | 2017-03-24 | Page method of calibration and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106991045A true CN106991045A (en) | 2017-07-28 |
Family
ID=59411874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710184199.1A Pending CN106991045A (en) | 2017-03-24 | 2017-03-24 | Page method of calibration and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106991045A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086203A (en) * | 2018-07-20 | 2018-12-25 | 百度在线网络技术(北京)有限公司 | The detection method and device of the page |
CN110019828A (en) * | 2017-09-13 | 2019-07-16 | 北大方正集团有限公司 | Knowledge based map referring to implementing method of calibration and system |
CN110532458A (en) * | 2019-08-29 | 2019-12-03 | 深圳前海达闼云端智能科技有限公司 | A kind of determination method, determining device, server and the storage medium of lookup mode |
CN111427760A (en) * | 2019-01-09 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Page testing method, device, equipment and storage medium |
CN113110991A (en) * | 2021-03-29 | 2021-07-13 | 青岛海尔科技有限公司 | Page element positioning method and device, storage medium and electronic device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034583A (en) * | 2011-09-30 | 2013-04-10 | 国际商业机器公司 | Method and system for processing automatic test scrip of software |
CN103377127A (en) * | 2012-04-28 | 2013-10-30 | 阿里巴巴集团控股有限公司 | Development testing system, testing method and device for webpage product |
CN104424087A (en) * | 2013-08-21 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Web page element positioning method, apparatus and system |
CN104636251A (en) * | 2014-12-30 | 2015-05-20 | 安科智慧城市技术(中国)有限公司 | Testing method and system for compatibility of multiple browsers |
CN105095088A (en) * | 2015-09-02 | 2015-11-25 | 厦门美图移动科技有限公司 | Calculator automatic test method and test system based on uiautomator test framework |
CN105320603A (en) * | 2015-12-04 | 2016-02-10 | 上海斐讯数据通信技术有限公司 | Locating system and method for browser page elements and automatic testing method thereof |
CN105528297A (en) * | 2016-01-29 | 2016-04-27 | 广州酷狗计算机科技有限公司 | Method and device for testing web page |
-
2017
- 2017-03-24 CN CN201710184199.1A patent/CN106991045A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034583A (en) * | 2011-09-30 | 2013-04-10 | 国际商业机器公司 | Method and system for processing automatic test scrip of software |
CN103377127A (en) * | 2012-04-28 | 2013-10-30 | 阿里巴巴集团控股有限公司 | Development testing system, testing method and device for webpage product |
CN104424087A (en) * | 2013-08-21 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Web page element positioning method, apparatus and system |
CN104636251A (en) * | 2014-12-30 | 2015-05-20 | 安科智慧城市技术(中国)有限公司 | Testing method and system for compatibility of multiple browsers |
CN105095088A (en) * | 2015-09-02 | 2015-11-25 | 厦门美图移动科技有限公司 | Calculator automatic test method and test system based on uiautomator test framework |
CN105320603A (en) * | 2015-12-04 | 2016-02-10 | 上海斐讯数据通信技术有限公司 | Locating system and method for browser page elements and automatic testing method thereof |
CN105528297A (en) * | 2016-01-29 | 2016-04-27 | 广州酷狗计算机科技有限公司 | Method and device for testing web page |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110019828A (en) * | 2017-09-13 | 2019-07-16 | 北大方正集团有限公司 | Knowledge based map referring to implementing method of calibration and system |
CN110019828B (en) * | 2017-09-13 | 2023-06-30 | 新方正控股发展有限责任公司 | Knowledge graph-based reference implementation verification method and system |
CN109086203A (en) * | 2018-07-20 | 2018-12-25 | 百度在线网络技术(北京)有限公司 | The detection method and device of the page |
CN109086203B (en) * | 2018-07-20 | 2022-10-28 | 百度在线网络技术(北京)有限公司 | Page detection method and device |
CN111427760A (en) * | 2019-01-09 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Page testing method, device, equipment and storage medium |
CN111427760B (en) * | 2019-01-09 | 2024-05-28 | 阿里巴巴集团控股有限公司 | Page test method, device, equipment and storage medium |
CN110532458A (en) * | 2019-08-29 | 2019-12-03 | 深圳前海达闼云端智能科技有限公司 | A kind of determination method, determining device, server and the storage medium of lookup mode |
CN110532458B (en) * | 2019-08-29 | 2022-04-19 | 深圳前海达闼云端智能科技有限公司 | Method and device for determining search mode, server and storage medium |
CN113110991A (en) * | 2021-03-29 | 2021-07-13 | 青岛海尔科技有限公司 | Page element positioning method and device, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106991046A (en) | Application testing method and device | |
CN106991045A (en) | Page method of calibration and device | |
CN108595329B (en) | Application testing method and device and computer storage medium | |
US8701092B1 (en) | System and method for testing applications | |
EP2413243B1 (en) | Use of attribute sets for test entity identification during software testing | |
CN103744784B (en) | Mobile phone application automated testing method and system | |
CN102012814B (en) | Construction method and system for software version | |
CN110058998B (en) | Software testing method and device | |
CN103034575B (en) | Collapse analytical approach and device | |
CN111522738A (en) | Test method and device of micro-service system, storage medium and electronic equipment | |
CN103049373B (en) | A kind of localization method of collapse and device | |
CN106649073A (en) | Test method and device based on dynamic script template | |
CN112540924A (en) | Interface automation test method, device, equipment and storage medium | |
CN110928777A (en) | Test case processing method, device, equipment and storage medium | |
CN111506358B (en) | Method and device for updating container configuration | |
CN109120432A (en) | A kind of failed server localization method and device | |
CN114168471A (en) | Test method, test device, electronic equipment and storage medium | |
CN115801372A (en) | Link tracking method and device | |
CN112416762B (en) | API test method and device, equipment and computer readable storage medium | |
CN106339379B (en) | Website running state monitoring method and device | |
CN114218072A (en) | Test script generation method and device, storage medium and computer equipment | |
CN116010254A (en) | Performance detection method and system in system research and development stage | |
CN106933743A (en) | A kind of method of testing and device | |
CN107797926B (en) | System and method for realizing linux application test automation | |
CN114064510A (en) | Function testing 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17 Applicant after: Guangzhou KuGou Networks Co., Ltd. Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F Applicant before: Guangzhou KuGou Networks Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170728 |