CN109902004A - A kind of test method and device of application program link channel - Google Patents
A kind of test method and device of application program link channel Download PDFInfo
- Publication number
- CN109902004A CN109902004A CN201910122477.XA CN201910122477A CN109902004A CN 109902004 A CN109902004 A CN 109902004A CN 201910122477 A CN201910122477 A CN 201910122477A CN 109902004 A CN109902004 A CN 109902004A
- Authority
- CN
- China
- Prior art keywords
- test
- application program
- link channel
- measured
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses the test methods and device of a kind of application program link channel, are related to Internet technical field, and to solve the problems, such as test in the prior art, time-consuming and low efficiency.This method specifically includes that traversal application program to be measured, and the test for obtaining the application program to be measured links channel;The corresponding trigger action of the test link channel is searched, the trigger action refers to that the response condition of the test link channel, the trigger action include input action or selection movement;The trigger action is simulated, the test case of the application program to be measured is generated;Browser automated test frame selenium tool is called, the test case is executed;Record the implementing result of the test case.During linking channel present invention is mainly applied to test application program.
Description
Technical field
The present invention relates to a kind of Internet technical fields, more particularly to a kind of test method of application program link channel
And device.
Background technique
Cash is borrowed, and is the abbreviation of petty cash loan transaction, is the consumer loan transaction provided for applicant, has
Convenient, flexible loaning bill and mode of repayment, and examination & approval in real time, the characteristic for quickly arriving account.With the development of internet technology, line
Upper loan transaction is also more and more.The way of promotion of loan transaction mainly includes sharing class pattern of lending and B2C on line
(Business-to-Customer, quotient is to visitor) pattern of lending.Sharing class pattern of lending, which refers to, utilizes someone or some company
Share program chains in fixed social group, forum, circle of friends, microblogging etc. are all social groups, by clicking the program chains
A loan application page is jumped to, to promote loan transaction.The parameter for including in program chains or cookie etc. letter
It ceases and determines that the program chains are issued by whom.For example, certain user enters the loan processing application page by the entrance of website A,
And the user is very short in website A residence time, website A acts as the function of sharing program chains channel in this process.
Process due to sharing the application business of class pattern of lending is not fixed, and the number jumped is not fixed, and is relied on
HTML5, it is likely that there is a problem of incompatible, it is therefore desirable to which link channel is tested.In order to guarantee that portfolio cash is borrowed
Platform generally using the mode extensively casted net, returns difficulty height, generallys use analog subscriber operation test link channel, test thus
When time-consuming and low efficiency.
Summary of the invention
In view of this, the present invention provides the test method and device of a kind of application program link channel, main purpose is
Solve the problems, such as that time-consuming and low efficiency for test in the prior art.
According to the present invention on one side, a kind of test method of application program link channel is provided, comprising:
Application program to be measured is traversed, the test for obtaining the application program to be measured links channel;
The corresponding trigger action of the test link channel is searched, the trigger action refers to the test link channel
Response condition, the trigger action include input action or selection movement;
The trigger action is simulated, the test case of the application program to be measured is generated;
Browser automated test frame selenium tool is called, the test case is executed;
Record the implementing result of the test case.
According to the present invention on the other hand, a kind of test device of application program link channel is provided, comprising:
Acquiring unit, for traversing application program to be measured, the test for obtaining the application program to be measured links channel;
Searching unit, for searching the corresponding trigger action of the test link channel, the trigger action refers to described
The response condition of test link channel, the trigger action include input action or selection movement;
Generation unit generates the test case of the application program to be measured for simulating the trigger action;
Execution unit executes the test case for calling browser automated test frame selenium tool;
Recording unit, for recording the implementing result of the test case.
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 behaviour of test method such as above-mentioned application program link channel
Make.
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 application program 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 application program link channel, traverse application program to be measured first
Test link channel is obtained, then searches the corresponding trigger action of test link channel, then simulate trigger action and generate to be measured answer
With the test case of program, browser automated test frame selenium tool implementation of test cases, optimal record are recalled
The implementing result of test case.Compared with prior art, the test that the embodiment of the present invention passes through acquisition application program whole to be measured
It links channel and its corresponding trigger action generates test case, uniformly tested after generating test case, on the one hand can
It improves testing efficiency and reduces the testing time, on the other hand guarantee that test completeness improves test quality.Test side in the present invention
Case can test all application programs to be measured promoted by linking channel, in order to improve such application program
Upper linear velocity.
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 application program link channel provided in an embodiment of the present invention;
Fig. 2 shows the test method flow charts of another kind application program of embodiment of the present invention link channel;
Fig. 3 shows a kind of test device composition block diagram of application program link channel provided in an embodiment of the present invention;
Fig. 4 shows the test device composition block diagram of another application program 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 application program link channel, as shown in Figure 1, the method packet
It includes:
101, application program to be measured is traversed, the test link channel of application program to be measured is obtained.
Application program to be measured refers to the application program promoted by sharing mode.In extension process, it can use
Promoting service people shares to be measured using journey in fixed social group, such as forum, circle of friends, microblogging in application program to be measured
The link channel of sequence.Enter after linking channel, application program to be measured may be directly entered, it is also possible to need by certain specific steps
Suddenly application program to be measured is just jumped to.The response page entered by link channel, may application program to be measured homepage or
A certain specific webpage.Wherein particular step is usually to the place mat for responding application program to be measured, for example, if application program to be measured
For platform of providing a loan, then particular step is the test process of " cell-phone number surveys your loan limit ", if application program to be measured
It has a monopoly in platform for clothes, then particular step is the test process of " test you be enough fashion ".Journey is applied using to be measured in user
After sequence transacting business, it is also necessary to which marking the business is attached by which link channel.It is connected to point from link channel
During the application program to be measured that the mode of enjoying is promoted, the process of process is not fixed, and the number jumped is not fixed, and is caused to link
The difficulty of channel test is higher.
Test link channel, refers to and obtains from application program to be measured, need link channel to be tested.Traverse to be measured answer
With program, that is, the program code of application program to be measured is traversed, by searching for the content stored in keyword, to obtain test
Link channel.Different application program to be measured link channels may have different keywords, so obtaining different to be tested
Need to carry out keyword corresponding update adjustment before the link channel of application program, whole test links can be obtained
Channel.
102, the corresponding trigger action of test link channel is searched.
Trigger action refers to that the response condition of test link channel, trigger action include input action or selection movement.When
Test link channel be triggered operation triggering when, just can connect to application program to be measured, thus realize to link channel test.
Illustratively, input action may be " ctrl+shift ", " ctrl+space ", " shift+tab " etc., illustratively, choosing
Selecting movement may be " clicking selection ", " double-clicking selection ", " selected selection " etc..In embodiments of the present invention to input action and
The concrete mode of selection movement is without limitation.
103, trigger action is simulated, the test case of application program to be measured is generated.
User carries out trigger action to test link channel in terminal, is connected to application program to be measured, during its, eventually
Trigger action is converted into operational order, the webpage of publication test link channel or application response in running background by end
The operational order, starting pass through webpage or application program link test link channel.Trigger action is simulated, is exactly simulation and survey
The corresponding trigger action of examination link channel, generates the operational order that can trigger the link channel.Channel is linked with simulation test
Trigger action as application program to be measured test case.By the operational order, start application program to be measured, with test to
Can the application response operational order be surveyed enter response page.The type that trigger action itself is included is fewer, triggering
Operation itself is often duplicate, and each test link channel and its corresponding trigger action generate a test case,
In order to improve edit code efficiency, by the way of being multiplexed trigger action code itself, test case is generated.
104, browser automated test frame selenium tool, implementation of test cases are called.
Automated test frame selenium tool is a tool for web application test, runs directly in
In browser, just as real user in operation.And a variety of browsers supported, the type of browser include including IE
(7,8,9,10,11), Mozilla Firefox, Safari, Google Chrome, Opera etc..It is promoted by sharing mode
The link channel of application program to be tested, by showing user in a browser, so executing test in selenium tool
Use-case can increase the reliability of test.
105, the implementing result of test case is recorded.
By test case, start application program to be measured, it can be into test the application response to be measured operational order
Enter response page.Each test case can generate an implementing result, and implementing result may be that link channel with test corresponding
Response page, it may be possible to other response pages, it is also possible to prompt cannot respond.It records in implementing result and test case
Test link channel, in order to compare implementing result whether be it is normal, to determine that test link channel is able to use, if
Need to correct execution logic.
The present invention provides a kind of test methods of application program link channel, traverse application program to be measured first and obtain survey
Then examination link channel searches the corresponding trigger action of test link channel, then simulates trigger action and generate application program to be measured
Test case, recall browser automated test frame selenium tool implementation of test cases, optimal record test is used
The implementing result of example.Compared with prior art, the embodiment of the present invention is connected by obtaining the test chain of application program whole to be measured
Road and its corresponding trigger action generate test case, are uniformly tested after generating test case, on the one hand can be improved survey
It tries efficiency and reduces the testing time, on the other hand guarantee that test completeness improves test quality.Testing scheme in the present invention, can
All application programs to be measured promoted by linking channel are tested, in order to improve the upper linear speed of such application program
Degree.
The embodiment of the invention provides the test methods of another application program link channel, as shown in Fig. 2, the method
Include:
201, application program to be measured is traversed, the test link channel of application program to be measured is obtained.
The program code for traversing application program to be measured is searched and obtains test link channel therein.It specifically includes: according to
The page source code positioning target of whitepack scanning tools, the APPnatice code and the HTML5 page that scan application program to be measured is rung
The page is answered, the target response page includes business scenario node, shares and initiate node and page jump node;In channel field and
In the page field of the position banner, the corresponding response chains of the target response page are searched;Response chains are determined as to test chain
Connect channel.
Whitepack scanning tools are a kind of source scan methods, import the URL link of application program to be measured, can be automatic
Scan the code of application program to be measured.Scan the page source of the APPnatice code and the HTML5 page in application program to be measured
The code positioning target response page.The target response page includes business scenario node, shares and initiate node and page jump node.Mesh
Mark response page is Webpage of the user by test link channel connection, which belongs to application program to be measured.It surveys
Examination link channel is all stored in the page field of channel field and the position banner, is rung so searching in the field with target
Answer the corresponding response chains of the page.
It is obtained and is tested after link channel by way of traversing application program to be measured further include: obtained and touched in manual test
Send out the simulated operation of the target response page;The simulation for searching simulated operation links channel;Merge simulation link channel and test chain
Channel is connect, and carries out duplicate removal processing, generates the test link channel of update.
In addition to obtaining test link channel from program code, target can also be searched from the record of manual test
The object run of response page and its corresponding simulation link channel, the test chain got in such a way that this is avoided whitepack from scanning
It connects channel and there is omission.Simulated operation triggers the operation of the target response page when referring to tester's manual test.Simulated operation
In include trigger action and triggering object, trigger the simulation link channel at correspondence i.e. target response interface.Simulation link canal
Road links channel with test, is all the link channel of application program to be measured, and the source for only obtaining link channel is different, and according to
The difference of channel is distinguished with naming.Merge simulation link channel and link channel with test, and carry out duplicate removal processing, generates more
New test links channel, to guarantee that in the test updated link channel include all link channels, while testing link canal
Retest is not done when road.
202, the corresponding trigger action of test link channel is searched.
Trigger action refers to that the response condition of test link channel, trigger action include input action or selection movement.
203, in appium platform, trigger action is simulated, generates operation code.
Application program to be measured may be the mobile native applications on iOS platform and Android platform, it is also possible to mobile
Web application chooses appium platform in test to be compatible with various application platforms, same to allow tester to use
Interface writes automatic test code based on different platforms, to increase the reusability of code between protos test suite PROTOS.In appium platform
Upper simulation trigger action, that is, by trigger action code, generate operation code.
204, the corresponding test link channel of trigger action is introduced into operation code, generates test case.
This step is that analog subscriber executes the corresponding trigger action of test link channel, can be jumped in real network
The response page of application program to be measured generates test case so test link channel is introduced operation code.It is used by test
Example can be connected to the response page of application program to be measured.
205, browser automated test frame selenium tool, implementation of test cases are called.
Selenium is a tool for web application test.Selenium test runs directly in browser
In, just as real user in operation.Selenium test can be on Windows, Linux and Macintosh
It is run in Internet Explorer, Chrome and Firefox.The Selenium test foot of user's operation is imitated by writing
This, implementation of test cases can be carried out from the angle of terminal user and tests application program to be measured.
206, the implementing result of test case is recorded.
The implementing result being likely to be obtained after implementation of test cases may be to link the corresponding response page of channel with testing,
It may be to link the not corresponding response page of channel with test, it is also possible to which prompt test can not execute or be not carried out the sound of result
Answer the page.In embodiments of the present invention to implementing result a possibility that, is without limitation.
After recording implementing result further include: traverse application program to be measured, search the test link of application program to be measured
The corresponding target response page of channel;If the target response page is identical as implementing result, it is determined that test link channel is positive
Often link channel.If the target response page is different from implementing result, it is determined that test link channel is abnormal link channel.
The corresponding implementing result of same test link channel and target response interface are compared, judges whether the two is identical, really
Whether fixed test link channel is normal.If test link channel is abnormal, the test case where abnormal link channel is obtained
Implementation procedure, search abnormal jump-point therein, determine position of the exception jump-point in application program to be measured, record the position
It sets and is abnormal execution position by the position mark, correct application program to be measured accordingly to develop tester.
207, the network operation state of record test link channel.
Network operation state refers to the network operation state in implementation of test cases, for monitoring the operation shape for surveying end
State, that is, by test link channel connect application program to be measured when terminal operating status.Record network operation state, tool
Body includes: the execution test log for obtaining test case;The Network Search operating status in executing test log, network operation shape
State includes jumping time, application crash rate, ANR rate.Network operation state can also add including system response speed, the page
Published article part speed, interface reaction speed etc., in the operating status that implementation of test cases is.Record net when implementation of test cases
Network operating status, it is to be measured to optimize in order to analyze the use state that each test of application program to be measured links channel comprehensively
The test of application program links channel.
The present invention provides a kind of test methods of application program link channel, traverse application program to be measured first and obtain survey
Then examination link channel searches the corresponding trigger action of test link channel, then simulates trigger action and generate application program to be measured
Test case, recall browser automated test frame selenium tool implementation of test cases, optimal record test is used
The implementing result of example.Compared with prior art, the embodiment of the present invention is connected by obtaining the test chain of application program whole to be measured
Road and its corresponding trigger action generate test case, are uniformly tested after generating test case, on the one hand can be improved survey
It tries efficiency and reduces the testing time, on the other hand guarantee that test completeness improves test quality.Testing scheme in the present invention, can
All application programs to be measured promoted by linking channel are tested, in order to improve the upper linear speed of such application program
Degree.
Further, as the realization to method shown in above-mentioned Fig. 1, the embodiment of the invention provides a kind of application program chains
The test device of channel is connect, as shown in figure 3, the device includes:
Acquiring unit 31, for traversing application program to be measured, the test for obtaining the application program to be measured links channel;
Searching unit 32, for searching the corresponding trigger action of the test link channel, the trigger action refers to institute
The response condition of test link channel is stated, the trigger action includes input action or selection movement;
Generation unit 33 generates the test case of the application program to be measured for simulating the trigger action;
Execution unit 34 executes the test case for calling browser automated test frame selenium tool;
Recording unit 35, for recording the implementing result of the test case.
The present invention provides a kind of test devices of application program link channel, traverse application program to be measured first and obtain survey
Then examination link channel searches the corresponding trigger action of test link channel, then simulates trigger action and generate application program to be measured
Test case, recall browser automated test frame selenium tool implementation of test cases, optimal record test is used
The implementing result of example.Compared with prior art, the embodiment of the present invention is connected by obtaining the test chain of application program whole to be measured
Road and its corresponding trigger action generate test case, are uniformly tested after generating test case, on the one hand can be improved survey
It tries efficiency and reduces the testing time, on the other hand guarantee that test completeness improves test quality.Testing scheme in the present invention, can
All application programs to be measured promoted by linking channel are tested, in order to improve the upper linear speed of such application program
Degree.
Further, as the realization to method shown in above-mentioned Fig. 2, the embodiment of the invention provides another application programs
The test device for linking channel, as shown in figure 4, the device includes:
Acquiring unit 41, for traversing application program to be measured, the test for obtaining the application program to be measured links channel;
Searching unit 42, for searching the corresponding trigger action of the test link channel, the trigger action refers to institute
The response condition of test link channel is stated, the trigger action includes input action or selection movement;
Generation unit 43 generates the test case of the application program to be measured for simulating the trigger action;
Execution unit 44 executes the test case for calling browser automated test frame selenium tool;
Recording unit 45, for recording the implementing result of the test case.
Further, the acquiring unit 41, comprising:
Scan module 411, for scanning the APPnatice code of the application program to be measured according to whitepack scanning tools
And the page source code of the HTML5 page positions the target response page, the target response page includes business scenario node, shares
Initiate node and page jump node;
Searching module 412, for searching the target response in the page field of channel field and the position banner
The corresponding response chains of the page;
Determining module 413 links channel for the response chains to be determined as the test.
Further, the method also includes:
Obtain module 414, for it is described the response chains are determined as test link channel after, obtain manually
The simulated operation of the target response page is triggered in test;
The searching module 412 is also used to search the simulation link channel of the simulated operation;
Generation module 415 links channel with the test for merging the simulation link channel, and carries out at duplicate removal
Reason generates the test link channel of update.
Further, the generation unit 43, is used for:
In appium platform, the trigger action is simulated, generates operation code;
The corresponding test link channel of the trigger action is introduced into the operation code, generates the test case.
Further, the method also includes:
The recording unit 45 is also used to after the implementing result for recording the test case, records the test
Link the network operation state of channel.
Further, the recording unit 45, comprising:
Module 451 is obtained, for obtaining the execution test log of the test case;
Searching unit 452, for searching the network operation state, the network operation in the execution test log
State includes jumping time, application crash rate, ANR rate.
Further, the method also includes:
Searching unit 42 is also used to after the implementing result for recording the test case, traverses application program to be measured,
Search the corresponding target response page of test link channel of the application program to be measured;
Determination unit 46, if identical as the implementing result for the target response page, it is determined that the test
Linking channel is normal link channel.
The determination unit 46, if it is different from the implementing result to be also used to the target response page, it is determined that institute
Test link channel is stated as abnormal link channel.
The present invention provides a kind of test devices of application program link channel, traverse application program to be measured first and obtain survey
Then examination link channel searches the corresponding trigger action of test link channel, then simulates trigger action and generate application program to be measured
Test case, recall browser automated test frame selenium tool implementation of test cases, optimal record test is used
The implementing result of example.Compared with prior art, the embodiment of the present invention is connected by obtaining the test chain of application program whole to be measured
Road and its corresponding trigger action generate test case, are uniformly tested after generating test case, on the one hand can be improved survey
It tries efficiency and reduces the testing time, on the other hand guarantee that test completeness improves test quality.Testing scheme in the present invention, can
All application programs to be measured promoted by linking channel are tested, in order to improve the upper linear speed of such application program
Degree.
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 side of the link channel of the application program in above-mentioned any means embodiment can be performed in instruction, the computer executable instructions
Method.
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 of above-mentioned application program link channel for executing program 510
Correlation step in embodiment.
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:
Application program to be measured is traversed, the test for obtaining the application program to be measured links channel;
The corresponding trigger action of the test link channel is searched, the trigger action refers to the test link channel
Response condition, the trigger action include input action or selection movement;
The trigger action is simulated, the test case of the application program to be measured is generated;
Browser automated test frame selenium tool is called, the test case is executed;
Record the implementing result of the test case.
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 application program link channel characterized by comprising
Application program to be measured is traversed, the test for obtaining the application program to be measured links channel;
The corresponding trigger action of the test link channel is searched, the trigger action refers to the response of the test link channel
Condition, the trigger action include input action or selection movement;
The trigger action is simulated, the test case of the application program to be measured is generated;
Browser automated test frame selenium tool is called, the test case is executed;
Record the implementing result of the test case.
2. the method as described in claim 1, which is characterized in that the traversal application program to be measured obtains the application to be measured
The test of program links channel, comprising:
According to whitepack scanning tools, the APPnatice code of the application program to be measured and the page source of the HTML5 page are scanned
The code positioning target response page, the target response page include business scenario node, share and initiate node and page jump section
Point;
In the page field of channel field and the position banner, the corresponding response chains of the target response page are searched;
The response chains are determined as the test link channel.
3. method according to claim 2, which is characterized in that described that the response chains are determined as the test link canal
After road, the method also includes:
Obtain the simulated operation that the target response page is triggered in manual test;
Search the simulation link channel of the simulated operation;
Merge the simulation link channel and link channel with the test, and carry out duplicate removal processing, generates the test link of update
Channel.
4. the method according to claim 1, which is characterized in that the simulation trigger action, described in generation
The test case of application program to be measured, comprising:
In appium platform, the trigger action is simulated, generates operation code;
The corresponding test link channel of the trigger action is introduced into the operation code, generates the test case.
5. the method as described in claim 1, which is characterized in that after the implementing result for recording the test case, institute
State method further include:
Record the network operation state of the test link channel.
6. the method as described in claim 1, which is characterized in that the network operation shape for recording the test link channel
State, comprising:
Obtain the execution test log of the test case;
The network operation state is searched in the execution test log, the network operation state includes jumping the time, answering
With program crashing rate, ANR rate.
7. the method as described in claim 1, which is characterized in that after the implementing result for recording the test case, institute
State method further include:
Application program to be measured is traversed, the corresponding target response page of test link channel of the application program to be measured is searched;
If the target response page is identical as the implementing result, it is determined that the test link channel is normal link canal
Road.
If the target response page is different from the implementing result, it is determined that the test link channel is abnormal link canal
Road.
8. a kind of test device of application program link channel characterized by comprising
Acquiring unit, for traversing application program to be measured, the test for obtaining the application program to be measured links channel;
Searching unit, for searching the corresponding trigger action of the test link channel, the trigger action refers to the test
The response condition of channel is linked, the trigger action includes input action or selection movement;
Generation unit generates the test case of the application program to be measured for simulating the trigger action;
Execution unit executes the test case for calling browser automated test frame selenium tool;
Recording unit, for recording the implementing result of the test case.
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 application program 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 application program described in any one of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910122477.XA CN109902004B (en) | 2019-02-18 | 2019-02-18 | Method and device for testing application program link channel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910122477.XA CN109902004B (en) | 2019-02-18 | 2019-02-18 | Method and device for testing application program link channel |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109902004A true CN109902004A (en) | 2019-06-18 |
CN109902004B CN109902004B (en) | 2022-09-30 |
Family
ID=66945026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910122477.XA Active CN109902004B (en) | 2019-02-18 | 2019-02-18 | Method and device for testing application program link channel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109902004B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112765033A (en) * | 2021-01-26 | 2021-05-07 | 百度在线网络技术(北京)有限公司 | Speed testing method, device, equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335278A (en) * | 2014-06-16 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Testing method and device |
CN105677570A (en) * | 2016-01-11 | 2016-06-15 | 北京航空航天大学 | Method for generating graphical user interface (GUI) software test case based on incident response function tree |
CN106354628A (en) * | 2016-08-12 | 2017-01-25 | 北京小米移动软件有限公司 | Payment app test method and device thereof |
CN107368418A (en) * | 2017-07-26 | 2017-11-21 | 网易有道信息技术(北京)有限公司 | A kind of method, apparatus and medium for traveling through test |
CN107861862A (en) * | 2017-06-27 | 2018-03-30 | 陆金所(上海)科技服务有限公司 | UI automated testing methods, device and computer-readable recording medium |
CN109062809A (en) * | 2018-09-20 | 2018-12-21 | 北京奇艺世纪科技有限公司 | Method for generating test case, device and electronic equipment on a kind of line |
CN109324967A (en) * | 2018-09-26 | 2019-02-12 | 深圳壹账通智能科技有限公司 | The method, apparatus and terminal device of application program pop-up components testing |
CN109344062A (en) * | 2018-09-26 | 2019-02-15 | 深圳壹账通智能科技有限公司 | The cross-domain method for jumping test of the page and terminal device |
-
2019
- 2019-02-18 CN CN201910122477.XA patent/CN109902004B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335278A (en) * | 2014-06-16 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Testing method and device |
CN105677570A (en) * | 2016-01-11 | 2016-06-15 | 北京航空航天大学 | Method for generating graphical user interface (GUI) software test case based on incident response function tree |
CN106354628A (en) * | 2016-08-12 | 2017-01-25 | 北京小米移动软件有限公司 | Payment app test method and device thereof |
CN107861862A (en) * | 2017-06-27 | 2018-03-30 | 陆金所(上海)科技服务有限公司 | UI automated testing methods, device and computer-readable recording medium |
CN107368418A (en) * | 2017-07-26 | 2017-11-21 | 网易有道信息技术(北京)有限公司 | A kind of method, apparatus and medium for traveling through test |
CN109062809A (en) * | 2018-09-20 | 2018-12-21 | 北京奇艺世纪科技有限公司 | Method for generating test case, device and electronic equipment on a kind of line |
CN109324967A (en) * | 2018-09-26 | 2019-02-12 | 深圳壹账通智能科技有限公司 | The method, apparatus and terminal device of application program pop-up components testing |
CN109344062A (en) * | 2018-09-26 | 2019-02-15 | 深圳壹账通智能科技有限公司 | The cross-domain method for jumping test of the page and terminal device |
Non-Patent Citations (3)
Title |
---|
周小婷: "Android应用程序自动化黑盒测试方法的研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
濮方等: "基于网页划分的网站应用程序测试新方法", 《计算机科学》 * |
贾丽等: "Web系统测试用例自动执行系统", 《计算机工程与应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112765033A (en) * | 2021-01-26 | 2021-05-07 | 百度在线网络技术(北京)有限公司 | Speed testing method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109902004B (en) | 2022-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Doğan et al. | Web application testing: A systematic literature review | |
CN105247493B (en) | Impacted test is identified from the data of static collection | |
CN110427331B (en) | Method for automatically generating performance test script based on interface test tool | |
Baker et al. | Ensemble ecosystem modeling for predicting ecosystem response to predator reintroduction | |
CN105373478B (en) | Automated testing method and system | |
CN105095059B (en) | A kind of method and apparatus of automatic test | |
CN106294120A (en) | The test method of code, equipment and computer program | |
CN106909510A (en) | A kind of method and server for obtaining test case | |
CN106603296A (en) | Log processing method and device | |
CN109766263A (en) | Automatic test analysis and processing method, device, computer equipment and storage medium | |
CN106033579A (en) | Data processing method and apparatus thereof | |
CN107798245B (en) | Software security vulnerability prediction method based on component dependency graph | |
CN103618696B (en) | Method and server for processing cookie information | |
CN109040073A (en) | A kind of detection method, device, medium and the equipment of the access of WWW abnormal behaviour | |
CN109815119A (en) | A kind of test method and device of APP link channel | |
CN108399125A (en) | Automated testing method, device, computer equipment and storage medium | |
Khanna et al. | Performance comparison of multi-objective algorithms for test case prioritization during web application testing | |
CN109902004A (en) | A kind of test method and device of application program link channel | |
CN113778890B (en) | Code testing method and device, electronic equipment and storage medium | |
CN110334012A (en) | A kind of methods of risk assessment and device | |
CN117234916A (en) | Workflow application testing method and device, electronic equipment and storage medium | |
Businge et al. | How stable are eclipse application framework internal interfaces? | |
CN108733707A (en) | A kind of determining function of search stability and device | |
CN113031995B (en) | Rule updating method and device, storage medium and electronic equipment | |
Ayas et al. | An Empirical Analysis of Microservices Systems Using Consumer-Driven Contract Testing |
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 |