CN102955739B - A kind of method improving performance test script reuse rate - Google Patents

A kind of method improving performance test script reuse rate Download PDF

Info

Publication number
CN102955739B
CN102955739B CN201210474774.9A CN201210474774A CN102955739B CN 102955739 B CN102955739 B CN 102955739B CN 201210474774 A CN201210474774 A CN 201210474774A CN 102955739 B CN102955739 B CN 102955739B
Authority
CN
China
Prior art keywords
script
data
test
performance test
multiplexing
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
Application number
CN201210474774.9A
Other languages
Chinese (zh)
Other versions
CN102955739A (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201210474774.9A priority Critical patent/CN102955739B/en
Publication of CN102955739A publication Critical patent/CN102955739A/en
Application granted granted Critical
Publication of CN102955739B publication Critical patent/CN102955739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of method improving performance test script reuse rate, the specific implementation process of the method is: 1) start performance test, and record its test script; 2) script is analyzed, the changed content of test script in different editions is divided into the data of three types: pre-configuration data, dependence data, test data; 3) to above-mentioned steps 2) in three kinds of data safeguard; 4) script is multiplexing.Compared to the prior art this is a kind of improves the method for performance test script reuse rate, by pre-configuration data, rely on data, the maintenance of test data and amendment, make test script once can record, repeatedly use, improve performance test efficiency.

Description

A kind of method improving performance test script reuse rate
Technical field
The present invention relates to field tests, be specifically related to a kind of by the variable data in maintainability test script, the method improving performance test script reuse rate.
Background technology
In the face of Software Industry competition day by day harsh, the performance index such as reliable, efficient, stable, compatible of software become the efficiency index weighing software quality, the performance test of software has become an indispensable part for complete software test, day by day perfect along with software performance test flow process, the ratio of the whole software life-cycle that performance test takies also increases gradually.
Performance test script is the foundation stone of performance test, Performance tuning each time, user's on-the-spot test each time, edition upgrading etc. each time, for the change of these STEs, if there is no good maintenance for incremental data in script, the workload that the index word of script is recorded again not second to script.
Summary of the invention
Technical assignment of the present invention is in the deficiencies in the prior art, provides a kind of by the variable data in maintainability test script, the method improving performance test script reuse rate.
Technical scheme of the present invention realizes in the following manner, a kind of this method improving performance test script reuse rate, and the specific implementation process of the method is:
1) start performance test, and record its test script;
2) analyze script, the changed content of test script in different editions is divided into the data of three types: pre-configuration data, dependence data, test data, described pre-configuration data is the environmental data that test script normally performs; Rely on data and refer to that script runs the batch data relying on other scripts and produce; Test data refers to the parametric data of this script;
3) to above-mentioned steps 2) in three kinds of data safeguard;
4) script is multiplexing.
In described step 3), the maintenance of three kinds of data is referred to and set up excel document, utilize the linking functions of excel, for the reasonable disposition of test script execution environment provides reference.
The concrete steps that in described step 4), script is multiplexing are: first from excel corresponding to script, obtain script data information, and check the need of change: when not needing to change, direct multiplexing script; When needs change, change script data, the multiplexing script of success.
In above-mentioned implementation method, pre-configuration data refers to the environmental data that test script normally performs, such as: the VApp in cloud data center management platform normally applies for the related data of required virtual data center, the data such as title, attribute, state of these data are pre-configuration data, safeguard that the method for pre-configuration data is file excel;
Rely on data and refer to that script runs the batch data relying on other scripts and produce, such as: " VApp applies for script " that in cloud data center management platform, " the examination & approval script of VApp " relies on performs the Batch orders data produced, the information such as order title, order id both for relying on data, the execution sequence of the method creating these dependence data for a change script;
Test data refers to the parametric data of script, and such as: in cloud data center management platform, the data of VApp title both needed parametrization, the method for maintenance test data is file excel;
The beneficial effect that the present invention is compared with prior art produced is:
A kind of method improving performance test script reuse rate of the present invention, the method induction and conclusion goes out the data type that performance test script is subject to variation for the change of environment, by to pre-configuration data, rely on data, the maintenance of test data and amendment, make test script once can record, repeatedly use.
Accompanying drawing explanation
Accompanying drawing 1 is that test script Data classification of the present invention preserves schematic flow sheet.
Accompanying drawing 2 is script diplex flow schematic diagram of the present invention.
Accompanying drawing 3 is Data classification schematic diagram of one embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, a kind of method improving performance test script reuse rate provided by the present invention is described in detail below.
As shown in accompanying drawing 1, Fig. 2, the problem indefinite for current performance test use occasion, test script maintenance large, rate of reusing is low, now provide a kind of method improving performance test script reuse rate, the specific implementation process of the method is:
1) start performance test, and record its test script;
2) analyze script, the changed content of test script in different editions is divided into the data of three types: pre-configuration data, dependence data, test data, described pre-configuration data is the environmental data that test script normally performs; Rely on data and refer to that script runs the batch data relying on other scripts and produce; Test data refers to the parametric data of this script;
3) to above-mentioned steps 2) in three kinds of data safeguard;
4) script is multiplexing.
In described step 3), the maintenance of three kinds of data is referred to and set up excel document, utilize the linking functions of excel, the convenient maintenance for modifiable data, for the reasonable disposition of test script execution environment provides reference, such that test script can once be recorded, multiple exercise.
The concrete steps that in described step 4), script is multiplexing are: first from excel corresponding to script, obtain script data information, and check the need of change: when not needing to change, direct multiplexing script; When needs change, change script data, the multiplexing script of success.
Above-mentioned steps 1) in record after script, sort out data in script, file, as accompanying drawing 3, for the examination & approval script of VApp, the name of virtual data center is called that VApp creates necessary environmental data; VApp order id relies on the dependence data that VApp applies for script; Different organization administrator's login systems, examines VApp, and these organization administrator's names, password need parametrization, for this reason the parametric data of script, is called for short test data;
When in described step 4), script is multiplexing, if run into the situations such as beta version change, test environment change, when needing the performance test re-executing same scene, according to the script pre-configuration data in excel document, carry out prewired to initial environment; The execution sequence of script is determined, the execution script of order according to the order relying on data in excel; The parameterized information of script, according to the test data in excel, is linked to corresponding .dat file, reaches the object that script is reused.
The present invention is by the maintenance and management for data in performance test script (pre-configuration data, dependence data, test data), the change degree of test environment after minimizing version change, the precondition that assimilation script performs, make test script once can record, repeatedly use, improve the efficiency of performance test.

Claims (1)

1. improve a method for performance test script reuse rate, it is characterized in that the specific implementation process of the method is:
1) start performance test, and record its test script;
2) analyze script, the changed content of test script in different editions is divided into the data of three types: pre-configuration data, dependence data, test data, described pre-configuration data is the environmental data that test script normally performs; Rely on data and refer to that script runs the batch data relying on other scripts and produce; Test data refers to the parametric data of this script;
3) to above-mentioned steps 2) in three kinds of data safeguard;
4) script is multiplexing;
In described step 3), the maintenance of three kinds of data is referred to and set up excel document, utilize the linking functions of excel, for the reasonable disposition of test script execution environment provides reference;
The concrete steps that in described step 4), script is multiplexing are: first from excel corresponding to script, obtain script data information, and check the need of change: when not needing to change, direct multiplexing script; When needs change, change script data, the multiplexing script of success.
CN201210474774.9A 2012-11-21 2012-11-21 A kind of method improving performance test script reuse rate Active CN102955739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210474774.9A CN102955739B (en) 2012-11-21 2012-11-21 A kind of method improving performance test script reuse rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210474774.9A CN102955739B (en) 2012-11-21 2012-11-21 A kind of method improving performance test script reuse rate

Publications (2)

Publication Number Publication Date
CN102955739A CN102955739A (en) 2013-03-06
CN102955739B true CN102955739B (en) 2016-02-03

Family

ID=47764563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210474774.9A Active CN102955739B (en) 2012-11-21 2012-11-21 A kind of method improving performance test script reuse rate

Country Status (1)

Country Link
CN (1) CN102955739B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544108B (en) * 2013-11-12 2017-01-18 福建联迪商用设备有限公司 System and method for testing embedded software integration strength
CN105446865B (en) * 2014-07-09 2019-06-28 阿里巴巴集团控股有限公司 Test method and device under a variety of environment
CN105760286B (en) * 2016-02-17 2018-09-07 中国工商银行股份有限公司 Application database dynamic property detection method and detection device
CN108920378B (en) * 2018-07-17 2022-10-11 中国银行股份有限公司 Data layering method and system based on interface test
CN112100086B (en) * 2020-11-17 2021-02-26 深圳市房多多网络科技有限公司 Software automation test method, device, equipment and computer readable storage medium
CN113806229A (en) * 2021-09-27 2021-12-17 工银科技有限公司 Interface change test script multiplexing method, device, equipment, medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus
CN101526919A (en) * 2009-04-29 2009-09-09 福建星网锐捷网络有限公司 Method for generating script files to test Web application software and device thereof
CN102063372A (en) * 2010-12-30 2011-05-18 浪潮集团山东通用软件有限公司 Main key driven modularized automated test method
US7958395B2 (en) * 2002-11-25 2011-06-07 Lsi Corporation Method, system and programming language for device diagnostics and validation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7958395B2 (en) * 2002-11-25 2011-06-07 Lsi Corporation Method, system and programming language for device diagnostics and validation
CN101266570A (en) * 2007-03-15 2008-09-17 中兴通讯股份有限公司 Software system test method and apparatus
CN101526919A (en) * 2009-04-29 2009-09-09 福建星网锐捷网络有限公司 Method for generating script files to test Web application software and device thereof
CN102063372A (en) * 2010-12-30 2011-05-18 浪潮集团山东通用软件有限公司 Main key driven modularized automated test method

Also Published As

Publication number Publication date
CN102955739A (en) 2013-03-06

Similar Documents

Publication Publication Date Title
CN102955739B (en) A kind of method improving performance test script reuse rate
CN103019684A (en) Dynamic template-based business page configuring method
CN104331366A (en) Test case design efficiency promotion method and system
CN102902750A (en) Universal data extraction and conversion method
CN109189379A (en) code generating method and device
CN106446019B (en) A kind of software function treating method and apparatus
CN202339542U (en) Software product test system
CN103530223A (en) Method and device for automatically generating unit test cases
CN103714180A (en) Bioinformatics database system and data processing method
CN102945351A (en) Security vulnerability fixing method based on two-dimensional code for mobile intelligent terminal in cloud environment
CN104915262A (en) Calibration system and method based on EXCEL data structure
CN102609462A (en) Method for compressed storage of massive SQL (structured query language) by means of extracting SQL models
CN104391748A (en) Mapreduce computation process optimization method
CN102270136B (en) Method for realizing smooth transition from demand characteristic modeling to architecture modeling
CN111966760B (en) Test data generation method and device based on Hive data warehouse
CN104182829A (en) Instrument development reliability management and support system
CN106407329B (en) Magnanimity platform automates the method for importing incremental data toward hadoop platform
CN103150251A (en) Method for intelligently acquiring automated test object
CN103902903A (en) Malicious code analyzing method and system based on dynamic sandbox environment
CN115757174A (en) Database difference detection method and device
CN102819537A (en) Method and system for data exchange in heterogeneous system
CN104216986A (en) Device and method for improving data query efficiency through pre-operation according to data update period
CN102662719A (en) SOA based code translation method in PLM system component library
CN108121872A (en) A kind of method of quick highlighted part
CN111488329B (en) Three-dimensional design data investment improvement method and system for thermal power plant

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