CN109815119A - A kind of test method and device of APP link channel - Google Patents

A kind of test method and device of APP link channel Download PDF

Info

Publication number
CN109815119A
CN109815119A CN201811536390.9A CN201811536390A CN109815119A CN 109815119 A CN109815119 A CN 109815119A CN 201811536390 A CN201811536390 A CN 201811536390A CN 109815119 A CN109815119 A CN 109815119A
Authority
CN
China
Prior art keywords
test
app
measured
scene
link channel
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.)
Granted
Application number
CN201811536390.9A
Other languages
Chinese (zh)
Other versions
CN109815119B (en
Inventor
张起
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811536390.9A priority Critical patent/CN109815119B/en
Publication of CN109815119A publication Critical patent/CN109815119A/en
Application granted granted Critical
Publication of CN109815119B publication Critical patent/CN109815119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses the test methods and device of a kind of APP link channel, are related to software testing technology field, to solve the problems, such as that test result can not accurately reflect the true operating status of APP and invent in the prior art.This method specifically includes that traversal APP to be measured, obtain the test scene of APP to be measured, test scene refers to the analog service scene that response interface is generated according to courses of action, the set that courses of action refer to the link channel for generating response interface and operate according to tactic response is executed, link channel refer to the network linking of APP to be measured;In preset code database, the operation code of response operation is searched;According to operation code, courses of action in simulation test scene generate the test case of test scene;Implementation of test cases records the operating status of test result and APP to be measured;Interface, test result and operating status according to response generate the test report of test scene.Present invention is mainly applied in the test process of the link channel of APP.

Description

A kind of test method and device of APP link channel
Technical field
The present invention relates to a kind of software testing technology field, test method more particularly to a kind of APP link channel and Device.
Background technique
To objective APP (Application, application program), refer to the APP towards personal user.It is launched in APP Before, it generally requires to carry out stability test to APP, to guarantee to stablize in various types of terminals after APP puts goods on the market Operation.The link channel of APP refers to that every product for APP provides the businessman APP and WEB page of service.When APP increases product newly When type and link channel, association scene exponentially to be tested is needed to increase in test process.
During the test, the use function of usually random triggering APP, and the function of triggering at random is tested.By It is functional in the institute that random trigger mechanism cannot test APP, it can not also detect operation effect of the APP in complicated practical service environment Fruit causes test result that can not accurately reflect the true operating status of APP.
Summary of the invention
In view of this, the present invention provides the test method and device of a kind of APP link channel, main purpose is to solve existing There is the problem of test result can not accurately reflect the true operating status of APP in technology.
According to the present invention on one side, a kind of test method of APP link channel is provided, comprising:
APP to be measured is traversed, the test scene of the APP to be measured is obtained, the test scene refers to raw according to courses of action At the analog service scene of response interface, the courses of action refer to the link channel for generating the response interface and according to execution The set of the response operation of sequence, the link channel refer to the network linking of the APP to be measured;
In preset code database, the operation code of the response operation is searched;
According to the operation code, the courses of action in the test scene are simulated, generate the test of the test scene Use-case;
The test case is executed, test result and the operating status to be measured to objective APP are recorded;
According to the response interface, the test result and the operating status, the test report of the test scene is generated It accuses.
According to the present invention on the other hand, a kind of test device of APP link channel is provided, comprising:
Acquiring unit obtains the test scene of the APP to be measured for traversing APP to be measured, the test scene refer to according to The analog service scene of response interface is generated according to courses of action, the courses of action refer to the link canal for generating the response interface The set in road and the response operation according to execution sequence, the link channel refer to the network linking of the APP to be measured;
Searching unit, in preset code database, searching the operation code of the response operation;
First generation unit generates institute for simulating the courses of action in the test scene according to the operation code State the test case of test scene;
Recording unit records the operating status of test result and the APP to be measured for executing the test case;
Second generation unit, for according to the response interface, the test result and the operating status, described in generation The test report of test scene.
According to another aspect of the invention, a kind of storage medium is provided, at least one is stored in the storage medium can It executes instruction, the executable instruction makes processor execute the corresponding operation of test method such as above-mentioned APP link channel.
In accordance with a further aspect of the present invention, a kind of computer equipment is provided, comprising: processor, memory, communication interface And communication bus, the processor, the memory and the communication interface complete mutual lead to by the communication bus Letter;
For the memory for storing an at least executable instruction, it is above-mentioned that the executable instruction executes the processor The corresponding operation of test method of APP link channel.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention is at least had the advantage that
The present invention provides the test methods and device of a kind of APP link channel, traverse APP to be measured first, obtain to be measured The test scene of APP searches the operation code of response operation, further according to operation code, mould then in preset code database Courses of action in quasi- test scene, generate the test case of test scene.Again implementation of test cases record test result and to The operating status of APP is surveyed, finally interface, test result and operating status according to response, generates the test report of test scene.With The existing prior art is compared, and the embodiment of the present invention obtains test scene by traversing APP to be measured, coverage test that can be comprehensive Scene, it is ensured that APP to be measured is tested comprehensively.APP to be measured is tested comprehensively, so that test result can accurately be anti- Reflect the true operating status of APP.By operating operation code in preset code library, simulated operation path automatically generates test Use-case improves testing efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of test method flow chart of APP link channel provided in an embodiment of the present invention;
Fig. 2 shows the test method flow charts of another kind of embodiment of the present invention APP link channel;
Fig. 3 shows a kind of test device composition block diagram of APP link channel provided in an embodiment of the present invention;
Fig. 4 shows the test device composition block diagram of another kind APP link channel provided in an embodiment of the present invention;
Fig. 5 shows a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of test methods of APP link channel, as shown in Figure 1, which comprises
101, APP to be measured is traversed, the test scene of the APP to be measured is obtained.
APP to be measured, be primarily referred to as towards personal user to objective APP.In the extension process of APP to be measured, generally require In businessman APP and WEB page setting link channel.The page of APP to be measured can be linked to by linking channel.APP's to be measured Test scene refers to the analog service scene that response interface is generated according to courses of action.Courses of action, which refer to, generates response interface The set of channel and the response operation according to execution sequence is linked, link channel refers to the network linking of APP to be measured.If user Channel is linked in terminal request, then the interface for being able to enter APP to be measured by linking channel, which is in APP to be measured Arbitrary interface.Into after the interface APP to be measured, response operation is executed in particular order, can generate corresponding response interface. If, by different order, difference response operation obtains different response interfaces, then chain since the same link channel Connect channel and response interface is one-to-many relationship.If, by different order, difference is rung since different link channels It should operate, obtain identical response interface, then many-to-one relationship when link channel and response interface.In the embodiment of the present invention In to link channel and response interface corresponding relationship without limitation.
Response operation refers to the operation of user, such as clicks, double-clicks, shortcut key.Illustratively, certain WEB page be to A link channel of APP is surveyed, analog service scene refers to the link that APP to be measured is shown by the pop-up of the WEB page, clicks The link jumps to APP to be measured, and application loan transaction is chosen in APP to be measured, shows loan application table.Traverse APP's to be measured All-links channel, and the response operation of response interface can occur, obtain all test scenes.Each test scene Including different courses of action.
102, in preset code database, the operation code of the response operation is searched.
For application program, the response operation generally used is all identical, and all response operations are carried out code, The operation code of response operation is generated, and will be in operation code preset code database.Search response behaviour all in APP to be measured The operation code of work.
103, according to the operation code, the courses of action in the test scene are simulated, generate the test scene Test case.
According to operation code, the implementation procedure of the courses of action of simulation test scene generates the test case of test scene. Test case and test scene are one-to-one, the corresponding test cases of a test scene.Test case is simulation User's operation in test scene.Each operating procedure in simulated operation path, the test case for the UI automation write.Example A button is such as clicked, writes and executes in the position of A button execution mouse-click operation.
104, the test case is executed, the operating status of test result and the APP to be measured is recorded.
Implementation of test cases, that is, APP to be measured is triggered using test case, APP to be measured is held automatically according to test case Row generates test result.Illustratively, will pop up prompting frame after requiring user to click button A five times in test APP please don't weigh Multiple application, No. five button A are clicked in simulation in test case, and observe whether APP to be measured has popped up prompting frame.Pop up prompting frame It is the response interface for generating test scene and being, and actually whether pops up and propose that frame is test result.
During the test, it is also necessary to monitor and record the operating status of APP to be measured.Operating status refers to APP fortune to be measured EMS memory occupation when row, flow calls, dodges and moves back or Caton situation and all report an error.If monitoring in discovery EMS memory occupation and Flow calls exception, and read-me requires to look up there are certain problems and solves the problems, such as this, made with providing APP to be measured in investment The stability of used time.As soon as such as network layer have invoked a null pointer may not cause dodge move back, but user click when block Having paused causes user experience to reduce.
In APP operational process to be measured, background server is required as support, APP to be measured constantly sends request, after Platform server process simultaneously returns the result.When testing APP to be measured, pass through the record of the operating status to APP to be measured, it can be seen that The feedback time of background server, and to the system interface that operation fluency is affected, which can open to be subsequent The performance that hair test promotes background server provides modification basis.
105, according to the response interface, the test result and the operating status, the survey of the test scene is generated Examination report.
Test report is summarized to test process, the test process including APP to be measured all test scenes.Test The reporting format of report can be DOC, DOCX, PFD etc., not limit the format of test report in embodiments of the present invention It is fixed.
In test report, record courses of action, test result, response interface and operating status.The table of courses of action Show that method can be the mode of text and record, is also possible to continuously respond the combination of operation.Test result and response interface, can In the form of using picture, so that whether contrast test result and response interface are identical.Operating status can be using tables of data Form, by status items and corresponding attribute value point column display.Optimum state value can also be set in operating status, in order to clear Look at test report when be compared, to improve the performance of APP to be measured.
The present invention provides a kind of test methods of APP link channel, traverse APP to be measured first, obtain the survey of APP to be measured Examination hall scape searches the operation code of response operation, further according to operation code, simulation test then in preset code database Courses of action in scene generate the test case of test scene.Implementation of test cases record test result and APP to be measured again Operating status, finally interface, test result and operating status according to response, generate the test report of test scene.With it is existing existing There is technology to compare, the embodiment of the present invention obtains test scene by traversing APP to be measured, coverage test scene that can be comprehensive, Ensure to test APP to be measured comprehensively.APP to be measured is tested comprehensively, so that test result can accurately reflect APP True operating status.By operating operation code in preset code library, simulated operation path automatically generates test case, Improve testing efficiency.
The embodiment of the invention provides the test methods of another APP link channel, as shown in Figure 2, which comprises
201, APP to be measured is traversed, the test scene of the APP to be measured is obtained.
Test scene refers to the analog service scene that response interface is generated according to courses of action, and courses of action refer to be measured The link channel of APP, and generate the set of the response operation of response interface.Specific acquisition process includes: excellent using depth First algorithm traverses the APP to be measured for the purpose of generating the response interface, according to execution journal and response circle The corresponding option of operation in face;Obtain the link channel of the APP to be measured;According to pair of the link channel and the option of operation It should be related to, by the link channel in conjunction with the option of operation, generate the test scene of the APP to be measured.
Using depth-priority-searching method when traversing APP to be measured, when one response interface of every generation, the chain of the response interface is recorded Channel and option of operation are connect, then continues to continue to search response behaviour using depth-priority-searching method on the basis of option of operation It is not deposited with obtaining other response interfaces up in the branch for knowing this option of operation on work with the presence or absence of other response operations Until other response operations.In the node for dateing back upper primary response operation, other response interfaces are generated, it is to be measured until traversing All option of operation of APP record option of operation corresponding with response interface according to traversal order.Then obtain APP's to be measured Channel is linked, further according to the corresponding relationship of link channel and option of operation, link channel and option of operation are combined, generated to be measured The test scene of APP.Courses of action may be corresponded to corresponding relationship many-to-one when linking channel, that is, same link channel Multiple courses of action.
Obtain the link channel of APP to be measured, comprising: search the link channel field and banner word in APP to be measured Section;The field contents for linking channel field and banner field are determined as to link channel.In APP to be measured, storage link Channel field and banner field, so that being able to access that APP to be measured by linking channel.
202, in preset code database, the operation code of the response operation is searched.
203, according to the operation code, the courses of action in the test scene are simulated, generate the test scene Test case.
Test case is generated, configuration APPIUM test environment is specifically included;In APPIUM test environment, simulation behaviour is established Make the TESTNG test frame in path;Import operation code in the frame generates test case.In order to be surveyed to APP to be measured Examination tests environment in test lead configuration APPIUM, the TESTNG in simulated operation path is then established in APPIUM test environment Test frame, each test scene need to establish a test frame.The import operation code in test frame generates test and uses Example.
204, the test case is executed, the operating status of test result and the APP to be measured is recorded.
Test case is actually the test program that can trigger APP to be measured operation, implementation of test cases, that is, Execute the test program.This step specifically includes: it is occupied to monitor the APP to be measured in real time when executing the test case System resource;After the completion of the test case executes, obtain the test case execution journal and the APP to be measured it is real-time Output journal;According to the execution journal, the test result of the test case is searched, the test result refers to the test The implementing result of use-case;According to the monitoring data of the real-time output journal and the real time monitoring, search the APP's to be measured Operating status, the operating status include memory usage, call flow, whether have report an error, request receive and dispatch the consuming time and Load the consuming time of resource;Record the test result and the operating status.
During implementation of test cases, and after the completion of test case executes, it is corresponding carry out different operation with Record test result and operating status.The occupied system resource of APP to be measured, including EMS memory occupation are monitored during the test Rate calls flow etc..According to execution journal and real-time output journal after the completion of test case executes, record test result and The operating status of APP to be measured.
205, according to the response interface, the test result and the operating status, the survey of the test scene is generated Examination report.
206, whether just the response interface and the implementing result judge the execution logic of the test case Really.
Logic is executed, refers to that whether designing required function can correctly execute, for example channel A client is by clicking such as Fruit page jump has arrived the page of channel B, just illustrates that the execution logic of APP to be measured is incorrect.Illustratively, logically true to refer to Signature user has selected "No", then cannot cover electronic signature in the contract of test result.
Compare response interface and implementing result, it is logically true to execute if the two is identical, executes if the two difference Logic is incorrect.In comparison procedure, can with comparison program code, output character can also be compared, can also identify and compare The interface images of response interface and implementing result, in embodiments of the present invention not to the manner of comparison of response interface and implementing result It limits.
If 207, the execution logic is incorrect, the response operation of the test case positioning error-logic is recalled.
Since the last one response operation of courses of action, searches to the direction of first response operation, often look into one by one A response operation is looked for, compared with corresponding response interface, until finding minimum with first response operating interval and testing As a result response operations different from response interface, and the response that the operation is positioned as error-logic is operated.
208, the response of the error-logic is operated, is added to the test report.
It also needs to record in addition, position of the response operation of the error-logic in courses of action.
209, the test report is shown in WEB page.
The record in including will be tested and carry out visualization processing, pair of operating status Yu standard operating status can also be generated Test report is shown according to table, and in WEB page.
The present invention provides a kind of test methods of APP link channel, traverse APP to be measured first, obtain the survey of APP to be measured Examination hall scape searches the operation code of response operation, further according to operation code, simulation test then in preset code database Courses of action in scene generate the test case of test scene.Implementation of test cases record test result and APP to be measured again Operating status, finally interface, test result and operating status according to response, generate the test report of test scene.With it is existing existing There is technology to compare, the embodiment of the present invention obtains test scene by traversing APP to be measured, coverage test scene that can be comprehensive, Ensure to test APP to be measured comprehensively.APP to be measured is tested comprehensively, so that test result can accurately reflect APP True operating status.By operating operation code in preset code library, simulated operation path automatically generates test case, Improve testing efficiency.
Further, as the realization to method shown in above-mentioned Fig. 1, the embodiment of the invention provides a kind of APP to link canal The test device in road, as shown in figure 3, the device includes:
Acquiring unit 31 obtains the test scene of the APP to be measured, the test scene refers to for traversing APP to be measured The analog service scene of response interface is generated according to courses of action, the courses of action refer to the link for generating the response interface Channel and the set operated according to tactic response is executed, the link channel refer to the network linking of the APP to be measured;
Searching unit 32, in preset code database, searching the operation code of the response operation;
First generation unit 33 is generated for simulating the courses of action in the test scene according to the operation code The test case of the test scene;
Recording unit 34 records the operating status of test result and the APP to be measured for executing the test case;
Second generation unit 35, for generating institute according to the response interface, the test result and the operating status State the test report of test scene.
The present invention provides a kind of test devices of APP link channel, traverse APP to be measured first, obtain the survey of APP to be measured Examination hall scape searches the operation code of response operation, further according to operation code, simulation test then in preset code database Courses of action in scene generate the test case of test scene.Implementation of test cases record test result and APP to be measured again Operating status, finally interface, test result and operating status according to response, generate the test report of test scene.With it is existing existing There is technology to compare, the embodiment of the present invention obtains test scene by traversing APP to be measured, coverage test scene that can be comprehensive, Ensure to test APP to be measured comprehensively.APP to be measured is tested comprehensively, so that test result can accurately reflect APP True operating status.By operating operation code in preset code library, simulated operation path automatically generates test case, Improve testing efficiency.
Further, as the realization to method shown in above-mentioned Fig. 2, the embodiment of the invention provides another APP links The test device of channel, as shown in figure 4, the device includes:
Acquiring unit 41 obtains the test scene of the APP to be measured, the test scene refers to for traversing APP to be measured The analog service scene of response interface is generated according to courses of action, the courses of action refer to the link for generating the response interface Channel and the set operated according to tactic response is executed, the link channel refer to the network linking of the APP to be measured;
Searching unit 42, in preset code database, searching the operation code of the response operation;
First generation unit 43 is generated for simulating the courses of action in the test scene according to the operation code The test case of the test scene;
Recording unit 44 records the operating status of test result and the APP to be measured for executing the test case;
Second generation unit 45, for generating institute according to the response interface, the test result and the operating status State the test report of test scene.
Further, the acquiring unit 41, comprising:
Spider module 411, for using depth-priority-searching method, for the purpose of generating the response interface, traversal it is described to APP is surveyed, according to execution journal option of operation corresponding with the response interface;
Module 412 is obtained, for obtaining the link channel of the APP to be measured;
Generation module 413, for the corresponding relationship according to the link channel and the option of operation, by the link canal Road generates the test scene of the APP to be measured in conjunction with the option of operation.
Further, the acquisition module 412, comprising:
Submodule 4121 is searched, for searching link channel field and banner field in the APP to be measured;
Submodule 4122 is determined, for determining the field contents of the link channel field and the banner field For the link channel.
Further, first generation unit 43, comprising:
Configuration module 431, for configuring APPIUM test environment;
Module 432 is established, for establishing the TESTNG test block in simulated operation path in APPIUM test environment Frame;
Generation module 433 generates the test case for importing the operation code in the test frame.
Further, the recording unit 44, comprising:
Monitoring module 441 when for executing the test case, monitors the occupied system money of the APP to be measured in real time Source;
Module 442 is obtained, after the completion of executing for the test case, obtains execution journal and the institute of the test case State the real-time output journal of APP to be measured;
Searching module 443, for searching the test result of the test case, the test according to the execution journal As a result refer to the implementing result of the test case;
The searching module 443 is also used to be looked into according to the monitoring data of the real-time output journal and the real time monitoring The operating status of the APP to be measured is looked for, the operating status includes memory usage, call flow, whether report an error, requests to receive The consuming time of hair expended the time and load resource;
Logging modle 444, for recording the test result and the operating status.
Further, the method also includes:
Comparing unit 46 generates institute for described according to the response interface, the test result and the operating status After the test report for stating test scene, the response interface and the implementing result judge holding for the test case Whether row logic is correct;
Trace unit 47 recalls the test case positioning error-logic if incorrect for the execution logic Response operation;
Adding unit 48 is added to the test report for operating the response of the error-logic.
Further, the method also includes:
Display unit 49 generates institute for described according to the response interface, the test result and the operating status After the test report for stating test scene, the test report is shown in WEB page.
The present invention provides a kind of test devices of APP link channel, traverse APP to be measured first, obtain the survey of APP to be measured Examination hall scape searches the operation code of response operation, further according to operation code, simulation test then in preset code database Courses of action in scene generate the test case of test scene.Implementation of test cases record test result and APP to be measured again Operating status, finally interface, test result and operating status according to response, generate the test report of test scene.With it is existing existing There is technology to compare, the embodiment of the present invention obtains test scene by traversing APP to be measured, coverage test scene that can be comprehensive, Ensure to test APP to be measured comprehensively.APP to be measured is tested comprehensively, so that test result can accurately reflect APP True operating status.By operating operation code in preset code library, simulated operation path automatically generates test case, Improve testing efficiency.
A kind of storage medium is provided according to an embodiment of the present invention, and it is executable that the storage medium is stored at least one The test method of the link channel of the APP in above-mentioned any means embodiment can be performed in instruction, the computer executable instructions.
Fig. 5 shows a kind of structural schematic diagram of the computer equipment provided according to an embodiment of the present invention, the present invention Specific embodiment does not limit the specific implementation of computer equipment.
As shown in figure 5, the computer equipment may include: processor (processor) 502, communication interface (Communications Interface) 504, memory (memory) 506 and communication bus 508.
Wherein: processor 502, communication interface 504 and memory 506 complete mutual lead to by communication bus 508 Letter.
Communication interface 504, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 502 can specifically execute the test method embodiment of above-mentioned APP link channel for executing program 510 In correlation step.
Specifically, program 510 may include program code, which includes computer operation instruction.
Processor 502 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that computer equipment includes can be same type of processor, such as one or more CPU;? It can be different types of processor, such as one or more CPU and one or more ASIC.
Memory 506, for storing program 510.Memory 506 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 510 specifically can be used for so that processor 502 executes following operation:
APP to be measured is traversed, the test scene of the APP to be measured is obtained, the test scene refers to raw according to courses of action At the analog service scene of response interface, the courses of action refer to the link channel for generating the response interface and according to execution The set of tactic response operation, the link channel refer to the network linking of the APP to be measured;
In preset code database, the operation code of the response operation is searched;
According to the operation code, the courses of action in the test scene are simulated, generate the test of the test scene Use-case;
The test case is executed, the operating status of test result and the APP to be measured is recorded;
According to the response interface, the test result and the operating status, the test report of the test scene is generated It accuses.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all include within protection scope of the present invention.

Claims (10)

1. a kind of test method of APP link channel characterized by comprising
APP to be measured is traversed, the test scene of the APP to be measured is obtained, the test scene, which refers to generate according to courses of action, to be rung The analog service scene at interface is answered, the courses of action refer to the link channel for generating the response interface and according to execution sequence The set of the response operation of arrangement, the link channel refer to the network linking of the APP to be measured;
In preset code database, the operation code of the response operation is searched;
According to the operation code, the courses of action in the test scene are simulated, generate the test case of the test scene;
The test case is executed, the operating status of test result and the APP to be measured is recorded;
According to the response interface, the test result and the operating status, the test report of the test scene is generated.
2. the method as described in claim 1, which is characterized in that the traversal APP to be measured obtains the test of the APP to be measured Scene, comprising:
Using depth-priority-searching method, for the purpose of generating the response interface, the APP to be measured is traversed, is remembered according to execution sequence Record option of operation corresponding with the response interface;
Obtain the link channel of the APP to be measured;
According to the corresponding relationship of the link channel and the option of operation, by the link channel and the option of operation knot It closes, generates the test scene of the APP to be measured.
3. method according to claim 2, which is characterized in that the link channel for obtaining the APP to be measured, comprising:
Search the link channel field and banner field in the APP to be measured;
The field contents of the link channel field and the banner field are determined as the link channel.
4. the method as described in claim 1, which is characterized in that it is described according to the operation code, simulate the test scene In courses of action, generate the test case of the test scene, comprising:
It configures APPIUM and tests environment;
In APPIUM test environment, the TESTNG test frame in simulated operation path is established;
The operation code is imported in the test frame, generates the test case.
5. the method as described in claim 1, which is characterized in that it is described to execute the test case, record test result and to Survey the operating status of APP, comprising:
When executing the test case, the occupied system resource of APP to be measured is monitored in real time;
After the completion of the test case executes, the execution journal of the test case and the real-time output of the APP to be measured are obtained Log;
According to the execution journal, the test result of the test case is searched, the test result refers to the test case Implementing result;
According to the monitoring data of the real-time output journal and the real time monitoring, the operating status of the APP to be measured, institute are searched State the consumption for expending the time and loading resource that operating status includes memory usage, calls flow, whether has the transmitting-receiving that reports an error, requests It is time-consuming;
Record the test result and the operating status.
6. method as claimed in claim 5, which is characterized in that described according to the response interface, the test result and institute Operating status is stated, after the test report for generating the test scene, the method also includes:
Compare the response interface and the implementing result, judges whether the execution logic of the test case is correct;
If the execution logic is incorrect, the response operation of the test case positioning error-logic is recalled;
The response of the error-logic is operated, the test report is added to.
7. as the method according to claim 1 to 6, which is characterized in that described according to the response interface, the test As a result with the operating status, after the test report for generating the test scene, the method also includes:
The test report is shown in WEB page.
8. a kind of test device of APP link channel characterized by comprising
Acquiring unit obtains the test scene of the APP to be measured, the test scene refers to according to behaviour for traversing APP to be measured Make the analog service scene of coordinates measurement response interface, the courses of action refer to the link channel for generating the response interface and According to the set for executing tactic response operation, the link channel refers to the network linking of the APP to be measured;
Searching unit, in preset code database, searching the operation code of the response operation;
First generation unit, for simulating the courses of action in the test scene, generating the survey according to the operation code The test case of examination hall scape;
Recording unit records the operating status of test result and the APP to be measured for executing the test case;
Second generation unit, for generating the test according to the response interface, the test result and the operating status The test report of scene.
9. a kind of storage medium, it is stored with an at least executable instruction in the storage medium, the executable instruction makes to handle Device executes the corresponding operation of test method such as APP of any of claims 1-7 link channel.
10. a kind of computer equipment, comprising: processor, memory, communication interface and communication bus, the processor described are deposited Reservoir and the communication interface complete mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of test method of the link channel of APP described in any one of 1-7.
CN201811536390.9A 2018-12-14 2018-12-14 APP link channel testing method and device Active CN109815119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811536390.9A CN109815119B (en) 2018-12-14 2018-12-14 APP link channel testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811536390.9A CN109815119B (en) 2018-12-14 2018-12-14 APP link channel testing method and device

Publications (2)

Publication Number Publication Date
CN109815119A true CN109815119A (en) 2019-05-28
CN109815119B CN109815119B (en) 2022-09-30

Family

ID=66601984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811536390.9A Active CN109815119B (en) 2018-12-14 2018-12-14 APP link channel testing method and device

Country Status (1)

Country Link
CN (1) CN109815119B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413512A (en) * 2019-07-03 2019-11-05 深圳市珍爱捷云信息技术有限公司 AB test method, device, computer equipment and storage medium
CN110442512A (en) * 2019-07-05 2019-11-12 深圳壹账通智能科技有限公司 The method for testing reliability and relevant device of information management system by all kinds of means
CN110618778A (en) * 2019-09-19 2019-12-27 深圳前海环融联易信息科技服务有限公司 Method and system for automatically generating business data, electronic equipment and computer storage medium
CN111309608A (en) * 2020-02-13 2020-06-19 咪咕音乐有限公司 Test case selection method and device, electronic equipment and readable storage medium
CN111400166A (en) * 2020-02-20 2020-07-10 香港乐蜜有限公司 Real-time communication service testing method, device and system and electronic equipment
CN111581073A (en) * 2020-02-20 2020-08-25 香港乐蜜有限公司 Application testing method, device and system and storage medium
CN112256587A (en) * 2020-11-10 2021-01-22 恩亿科(北京)数据科技有限公司 Data testing method and device based on SCRM system, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144529A1 (en) * 2003-10-01 2005-06-30 Helmut Gotz Method for defined derivation of software tests from use cases
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal
CN104699608A (en) * 2015-03-10 2015-06-10 于秀山 Automatic test method and device for graphic user interface software
CN105373478A (en) * 2015-12-14 2016-03-02 广州华多网络科技有限公司 Automatic test method and system
CN106649100A (en) * 2016-11-16 2017-05-10 福建天晴数码有限公司 Automatic test method and system
CN106815137A (en) * 2015-12-01 2017-06-09 北京奇虎科技有限公司 Ui testing method and apparatus
CN107301129A (en) * 2017-06-28 2017-10-27 百度在线网络技术(北京)有限公司 Method and apparatus for generating test case
CN107622016A (en) * 2017-09-25 2018-01-23 无线生活(杭州)信息科技有限公司 A kind of page method of testing and device
CN107704396A (en) * 2017-10-20 2018-02-16 平安科技(深圳)有限公司 The method of testing and device of application program
CN107861862A (en) * 2017-06-27 2018-03-30 陆金所(上海)科技服务有限公司 UI automated testing methods, device and computer-readable recording medium
CN107908543A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Applied program testing method, device, computer equipment and storage medium
CN107943685A (en) * 2017-10-30 2018-04-20 北京奇虎科技有限公司 A kind of traverse path generation method, device, server and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144529A1 (en) * 2003-10-01 2005-06-30 Helmut Gotz Method for defined derivation of software tests from use cases
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal
CN104699608A (en) * 2015-03-10 2015-06-10 于秀山 Automatic test method and device for graphic user interface software
CN106815137A (en) * 2015-12-01 2017-06-09 北京奇虎科技有限公司 Ui testing method and apparatus
CN105373478A (en) * 2015-12-14 2016-03-02 广州华多网络科技有限公司 Automatic test method and system
CN106649100A (en) * 2016-11-16 2017-05-10 福建天晴数码有限公司 Automatic test method and system
CN107861862A (en) * 2017-06-27 2018-03-30 陆金所(上海)科技服务有限公司 UI automated testing methods, device and computer-readable recording medium
CN107301129A (en) * 2017-06-28 2017-10-27 百度在线网络技术(北京)有限公司 Method and apparatus for generating test case
CN107908543A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Applied program testing method, device, computer equipment and storage medium
CN107622016A (en) * 2017-09-25 2018-01-23 无线生活(杭州)信息科技有限公司 A kind of page method of testing and device
CN107704396A (en) * 2017-10-20 2018-02-16 平安科技(深圳)有限公司 The method of testing and device of application program
CN107943685A (en) * 2017-10-30 2018-04-20 北京奇虎科技有限公司 A kind of traverse path generation method, device, server and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周小婷: "Android应用程序自动化黑盒测试方法的研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
张明等: "面向安卓手机App功能测试技术的方法", 《计算机工程与设计》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413512A (en) * 2019-07-03 2019-11-05 深圳市珍爱捷云信息技术有限公司 AB test method, device, computer equipment and storage medium
CN110442512A (en) * 2019-07-05 2019-11-12 深圳壹账通智能科技有限公司 The method for testing reliability and relevant device of information management system by all kinds of means
CN110618778A (en) * 2019-09-19 2019-12-27 深圳前海环融联易信息科技服务有限公司 Method and system for automatically generating business data, electronic equipment and computer storage medium
CN111309608A (en) * 2020-02-13 2020-06-19 咪咕音乐有限公司 Test case selection method and device, electronic equipment and readable storage medium
CN111309608B (en) * 2020-02-13 2023-09-05 咪咕音乐有限公司 Test case selection method and device, electronic equipment and readable storage medium
CN111400166A (en) * 2020-02-20 2020-07-10 香港乐蜜有限公司 Real-time communication service testing method, device and system and electronic equipment
CN111581073A (en) * 2020-02-20 2020-08-25 香港乐蜜有限公司 Application testing method, device and system and storage medium
CN112256587A (en) * 2020-11-10 2021-01-22 恩亿科(北京)数据科技有限公司 Data testing method and device based on SCRM system, electronic equipment and storage medium
CN112256587B (en) * 2020-11-10 2024-06-28 恩亿科(北京)数据科技有限公司 Data testing method and device based on SCRM system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109815119B (en) 2022-09-30

Similar Documents

Publication Publication Date Title
CN109815119A (en) A kind of test method and device of APP link channel
US20190236000A1 (en) Distributed system test device
US9959201B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
Molyneaux The art of application performance testing: from strategy to tools
CA2694303C (en) Extensible execution language
US10482001B2 (en) Automated dynamic test case generation
US8898643B2 (en) Application trace replay and simulation systems and methods
WO2019085061A1 (en) Automatic test management method, apparatus and device for fund system, and storage medium
US20200133829A1 (en) Methods and systems for performance testing
Grambow et al. Befaas: An application-centric benchmarking framework for faas platforms
CN102244594A (en) Network emulation in manual and automated testing tools
US11151025B1 (en) Generating software test plans based at least in part on monitored traffic of a production application
US9971669B2 (en) Predicting performance of a software application over a target system
JP7387773B2 (en) Continuous integration testing methods, systems and devices, electronic equipment, storage media and computer programs
US20220012167A1 (en) Machine Learning Based Test Coverage In A Production Environment
US20200349063A1 (en) Probabilistic software testing via dynamic graphs
US20210081302A1 (en) Automated software testing using simulated user personas
US10025697B2 (en) Generation of automated unit tests for a controller layer system and method
US9912572B2 (en) Decomposing application topology data into transaction tracking data
TW201629768A (en) Infrastructure rule generation
Chai et al. Modeling distributed platforms from application traces for realistic file transfer simulation
US11474794B2 (en) Generating mock services based on log entries
CN109656825A (en) The method and device of fine arts resource processing, electronic equipment, storage medium
CN107885659A (en) Method and device, the equipment of request analog response to client
Ochei et al. Evaluating degrees of tenant isolation in multitenancy patterns: A case study of cloud-hosted Version Control System (VCS)

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
GR01 Patent grant
GR01 Patent grant