CN101621370A - 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
CN101621370A
CN101621370A CN 200910109054 CN200910109054A CN101621370A CN 101621370 A CN101621370 A CN 101621370A CN 200910109054 CN200910109054 CN 200910109054 CN 200910109054 A CN200910109054 A CN 200910109054A CN 101621370 A CN101621370 A CN 101621370A
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.)
Granted
Application number
CN 200910109054
Other languages
Chinese (zh)
Other versions
CN101621370B (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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 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 the test script that a test comprises the operation flow of at least two affairs in advance;
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;
The test packet in the contrast subordinate affairs and the test result values of described higher level's affairs;
Have points of resemblance if contrast the 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 to edit the test script that a test 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 contrasting the test packet of subordinate's 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 to 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 electronic equipment that comprises the Performance Test System of operation flow recited above.
In embodiments of the present invention,, make between affairs and the affairs no longer isolatedly, share test data by setting up up and down relatedly between the affairs; 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,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification 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 the test script that a test comprises the operation flow of at least two affairs in advance;
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, identifying described external file is unique knowledge of debating.
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: debate knowledge according to external file unique, 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) or the like.
Script editor module 10 is used to edit the test script that a test 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; The 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 the 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 to identify external file is unique knowledge of debating.
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 contrasting subordinate's 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 the foregoing description method is to instruct relevant hardware to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done 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, a kind of performance test methods of operation flow is characterized in that, said method comprising the steps of:
Edit the test script that a test comprises the operation flow of at least two affairs in advance;
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;
The test packet in the contrast subordinate affairs and the test result values of described higher level's affairs;
Have points of resemblance if contrast the 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:
Identifying described external file is unique knowledge of debating.
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:
Debate knowledge according to external file unique, 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, a kind of Performance Test System of operation flow is characterized in that, described system comprises:
The script editor module is used to edit the test script that a test 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 contrasting the test packet of subordinate's 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 to 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.
8, system as claimed in claim 7 is characterized in that, described system also comprises:
Identification module, being used to identify described external file is unique knowledge of debating.
9, system as claimed in claim 7 is characterized in that, described contrast module is an attribute contrast module,
In the described attribute contrast module, the test packet that is used for contrasting subordinate's affairs and the test result values of described higher level's affairs whether at least one identical attribute is arranged.
10, a kind of 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 Active 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 true CN101621370A (en) 2010-01-06
CN101621370B 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)

Cited By (2)

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

Family Cites Families (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
CN1952818B (en) * 2005-10-22 2010-12-15 康佳集团股份有限公司 Testing method of program unit with capability of checking test result automatically
CN101339534B (en) * 2008-06-17 2010-10-13 金蝶软件(中国)有限公司 Software test apparatus and test method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852822A (en) * 2014-02-13 2015-08-19 北京京东尚科信息技术有限公司 Method and system for testing clients
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

Also Published As

Publication number Publication date
CN101621370B (en) 2013-01-23

Similar Documents

Publication Publication Date Title
CN101330412B (en) Automatization test approach and system based on topological discovery
CN104598376A (en) Data driving layered automation test system and method
CN104298595A (en) Automatic testing method and testing system
CN101604290B (en) Background module test method and backstage module test system
CN104053051A (en) Automated testing method and device achieving compatibility of mobile phone audios and mobile phone videos
CN105589695A (en) Business function calling method and system
CN101621370B (en) Method and system for testing performance of business process as well as electronic device
CN105808378A (en) Metadata restoration method and device
CN101634965B (en) Method for testing Linux kernel-grade unit
CN105302679B (en) A kind of detection method and system of intelligent terminal storage stability
CN107368330A (en) Client patch restorative procedure, device and system
CN110430431A (en) Video encoding/decoding method, chip, device, computer equipment and storage medium
CN104572443A (en) Mobile terminal testing method and device
CN102045426A (en) Mobile terminal and method for editing contact information thereof
CN104598351A (en) Method and device for testing capacity of 3D engine
CN103108070B (en) Telephone book backup system and method thereof
CN109086214A (en) A kind of database write performance test methods, device, terminal and storage medium
CN105631965B (en) Vehicle-mounted WTB message accountings instrument
CN101335960B (en) Method and system implementing mobile phone automatic test
CN103124309B (en) Method and terminal for read-write control of mobile phone files
CN102819484B (en) Software testing method and software testing device
CN103559074B (en) A kind of analogue communication plug-in unit and method of work thereof
CN101187926A (en) Multi-kind resource management method
CN101478425B (en) Method and system for network management proxy
CN110704051A (en) Unity interface data binding method

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