CN106095657A - A kind of method of variable in quick confirmation performance test script - Google Patents
A kind of method of variable in quick confirmation performance test script Download PDFInfo
- Publication number
- CN106095657A CN106095657A CN201610389271.XA CN201610389271A CN106095657A CN 106095657 A CN106095657 A CN 106095657A CN 201610389271 A CN201610389271 A CN 201610389271A CN 106095657 A CN106095657 A CN 106095657A
- Authority
- CN
- China
- Prior art keywords
- script
- variable
- performance test
- save
- quick confirmation
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3414—Workload generation, e.g. scripts, playback
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method of variable in quick confirmation performance test script, the method step is as follows: 1) uses Loadrunner to carry out script recording, generates script, preserve, save as script 01;2) repeating step 1), the operation of recording process is just the same, preserves, and saves as script 02;3) replicate the scripted code in script 01 and script 02 respectively to comparing instrument, two content for script are compared, by comparing the part that finds differences;4) difference section compared is analyzed, confirms that in difference section, which is the variable needing association;5) in script Body part, the generation position of query interface;6) by web_reg_save_param function associated variable.In a kind of quick confirmation performance test script of the present invention, the method for variable is compared to the prior art, there is the features such as reasonable in design, easy to use, realize quick associated variable, improve the efficiency of script edit, writing of script and smoothly completing of whole performance test can be completed timely and effectively.
Description
Technical field
The present invention relates to field of computer technology, the side of variable in a kind of quick confirmation performance test script
Method.
Background technology
During performance test, carry out after script records successfully, needing to find and confirm in script by Loadrunner
Need the variable of association, and this process not only expends energy and time, and be often difficult to confirm, test script is write band
Carry out the biggest difficulty.The time that general data leaves performance test for is the most nervous, so completing writing of script timely and effectively,
Can the execution of whole performance test plan be carried out smoothly and has conclusive effect.
Disclosed Patents file: entitled " a kind of based on Bash shell script plate function test method ", this document
Disclose " a kind of based on Bash shell script plate function test method, utilize network interface card to upload and download identical file and examine
Test the consistent detection network interface card whether reliability of two files;By rtc will be write the time and again from this address readout time,
Finally compare two time values and the most unanimously detect rtc whether reliability;Follow by performing GPIO executable file
Ring lightening LED lamp detects the reliability of GPIO mouth;By writing the value of certain address of EEPROM and reading from this address
Value, finally compare two values whether one show detect EEPROM whether reliability ".
Entitled " selective test method and test equipment ", this document disclose " a kind of selective test method and
Its equipment.Described selective test method includes: storage includes the test of the one or more test items performed by test script
Information;If selecting one of described test item, then the test information of the test item including selecting that storage selects;Survey by storage
Examination information compares with the test information of the selection of storage;With if it is determined that the test information phase of described test information and selection
With, then perform test script corresponding with the test item selected.Therefore, for allowing user easily identify the interface of test script
It is provided, thus selectivity test can be performed according to various items, and do not rely on certain automatic testing instrument ".Literary composition disclosed above
Part to solve the technical problem that with present invention, and the technological means of employing is different from.
Summary of the invention
The technical assignment of the present invention is to provide a kind of method of variable in quick confirmation performance test script.
The technical assignment of the present invention realizes in the following manner, and the method step is as follows:
Step 1) uses Loadrunner to carry out script recording, generates script, preserves, save as script 01;
Step 2) repeat step 1), the operation of recording process is just the same, preserves, and saves as script 02;
Step 3) replicates the scripted code in script 01 and script 02 respectively to comparing instrument, compares two content for script
Relatively, by comparing the part that finds differences;
The difference section compared is analyzed by step 4), confirms that in difference section, which is the variable needing association;
Step 5) in script Body part, the generation position of query interface;
Step 6) passes through web_reg_save_param function associated variable.
Described step 1) and step 2) in generate script 01 and script 02 not quite identical time, script is edited
Amendment, makes two script format completely the same.
Described step 3) compares the difference content that instrument demonstrates, might not all need association variable,
Should be analyzed needing the variable of association according to practical situation.
In a kind of quick confirmation performance test script of the present invention, the method for variable is compared to the prior art, has design and closes
Reason, the feature such as easy to use, it is achieved quickly associated variable, improve the efficiency of script edit, can complete script timely and effectively
Write and the smoothly completing of whole performance test.
Detailed description of the invention
Embodiment 1:
This quickly confirms that in performance test script, the method step of variable is as follows:
Step 1) uses Loadrunner to carry out script recording, generates script, preserves, save as script 01;
Step 2) repeat step 1), the operation of recording process is just the same, preserves, and saves as script 02;
Step 3) replicates the scripted code in script 01 and script 02 respectively to comparing instrument, compares two content for script
Relatively, by comparing the part that finds differences;
The difference section compared is analyzed by step 4), confirms that in difference section, which is the variable needing association;
Step 5) in script Body part, the generation position of query interface;
Step 6) passes through web_reg_save_param function associated variable.
Embodiment 2:
This quickly confirms that in performance test script, the method step of variable is as follows:
Step 1) uses Loadrunner to carry out script recording, generates script, preserves, save as script 01;
Step 2) repeat step 1), the operation of recording process is just the same, preserves, and saves as script 02;
Step 3) replicates the scripted code in script 01 and script 02 respectively to comparing instrument, compares two content for script
Relatively, by comparing the part that finds differences;The difference content that relatively instrument demonstrates, might not all changes needing association
Amount, should be analyzed needing the variable of association according to practical situation;When script 01 and script 02 are not quite identical, script is carried out
Edit-modify, makes two script format completely the same;
The difference section compared is analyzed by step 4), confirms that in difference section, which is the variable needing association;
Step 5) in script Body part, the generation position of query interface;
Step 6) passes through web_reg_save_param function associated variable.
By detailed description of the invention above, described those skilled in the art can readily realize the present invention.But should
Working as understanding, the present invention is not limited to above-mentioned several detailed description of the invention.On the basis of disclosed embodiment, described technology
The technical staff in field can the different technical characteristic of combination in any, thus realize different technical schemes.
Claims (3)
1. the method for variable in a quick confirmation performance test script, it is characterised in that the method step is as follows:
Step 1) uses Loadrunner to carry out script recording, generates script, preserves, save as script 01;
Step 2) repeat step 1), the operation of recording process is just the same, preserves, and saves as script 02;
Step 3) replicates the scripted code in script 01 and script 02 respectively to comparing instrument, compares two content for script
Relatively, by comparing the part that finds differences;
The difference section compared is analyzed by step 4), confirms that in difference section, which is the variable needing association;
Step 5) in script Body part, the generation position of query interface;
Step 6) passes through web_reg_save_param function associated variable.
The method of variable in a kind of quick confirmation performance test script the most according to claim 1, it is characterised in that described
Step 1) and step 2) in generate script 01 and script 02 not quite identical time, script is carried out edit-modify, makes two
Script format is completely the same.
The method of variable in a kind of quick confirmation performance test script the most according to claim 1, it is characterised in that described
Step 3) in compare the difference content that instrument demonstrates, might not all need association variable, should be according to actual feelings
Condition is analyzed needing the variable of association.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610389271.XA CN106095657A (en) | 2016-06-02 | 2016-06-02 | A kind of method of variable in quick confirmation performance test script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610389271.XA CN106095657A (en) | 2016-06-02 | 2016-06-02 | A kind of method of variable in quick confirmation performance test script |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106095657A true CN106095657A (en) | 2016-11-09 |
Family
ID=57447153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610389271.XA Pending CN106095657A (en) | 2016-06-02 | 2016-06-02 | A kind of method of variable in quick confirmation performance test script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106095657A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106407124A (en) * | 2016-11-10 | 2017-02-15 | 中国工商银行股份有限公司 | Automated testing method and system of program |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101211310A (en) * | 2006-12-26 | 2008-07-02 | 中国电信股份有限公司 | Performance test script generation method |
US20090217302A1 (en) * | 2008-02-27 | 2009-08-27 | Accenture Global Services Gmbh | Test script transformation architecture |
CN103729294A (en) * | 2013-12-30 | 2014-04-16 | 金蝶软件(中国)有限公司 | Method and device for testing performance script of application software |
CN104035873A (en) * | 2014-06-30 | 2014-09-10 | 青岛海信电器股份有限公司 | Method and device for generating testing codes |
CN104142891A (en) * | 2014-08-01 | 2014-11-12 | 浪潮电子信息产业股份有限公司 | Method and system for managing performance test versions |
-
2016
- 2016-06-02 CN CN201610389271.XA patent/CN106095657A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101211310A (en) * | 2006-12-26 | 2008-07-02 | 中国电信股份有限公司 | Performance test script generation method |
US20090217302A1 (en) * | 2008-02-27 | 2009-08-27 | Accenture Global Services Gmbh | Test script transformation architecture |
CN103729294A (en) * | 2013-12-30 | 2014-04-16 | 金蝶软件(中国)有限公司 | Method and device for testing performance script of application software |
CN104035873A (en) * | 2014-06-30 | 2014-09-10 | 青岛海信电器股份有限公司 | Method and device for generating testing codes |
CN104142891A (en) * | 2014-08-01 | 2014-11-12 | 浪潮电子信息产业股份有限公司 | Method and system for managing performance test versions |
Non-Patent Citations (1)
Title |
---|
李怡: "性能测试在电力信息***中的应用研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106407124A (en) * | 2016-11-10 | 2017-02-15 | 中国工商银行股份有限公司 | Automated testing method and system of program |
CN106407124B (en) * | 2016-11-10 | 2019-03-12 | 中国工商银行股份有限公司 | A kind of programming automation test method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102831052B (en) | Test exemple automation generating apparatus and method | |
CN102541740B (en) | A kind of mobile phone notes automated testing method based on Android | |
CN102567193B (en) | Method and system for converting test case to automated testing script | |
CN104714788B (en) | A kind of method and device that software installation packet automatically generates | |
WO2016026328A1 (en) | Information processing method and device and computer storage medium | |
Son et al. | A study of user data integrity during acquisition of Android devices | |
US20140181767A1 (en) | Method, apparatus, and system for efficient pre-silicon debug | |
RU2009122177A (en) | MEDIA PROCESSOR FOR ORGANIZING MULTIMEDIA DATA | |
CN104317713A (en) | Automatic testing tool and method on basis of templates | |
CN102375778A (en) | Method and system for automatically testing digital signal processor (DSP) | |
CN103631590B (en) | The edit methods of automatic test script | |
CN104360837B (en) | The method for realizing electronic data evidence obtaining analysis in evidence obtaining software based on custom script | |
CN106021118B (en) | Test code generating method and device, test frame code execution method and device | |
CN105701251A (en) | Data export and import method based on object definition | |
CN105022694A (en) | Test case generation method and system for mobile terminal test | |
CN109032929A (en) | Program log record obtaining method and device and electronic equipment | |
US20130339798A1 (en) | Methods for automated software testing and devices thereof | |
CN102929488A (en) | Automatic noting system and achieving method of electronic documents | |
CN107357530B (en) | Setting method and device for OpenStack cloud hard disk | |
CN105117566A (en) | Method and device of analyzing PCIe eye patterns | |
CN107509072A (en) | A kind of automated testing method of automatic Memory test path | |
CN106095657A (en) | A kind of method of variable in quick confirmation performance test script | |
CN103617122B (en) | A kind of comparison method of source code | |
CN103019931B (en) | The check processing method and apparatus of Asn.1 interface | |
WO2016165461A1 (en) | Automated testing method and apparatus for network management system software of telecommunications network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
RJ01 | Rejection of invention patent application after publication |