CN104391794A - Automatic testing method for multiple scripts - Google Patents

Automatic testing method for multiple scripts Download PDF

Info

Publication number
CN104391794A
CN104391794A CN201410719190.2A CN201410719190A CN104391794A CN 104391794 A CN104391794 A CN 104391794A CN 201410719190 A CN201410719190 A CN 201410719190A CN 104391794 A CN104391794 A CN 104391794A
Authority
CN
China
Prior art keywords
test
script
case
automatic
testing
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
CN201410719190.2A
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 Group Co Ltd
Original Assignee
Inspur Group 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 Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201410719190.2A priority Critical patent/CN104391794A/en
Publication of CN104391794A publication Critical patent/CN104391794A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides an automatic testing method for various scripts, which comprises the following steps: adding a test script and verification script information used in the automatic test process into a script library; adding test case information required by automatic test in a test case library, and selecting a test script and a verification script associated with the test case; the automatic test framework scans the test cases, selects test scripts to test according to information in the test cases, selects verification scripts to verify test results, and collects the verification results into a test report; and after all cases to be tested are executed, survival statistical information is obtained, and a test report is printed. Compared with the prior art, the invention introduces a plurality of script automatic test methods, and the user can compile scripts suitable for the user according to the requirements of different projects or products. And various scripts are mixed together for testing, so that the testing is more flexible and the efficiency is higher.

Description

One kind of multiple script automatic test approachs
Technical field
The present invention relates to field of computer technology, specifically one kind of multiple script automatic test approachs.
Background technology
Compared to manual test, the advantage of test automation is obvious.First automatic test can improve testing efficiency, makes tester more be absorbed in foundation and the exploitation of new test module, thus improves test coverage; Secondly, automatic test makes the administering digital of test assets, and makes test assets be able to obtain in whole software test lifecycle multiplexing, and this feature especially has meaning in functional test and regression test.More convenient to the regression test of program.This may be the topmost task of automatic test, and particularly when modification of program is more frequent, effect is obviously.Because regression tested action and use-case design completely, the result that test is expected also can be expected completely, regression test is automatically run, greatly can improve testing efficiency, shortens the regression test time.More more loaded down with trivial details tests can be run.An obvious benefit of robotization is within the less time, to run more test.The test that some manual test difficulties maybe can not be carried out can be performed.Such as, for the test of a large number of users, abundant tester can not be allowed to test simultaneously simultaneously, but but can be simulated by automatic test and have many users simultaneously, thus reach the object of test.Utilize resource better.By loaded down with trivial details task automation, can improve the enthusiasm of accuracy and tester, the more energy of the input that measuring technology personnel freed designs better test case.Some test is not suitable for automatic test, is only suitable for manual test, after the test automation of automatically testing, tester can be allowed to be absorbed in manual test part, improves the efficiency of manual test.Test has consistance and repeatability.Because test automatically performs, the consistance of each result of test and the content of execution can be protected, thus reaches the repeatably effect of test.The reusability of test.Usually adopt script technology owing to automatically testing, so just likely only need to do a small amount of even not making an amendment, realize using identical use-case in different test processs.Increase software degree of belief.Because test automatically performs, so the carelessness of not depositing in the process of implementation and mistake, depend on the designing quality of test completely.Once after software have passed strong automatic test, the degree of belief of software can increase naturally.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, one kind of multiple script automatic test approachs are provided.
Technical scheme of the present invention realizes in the following manner, and method of testing is as follows:
(1) in script bank, add the test script used in automatic testing process and checking script information;
(2) in test case library, add the test case information that test automatically needs, select test script and the checking script of test case association;
(3) auto-testing-framework sweep test use-case, selects test script to test according to the information in test case, selects checking script validates test result, is collected by the result in test report;
(4) use-case to be tested is all finished, existence statistical information, and printing test report.
Advantage of the present invention is:
Compared to the prior art, by introducing multiple script automated testing method, user can write oneself project applicable or product script according to the demand of disparity items or product to one kind of multiple script automatic test approachs of the present invention.Multiple script is mixed test, make test more flexibly, efficiency is higher.
Accompanying drawing explanation
Fig. 1 is the structural representation of one kind of multiple script automatic test approachs.
Embodiment
Below in conjunction with accompanying drawing, one kind of multiple script automatic test approachs of the present invention are described in detail below.
As shown in Figure 1, one kind of multiple script automatic test approachs of the present invention, method of testing is as follows:
(1) in script bank, add the test script used in automatic testing process and checking script information;
(2) in test case library, add the test case information that test automatically needs, select test script and the checking script of test case association;
(3) auto-testing-framework sweep test use-case, selects test script to test according to the information in test case, selects checking script validates test result, is collected by the result in test report;
(4) use-case to be tested is all finished, existence statistical information, and printing test report.
This invention mainly comprises:
(1) script bank management, the test script used in management testing and checking script, the test script used in test and checking script add in script bank by user, need typing script ID, script to perform the information such as kind, script type, script path, script descriptor during interpolation.Script ID, for this script of unique identification; Script performs kind, represents the kind (as: perl, shell, python etc.) of script; Script type, represents that script is test script or checking script; Script path, represents path, script place; Script descriptor, for the description to script function, using method.
(2) test case management, the all test cases used in management testing, the test case used in test is added in test case library by user, needs typing use-case ID, imports parameter, use case description into during interpolation, selects test script ID and checking script ID.Use-case ID, for unique identification test case; Import parameter into, represent the input parameter of test script; Use case description, represents the description to testing case function; Test script ID, selects the test script that this test case uses; Checking script ID, selects the checking script that this test case uses.
(3) test report management, according to test case content, performs test script, test script execution result is fed back to checking script, then performs checking script, checking is recorded a demerit and collect.Treat that all test cases are all finished, generate statistical information and print result.
User interface is responsible for carrying out man-machine interaction with user; Test script and checking script are in charge of in script bank management; Test case management is in charge of the test case used in test automatically; Test report management is responsible for using test script to test, and uses checking script validates test result and generates test report.
One kind of multiple its processing and fabricatings of script automatic test approach of the present invention are very simple and convenient, can process to specifications shown in accompanying drawing.
Except the technical characteristic described in instructions, be the known technology of those skilled in the art.

Claims (1)

1. one kind of multiple script automatic test approachs, is characterized in that method of testing is as follows:
(1) in script bank, add the test script used in automatic testing process and checking script information;
(2) in test case library, add the test case information that test automatically needs, select test script and the checking script of test case association;
(3) auto-testing-framework sweep test use-case, selects test script to test according to the information in test case, selects checking script validates test result, is collected by the result in test report;
(4) use-case to be tested is all finished, existence statistical information, and printing test report.
CN201410719190.2A 2014-12-03 2014-12-03 Automatic testing method for multiple scripts Pending CN104391794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410719190.2A CN104391794A (en) 2014-12-03 2014-12-03 Automatic testing method for multiple scripts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410719190.2A CN104391794A (en) 2014-12-03 2014-12-03 Automatic testing method for multiple scripts

Publications (1)

Publication Number Publication Date
CN104391794A true CN104391794A (en) 2015-03-04

Family

ID=52609702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410719190.2A Pending CN104391794A (en) 2014-12-03 2014-12-03 Automatic testing method for multiple scripts

Country Status (1)

Country Link
CN (1) CN104391794A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608874A (en) * 2016-07-12 2018-01-19 博彦科技股份有限公司 Method of testing and device
CN108874680A (en) * 2018-07-09 2018-11-23 上海瀚银信息技术有限公司 A kind of method for testing software and system of automation
CN109062817A (en) * 2018-10-15 2018-12-21 网宿科技股份有限公司 Automated testing method and system
CN109582559A (en) * 2018-09-28 2019-04-05 阿里巴巴集团控股有限公司 Verification method, device, electronic equipment and the storage medium of system
CN111338964A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Ordered batch test method, system, terminal and storage medium
CN112416746A (en) * 2020-01-21 2021-02-26 上海哔哩哔哩科技有限公司 Test case generation method, device, equipment and medium
CN113900874A (en) * 2021-10-18 2022-01-07 海光信息技术股份有限公司 Test vector management system and test vector management method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608874A (en) * 2016-07-12 2018-01-19 博彦科技股份有限公司 Method of testing and device
CN108874680A (en) * 2018-07-09 2018-11-23 上海瀚银信息技术有限公司 A kind of method for testing software and system of automation
CN108874680B (en) * 2018-07-09 2022-06-24 上海瀚银信息技术有限公司 Automatic software testing method and system
CN109582559A (en) * 2018-09-28 2019-04-05 阿里巴巴集团控股有限公司 Verification method, device, electronic equipment and the storage medium of system
CN109062817A (en) * 2018-10-15 2018-12-21 网宿科技股份有限公司 Automated testing method and system
CN112416746A (en) * 2020-01-21 2021-02-26 上海哔哩哔哩科技有限公司 Test case generation method, device, equipment and medium
CN111338964A (en) * 2020-02-29 2020-06-26 苏州浪潮智能科技有限公司 Ordered batch test method, system, terminal and storage medium
CN111338964B (en) * 2020-02-29 2023-01-10 苏州浪潮智能科技有限公司 Ordered batch test method, system, terminal and storage medium
CN113900874A (en) * 2021-10-18 2022-01-07 海光信息技术股份有限公司 Test vector management system and test vector management method

Similar Documents

Publication Publication Date Title
CN104391794A (en) Automatic testing method for multiple scripts
CN102141962B (en) Safety distributed test framework system and test method thereof
CN102662846B (en) Testing method combining automatic tool and testing case
CN104363324B (en) A kind of method of testing and test system tested automatically cell phone mainboard
CN107783873B (en) Method for realizing automatic testing platform of burner
CN102135938A (en) Software product testing method and system
CN106407108B (en) A kind of test method and system of train network logout software
CN105512036A (en) Test template for automatically generating test case according to preset rules and test method
CN105760296A (en) Automation testing control method, device and terminal
CN106355375B (en) A kind of automatic materiel affirmation method
CN106445811A (en) SecureCRT-based automated test system and method
CN108415830A (en) A kind of generation method and device of software test case
CN105868311A (en) Data analyzing method and device
CN103914307A (en) Interactive-interface fast implementation method based on reusable library
CN103530209B (en) A kind of code keypad automated testing method
CN105279092A (en) Software testing method and apparatus
CN107509072B (en) A kind of automated testing method of automatic Memory test path
CN110287113A (en) Automation interface test method
CN106528429A (en) UI testing method and device
CN106557419B (en) Program testing method and device
CN102486748A (en) Method and device for performance test
CN106371994B (en) Dynamic mobile APP test methods based on natural language processing
CN111124892A (en) Automatic testing method and system based on command line
Yu Design and application on Agile software exploratory testing model
Zun et al. Research on automated testing framework for multi-platform mobile applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150304