CN110134606A - A kind of app automatic checking method and device - Google Patents
A kind of app automatic checking method and device Download PDFInfo
- Publication number
- CN110134606A CN110134606A CN201910414386.3A CN201910414386A CN110134606A CN 110134606 A CN110134606 A CN 110134606A CN 201910414386 A CN201910414386 A CN 201910414386A CN 110134606 A CN110134606 A CN 110134606A
- Authority
- CN
- China
- Prior art keywords
- app
- control
- calling link
- link
- tool
- 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
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000007689 inspection Methods 0.000 claims abstract description 31
- 238000012360 testing method Methods 0.000 claims abstract description 9
- 230000004044 response Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 4
- 230000001960 triggered effect Effects 0.000 abstract description 11
- 230000008569 process Effects 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000011835 investigation Methods 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (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 app automatic checking method and devices, this method comprises: the control of triggering app;The calling link that control generates is obtained by acting on behalf of tool, and to calling the parameter in link to test, exports inspection result.The present invention captures calling link generated after app control is triggered by acting on behalf of tool, and then can test to be linked, if the content that app is shown goes wrong, can be examined based on the information of the link where ging wrong, and then problem of implementation is checked.
Description
Technical field
The present invention relates to software operation Examined effect field more particularly to a kind of app automatic checking methods and device.
Background technique
With the development of mobile communication technology, internet has entered the mature epoch, and smart phone is increasingly becoming big absolutely
The necessary article of part netizen, due to the third party application (Application, APP) of smart phone be capable of providing it is more convenient
Browsing mode, therefore the development of mobile phone app be it is like a raging fire, the market share is increasing, and businessman also gets over the investment of app
Come more, cellie is also more and more heavier to the dependence of APP.
After app is activated triggering related service, if developer needs to check app, typically only by app
The content showed is checked that for the content that it shows when discovery there are after problem, it is effective that app can not be supplied to developer
Information carries out problem investigation.
Summary of the invention
The embodiment of the invention provides a kind of app automatic checking method and devices, capture app control by acting on behalf of tool
Be triggered generation calling link, the problems of app can be reappeared.
According to an aspect of the present invention, a kind of app automatic checking method is provided, comprising:
Trigger the control of app;
The calling link that the control generates is obtained by acting on behalf of tool, and calls the parameter in link to examine to described
It tests, exports inspection result.
Preferably, described to obtain the calling link that the control generates by acting on behalf of tool, and in readjustment link
Parameter test, export inspection result specifically:
Obtain the calling link that the control generates by acting on behalf of tool, by the request message for calling link with it is described
The triggering logic of the control of app is compared, and exports comparison result;
And/or
The calling link that the control generates is obtained by acting on behalf of tool, after the app generates new page, by the tune
It is compared with the response message of link with the displaying logic of the new page, exports comparison result.
Preferably, the triggering logic is trigger parameter corresponding with operation performed by the control is triggered, described
The request message for calling link includes interface callback data corresponding with the trigger parameter.
Preferably, described to show that logic is the item argument in the new page, the response message packet for calling link
Containing interface callback data corresponding with the item argument.
According to another aspect of the present invention, a kind of app automation inspection device is provided, comprising:
Trigger module, for triggering the control of app;
Inspection module for obtaining the calling link that the control generates by acting on behalf of tool, and links the calling
In parameter test, export inspection result.
Preferably, the inspection module is also used to obtain the calling link that the control generates by acting on behalf of tool, by institute
It states and the request message of link is called to be compared with the triggering logic of the control of the app, export comparison result;
And/or
The calling link that the control generates is obtained by acting on behalf of tool, after the app generates new page, by the tune
It is compared with the response message of link with the displaying logic of the new page, exports comparison result.
Preferably, the triggering logic is trigger parameter corresponding with operation performed by the control is triggered, described
The request message for calling link includes interface callback data corresponding with the trigger parameter.
Preferably, described to show that logic is the item argument in the new page, the response message packet for calling link
Containing interface callback data corresponding with the item argument.
According to another aspect of the present invention, a kind of app automation inspection device, including processor and memory, institute are provided
It states and is stored with computer program instructions on memory, realized when described program instruction is executed by processor as described above
App automatic checking method.
According to another aspect of the present invention, a kind of computer readable storage medium is provided, the computer readable storage medium
On be stored with computer program instructions, app as described above automation is realized when described program instruction is executed by processor
Inspection method.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
The present invention provides a kind of app automatic checking method and devices, this method comprises: the control of triggering app;Pass through
It acts on behalf of tool and obtains the calling link that control generates, and to calling the parameter in link to test, export inspection result.This hair
It is bright to capture calling link generated after app control is triggered by acting on behalf of tool, and then can test to be linked, if
The content that app is shown goes wrong, and can be examined based on the information of the link where ging wrong, and then problem of implementation is checked.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of one embodiment of app automatic checking method provided by the invention;
Fig. 2 is a kind of flow diagram of another embodiment of app automatic checking method provided by the invention;
Fig. 3 is a kind of structural schematic diagram of one embodiment of app automation inspection device provided by the invention.
Specific embodiment
The embodiment of the invention provides a kind of app automatic checking method and devices, capture app control by acting on behalf of tool
Be triggered generation calling link, the problems of app can be reappeared.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, a kind of one embodiment of app automatic checking method provided by the invention, comprising:
101, the control of app is triggered;
102, the calling link that control generates is obtained by acting on behalf of tool, and tested to the parameter in calling link,
Export inspection result.
The present invention captures calling link generated after app control is triggered by acting on behalf of tool, and then can treat chain
Performing check is tapped into, if the content that app is shown goes wrong, can be examined based on the information of the link where ging wrong, Jin Ershi
Existing problem investigation.
The above are a kind of one embodiment of app automatic checking method to be provided below one to carry out more specific description
Another embodiment of kind app automatic checking method, referring to Fig. 2, a kind of app automatic checking method provided by the invention
Another embodiment, comprising:
201, the control of app is triggered;
In the present embodiment, when needing to carry out automation inspection to app, need first to trigger the control of app, herein control
It can be the UI control of app, the operation specifically triggered can be the operations such as sliding, click, double-click.It is understood that once
Control is triggered, the calling link that control can then generate, and the call chain is received and sent to server end to ask to server end
Seek the data of rendering.At this point, can be carried out during calling and linking network transmission by acting on behalf of tool (such as Proxy) capture
It captures, and tests, detailed process is as shown in step 202 and step 203, it should be noted that connection is called to generally include
Request message and response message, therefore different inspections, i.e. step 202 and step can be carried out respectively to two messages respectively
203。
In the present embodiment, step 202 and step 203 and be not present successive timing, step 201 execute after, can only hold
Row step 202 can also only execute step 203, may also be performed simultaneously step 202 and step 203, Fig. 2 for convenience of explanation,
It is shown as the third situation.
202, the calling link that control generates is obtained by acting on behalf of tool, the control of the request message and app of link will be called
The triggering logic of part is compared, and exports comparison result;
After the calling link for obtaining control generation by acting on behalf of tool, need to call the request message and app linked
The triggering logic of control is compared, specifically, triggering logic is triggering corresponding with operation performed by trigger control ginseng
Number, calling the request message of link includes interface callback data corresponding with trigger parameter.As user clicks the list row of app
Can sequence pass through http://xxshop.com/getlist if being ranked up by price? sort=1 trigger control, wherein
Trigger parameter is sort=1, if sorting by discount, trigger parameter sort=2.After obtaining calling link, what interface returned
It calls the request message in link to generally comprise data corresponding with the trigger parameter, is also possible to go out in the form of sort=x
Existing, therefore, if user's request is price sequence, that calling link returns is sort=2, then comparison result illustrates trigger process
It is out of joint.
203, the calling link that control generates is obtained by acting on behalf of tool, after app generates new page, link will be called
Response message is compared with the displaying logic of new page, exports comparison result.
The calling link that control generates is obtained by acting on behalf of tool, and after app control renders and to form new page, will be called
The response message of link is compared with the displaying logic of new page, specifically, show that logic is the item argument in new page,
The response message for calling link includes interface callback data corresponding with item argument.For example, in app new user page generated
On face, there are two item arguments of software coin and user's change, if software coin is equal to 999, and in the calling link of interface return
In data (software coin is corresponding with appcoin, and user's change is corresponding with wbalance) in response message, corresponding appcoin
=271, comparison result illustrates that displaying process there is a problem.
To sum up, a kind of app automatic checking method provided through the invention can show that content goes wrong in app
When, the information for making full use of app to feed back carries out problem investigation, to confirm problem whereabouts.
It is the detailed description carried out to a kind of app automatic checking method provided by the invention above, it below will be to this hair
The structure and connection relationship of a kind of app automation inspection device of bright offer are illustrated, referring to Fig. 3, provided by the invention
A kind of one embodiment of app automation inspection device, comprising:
Trigger module 301, for triggering the control of app;
Inspection module 302, for obtaining the calling link that control generates by acting on behalf of tool, and to the ginseng called in link
Number is tested, and inspection result is exported.
Further, inspection module is also used to obtain the calling link that control generates by acting on behalf of tool, by call chain
The request message connect is compared with the triggering logic of the control of app, exports comparison result;
And/or
The calling link that control generates is obtained by acting on behalf of tool, after app generates new page, the response of link will be called
Message is compared with the displaying logic of new page, exports comparison result.
Further, triggering logic is trigger parameter corresponding with operation performed by trigger control, calls link
Request message include interface callback data corresponding with trigger parameter.
Further, it shows that logic is the item argument in new page, calls the response message of link to include and project
The corresponding interface callback data of parameter.
A kind of another embodiment of app automation inspection device provided by the invention, including processor and memory, are deposited
It is stored with computer program instructions on reservoir, app automation as described above is realized when program instruction is executed by processor
Inspection method.
The invention further relates to a kind of computer readable storage medium, computer is stored on the computer readable storage medium
Program instruction realizes app automatic checking method as described above when program instruction is executed by processor.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of app automatic checking method characterized by comprising
Trigger the control of app;
The calling link that the control generates is obtained by acting on behalf of tool, and calls the parameter in link to test to described,
Export inspection result.
2. app automatic checking method according to claim 1, which is characterized in that described to obtain institute by acting on behalf of tool
The calling link of control generation is stated, and is tested to the parameter in the readjustment link, inspection result is exported specifically:
The calling link that the control generates is obtained by acting on behalf of tool, by the request message and the app for calling link
The triggering logic of the control be compared, export comparison result;
And/or
The calling link that the control generates is obtained by acting on behalf of tool, after the app generates new page, by the call chain
The response message connect is compared with the displaying logic of the new page, exports comparison result.
3. app automatic checking method according to claim 2, which is characterized in that the triggering logic for triggering institute
The corresponding trigger parameter of operation performed by control is stated, the request message for calling link includes and the trigger parameter pair
The interface callback data answered.
4. app automatic checking method according to claim 2, which is characterized in that the displaying logic is the new page
Item argument in face, the response message for calling link include interface callback data corresponding with the item argument.
5. a kind of app automation inspection device characterized by comprising
Trigger module, for triggering the control of app;
Inspection module, for obtaining the calling link that the control generates by acting on behalf of tool, and in calling link
Parameter is tested, and inspection result is exported.
6. app automation inspection device according to claim 5, which is characterized in that the inspection module is also used to pass through
The tool of agency obtains the calling link that the control generates, by the control of the request message and the app for calling link
The triggering logic of part is compared, and exports comparison result;
And/or
The calling link that the control generates is obtained by acting on behalf of tool, after the app generates new page, by the call chain
The response message connect is compared with the displaying logic of the new page, exports comparison result.
7. app automation inspection device according to claim 6, which is characterized in that the triggering logic for triggering institute
The corresponding trigger parameter of operation performed by control is stated, the request message for calling link includes and the trigger parameter pair
The interface callback data answered.
8. app automation inspection device according to claim 6, which is characterized in that the displaying logic is the new page
Item argument in face, the response message for calling link include interface callback data corresponding with the item argument.
9. a kind of app automation inspection device, which is characterized in that including processor and memory, be stored on the memory
Computer program instructions are realized when described program instruction is executed by processor such as any one of claim 1 to claim 4
The app automatic checking method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer journey on the computer readable storage medium
Sequence instruction is realized as described in any one of claim 1 to claim 4 when described program instruction is executed by processor
App automatic checking method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910414386.3A CN110134606A (en) | 2019-05-17 | 2019-05-17 | A kind of app automatic checking method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910414386.3A CN110134606A (en) | 2019-05-17 | 2019-05-17 | A kind of app automatic checking method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110134606A true CN110134606A (en) | 2019-08-16 |
Family
ID=67575103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910414386.3A Pending CN110134606A (en) | 2019-05-17 | 2019-05-17 | A kind of app automatic checking method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110134606A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7096417B1 (en) * | 1999-10-22 | 2006-08-22 | International Business Machines Corporation | System, method and computer program product for publishing interactive web content as a statically linked web hierarchy |
CN106294146A (en) * | 2016-08-09 | 2017-01-04 | 合智能科技(深圳)有限公司 | Parameter replacement test method and device |
CN107547312A (en) * | 2017-09-21 | 2018-01-05 | 广州四三九九信息科技有限公司 | Applied program testing method and system |
CN108228457A (en) * | 2017-12-29 | 2018-06-29 | 广州品唯软件有限公司 | The test agent method and device of mobile terminal, computer readable storage medium |
-
2019
- 2019-05-17 CN CN201910414386.3A patent/CN110134606A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7096417B1 (en) * | 1999-10-22 | 2006-08-22 | International Business Machines Corporation | System, method and computer program product for publishing interactive web content as a statically linked web hierarchy |
CN106294146A (en) * | 2016-08-09 | 2017-01-04 | 合智能科技(深圳)有限公司 | Parameter replacement test method and device |
CN107547312A (en) * | 2017-09-21 | 2018-01-05 | 广州四三九九信息科技有限公司 | Applied program testing method and system |
CN108228457A (en) * | 2017-12-29 | 2018-06-29 | 广州品唯软件有限公司 | The test agent method and device of mobile terminal, computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2019284002B2 (en) | Data processing method and related products | |
US11847554B2 (en) | Data processing method and related products | |
CN106649084B (en) | The acquisition methods and device of function call information, test equipment | |
CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
CN111290958B (en) | Method and device for debugging intelligent contract | |
CN110858172A (en) | Automatic test code generation method and device | |
CN111597110B (en) | Page test method and device, electronic equipment and storage medium | |
CN109800367A (en) | Webpage loading method, device, computer equipment and storage medium | |
CN113449022A (en) | Method and device for processing service request | |
CN111124528B (en) | Page loading method and device, electronic equipment and computer readable storage medium | |
CN107608898A (en) | It is a kind of to reproduce testing process to realize the method for Automation regression testing | |
CN109739704A (en) | A kind of interface test method, server-side and computer readable storage medium | |
CN104408193B (en) | The processing method and processing device of data visualization model | |
CN115794262A (en) | Task processing method, device, equipment, storage medium and program product | |
CN113282444A (en) | Visualization method and device for business process debugging | |
CN112905492B (en) | Verification method and device | |
CN102855182A (en) | Web system test method and device | |
CN110134607A (en) | A kind of app automated testing method and device | |
CN112783778A (en) | Test method, test device, network equipment and storage medium | |
CN110134606A (en) | A kind of app automatic checking method and device | |
CN116306413A (en) | FPGA simulation verification method and device, electronic equipment and storage medium | |
CN110333849A (en) | A kind of method, apparatus for realizing code robot based on FreeMarker template engine | |
CN106230666B (en) | A kind of monitoring method and monitoring system of service availability | |
CN110597736B (en) | Test data generation method and device | |
CN104965786B (en) | A kind of adjustment method of application program, debugging host and operation host |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190816 |
|
RJ01 | Rejection of invention patent application after publication |