CN105260303A - Automated-test based agile testing scheme - Google Patents

Automated-test based agile testing scheme Download PDF

Info

Publication number
CN105260303A
CN105260303A CN201510651183.8A CN201510651183A CN105260303A CN 105260303 A CN105260303 A CN 105260303A CN 201510651183 A CN201510651183 A CN 201510651183A CN 105260303 A CN105260303 A CN 105260303A
Authority
CN
China
Prior art keywords
program
source code
test
automatic test
testing scheme
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
Application number
CN201510651183.8A
Other languages
Chinese (zh)
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 CN201510651183.8A priority Critical patent/CN105260303A/en
Publication of CN105260303A publication Critical patent/CN105260303A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses an automated-test based agile testing scheme. According to the testing scheme, program upgrading or a modified module is automatically identified by using a source code comparison tool, then an automated-test program is called, and a corresponding module test script is executed to perform testing. According to the agile testing scheme provided by the present invention, a tester does not need to regularly check whether an update occurs, the test can be automatically started when an update occurs; a modified part of a program can be automatically identified without manual identification, so that a test missing rate is reduced; the test script is executed for the modified part of the program, thereby improving testing efficiency; and the whole process requires only the test script to be maintained, thereby reducing labor costs.

Description

A kind of quick testing scheme based on automatic test
Technical field
The present invention relates to software testing technology field, be specifically related to a kind of quick testing scheme based on automatic test, the problem fast mainly for the software version iteration occurred in software development process, test human cost is high, test mass is poor, a new problem arose for the existed system occurred in the frequent iterative process of guarantee software, and solve owing to easily there is tired easily test leakage in tester repeatedly test process, thus reduction cost of human resources, improve test mass and efficiency.
Background technology
When being engaged in system testing work, we can find that a lot of function needs our test repeatedly, but basic change does not occur these functions, or even not modified.So not only waste the time of test, consume too much manpower, also owing to producing tired, mindset when repeatedly testing same function, the phenomenon that testing efficiency is low, easily make mistakes can be caused.
Usually, when iteration tests, the recognizer variation part that we can be artificial, manually performs test, checking regression problem by tester, then uses automated test tool to perform automatic test to program.In manual test, due to artificial participation, can exist in this process identify omit, phenomenon that test is omitted, efficiency is low, easily make mistakes, and different testers there will be in various degree, the test leakage phenomenon of different aspect.
Summary of the invention
The technical problem to be solved in the present invention is: the present invention is in order to improve test mass and efficiency, reduce the human cost in test process, adopt the quick testing scheme based on automatic test, can after software code changes, identify by file contrast the system module changed, start automatic test program afterwards, perform the test having the corresponding module of code change, for this reason, the quick testing scheme based on automatic test is realized.
The technical solution adopted in the present invention is:
Based on a quick testing scheme for automatic test, described testing scheme is by adopting by source code comparison instrument, and automatic identification procedure upgrading or change module, then call automatic test program, performs corresponding module test script and test.
After the present invention abandons original program iteration, upgrading, need manual intervention, then perform the scheme of automatic test, by the module using code comparison instrument to automatically identify variation, start automated test tool after identifying variation module, the test script starting corresponding module is tested.Thus test job trustship is completed automatically to program, tester has more energy to carry out design test scheme, to reach more high-quality, more high efficiency test.
Described testing scheme comprises monitors scheduler program, source code alignment programs and automatic test program three parts, wherein:
The effect of monitoring scheduler program is whether oracle listener source code changes, if changed, scheduling source code alignment programs performs source code comparison;
The effect of source code alignment programs is compared by the source code of new and old two versions, thus identify the program module of change, recognition result is returned to monitoring scheduler program;
The effect of automatic test program is, when monitoring scheduler program receives recognition result, receiving the traffic order from monitoring scheduler program, performing the automatic test script changing module.
Described testing scheme flow process is as follows:
1) whether monitor: when not having task, monitor scheduler program and be in listening state always, monitoring source code has amendment, if without amendment, continues to monitor; If revised, invoke code comparison instrument carries out source code comparison;
2) source code comparison: source code alignment programs identification source code changes corresponding program module, then recognition result is sent to monitoring scheduler program;
3) calling automatic test program: monitor after scheduler program receives the change module information that source code alignment programs transmits, automatic test program being called and simultaneously needing the information performing test to pass to automatic test program;
4) perform automatic test: when automatic test process accepts is to recalls information, start-up routine, load the test script changing module and perform test;
5) terminate.
Beneficial effect of the present invention is:
The present invention regularly goes to look into see if there is renewal without the need to tester, automatically can start test when there being renewal; Can automatic identification procedure transfer portion, without the need to artificial identification, reduce false pass rate; Perform test script for program transfer portion, improve testing efficiency; Whole process only needs maintenance test script, decreases human input cost.
Accompanying drawing explanation
Fig. 1 is testing scheme system topological figure of the present invention;
Fig. 2 is testing scheme process flow diagram of the present invention.
Embodiment
Below according to Figure of description, in conjunction with embodiment, the present invention is further described:
Embodiment 1:
Based on a quick testing scheme for automatic test, described testing scheme is by adopting by source code comparison instrument, and automatic identification procedure upgrading or change module, then call automatic test program, performs corresponding module test script and test.
After the present invention abandons original program iteration, upgrading, need manual intervention, then perform the scheme of automatic test, by the module using code comparison instrument to automatically identify variation, start automated test tool after identifying variation module, the test script starting corresponding module is tested.Thus test job trustship is completed automatically to program, tester has more energy to carry out design test scheme, to reach more high-quality, more high efficiency test.
Embodiment 2:
As shown in Figure 1, on the basis of embodiment 1, testing scheme described in the present embodiment comprises monitors scheduler program, source code alignment programs and automatic test program three parts, wherein:
The effect of monitoring scheduler program is whether oracle listener source code changes, if changed, scheduling source code alignment programs performs source code comparison;
The effect of source code alignment programs is compared by the source code of new and old two versions, thus identify the program module of change, recognition result is returned to monitoring scheduler program;
The effect of automatic test program is, when monitoring scheduler program receives recognition result, receiving the traffic order from monitoring scheduler program, performing the automatic test script changing module.
Embodiment 3:
As shown in Figure 2, on the basis of embodiment 2, described in the present embodiment, testing scheme flow process is as follows:
1) whether monitor: when not having task, monitor scheduler program and be in listening state always, monitoring source code has amendment, if without amendment, continues to monitor; If revised, invoke code comparison instrument carries out source code comparison;
2) source code comparison: source code alignment programs identification source code changes corresponding program module, then recognition result is sent to monitoring scheduler program;
3) calling automatic test program: monitor after scheduler program receives the change module information that source code alignment programs transmits, automatic test program being called and simultaneously needing the information performing test to pass to automatic test program;
4) perform automatic test: when automatic test process accepts is to recalls information, start-up routine, load the test script changing module and perform test;
5) terminate.
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (3)

1. the quick testing scheme based on automatic test, it is characterized in that: described testing scheme is by adopting by source code comparison instrument, automatic identification procedure upgrading or change module, then call automatic test program, performs corresponding module test script and test.
2. a kind of quick testing scheme based on automatic test according to claim 1, is characterized in that: described testing scheme comprises monitors scheduler program, source code alignment programs and automatic test program three parts, wherein:
The effect of monitoring scheduler program is whether oracle listener source code changes, if changed, scheduling source code alignment programs performs source code comparison;
The effect of source code alignment programs is compared by the source code of new and old two versions, thus identify the program module of change, recognition result is returned to monitoring scheduler program;
The effect of automatic test program is, when monitoring scheduler program receives recognition result, receiving the traffic order from monitoring scheduler program, performing the automatic test script changing module.
3. a kind of quick testing scheme based on automatic test according to claim 2, is characterized in that: described testing scheme flow process is as follows:
1) whether monitor: when not having task, monitor scheduler program and be in listening state always, monitoring source code has amendment, if without amendment, continues to monitor; If revised, invoke code comparison instrument carries out source code comparison;
2) source code comparison: source code alignment programs identification source code changes corresponding program module, then recognition result is sent to monitoring scheduler program;
3) calling automatic test program: monitor after scheduler program receives the change module information that source code alignment programs transmits, automatic test program being called and simultaneously needing the information performing test to pass to automatic test program;
4) perform automatic test: when automatic test process accepts is to recalls information, start-up routine, load the test script changing module and perform test;
5) terminate.
CN201510651183.8A 2015-10-10 2015-10-10 Automated-test based agile testing scheme Pending CN105260303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510651183.8A CN105260303A (en) 2015-10-10 2015-10-10 Automated-test based agile testing scheme

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510651183.8A CN105260303A (en) 2015-10-10 2015-10-10 Automated-test based agile testing scheme

Publications (1)

Publication Number Publication Date
CN105260303A true CN105260303A (en) 2016-01-20

Family

ID=55100003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510651183.8A Pending CN105260303A (en) 2015-10-10 2015-10-10 Automated-test based agile testing scheme

Country Status (1)

Country Link
CN (1) CN105260303A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776339A (en) * 2016-12-30 2017-05-31 上海亿账通互联网科技有限公司 Automated testing method and device
CN107102938A (en) * 2016-02-19 2017-08-29 阿里巴巴集团控股有限公司 The update method and device of test script
CN107122218A (en) * 2017-03-30 2017-09-01 北京深思数盾科技股份有限公司 A kind of software development methodology and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902619A (en) * 2011-07-29 2013-01-30 阿里巴巴集团控股有限公司 Method and device for regression testing of Web application programs
US20140019935A1 (en) * 2010-02-05 2014-01-16 International Business Machines Corporation Automated application generation
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case
CN103870384A (en) * 2012-12-11 2014-06-18 航天信息股份有限公司 Test case presumption method and system
CN103942143A (en) * 2014-04-09 2014-07-23 烽火通信科技股份有限公司 PC-Lint code inspection result screening method based on version repository comparison
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package
CN104765692A (en) * 2015-04-29 2015-07-08 北京嘀嘀无限科技发展有限公司 Method and equipment for automatically testing software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140019935A1 (en) * 2010-02-05 2014-01-16 International Business Machines Corporation Automated application generation
CN102902619A (en) * 2011-07-29 2013-01-30 阿里巴巴集团控股有限公司 Method and device for regression testing of Web application programs
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case
CN103870384A (en) * 2012-12-11 2014-06-18 航天信息股份有限公司 Test case presumption method and system
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package
CN103942143A (en) * 2014-04-09 2014-07-23 烽火通信科技股份有限公司 PC-Lint code inspection result screening method based on version repository comparison
CN104765692A (en) * 2015-04-29 2015-07-08 北京嘀嘀无限科技发展有限公司 Method and equipment for automatically testing software

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102938A (en) * 2016-02-19 2017-08-29 阿里巴巴集团控股有限公司 The update method and device of test script
CN107102938B (en) * 2016-02-19 2020-11-17 创新先进技术有限公司 Test script updating method and device
CN106776339A (en) * 2016-12-30 2017-05-31 上海亿账通互联网科技有限公司 Automated testing method and device
WO2018120965A1 (en) * 2016-12-30 2018-07-05 上海壹账通金融科技有限公司 Automatic test method and device, and computer-readable storage medium
CN106776339B (en) * 2016-12-30 2018-07-24 深圳壹账通智能科技有限公司 Automated testing method and device
CN107122218A (en) * 2017-03-30 2017-09-01 北京深思数盾科技股份有限公司 A kind of software development methodology and system

Similar Documents

Publication Publication Date Title
CN106708718B (en) Service framework interface test method and device
CN106909510B (en) Method for obtaining test case and server
CN105512036A (en) Test template for automatically generating test case according to preset rules and test method
CN107015842B (en) Server-side program compiling and publishing management method and system
CN105955749A (en) Continuous software project integration method and device
CN103973858B (en) The Auto-Test System of mobile terminal
CN108446223B (en) Business scene automatic testing method based on dynamic compilation
CN103019942B (en) Method and system for automatically testing applications to be tested based on android system
CN103079086A (en) Automatic testing system for set-top box
WO2011060655A1 (en) Statistical method and system for software business functional coverage
CN105022691A (en) Highly automatic software testing method based on UML diagram
CN102012845B (en) Method for improving utilization rate of automatic testing resources
CN105260303A (en) Automated-test based agile testing scheme
CN103577311A (en) Method and device for screening test cases
CN103488562A (en) Automated testing method and device
CN105260273A (en) Testing method and apparatus for intelligent electronic device
CN102693460A (en) Tester management system and method thereof
CN104750601A (en) Test method and test device
CN110119348B (en) Software upgrading test method and terminal
CN107015902B (en) Test method and test equipment
CN111611154B (en) Regression testing method, device and equipment
CN107766247B (en) Method and device for testing Bootloader and readable storage medium
CN101694634B (en) Device allocation method in automatic test system
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN110618829B (en) Service data checking method and system for upgrading database system

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: 20160120

RJ01 Rejection of invention patent application after publication