CN102541735A - Automatic software test method - Google Patents

Automatic software test method Download PDF

Info

Publication number
CN102541735A
CN102541735A CN2011104481083A CN201110448108A CN102541735A CN 102541735 A CN102541735 A CN 102541735A CN 2011104481083 A CN2011104481083 A CN 2011104481083A CN 201110448108 A CN201110448108 A CN 201110448108A CN 102541735 A CN102541735 A CN 102541735A
Authority
CN
China
Prior art keywords
test
script
information
subscriber
preset
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
CN2011104481083A
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.)
Clouds Creators Information Technology (wuxi) Co Ltd
Clouds Creators Information Technology (tianjin) Co Ltd
Original Assignee
Clouds Creators Information Technology (wuxi) Co Ltd
Clouds Creators Information Technology (tianjin) 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 Clouds Creators Information Technology (wuxi) Co Ltd, Clouds Creators Information Technology (tianjin) Co Ltd filed Critical Clouds Creators Information Technology (wuxi) Co Ltd
Priority to CN2011104481083A priority Critical patent/CN102541735A/en
Publication of CN102541735A publication Critical patent/CN102541735A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides an automatic software test method which comprises the following steps of: automatically generating corresponding test scripts through a system according to test demands and test cases and then executing the test scripts according to a preset execution strategy. With the adoption of the automatic software test method, the automatic generation and the execution of the test scripts can be realized, so that the automatic testing efficiency of software is improved.

Description

The software automated testing method
Technical field
The present invention relates to software testing technology, particularly relate to a kind of software automated testing method.
Background technology
In traditional software automated testing method; For a test assignment; Need needed each test case of this test assignment, come to generate fast corresponding test script through recording technology, and then after carrying out the script correction work of some parametrizations or checkpoint setting; Click playback button, just can accomplish a regression test " easily ".
In above-mentioned traditional scheme, for each test case, the tester needs respectively the test script that adopts recording technology to generate to be revised, and could carry out then.And in practical application,, need to generate a large amount of automatic test cases along with the widespread use of software automated testing.Like this, the tester also will be very heavy to the establishment and the maintenance work of test script.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of software automated testing method, and this method can effectively improve software automated testing efficient.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of software automated testing method, this method may further comprise the steps:
A, according to the test case of test subscriber input, obtain corresponding test data, and, tested field accordingly according to said test data according to the attribute information of said test data and the testing requirement information of said test subscriber input;
B, according to the intersegmental preset relation of said tested word, said test field is made up the test script that obtains said test case;
C, according to preset script executing strategy, carry out said test script.
In sum, the software automated testing method that the present invention proposes according to testing requirement and test case, generates corresponding test script by system automatically, and then carries out test script according to preset implementation strategy.So, can realize the automatic generation and the execution of test script, improve software automated testing efficient.
Description of drawings
Fig. 1 is the schematic flow sheet of the embodiment of the invention one.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing and specific embodiment that the present invention is done to describe in detail further below.
Core concept of the present invention is; After the tester designs test case according to testing requirement, according to this testing requirement and test case, generate corresponding test script automatically, and then carry out test script according to preset implementation strategy by system.So, in the process that generates test script and carry out, do not need the tester to get involved, thereby can realize the automatic generation and the execution of test script, to improve software automated testing efficient.
Fig. 1 is the schematic flow sheet of the embodiment of the invention one, and is as shown in Figure 1, and this embodiment comprises:
Step 101, according to the test case of test subscriber input, obtain corresponding test data, and, tested field accordingly according to said test data according to the attribute information of said test data and the testing requirement information of said test subscriber input.
In practical application, the test subscriber need write testing requirement according to test plan, and then according to the testing requirement design test case, its concrete grammar is with present system, so repeat no more at this.
Particularly, the attribute information of test data comprises: processing priority information, inherent constraint information and unique appointed information.These attribute informations are default through testing requirement for the test subscriber.
Here, specifically how to obtain testing field, grasped by those skilled in the art, obtain as using Python or other programming languages according to test data.
Step 102, according to the intersegmental preset relation of said tested word, said test field is made up the test script that obtains said test case.
The intersegmental preset relation of said tested word is provided with in testing requirement by the test subscriber.
Step 103, according to preset script executing strategy, carry out said test script.
Particularly, said script executing strategy can comprise number of times, manner of execution (carrying out at random or the order execution) and/or the data change pattern (change, all change at every turn, do not change after comprising loop ends) carried out.In practical application, but be not limited to this, those skilled in the art can test needs according to reality and be provided with through test case.
Further, test macro also can directly be analyzed test result and notified to the test subscriber, promptly also can comprise after the step 103:
The test target that the result and the said test subscriber of said execution preset compares, and gives said test subscriber with the result notification of said comparison.
In sum, more than being merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (3)

1. a software automated testing method is characterized in that, this method may further comprise the steps:
A, according to the test case of test subscriber input, obtain corresponding test data, and, tested field accordingly according to said test data according to the attribute information of said test data and the testing requirement information of said test subscriber input;
B, according to the intersegmental preset relation of said tested word, said test field is made up the test script that obtains said test case;
C, according to preset script executing strategy, carry out said test script.
2. method according to claim 1 is characterized in that, said attribute information comprises: processing priority information, inherent constraint information and unique appointed information.
3. method according to claim 1 is characterized in that, further comprises after the said step c:
The test target that the result and the said test subscriber of said execution preset compares, and gives said test subscriber with the result notification of said comparison.
CN2011104481083A 2011-12-28 2011-12-28 Automatic software test method Pending CN102541735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104481083A CN102541735A (en) 2011-12-28 2011-12-28 Automatic software test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104481083A CN102541735A (en) 2011-12-28 2011-12-28 Automatic software test method

Publications (1)

Publication Number Publication Date
CN102541735A true CN102541735A (en) 2012-07-04

Family

ID=46348676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104481083A Pending CN102541735A (en) 2011-12-28 2011-12-28 Automatic software test method

Country Status (1)

Country Link
CN (1) CN102541735A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853652A (en) * 2012-11-29 2014-06-11 百度在线网络技术(北京)有限公司 Test case generation method and device
CN104077215A (en) * 2013-03-26 2014-10-01 腾讯科技(深圳)有限公司 Software test method and software test device
CN104731698A (en) * 2013-12-20 2015-06-24 深圳中兴力维技术有限公司 Abnormal test case automatic generation processing method and device based on automatic tests
CN109144863A (en) * 2018-08-10 2019-01-04 广东电网有限责任公司信息中心 A kind of automated testing method based on network system
CN110196812A (en) * 2019-06-06 2019-09-03 四川长虹电器股份有限公司 Based on the Web application iteration tests method recorded and reset
CN110309051A (en) * 2019-05-22 2019-10-08 深圳壹账通智能科技有限公司 Method, system, equipment and the storage medium of management of test cases
CN111026650A (en) * 2019-11-22 2020-04-17 东软集团股份有限公司 Software testing method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110047529A1 (en) * 2007-09-14 2011-02-24 Airbus Operations (Societe Par Actions Simplifiee) Method for automatic script generation for testing the validity of operational software of a system onboard an aircraft and device for implementing the same
CN101984416A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Method and device for generating test case
CN101989227A (en) * 2009-08-04 2011-03-23 中兴通讯股份有限公司 Test case generating method and device
CN101526917B (en) * 2009-04-22 2011-08-10 南京大学 Method for reproducing test scripts based on data drive
CN101620564B (en) * 2008-06-30 2011-10-19 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110047529A1 (en) * 2007-09-14 2011-02-24 Airbus Operations (Societe Par Actions Simplifiee) Method for automatic script generation for testing the validity of operational software of a system onboard an aircraft and device for implementing the same
CN101620564B (en) * 2008-06-30 2011-10-19 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system
CN101526917B (en) * 2009-04-22 2011-08-10 南京大学 Method for reproducing test scripts based on data drive
CN101989227A (en) * 2009-08-04 2011-03-23 中兴通讯股份有限公司 Test case generating method and device
CN101984416A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Method and device for generating test case

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853652A (en) * 2012-11-29 2014-06-11 百度在线网络技术(北京)有限公司 Test case generation method and device
CN103853652B (en) * 2012-11-29 2019-02-12 百度在线网络技术(北京)有限公司 A kind of test cases generation method and device
CN104077215A (en) * 2013-03-26 2014-10-01 腾讯科技(深圳)有限公司 Software test method and software test device
CN104077215B (en) * 2013-03-26 2017-12-01 腾讯科技(深圳)有限公司 A kind of method for testing software and device
CN104731698A (en) * 2013-12-20 2015-06-24 深圳中兴力维技术有限公司 Abnormal test case automatic generation processing method and device based on automatic tests
CN109144863A (en) * 2018-08-10 2019-01-04 广东电网有限责任公司信息中心 A kind of automated testing method based on network system
CN110309051A (en) * 2019-05-22 2019-10-08 深圳壹账通智能科技有限公司 Method, system, equipment and the storage medium of management of test cases
CN110309051B (en) * 2019-05-22 2022-09-30 深圳壹账通智能科技有限公司 Method, system, equipment and storage medium for managing test cases
CN110196812A (en) * 2019-06-06 2019-09-03 四川长虹电器股份有限公司 Based on the Web application iteration tests method recorded and reset
CN110196812B (en) * 2019-06-06 2022-02-01 四川长虹电器股份有限公司 Web application iteration test method based on recording and playback
CN111026650A (en) * 2019-11-22 2020-04-17 东软集团股份有限公司 Software testing method and device, storage medium and electronic equipment
CN111026650B (en) * 2019-11-22 2023-12-22 东软集团股份有限公司 Method and device for testing software, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN102541735A (en) Automatic software test method
CN103441900B (en) Centralized cross-platform automatization test system and control method thereof
US20120185864A1 (en) Integrated Environment for Execution Monitoring and Profiling of Applications Running on Multi-Processor System-on-Chip
CN101976187B (en) Stack tracing method and device in decompilation process and decompiler
CN104123227A (en) Method for automatically generating testing cases
CN103164328A (en) Method and device and system for regression testing of service function
CN108037919A (en) A kind of visualization big data workflow configuration method and system based on WEB
CN102306122A (en) Automated testing method and equipment
CN102279766A (en) Method and system for concurrently simulating processors and scheduler
CN100362479C (en) System and method for testing measured object based on automatic test script
CN102368216A (en) Process implementation method based on automatic project building
CN103631719A (en) Web automated testing method and device
WO2011084883A3 (en) Task list generation, parallelism templates, and memory management for multi-core systems
CN109766280A (en) Method for testing software and software test platform
CN105279092A (en) Software testing method and apparatus
CN104899369A (en) Simulator multithread running method using PERL scripts
CN103294599A (en) Cloud-based method for cross test of embedded software
CN104133676A (en) Function execution method and function execution device based on scripts
CN102955739B (en) A kind of method improving performance test script reuse rate
CN103903312A (en) Method and device for executing automatic inspection
CN106250429A (en) A kind of data pick-up method based on sqoop
CN103699478A (en) Test case generation system and test case generation method
CN104281492A (en) Fair Hadoop task scheduling method in heterogeneous environment
CN103440197B (en) A kind of method automatically generating difference test report based on contrast test
CN102271066A (en) Automatic intelligent command line testing method and 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120704