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 PDFInfo
- 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
- higher level
- result values
- 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.)
- Active
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
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
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.
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.
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 Active 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)
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)
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 |
-
2009
- 2009-07-29 CN CN 200910109054 patent/CN101621370B/en active Active
Patent Citations (3)
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 |
---|---|---|
CN104298595A (en) | Automatic testing method and testing system | |
CN103761136A (en) | Method for dynamically loading data model based on plug-in | |
CN101604290B (en) | Background module test method and backstage module test system | |
CN104424030A (en) | Sharing memory multi-process operation method and device | |
CN102611576A (en) | Method and device for generating network management configuration model file | |
CN101621370B (en) | Method and system for testing performance of business process as well as electronic device | |
CN115827436A (en) | Data processing method, device, equipment and storage medium | |
CN105589695A (en) | Business function calling method and system | |
CN107368330A (en) | Client patch restorative procedure, device and system | |
CN112486831A (en) | Test system, test method, electronic equipment and storage medium | |
JP2024501727A (en) | Multi-adapter compatible library file modules, calling methods, calling systems and devices | |
CN103108070B (en) | Telephone book backup system and method thereof | |
CN105488047A (en) | Metadata read-write method and device | |
CN105631965B (en) | Vehicle-mounted WTB message accountings instrument | |
CN102868747A (en) | Resource information management method and resource information management device | |
CN114253870A (en) | Method, system, device and medium for updating L2P table | |
CN204463134U (en) | SATA hard disc Write-protect system | |
CN107741887A (en) | A kind of communication interaction method and apparatus of inter-module | |
CN102819484B (en) | Software testing method and software testing device | |
CN103124309B (en) | Method and terminal for read-write control of mobile phone files | |
CN112463645A (en) | Test case scheduling method, device, terminal and storage medium | |
CN101478425B (en) | Method and system for network management proxy | |
CN101615118A (en) | The method of exporting prototype and device | |
CN103617030A (en) | Equipment panel generating method and equipment panel generating device | |
US8977901B1 (en) | Generating service call patterns for systems under test |
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 |