CN101621370B - Method and system for testing performance of business process as well as electronic device - Google Patents

Method and system for testing performance of business process as well as electronic device Download PDF

Info

Publication number
CN101621370B
CN101621370B CN 200910109054 CN200910109054A CN101621370B CN 101621370 B CN101621370 B CN 101621370B CN 200910109054 CN200910109054 CN 200910109054 CN 200910109054 A CN200910109054 A CN 200910109054A CN 101621370 B CN101621370 B CN 101621370B
Authority
CN
China
Prior art keywords
affairs
test
subordinate
described
higher level
Prior art date
Application number
CN 200910109054
Other languages
Chinese (zh)
Other versions
CN101621370A (en
Inventor
黄晓勤
Original Assignee
金蝶软件(中国)有限公司
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 金蝶软件(中国)有限公司 filed Critical 金蝶软件(中国)有限公司
Priority to CN 200910109054 priority Critical patent/CN101621370B/en
Publication of CN101621370A publication Critical patent/CN101621370A/en
Application granted granted Critical
Publication of CN101621370B publication Critical patent/CN101621370B/en

Links

Abstract

The invention provides a method and a system for testing performance of business process as well as an electronic device, belonging to the technical field of performance testing. The method comprises the following steps: pre-editing a testing script for testing the business process comprising at least two affairs; storing a testing data package of the two affairs in the testing script into an external file in advance; adopting an upper testing data package to test upper affairs in the performance testing process of the business process and then producing a testing result value of the upper affairs; transferring a testing data package of lower affairs into a testing script of the lower affairs from the external file; comparing the testing data package in the lower affairs with the testing result value of the upper affairs; adding the testing result value of the upper affairs into the testing data package of the lower affairs if the testing data package in the lower affairs has the same parts with the testing result value of the upper affairs by the comparison; and adopting the testing data package of the lower affairs, that is added with the testing result value of the upper affairs, to test the lower affairs. The invention enables the association to be built among affairs and can share testing data.

Description

A kind of performance test methods of operation flow, system and electronic equipment

Technical field

The invention belongs to technical field of performance test, relate in particular to a kind of performance test methods, system and electronic equipment of operation flow.

Background technology

At present, existing performance test scheme, test data writes in the test script code.Therefore, when needs change test data, must open test script, the test data of making amendment in test script can't realize the reusability of test script.In addition, be isolated the existence between the affairs in the test script and the affairs, thereby can't realize sharing test data.

Summary of the invention

Embodiment of the invention technical problem to be solved is to provide a kind of making to set up relatedly between affairs and the affairs, can share performance test methods, system and the electronic equipment of the operation flow of test data.

For solving the problems of the technologies described above, the embodiment of the invention provides a kind of performance test methods of operation flow, said method comprising the steps of:

Edit in advance the test script that a test comprises the operation flow of at least two affairs;

Test packet with at least two affairs in the described test script is stored in the external file in advance;

In the performance test process of operation flow, after employing higher level test packet tests higher level's affairs, produce the test result values of described higher level's affairs;

From described external file, call in the test packet of subordinate's affairs in the test script of subordinate's affairs;

Test packet in the contrast subordinate affairs and the test result values of described higher level's affairs;

Have points of resemblance if contrast test packet in subordinate's affairs and the test result values of described higher level's affairs, then the test result values with higher level's affairs is added in the test packet of subordinate's affairs;

Adopt the test packet of the subordinate's affairs that add the test result values that higher level's affairs are arranged, test subordinate affairs.

The embodiment of the invention also provides a kind of Performance Test System of operation flow, and described system comprises:

The script editor module is used for the test script that test of editor comprises the operation flow of at least two affairs;

Memory module is used for the test packet of at least two affairs of described test script is stored in the external file;

Generation module is used for the performance test process in operation flow, after employing higher level test packet tests higher level's affairs, produces the test result values of described higher level's affairs;

Call in module, be used for the test packet of subordinate's affairs is called in the test script of subordinate's affairs from described external file;

The contrast module is used for the test packet of contrast subordinate affairs and the test result values of described higher level's affairs;

The adding module is used for contrasting the test packet of subordinate's affairs and the test result values of described higher level's affairs has points of resemblance, and then the test result values with higher level's affairs is added in the test packet of subordinate's affairs;

Test module is used for the test packet that employing adds subordinate's affairs of the test result values that higher level's affairs are arranged, test subordinate affairs.

The embodiment of the invention also provides a kind of electronic equipment that comprises the Performance Test System of operation flow recited above.

In embodiments of the present invention, by setting up up and down relatedly between the affairs, make between affairs and the affairs no longer isolatedly, share test data; And the test packet in the test script is to be stored in the external file in addition, thereby can reduce the maintenance cost of test script, and has improved the sharing of test script; The superior and the subordinate's affairs are shared test data, reduce the maintenance cost of test data, reduce the workload that test data is prepared, and improve the operating efficiency that test data is prepared, and improve the consistency of test data.

Description of drawings

Fig. 1 is the realization flow schematic diagram of the performance test methods of the operation flow that provides of the embodiment of the invention.

Fig. 2 is the structural representation of the Performance Test System of the operation flow that provides of the embodiment of the invention.

Embodiment

In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.

In embodiments of the present invention, affairs refer to: the function point of each test is called affairs in the performance test process.

See also Fig. 1, the performance test methods of the operation flow that provides for the embodiment of the invention, it may further comprise the steps:

In step S101, edit in advance the test script that a test comprises the operation flow of at least two affairs;

In step S102, the test packet with at least two affairs in the described test script is stored in the external file in advance;

In embodiments of the present invention, remove to identify described external file with unique identification.

In step S103, in the performance test process of operation flow, after employing higher level test packet tests higher level's affairs, produce the test result values of described higher level's affairs;

In step S104, from described external file, call in the test packet of subordinate's affairs in the test script of subordinate's affairs;

In embodiments of the present invention, the step that described test packet with subordinate's affairs is called in from described external file in the test script of subordinate's affairs is specially: according to the unique identification of external file, the test packet of subordinate's affairs is called in the test script of subordinate's affairs from described external file.

In step S105, the test packet in the contrast subordinate affairs and the test result values of described higher level's affairs;

In embodiments of the present invention, test packet in the described contrast subordinate affairs is specially with the step of the test result values of described higher level's affairs: contrast in the test result values of test packet in subordinate's affairs and described higher level's affairs whether at least one identical attribute is arranged, for example ID number identical, certain field data is identical or other attributes are identical.

In step S106, if contrast test packet in subordinate's affairs and the test result values of described higher level's affairs has points of resemblance, then the test result values with higher level's affairs is added in the test packet of subordinate's affairs;

In embodiments of the present invention, the part or all of test result values with higher level's affairs is added in the test packet of subordinate's affairs.

In step S107, adopt the test packet of the subordinate's affairs that add the test result values that higher level's affairs are arranged, test subordinate affairs.

See also Fig. 2, the Performance Test System of the operation flow that provides for the embodiment of the invention for convenience of explanation, only shows part related to the present invention.The Performance Test System of described operation flow comprises: script editor module 10, memory module 20, generation module 30, call in module 40, contrast module 50, add module 60 and test module 70.The Performance Test System of described operation flow can be the unit that is built in software unit in the electronic equipment, hardware cell or software and hardware combining.Described electronic equipment can be computer, personal digital assistant (Personal Digital Assistant, PDA) etc.

Script editor module 10 is used for the test script that test of editor comprises the operation flow of at least two affairs; Memory module 20 is used for the test packet of at least two affairs of described test script is stored in the external file.In the performance test process of operation flow, after employing higher level test packet tested higher level's affairs, generation module 30 produced the test result values of described higher level's affairs; Calling in module 40 calls in the test packet of subordinate's affairs in the test script of subordinate's affairs from described external file; Test packet in the contrast module 50 contrast subordinate affairs and the test result values of described higher level's affairs; Have points of resemblance if contrast test packet in subordinate's affairs and the test result values of described higher level's affairs, then add module 60 test result values of higher level's affairs is added in the test packet of subordinate's affairs; Test module 70 adopts the test packet of the subordinate's affairs that add the test result values that higher level's affairs are arranged, test subordinate affairs.

In embodiments of the present invention, the Performance Test System of described operation flow also comprises: identification module 80, it is used for removing to identify external file with unique identification.

In embodiments of the present invention, described contrast module 50 comprises attribute contrast module, in the described attribute contrast module, the test packet that is used for contrast subordinate affairs and the test result values of described higher level's affairs whether at least one identical attribute is arranged.

As from the foregoing, the embodiment of the invention makes between affairs and the affairs no longer isolatedly by setting up up and down relatedly between the affairs, shares test data; And the test packet in the test script is to be stored in the external file in addition, thereby can reduce the maintenance cost of test script, and has improved the sharing of test script; The superior and the subordinate's affairs are shared test data, reduce the maintenance cost of test data, reduce the workload that test data is prepared, and improve the operating efficiency that test data is prepared, and improve the consistency of test data.

One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is such as ROM/RAM, disk, CD etc.

The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the performance test methods of an operation flow is characterized in that, said method comprising the steps of:
Edit in advance the test script that a test comprises the operation flow of at least two affairs;
Test packet with at least two affairs in the described test script is stored in the external file in advance;
In the performance test process of operation flow, after employing higher level test packet tests higher level's affairs, produce the test result values of described higher level's affairs;
From described external file, call in the test packet of subordinate's affairs in the test script of subordinate's affairs;
Test packet in the contrast subordinate affairs and the test result values of described higher level's affairs;
Have points of resemblance if contrast test packet in subordinate's affairs and the test result values of described higher level's affairs, then the test result values with higher level's affairs is added in the test packet of subordinate's affairs;
Adopt the test packet of the subordinate's affairs that add the test result values that higher level's affairs are arranged, test subordinate affairs.
2. the method for claim 1 is characterized in that, described test packet with at least two affairs in the described test script is stored in after the step in the external file, and is further comprising the steps of:
Remove to identify described external file with unique identification.
3. method as claimed in claim 2 is characterized in that, described test packet with subordinate's affairs is called in the step in the test script of subordinate's affairs from described external file, be specially:
According to the unique identification of external file, the test packet of subordinate's affairs is called in the test script of subordinate's affairs from described external file.
4. the method for claim 1 is characterized in that, the step of the test packet in the described contrast subordinate affairs and the test result values of described higher level's affairs is specially:
In test packet in the contrast subordinate affairs and the test result values of described higher level's affairs whether at least one identical attribute is arranged.
5. method as claimed in claim 4 is characterized in that, described identical attribute be ID number identical or field data is identical.
6. the method for claim 1 is characterized in that, described test result values with higher level's affairs is added to the step in the test packet of subordinate's affairs, is specially:
The part or all of test result values of higher level's affairs is added in the test packet of subordinate's affairs.
7. the Performance Test System of an operation flow is characterized in that, described system comprises:
The script editor module is used for the test script that test of editor comprises the operation flow of at least two affairs;
Memory module is used for the test packet of at least two affairs of described test script is stored in the external file;
Generation module is used for the performance test process in operation flow, after employing higher level test packet tests higher level's affairs, produces the test result values of described higher level's affairs;
Call in module, be used for the test packet of subordinate's affairs is called in the test script of subordinate's affairs from described external file;
The contrast module is used for the test packet of contrast subordinate affairs and the test result values of described higher level's affairs;
The adding module is used for contrasting the test packet of subordinate's affairs and the test result values of described higher level's affairs has points of resemblance, and then the test result values with higher level's affairs is added in the test packet of subordinate's affairs;
Test module is used for the test packet that employing adds subordinate's affairs of the test result values that higher level's affairs are arranged, test subordinate affairs.
8. system as claimed in claim 7 is characterized in that, described system also comprises:
Identification module is used for removing to identify described external file with unique identification.
9. system as claimed in claim 7 is characterized in that, described contrast module is attribute contrast module,
In the described attribute contrast module, the test packet that is used for contrast subordinate affairs and the test result values of described higher level's affairs whether at least one identical attribute is arranged.
10. electronic equipment that comprises the Performance Test System of each described operation flow of claim 7 to 9.
CN 200910109054 2009-07-29 2009-07-29 Method and system for testing performance of business process as well as electronic device CN101621370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910109054 CN101621370B (en) 2009-07-29 2009-07-29 Method and system for testing performance of business process as well as electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910109054 CN101621370B (en) 2009-07-29 2009-07-29 Method and system for testing performance of business process as well as electronic device

Publications (2)

Publication Number Publication Date
CN101621370A CN101621370A (en) 2010-01-06
CN101621370B true CN101621370B (en) 2013-01-23

Family

ID=41514438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910109054 CN101621370B (en) 2009-07-29 2009-07-29 Method and system for testing performance of business process as well as electronic device

Country Status (1)

Country Link
CN (1) CN101621370B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852822B (en) * 2014-02-13 2018-10-19 北京京东尚科信息技术有限公司 A kind of method and system of test client
CN105323115A (en) * 2014-07-31 2016-02-10 中兴通讯股份有限公司 Data packet simulation method and data packet simulation device of network management test event

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6378087B1 (en) * 1999-06-08 2002-04-23 Compaq Computer Corporation System and method for dynamically detecting unchecked error condition values in computer programs
CN1952818A (en) * 2005-10-22 2007-04-25 康佳集团股份有限公司 Testing method of program unit with capability of checking test result automatically
CN101339534A (en) * 2008-06-17 2009-01-07 金蝶软件(中国)有限公司 Software test apparatus and test method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6378087B1 (en) * 1999-06-08 2002-04-23 Compaq Computer Corporation System and method for dynamically detecting unchecked error condition values in computer programs
CN1952818A (en) * 2005-10-22 2007-04-25 康佳集团股份有限公司 Testing method of program unit with capability of checking test result automatically
CN101339534A (en) * 2008-06-17 2009-01-07 金蝶软件(中国)有限公司 Software test apparatus and test method

Also Published As

Publication number Publication date
CN101621370A (en) 2010-01-06

Similar Documents

Publication Publication Date Title
TWI467371B (en) Memory module and utilizing method thereof, computer program and computer readable medium
CN103530118B (en) Method and device for loading user-defined DLL into target progress
CN103177210B (en) A kind of method implanting dynamic stain analysis module in Android
CN101685381B (en) Data streaming of solid-state large-capacity storage device
TWI436370B (en) Memory storage device, memory controller thereof, and method for generating log likelihood ratio thereof
CN101872372B (en) Method and system of designing integrated circuit
CN103136243B (en) File system duplicate removal method based on cloud storage and device
US9483396B2 (en) Control apparatus, storage device, and storage control method
US8909662B2 (en) Message based mobile object with native PIM integration
CN102222027B (en) Terminal factory reset method and device
CN102662833B (en) Method for managing test cases
TWI498906B (en) File burning method and associated device for nand flash
CN103780638B (en) Method of data synchronization and system
CN103294604A (en) Flash memory device and electronic device employing thereof
CN101719095A (en) Method and device for managing regression testing
CN103023984B (en) Terminal application server and application log filtering method thereof
CN102096639A (en) Method for trimming data on non-volatile flash media
CN103051681B (en) Collaborative type log system facing to distribution-type file system
CN102436498B (en) Report form generating method and relative device
CN103902399B (en) Software system repair processing method and software system repair processing device
CN101615145B (en) Method and device for improving reliability of data caching of memorizer
TWI309384B (en)
CN102750317B (en) Method and device for data persistence processing and data base system
CN103077121B (en) The method of data management in a kind of flash memory device and device
CN102103497B (en) Finite state machine actuating device and method, and method for establishing and using finite state machine

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