[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101339532A - Web application system automatized test method and apparatus - Google Patents

Web application system automatized test method and apparatus Download PDF

Info

Publication number
CN101339532A
CN101339532A CNA2007100435893A CN200710043589A CN101339532A CN 101339532 A CN101339532 A CN 101339532A CN A2007100435893 A CNA2007100435893 A CN A2007100435893A CN 200710043589 A CN200710043589 A CN 200710043589A CN 101339532 A CN101339532 A CN 101339532A
Authority
CN
China
Prior art keywords
test
atom
web application
application system
testing
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
CNA2007100435893A
Other languages
Chinese (zh)
Other versions
CN101339532B (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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN200710043589A priority Critical patent/CN101339532B/en
Publication of CN101339532A publication Critical patent/CN101339532A/en
Application granted granted Critical
Publication of CN101339532B publication Critical patent/CN101339532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automated testing method of a Web application system and a device thereof, which aims at solving the problems of the inflexibility, the low reutilization ratio, the heavy testing workload and the low efficiency of the existing automated testing tool of the Web application system. The method comprises the following steps: operation flows of the Web application system are broken down into the combination of atomic flows; an automated testing component is established correspondingly to each atomic flow; a preset testing case that records atomic flow sequences are read; the corresponding testing component is invoked to test the Web application system correspondingly to each atomic flow in the sequences. As the automated testing method of the components can be flexibly suitable for the automated testing of a plurality of complex and multivariant operation flows, the commonality of the testing programs can be improved, the automated testing efficiency can be greatly improved and the testing workload can be reduced; in addition, as the operation flows are thinned into the atomic flows, the error atomic flows can be tracked and positioned so as to find error points in time and improve the testing effect.

Description

A kind of automated testing method of Web application system and device
Technical field
The present invention relates to the software test field, particularly relate to a kind of automated testing method and device of Web application system.
Background technology
Software test is the important component part of software development, later maintenance process, and its test process runs through each link of soft project, and the purpose of test is the problem in the discovery procedure, improves software quality; And the upgrading test after being used for software and coming into operation, after the software patch installing, need carry out the correctness that regression test guarantees former function.
The Web application system all will comprise performance test and functional test two aspects through test before issue and after the upgrading, for functional test, mainly is Web to be used the various functions that had test.Because every kind of function has corresponding one or more operation flow, so functional test is that the miscellaneous service flow process of Web application system is tested.Wherein, described operation flow refers to have the operational set sequence of execution sequence successively, and the sequence of operation of different business flow process is also different.
Existing interface automated test tool mainly is to be the automatic test software of the script explanation type of representative with Mercury Winrunner and IBM RationalRobot, its principle of work is to write to carry out script or interface operation is recorded as script, operate and carry out operation flow by playing the script modeling interface, reach the purpose of automatic test.
For example, No. 200410086041.3 application documents of Chinese patent disclose a kind of automatization test system based on script explanatory tool, system is by the management to test cases, solve test cases and reused problem, test is undertaken by the backstage, realize the balanced management of testing process robotization and test resource, had stronger dirigibility, can satisfy the multiple business demand.Chinese patent has been announced a kind of automatic test backup system and corresponding software automatic test system No. 200410054163.4, this patent has defined the structuring test cases, adopt the dynamic execution of test cases and postponed the loading technology, and test cases is converted into the test script of commercial testing software, drive commercial testing software and carry out test, and logging test results; This system has improved writing of test cases and has carried out efficient.
There are the following problems for above-mentioned method of testing:
One is difficult to support the Protean concrete operation flow of different Web application systems, because test script need be write or record to the different business flow process of using at Web separately, so script writes dumbly, and the recycling rate of waterused of script is low; And, all needing to write or record a large amount of scripts at every turn, the test job amount is very big;
They are two years old, the reason that is difficult to that track and localization test makes mistakes a little and analysis makes mistakes, because the existing undecomposed complicated service flow process of automatization testing technique, if finding certain operation flow in the measuring executing process makes mistakes, only can navigate in this operation flow, navigate to concrete subservice flow process with being difficult to refinement.
Summary of the invention
Technical matters to be solved by this invention provides a kind of automated testing method and device of Web application system, and the existing Web application automated test tool is dumb, recycling rate of waterused is low, big, the inefficient problem of test job amount to solve.
For solving the problems of the technologies described above,, the invention discloses following technical scheme according to specific embodiment provided by the invention:
A kind of automated testing method of Web application system comprises:
The operation flow of Web application system is resolved into the combination of atom flow process;
Corresponding each atom flow process is created the automatic test member;
Read pre-configured test cases, write down atomic current program row in the test cases;
Each atom flow process in the corresponding described sequence is called corresponding test member, and the Web application system is tested.
Wherein, also comprised before calling test member: whether the data of the described test cases that reads of preliminary examination compliant, and checks whether the test member of being called exists.
Described method also comprises: test member is carried out rreturn value and expected results comparison, if identical, then carry out next test member; If inequality, then write down Error Location and related data, and carry out next test cases; Write down the test result after the above-mentioned comparison.
Described method also comprises: analyze described test result, generate test report.
Described method also comprises: the implementation status of each execution in step of track record.
Described method also comprises: the test member that common operation flow is comprised is combined into composite component, directly calls described composite component when calling.
A kind of automatic test device of Web application system comprises:
The automatic test component base is the set of automatic test member, and the corresponding atom flow process of each test member is created, and the atom flow process is combined into the operation flow of Web application system;
The case read module is used to read pre-configured test cases, has write down atomic current program row in the test cases;
Testing control module is used for each atom flow process of corresponding described sequence, calls corresponding test member, and the Web application system is tested.
Described device also comprises: the case parsing module, whether the data that are used for the described test cases that reads of preliminary examination compliant, and checks whether the test member of being called exists.
Preferably, described testing control module comprises: test cell, be used for each atom flow process of corresponding described sequence, and call corresponding test member, the Web application system is tested; Control module is used for that test member is carried out rreturn value and expected results compares, if identical, then trigger described test cell and carries out next test member; If inequality, then carry out next test cases; Record cell is used to write down the test result after the above-mentioned comparison, and record Error Location and related data.
Described device also comprises: the test result analysis module, be used for the analytical test result, and generate test report.
Described device also comprises: the log tracks module is used for the implementation status of each testing procedure of track record.
A kind of automatic test member comprises:
Member realizes that being used for corresponding atom flow process provides corresponding test function;
Interface, being connected between being used to external module is provided and member is realized, external module realizes that by described interface interchange member perhaps member is realized by described interface interchange external module.
Described member also comprises: component specification is used to provide the explanation to described member.
Preferably, described member comprises atom member and composite component, and wherein the atom member is corresponding with the atom flow process, and composite component is the combination of a plurality of atom members.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
At first, the complex business process that Web is used refine to minimum unit, resolves into a plurality of relatively independent atom flow processs, and the miscellaneous service flow process is the combination of different atom flow processs.Create corresponding automatic test member at the atom flow process, when carrying out the automatic test case, the automatic test member corresponding with it according to the atomic current program row dynamic call of disposing in the case, thus realize using automatic test based on the Web of Business Process Driven.
Described automated testing method based on member, the automatic test of can flexible adaptation various operation flows complicated and changeable has improved the versatility of test procedure, has greatly improved automatic test efficient, has reduced the test job amount; And, because operation flow is refine to the atom flow process, thus can track and localization to the atom flow process of makeing mistakes, in time find erroneous point, improve and test effect.
Secondly, the measured software component model of this method, unified automatic test component interface standard has been proposed, make the automatic test member be easy to transplant, be easy to upgrading, the member of different staff developments can be transplanted easily, reach the purpose of the more automatic test component resource of polymerization, improve the development and maintenance efficient and the dirigibility of automated test tool greatly.
Once more, in measuring executing process,,, directly withdraw from the test of whole service flow process with finishing the execution of follow-up atom flow process if the test result of atom flow process and expected results are inconsistent.Can avoid wrong test result data in follow-up test process, to continue to use like this, and cause testing software operation exception and mistake, improve the efficient of test and the robustness of system.
Description of drawings
Fig. 1 is the flow chart of steps of the automated testing method that provides of the embodiment of the invention;
Fig. 2 is that the present invention is the automated testing method process flow diagram of example with credit adjustment business;
Fig. 3 is the structural drawing of a kind of automatic test device of providing of the embodiment of the invention;
Fig. 4 is the structural drawing of a kind of automatic test member of providing of the embodiment of the invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The embodiment of the invention proposes a kind of Web applied business process automation method of testing based on member.Described method resolves into a plurality of relatively independent atom flow processs to the complicated business that Web uses, at the corresponding automatic test member of these atom business Process Design, automated test tool is when carrying out the automatic test case, the automatic test member corresponding with it according to the atom operation flow sequence dynamic call of disposing in the case, thus realize using automatic test based on the Web of Business Process Driven.
In embodiments of the present invention, introduce the notion of member, software component is the reusable software module of software-oriented architectural framework, is a software module that has standardization interface and explicit context dependence, and energy independently be issued and can be assembled.Member should be easy to be configured in different context by modes such as parametrizations, and can work in different hardware operation platforms and software environment.
Automated testing method based on member, it is a kind of method of using automatic test member assembling test at Web applied business flow process, each operation flow is decomposed into after the atom flow process, when the configuration testing case, only need calls each test member " assembling " simply and get up to get final product.For example, an operation flow comprises A, B, four sub-operation flows of C, D, and the tester may need to test following three flow process: A->B->C->D, A->B->D, A->C->D for comprehensive this operation flow of coverage test.If adopt the described method of testing of prior art, testing tool needs respectively to three flow process development and testing programs, when tester's demand changes, during as needs test another one flow process A->D, the test procedure of exploitation just can not " on-demand " in the past.And the embodiment of the invention based on the method for testing of member at four sub-operation flows, made corresponding automatic test member a, b, c, d respectively, the tester can get up to test different operation flows to test member " assembling " according to the needs of business when test.
In actual applications, the Web application system is usually at certain class particular service, and handle a lot of identical basic operations of the professional existence of same class, the atom flow process that therefore resolves into minimum unit not only is applicable to an operation flow, also is applicable to other flow processs of such business.Based on described principle, when the design automation test member, create reusable test member at same class business module, and different component compositions can be tested the various possible operation flow of this business.The design of test member is very important to test process, because the member that can be repeatedly used, the development and maintenance efficient and the dirigibility that can improve automated test tool.
Describe the process that test member is tested the Web application system of calling below in detail.With reference to Fig. 1, be the flow chart of steps of described automated testing method.
Step 101, the configuration testing case.Need be configured at each operation flow, because test cases is fully relevant with tested operation flow, if operation flow changes, test cases also will carry out corresponding modify.The key data structure of test cases is as shown in table 1:
The Chinese data title Data name Type Length Explanation
The case numbering CaseID The integer automatic numbering 4 The unique number of test cases
The module of surveying TestModule Numeral 4 External key is associated with the test module table
Atom operation flow sequence TestFlow Text Do not limit This field indicates the sequence of test service sub-process, and it is made up of the numbering of atom operation flow, and these numberings are got up at interval by separator.
Condition is passed through in test Expectation Text Do not limit The sequence that the rreturn value of the automatic test member of each atom operation flow correspondence under the test case of successful formed, i.e. expectation value.
Test cases is described Description Text Do not limit Description to case
Test input data 1 Datal Text Do not limit Need data or the case parameter imported in the page
Test input data n Datal Text Do not limit Need data or the case parameter imported in the page
The data structure table of table 1 test cases
In the table 1, " case numbering " is used at a plurality of test cases of measuring executing process difference, " module of surveying " shows the business module in the tested Web application system, " atom operation flow sequence " write down the tested atom operation flow that operation flow comprised and the execution sequence of atom operation flow, and " condition is passed through in test " is used for comparing the problem of finding that the Web application system exists with test result.
Step 102, the read test case.
Whether preferred steps 103, the data of preliminary examination test cases compliant, if the standard of not meeting then return error message and give the tester; If preliminary examination is passed through, then be that data, application resource etc. are prepared in the execution of test cases.
When preliminary examination, at first whether filling in of the critical data item of checkout case meets the case standard, for example every whether the filling in according to the requirement of each field in the table 1; Secondly need the numbering that is numbered member of conversion atom operation flow, and check whether the automatic test member that need call exists,, prepare to carry out, give the tester otherwise return the details that do not meet standard if exist then be loaded in the internal memory.This step can in time avoid wrong test cases data to enter the test link, causes test process operation exception and mistake.
Step 104 according to the atom operation flow sequence of test cases configuration, is called the automatic test member serialization of coupling successively and is carried out, the concrete operation flow of Web application system tested, and logging test results.
Preferably, in test process, whenever execute an atom operation flow, execution rreturn value and above-mentioned " condition is passed through in test " of corresponding test member compared,, then continue the next atom operation flow of test if identical; If inequality, then this atom operation flow goes wrong, and finishes the execution of this test cases immediately.Can in time find erroneous point like this, avoid wrong test result data in follow-up test process, to continue to use, and cause testing software operation exception and mistake; Can also in time find the problem of Web application system, and the Error Location and the related data of concrete atom operation flow are noted, as the part of test result.
Preferred steps 105 is analyzed described test result, adds up data such as test percent of pass wherein, and the analytic statistics result is organized into test report according to specified format, exports to the tester.
Preferably, in the whole process of above-mentioned test execution, the implementation status of each testing procedure of track record, and generate journal file, use in order to tester's ex-post analysis.For example,, analyze and obtain the reason of makeing mistakes by searching the more contextual information of journal file according to the Error Location of test report record.
Below by the automatic test course of a detailed example explanation based on member, tested Web application system is interior card mistake processing platform in the present embodiment.
This Platform Implementation is carried out mistake to the transaction that has wrong account in the enchashment between acquirer (as POS machine, ATM) and the card sending mechanism (as issuing bank), the consumer sale and is handled (account adjustment).Platform feature: confirm inquiry, credit adjustment, mistake business etc. such as cancel the order once.The mistake that occurs may be: the holder withdraws the money on ATM and does not tell paper money, but cardholder account by button account or holder in the POS of trade company consumption, POS shows that transaction is unsuccessful, but has reduced situation such as cardholder account remaining sum in fact.For every transaction, the card issuer all keeps complete original transaction data, when carrying out the mistake adjustment, need call these raw data and handle, to carry out flat account and clearance.
With credit adjustment business is example, introduce concrete operating process below, when the credit mistake takes place when, at first, inquire original customer transaction data, select the transaction of mistake according to former transaction data (primary account number, date of settlement) by the acquirer person of handling login mistake processing platform, select to initiate credit adjustment application, fill in relevant application information, and submit applications, wait pending.Behind the auditor login platform, the credit application that inquiry is not checked, check by after, clearance is waited in this mistake transaction data data-in storehouse, finishes the operating process that credit is adjusted.
Credit adjustment business is exactly a Web applied business flow process as a module to be measured, and it can be broken down into following atom operation flow: the login of the acquirer person of handling enters mistake platform sf1, the acquirer person of handling inquires need be the historical trading sf2 that credit is adjusted, the acquirer person of handling is initiated credit adjustment transaction sf3 to the transaction that inquires, the acquirer person of handling is withdrawed from mistake platform sf4, the login of acquirer auditor enters mistake platform sf5, the acquirer auditor finds this credit adjustment and checks operation sf6, the acquirer auditor is cancelled and is checked the transaction sf7 that passes through, the acquirer auditor withdraws from mistake platform sf8, the modification of the acquirer person of handling is checked unsanctioned transaction sf9, unsanctioned transaction sf10 is checked in the deletion of the acquirer person of handling.
By analysis, can be merged into an automatic test member c1 who logins the mistake platform to sf1 and sf5, sf4 and sf8 are merged into an automatic test member c4 who withdraws from the mistake platform, sf2 is designed to member c2, sf3 is designed to member c3, sf6 is designed to member c6, sf7 is designed to member c7, sf9 is designed to member c9, sf10 is designed to member c10.
Adjust professional test for credit, now enumerate 2 common test cases, as shown in table 2.
The case title Atom operation flow sequence Explanation
Case1 Sf1->sf2->sf3->sf4->sf5->s f6->sf8 The test credit is adjusted professional old process (by the person of handling initiation, auditor check by), and being converted to the member sequence of calling is c1->c2->c3->c4->c1->c6->c4.Annotate: it is different with the parameter of c4 input to call c1 twice.
Case2 Sf1->sf2->sf3->sf4->sf5->s f7->sf8->sf1->sf9->sf4 This case is a unusual case, be used to test without checking the wrong flow process of just cancelling and pass through, if this flow process finds that through test all atom operation flows can be complete, illustrate that the mistake platform is vicious.Being converted to the member sequence of calling is c1->c2->c3->c4->c1->c7->c4->c1->c9->c4.
Table 2 credit is adjusted professional test cases table
In the table 2, the atom operation flow is the minimal service flow process unit that resolves into according to concrete business, as the sf1 in this example, sf3 or the like; Atom operation flow sequence is the test execution sequence of atom operation flow, as sf1->sf2-in this example>sf3->sf4->sf5->sf6->sf8.
With reference to Fig. 2, be that the present invention is the automated testing method process flow diagram of example with credit adjustment business.
Step 201 reads all test cases, carries out the inspection of data standard, and checks whether the test member that need call exists.If, then continue step 202 by checking; Otherwise, finish the test of present case, error message is returned to the tester.
Step 202 is for data are prepared in the execution of test cases.According to concrete test cases, prepare corresponding test input data.
Step 203 according to atom operation flow sequence, is judged whether all atom operation flows test to finish, if do not have, continues step 204; If all test finishes, then jump to step 207, write down whole test results.
Step 204 is the parameter of atom operation flow setup test member to be tested.In this example, corresponding two atom operation flow sf1 of member c1 and sf5 are called by twice in case 1, but therefore the atom operation flow difference of component invoking c1 need transmit different parameters to member c1, carries out different atom operation flows.
Step 205 is called corresponding automatic test member, transmits relevant parameters to member, and the atom operation flow is tested.
Step 206 obtains the execution rreturn value of described automatic test member, checks whether conform to desired value, if conform to, return step 203, continue the test of next atom operation flow; If be not inconsistent, then finish the execution of current test cases, execution in step 207 is noted Error Location and related data.
Step 207, logging test results, and generate test report, a test cases is carried out and is finished.Wherein, described test result comprises information such as test number of success, the frequency of failure, Error Location, error reason code.
Step 208 judges whether test cases all is finished, if also have other cases, then turns back to step 202, begins the execution of next test cases; If all test cases are all carried out, then finish this operation.
At described automated testing method based on member, the embodiment of the invention also provides a kind of automatic test device of Web application system.With reference to Fig. 3, be the structural drawing of described device, mainly comprise automatic test component base 301, case read module 302 and testing control module 303.
Described automatic test component base 301 is set of automatic test member, and this set is partly carried out structured storage to the description of member, and the module of being convenient to tester and automated test tool is according to various conditional information retrieval automatic test members.And automatic test component base 301 also provides the function of automatic test member maintenance upgrade to the tester.Wherein, corresponding atom operation flow of each test member and creating, different test member combinations are used to test different operation flows.The corresponding atom operation flow of test member possibility, also if the corresponding a plurality of atom operation flows of possibility corresponding a plurality of, are then tested different atom operation flows by receiving different parameter assignment.
Case read module 302 is used to read pre-configured test cases, delivers to testing control module 303 and carries out.Testing control module 303 is used for the execution of scheduling tests case, according to the atom operation flow sequence in the test cases, calls corresponding test member from automatic test component base 301, serialization test atom operation flow, and logging test results.
Preferably, described testing control module 303 comprises test cell, control module and record cell.Wherein, test cell is used for corresponding each atom operation flow, calls the test member that is complementary from automatic test component base 301, and the concrete operation flow of Web application system is tested.Control module to the case in the whole flow process carry out, test member is called etc. plays the scheduling effect, after the member that receives the test cell transmission is carried out rreturn value, the desired value that writes down in described rreturn value and the test cases is compared, if conform to, then trigger the test cell component invoking and continue to carry out next atom operation flow; If do not conform to, then finish the execution of current test cases, and Error Location and related data are noted in the trigger recording unit.When all atom operation flows all test finish after, control module is dispatched next test cases and is tested.Described record cell is used in the test cases test result that record each member in back carries out that is finished, and will be above-mentioned and the comparative result of desired value as the part of test result, also comprise Error Location and related data in the test result.
Preferably, described device also comprises test result analysis module 304, and the test result that is used for testing control module 303 is obtained is carried out analytic statistics, and generates test report according to specified format.
Preferably, described device also comprises case parsing module 305, whether the data that are used for the checkout case meet the case standard, and the numbering of atom operation flow is converted to the test member numbering, check whether there is the test member numbering that need call in the automatic test component base 301.If, then trigger described testing control module 303, otherwise error message returned to the tester by checking.
Preferably, described device also comprises log tracks module 306, be used for the execution of the described case read module 302 of track record, testing control module 303, test result analysis module 304 and case parsing module 305, and generate journal file, use in order to tester's ex-post analysis.For example,, analyze and obtain the reason of makeing mistakes by searching the more contextual information of journal file according to the Error Location of test report record.
Preferably, described device also comprises the case configuration module, is used for the business characteristic at the Web application system, from system the operation flow that might carry out dispose various test cases, reach the purpose of full test Web application system.The key data structure of test cases can be with reference to shown in the table 1.
The implementation of described automatic test device is: after receiving the test execution instruction that the tester sends, case read module 302 beginning read test cases, check by 305 pairs of case datas of case parsing module then, if preliminary examination is passed through, operations such as data, application resource are prepared in the execution that then is test cases, after all are ready control are transferred to testing control module 303 and continue to handle.Testing control module 303 is carried out each test cases successively according to the order of test cases, when carrying out individual test case, according to the member sequence after 305 conversions of case parsing module, call the automatic test member from automatic test component base 301 successively and carry out.After the execution rreturn value that obtains the automatic test member, whether check identical with the value of expecting in " condition is passed through in test " field, if it is identical then continue to carry out next automatic test member, otherwise directly return test result, comprise the atom operation flow present position of makeing mistakes and the reason of makeing mistakes.After treating that all atom operation flow tests are finished, testing control module 303 logging test results, 304 pairs of test results of test result analysis module are analyzed the back and are generated test report, the test execution link that enters next test cases then.
The embodiment of the invention also provides a kind of and had unified interface specification, be easy to the automatic test member transplanting, be easy to upgrade, is used for above-mentioned automatic test device, and can works in different hardware operation platforms and software environment.
With reference to Fig. 4, be the structural drawing of described automatic test member, described member comprises interface 401, member realization 402 and component specification 403.Interface 401 provides external module to realize being connected between 402 with member, and external module realizes that by described interface interchange member perhaps member is realized by described interface interchange external module.When test execution, testing control module 303 comes component invoking to realize that 402 test by described interface 401.Member is realized 402 corresponding atom operation flows, and corresponding test function is provided, and is the test procedure of the atom operation flow of the test correspondence that realized of automatic test member, and it is the core of automatic test member.Component specification 403 is the structure specify constraints to the automatic test member, and its main effect is to indicate the structure of this member and description, is to realize with the xml technology.Component specification 403 can be understood as the explanation to member, is convenient to the relevant information that the tester searched and grasped each member.
Following table be in the component specification to the essential element and the explanation thereof of component description part:
Element term Explanation
id The member numbering, the unique identification of member
name The title of member
type The type of member, identifying this member is atom member or composite component
related-component This element representation and the member that is associated when front part have only when type is composite component, and the content of this element is just meaningful
source Why the source of member promptly produces this member
age The lifetime of member, the degree of ripeness and the stability of member are described
web-application The application system title that the automatic test member is tested
module The business module title that member is tested
flow The pairing atom operation flow of member title
function-description Description to institute's test function of member
version The version of member
history The history of member mainly comprises version change history
author The author of member or manufacturer
memo The remarks explanation of member
In table 3 component specification to the instruction card of component description part
Automatic test member atomize automatic test member and compound automatic test member, the component specification of described atom automatic test member need indicate that partly this member is an atom automatic test member, and describes function, version number or the like the information of this member; The component specification of compound automatic test member need indicate that partly this member is outside compound automatic test member and the function of describing this member, version number or the like the information, need also to illustrate this composite component which atom member is made of, the composition order of these atom members, and the mapping of each atom member etc.
For atom member and composite component are described, existing is example with credit adjustment business, and above mentioned each automatic test member c1, c2, c3, c4...... are atom automatic test members, and their correspondences have realized minimum atom operation flow.But under many circumstances, for certain fixing common operation flow, for example the person of handling is initiated credit and is adjusted to compound this common testing process that passes through of auditor, utilization rate is very high again in practice, just can combine atom automatic test member c1->c2->c3->c4->c1->c6->c4 and make a composite component,, directly call corresponding composite component and get final product when carrying out member sequence c1->c2->c3->c4->c1->c6->c4 each.So just avoid the shortcoming of bringing because operation flow all is dispersed into the atom operation flow to member of repeatedly calling the atom member, thereby improved testing efficiency.
The part that does not describe in detail in Fig. 3, the device shown in Figure 4 can be considered for length referring to the relevant portion of Fig. 1, method shown in Figure 2, is not described in detail in this.
More than to the automated testing method and the device of a kind of Web application system provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part in specific embodiments and applications all can change.In sum, this description should not be construed as limitation of the present invention.

Claims (14)

1, a kind of automated testing method of Web application system is characterized in that, comprising:
The operation flow of Web application system is resolved into the combination of atom flow process;
Corresponding each atom flow process is created the automatic test member;
Read pre-configured test cases, write down atomic current program row in the test cases;
Each atom flow process in the corresponding described sequence is called corresponding test member, and the Web application system is tested.
2, method according to claim 1 is characterized in that, also comprises before calling test member: whether the data of the described test cases that reads of preliminary examination compliant, and checks whether the test member of being called exists.
3, method according to claim 1 is characterized in that, also comprises:
Test member is carried out rreturn value and expected results comparison,, then carry out next test member if identical; If inequality, then write down Error Location and related data, and carry out next test cases;
Write down the test result after the above-mentioned comparison.
4, method according to claim 3 is characterized in that, also comprises: analyze described test result, generate test report.
5, method according to claim 1 is characterized in that, also comprises: the implementation status of each execution in step of track record.
6, method according to claim 1 is characterized in that, also comprises: the test member that common operation flow is comprised is combined into composite component, directly calls described composite component when calling.
7, a kind of automatic test device of Web application system is characterized in that, comprising:
The automatic test component base is the set of automatic test member, and the corresponding atom flow process of each test member is created, and the atom flow process is combined into the operation flow of Web application system;
The case read module is used to read pre-configured test cases, has write down atomic current program row in the test cases;
Testing control module is used for each atom flow process of corresponding described sequence, calls corresponding test member, and the Web application system is tested.
8, device according to claim 7 is characterized in that, also comprises: the case parsing module, whether the data that are used for the described test cases that reads of preliminary examination compliant, and checks whether the test member of being called exists.
9, device according to claim 7 is characterized in that, described testing control module comprises:
Test cell is used for each atom flow process of corresponding described sequence, calls corresponding test member, and the Web application system is tested;
Control module is used for that test member is carried out rreturn value and expected results compares, if identical, then trigger described test cell and carries out next test member; If inequality, then carry out next test cases;
Record cell is used to write down the test result after the above-mentioned comparison, and record Error Location and related data.
10, device according to claim 9 is characterized in that, also comprises: the test result analysis module, be used for the analytical test result, and generate test report.
11, device according to claim 7 is characterized in that, also comprises: the log tracks module is used for the implementation status of each testing procedure of track record.
12, a kind of automatic test member is characterized in that, comprising:
Member realizes that being used for corresponding atom flow process provides corresponding test function;
Interface, being connected between being used to external module is provided and member is realized, external module realizes that by described interface interchange member perhaps member is realized by described interface interchange external module.
13, member according to claim 12 is characterized in that, also comprises: component specification is used to provide the explanation to described member.
14, member according to claim 12 is characterized in that: described member comprises atom member and composite component, and wherein the atom member is corresponding with the atom flow process, and composite component is the combination of a plurality of atom members.
CN200710043589A 2007-07-06 2007-07-06 Web application system automatized test method and apparatus Active CN101339532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710043589A CN101339532B (en) 2007-07-06 2007-07-06 Web application system automatized test method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710043589A CN101339532B (en) 2007-07-06 2007-07-06 Web application system automatized test method and apparatus

Publications (2)

Publication Number Publication Date
CN101339532A true CN101339532A (en) 2009-01-07
CN101339532B CN101339532B (en) 2012-09-05

Family

ID=40213603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710043589A Active CN101339532B (en) 2007-07-06 2007-07-06 Web application system automatized test method and apparatus

Country Status (1)

Country Link
CN (1) CN101339532B (en)

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860627A (en) * 2010-05-25 2010-10-13 中兴通讯股份有限公司 Business management method of access gateway and access gateway
CN101866313A (en) * 2009-04-17 2010-10-20 埃森哲环球服务有限公司 Exchangeable application components
CN101977132A (en) * 2010-11-18 2011-02-16 北京航空航天大学 Switching network virtual link traffic control function testing device
CN102289365A (en) * 2010-06-21 2011-12-21 中兴通讯股份有限公司 Method and device for constructing script driving software
CN101526919B (en) * 2009-04-29 2011-12-28 福建星网锐捷网络有限公司 Method for generating script files to test Web application software and device thereof
CN102622292A (en) * 2011-01-27 2012-08-01 中国人民解放军63928部队 Web application function testing method based on standardized testing language
CN102799960A (en) * 2012-06-18 2012-11-28 北京大学 Parallel operation flow anomaly detection method oriented to data model
CN103049371A (en) * 2012-11-07 2013-04-17 青岛海信传媒网络技术有限公司 Testing method and testing device of Android application programs
CN103810094A (en) * 2012-11-14 2014-05-21 中国农业银行股份有限公司 Executing method and device for test case and test tool
CN104408657A (en) * 2014-11-21 2015-03-11 深圳市银雁金融配套服务有限公司 Business data processing method and device
WO2015039566A1 (en) * 2013-09-22 2015-03-26 Tencent Technology (Shenzhen) Company Limited Method and system for facilitating automated web page testing
CN104866422A (en) * 2015-05-20 2015-08-26 中国互联网络信息中心 Web Service automatic test system and method
CN105407012A (en) * 2015-10-27 2016-03-16 浪潮(北京)电子信息产业有限公司 Automatic test method and device
CN105930259A (en) * 2015-12-23 2016-09-07 中国银联股份有限公司 Method and apparatus for WEB regression testing
CN106789393A (en) * 2016-11-16 2017-05-31 武汉烽火网络有限责任公司 A kind of CS frameworks communication equipment automatization test system and method
CN107038117A (en) * 2017-03-23 2017-08-11 北京工业大学 It is a kind of based on the web automated testing methods that reference is defined between event handling function
CN107329891A (en) * 2017-06-06 2017-11-07 千寻位置网络有限公司 Automation regression testing method based on structural data and REST interfaces
CN107656872A (en) * 2017-10-09 2018-02-02 平安普惠企业管理有限公司 Method for testing software, device, equipment and computer-readable storage medium
CN107729019A (en) * 2017-10-09 2018-02-23 平安普惠企业管理有限公司 Method, apparatus, equipment and the computer-readable storage medium of version deployment
CN107861879A (en) * 2017-11-28 2018-03-30 成都视达科信息技术有限公司 A kind of method and system for realizing software automated testing
CN108228443A (en) * 2016-12-14 2018-06-29 北京国双科技有限公司 A kind of test method and device of web applications
CN108334336A (en) * 2017-10-10 2018-07-27 平安普惠企业管理有限公司 Atomic operation automated method, system, device and computer storage media
CN108984385A (en) * 2017-06-05 2018-12-11 北京星河泰视特科技有限公司 A kind of dynamic testing method and system
CN109032941A (en) * 2018-07-20 2018-12-18 郑州云海信息技术有限公司 The sustainable integrated interface automated testing method and system of test case driving
CN109947642A (en) * 2019-02-28 2019-06-28 中国银行股份有限公司 Automated hierarchical test method based on case classification, apparatus and system
CN110908900A (en) * 2019-11-11 2020-03-24 神华粤电珠海港煤炭码头有限责任公司 Method and device for analyzing PLC program by applying key frame deduction method
CN111309636A (en) * 2020-05-14 2020-06-19 炬星科技(深圳)有限公司 Robot automation test system, method, construction server and storage medium
CN111930606A (en) * 2019-05-13 2020-11-13 阿里巴巴集团控股有限公司 Automatic generation method of data processing flow test report and related device
CN113434221A (en) * 2021-07-22 2021-09-24 武汉中科医疗科技工业技术研究院有限公司 Software automatic operation method, device, system and server equipment
CN114238356A (en) * 2021-12-21 2022-03-25 建信金融科技有限责任公司 Test case snapshot generation method, device, equipment and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100347682C (en) * 2004-12-08 2007-11-07 上海科泰世纪科技有限公司 Automatic detection building method
CN1955945A (en) * 2005-10-25 2007-05-02 国际商业机器公司 Method and device for automatic generating test executive routine sequence of software test process

Cited By (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866313B (en) * 2009-04-17 2015-08-19 埃森哲环球服务有限公司 Exchangeable application components
CN101866313A (en) * 2009-04-17 2010-10-20 埃森哲环球服务有限公司 Exchangeable application components
CN101526919B (en) * 2009-04-29 2011-12-28 福建星网锐捷网络有限公司 Method for generating script files to test Web application software and device thereof
CN101860627A (en) * 2010-05-25 2010-10-13 中兴通讯股份有限公司 Business management method of access gateway and access gateway
CN102289365A (en) * 2010-06-21 2011-12-21 中兴通讯股份有限公司 Method and device for constructing script driving software
CN101977132A (en) * 2010-11-18 2011-02-16 北京航空航天大学 Switching network virtual link traffic control function testing device
CN101977132B (en) * 2010-11-18 2013-04-03 北京航空航天大学 Switching network virtual link traffic control function testing device
CN102622292A (en) * 2011-01-27 2012-08-01 中国人民解放军63928部队 Web application function testing method based on standardized testing language
CN102799960B (en) * 2012-06-18 2016-06-08 北京大学 The concurrent service flow process method for detecting abnormality of data-orlented model
CN102799960A (en) * 2012-06-18 2012-11-28 北京大学 Parallel operation flow anomaly detection method oriented to data model
CN103049371A (en) * 2012-11-07 2013-04-17 青岛海信传媒网络技术有限公司 Testing method and testing device of Android application programs
CN103810094A (en) * 2012-11-14 2014-05-21 中国农业银行股份有限公司 Executing method and device for test case and test tool
CN103810094B (en) * 2012-11-14 2016-10-05 中国农业银行股份有限公司 Execution method, device and the testing tool of a kind of test cases
WO2015039566A1 (en) * 2013-09-22 2015-03-26 Tencent Technology (Shenzhen) Company Limited Method and system for facilitating automated web page testing
CN104408657A (en) * 2014-11-21 2015-03-11 深圳市银雁金融配套服务有限公司 Business data processing method and device
CN104866422A (en) * 2015-05-20 2015-08-26 中国互联网络信息中心 Web Service automatic test system and method
CN105407012A (en) * 2015-10-27 2016-03-16 浪潮(北京)电子信息产业有限公司 Automatic test method and device
CN105930259A (en) * 2015-12-23 2016-09-07 中国银联股份有限公司 Method and apparatus for WEB regression testing
CN105930259B (en) * 2015-12-23 2018-10-16 中国银联股份有限公司 A kind of method and apparatus of WEB regression tests
CN106789393B (en) * 2016-11-16 2019-09-06 烽火通信科技股份有限公司 A kind of CS framework communication equipment automatization test system and method
CN106789393A (en) * 2016-11-16 2017-05-31 武汉烽火网络有限责任公司 A kind of CS frameworks communication equipment automatization test system and method
CN108228443A (en) * 2016-12-14 2018-06-29 北京国双科技有限公司 A kind of test method and device of web applications
CN107038117A (en) * 2017-03-23 2017-08-11 北京工业大学 It is a kind of based on the web automated testing methods that reference is defined between event handling function
CN107038117B (en) * 2017-03-23 2020-11-06 北京工业大学 Web automatic testing method based on definition-reference between event processing functions
CN108984385B (en) * 2017-06-05 2022-07-08 北京星河泰视特科技有限公司 Dynamic testing method and system
CN108984385A (en) * 2017-06-05 2018-12-11 北京星河泰视特科技有限公司 A kind of dynamic testing method and system
CN107329891A (en) * 2017-06-06 2017-11-07 千寻位置网络有限公司 Automation regression testing method based on structural data and REST interfaces
CN107656872A (en) * 2017-10-09 2018-02-02 平安普惠企业管理有限公司 Method for testing software, device, equipment and computer-readable storage medium
CN107729019A (en) * 2017-10-09 2018-02-23 平安普惠企业管理有限公司 Method, apparatus, equipment and the computer-readable storage medium of version deployment
CN107656872B (en) * 2017-10-09 2020-09-29 平安普惠企业管理有限公司 Software testing method, device, equipment and computer storage medium
CN108334336A (en) * 2017-10-10 2018-07-27 平安普惠企业管理有限公司 Atomic operation automated method, system, device and computer storage media
CN107861879A (en) * 2017-11-28 2018-03-30 成都视达科信息技术有限公司 A kind of method and system for realizing software automated testing
CN109032941A (en) * 2018-07-20 2018-12-18 郑州云海信息技术有限公司 The sustainable integrated interface automated testing method and system of test case driving
CN109947642A (en) * 2019-02-28 2019-06-28 中国银行股份有限公司 Automated hierarchical test method based on case classification, apparatus and system
CN111930606A (en) * 2019-05-13 2020-11-13 阿里巴巴集团控股有限公司 Automatic generation method of data processing flow test report and related device
CN110908900A (en) * 2019-11-11 2020-03-24 神华粤电珠海港煤炭码头有限责任公司 Method and device for analyzing PLC program by applying key frame deduction method
CN111309636A (en) * 2020-05-14 2020-06-19 炬星科技(深圳)有限公司 Robot automation test system, method, construction server and storage medium
CN113434221A (en) * 2021-07-22 2021-09-24 武汉中科医疗科技工业技术研究院有限公司 Software automatic operation method, device, system and server equipment
CN113434221B (en) * 2021-07-22 2024-05-24 武汉中科医疗科技工业技术研究院有限公司 Software automation operation method, device, system and server equipment
CN114238356A (en) * 2021-12-21 2022-03-25 建信金融科技有限责任公司 Test case snapshot generation method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN101339532B (en) 2012-09-05

Similar Documents

Publication Publication Date Title
CN101339532B (en) Web application system automatized test method and apparatus
US12130732B2 (en) System and method for performing automated API tests
CN101135989B (en) Automatization test method and device for Web applied system
CN102831052B (en) Test exemple automation generating apparatus and method
CN101377759B (en) Automatic interface test system
CN109474488A (en) Interface test method, device and computer equipment
EP2133795A1 (en) System and method for testing a software product
CN112306855B (en) Interface automation test method, device, terminal and storage medium
CN100375057C (en) Automatic test auxiliary system and corresponding software automatic test method
EP2557499A1 (en) A system and method for automatic impact variable analysis and field expansion in mainframe systems
CN112506807B (en) Automatic test system for interface serving multiple systems
CN103164328A (en) Method and device and system for regression testing of service function
CN112699055B (en) Software automatic test method and system with lower maintenance cost
CN101553794B (en) Rehosting method which convert mainframe system into open system
KR100969877B1 (en) Test automating system
CN1908895B (en) System and method for application program globalization problem verification
CN112416457A (en) Interface configuration file generation method and device
CN117370217A (en) Automatic interface test result generation method based on python
CN115168205A (en) Automatic testing method and device
CN115629956A (en) Software defect management method and system based on interface automatic test
CN113742249A (en) Test script granulation method and system based on desktop operating system
CN101145216A (en) Electronic component examination and maintenance system and method
CN110058874B (en) Code patch checking system and method
CN118378719B (en) Machine learning workflow construction method
KR20090083622A (en) Test automating system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant