CN103455422A - Software function automatic testing method - Google Patents
Software function automatic testing method Download PDFInfo
- Publication number
- CN103455422A CN103455422A CN 201310390590 CN201310390590A CN103455422A CN 103455422 A CN103455422 A CN 103455422A CN 201310390590 CN201310390590 CN 201310390590 CN 201310390590 A CN201310390590 A CN 201310390590A CN 103455422 A CN103455422 A CN 103455422A
- Authority
- CN
- China
- Prior art keywords
- configuration item
- testing
- software
- script
- testing method
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 123
- 238000013515 script Methods 0.000 claims abstract description 46
- 238000010009 beating Methods 0.000 claims description 4
- 238000000034 method Methods 0.000 abstract description 10
- 230000008569 process Effects 0.000 abstract description 4
- 230000008859 change Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000012467 final product Substances 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000000047 product Substances 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 238000013522 software testing Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides a software function automatic testing method which comprises the following steps: a step of determining a software configuration item to be tested; a step of writing a script of the software configuration item to be tested according to the software configuration item to be tested; a step of determining a testing tool configuration item; a step of writing a script of the testing tool configuration item according to the testing tool configuration item; a step of combining the script of the software configuration item to be tested and the script of the testing tool configuration item into an automatic script; a step of setting up a testing environment; and a step of executing the automatic script in the testing environment and viewing a testing result. Preferably, both the script of the software configuration item to be tested and the script of the testing tool configuration item can be divided into a parameter configuration item and an operation configuration item. According to the invention, little pre-preparation required in the early stage of testing needs to be carried out and only the works of determining the operation process and writing the automatic operation script need to be done; moreover, the software function automatic testing method has a wide application range; the scripts are irrelevant to testing contents and are only relevant to the operation steps; and the software function automatic testing method also can be used in other fields adopting the same steps.
Description
Technical field
The present invention relates to a kind of method of testing, particularly relate to a kind of automatic software test method.
Background technology
Now, the development of network equipment product function is more and more perfect, more and more abundanter, when this is user-friendly to, also means that the test job to the tester has brought more pressure.From the software test of current network equipment product, function items of every test, need pre-configured equipment under test, then build test environment and configuration testing instrument, carries out and check test result, starts Next test item after the equipment under test of finally resetting.Thereby caused require a high expenditure of energy the as above action of a circulation of doing of repetition of tester, and the work of this repetition causes the probability of makeing mistakes to increase, be unfavorable for that the program development automatization testing technique is imperative.Existing automatization testing technique is more limited, and applicable software scope is narrow, once the type change of tested software or parameter change to some extent, carries out very flexible with regard to needing redesign.
Summary of the invention
The shortcoming of prior art, the object of the present invention is to provide a kind of software function automated testing method in view of the above, and for solving, the duplication of labour of prior art Experience of Software Testing Work is many, error rate is high, the problem of very flexible.
Reach for achieving the above object other relevant purposes, the invention provides a kind of software function automated testing method, comprising: the step of determining the software under testing configuration item; The step of according to described software under testing configuration item, writing software under testing configuration item script; Determine the step of testing tool configuration item; According to described testing tool configuration item, the step of writing testing tool configuration item script; Step by described software under testing configuration item script and the synthetic automatized script of described testing tool configuration item script; Build the step of test environment; Carry out described automatized script and check the step of test result in described test environment.
Preferably, described software under testing configuration item and described testing tool configuration item all can be divided into parameter configuration item and operative configuration item.
As mentioned above, software function automated testing method of the present invention has following beneficial effect: test early stage, required pre-preparation was few, only needed to determine operating process, write the automation mechanized operation script and got final product; And the present invention is applied widely, script and content measurement are irrelevant, only relevant with operation steps, use the other field of same steps as all can use, thereby dirigibility are better.
The accompanying drawing explanation
Fig. 1 is shown as software function automated testing method process flow diagram of the present invention.
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this instructions.The present invention can also be implemented or be applied by other different embodiment, and the every details in this instructions also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.
Refer to accompanying drawing.It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, satisfy in graphic and only show with assembly relevant in the present invention but not component count, shape and size drafting while implementing according to reality, during its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
The present invention determines operation steps according to the needed test configurations of different test items and test case, writes corresponding automatic test script and realizes test automation.The method, under the prerequisite that does not reduce the test accuracy rate, has accomplished that the testing complex degree reduces, simple to operate, saving resource and test duration, has reduced testing cost.Introduce in detail the embodiment of software function automated testing method of the present invention below in conjunction with Fig. 1, thus those skilled in the art can be more detailed the principle of understanding invention.
For convenience of description, the embodiment of Fig. 1 is controlled function for example with test home router bandwidth, but automatic software test method of the present invention is equally applicable to test other software.
In Fig. 1, step S1 means to determine software under testing configuration item content.Configuration item can comprise parameter configuration item and operative configuration item.In this example, software under testing is that the home router bandwidth is controlled function, so the parameter configuration item can comprise: the user name and password of the login router administration page, bandwidth value; The operative configuration item can comprise the login router administration page, opens bandwidth and controls function.
Step S2 means to write software under testing configuration item script according to definite configuration item.Below introduce in detail the step and method of writing test bandwidth functional configuration item script, other step and method of writing other configuration item script can be analogized.The definite configuration item according to step S1, the script that can write the test configurations item is as follows:
Wherein " $ oIE=_IECreate (" 192.168.1.1 ") " analog subscriber is opened the management control interface of router by browser, in this example, the management control interface of router is by browser, in address field input 192.168.1.1, then carriage return.
“ControlFocus($download_title,"","Edit1")
ControlSetText($download_title,"","Edit1","admin")
ControlFocus($download_title,"","Edit2")
ControlSetText($download_title,"","Edit2","admin")”
This partial simulation fill in the operation of user's sentence password in the router administration control interface, in this example, user's sentence password of administrator is " admin ".
" ControlClick ($ download_title, " ", " Button2 ", " ") " means the simulation submit operation.
Step S3 means to determine the configuration item of testing tool.In this example, test be that the bandwidth of router is controlled function, so one of testing tool is to play stream software.It is IxChariot that software is flowed in current commonly used beating, different from traditional Physical layer test, and IxChariot comes test network and the network equipment by simulating various real network application flows.The benefit of doing like this is to verify network or the performance of the network equipment when concrete application, because for any network or the network equipment, if its performance performance when practical application is good, we can think that the everyway of this network system is good, and this is also the characteristics place of application layer test.Be below simplified illustration, only the partial configuration item of air exercise stream software is example.The configuration item of testing tool also can be divided into parameter configuration item and the large class of operative configuration item two.With regard to beating the stream Software Testing Tool, the parameter configuration item can comprise: source IP address, target ip address, protocol type.The operative configuration item can comprise: open stream software, newly-built stream, carry out and beat stream.
Step S4 means to write the testing tool script according to definite testing tool configuration item.In this example, only for beating stream software section configuration item, describe.According to configuration item, the part script of writing is as follows:
Step S5 means that the automatic test script will write synthesizes an automatized script, or compiles and unravel silk into an executable file.In this example, use the AutoIt compilation tool, will survey the software configuration item script and become an automated execution file with testing tool configuration item script compile.When synthetic automatized script or volume are unraveled silk into executable file, for example, for different test environments or operation platform (being Linux or Windows), concrete operation meeting is different, and those skilled in the art can be adjusted according to actual conditions.
Step S6 means to build test environment.Test environment comprises software environment and hardware environment.Hardware environment comprises sets up server, router to be measured, interconnection network and builds topology etc.; Software environment comprises installing operating system, necessary operational factor etc. is set.
Step S7 means to carry out automatized script, checks test result.
When the version of software changes, only need repeating step S6 can complete new test.Above step has completed one and has taken turns test.Can find out, above method can not only complete automatic test, and the configuration item of software under testing and the test item of testing tool are separated, definition respectively, and the difference compile script, and then synthetic.The test script that can shield to greatest extent the variation of software under testing like this and cause changes, thereby farthest reuses test script.
In sum, test early stage of the present invention, required pre-preparation was few, only needed to determine operating process, write the automation mechanized operation script and got final product; And the present invention is applied widely, script and content measurement are irrelevant, only relevant with operation steps, use the other field of same steps as all can use, thereby dirigibility are better.So the present invention has effectively overcome various shortcoming of the prior art and the tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, be modified or be changed above-described embodiment.Therefore, such as in affiliated technical field, have and usually know that the knowledgeable, not breaking away from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.
Claims (10)
1. a software function automated testing method, is characterized in that, comprising:
Determine the step of software under testing configuration item;
The step of according to described software under testing configuration item, writing software under testing configuration item script;
Determine the step of testing tool configuration item;
According to described testing tool configuration item, the step of writing testing tool configuration item script;
Step by described software under testing configuration item script and the synthetic automatized script of described testing tool configuration item script;
Build the step of test environment;
Carry out described automatized script and check the step of test result in described test environment.
2. software function automated testing method according to claim 1, is characterized in that, described software under testing configuration item comprises software under testing parameter configuration item and software under testing operative configuration item.
3. software function automated testing method according to claim 1, is characterized in that, described testing tool configuration item comprises testing tool parameter configuration item and testing tool operative configuration item.
4. software function automated testing method according to claim 2, is characterized in that, described software function automated testing method is controlled function for the test router bandwidth, and described software under testing parameter configuration item comprises user name, password and bandwidth value.
5. software function automated testing method according to claim 4, is characterized in that, described software under testing operative configuration item comprises the login router administration page, opens bandwidth and controls function.
6. software function automated testing method according to claim 5, is characterized in that, described testing tool comprises plays stream software.
7. software function automated testing method according to claim 6, is characterized in that, described testing tool parameter configuration item comprises source IP address, target ip address and protocol type.
8. software function automated testing method according to claim 7, is characterized in that, described testing tool operative configuration item comprises that opening described beating flows software, newly-built stream and carry out and beat stream.
9. software function automated testing method according to claim 8, it is characterized in that, described by the step of described software under testing configuration item script and the synthetic automatized script of described testing tool configuration item script, described automatized script comprises executable file.
10. software function automated testing method according to claim 8, it is characterized in that, in described step of building test environment, described test environment comprises software environment and hardware environment, and described hardware environment comprises server, router to be measured and network equipment topology; Described software environment comprises operating system and operational factor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310390590.9A CN103455422B (en) | 2013-08-30 | 2013-08-30 | Software function automated testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310390590.9A CN103455422B (en) | 2013-08-30 | 2013-08-30 | Software function automated testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103455422A true CN103455422A (en) | 2013-12-18 |
CN103455422B CN103455422B (en) | 2017-08-04 |
Family
ID=49737822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310390590.9A Active CN103455422B (en) | 2013-08-30 | 2013-08-30 | Software function automated testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103455422B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103761185A (en) * | 2014-01-14 | 2014-04-30 | 烽火通信科技股份有限公司 | Automated testing system and automated testing method |
CN103995773A (en) * | 2014-02-28 | 2014-08-20 | 上海斐讯数据通信技术有限公司 | Automatic testing method for URL filtering function |
CN104219689A (en) * | 2014-09-16 | 2014-12-17 | 京信通信***(中国)有限公司 | LTE wireless communication air interface protocol software self testing device and method |
CN104866423A (en) * | 2015-05-20 | 2015-08-26 | 中国科学院空间应用工程与技术中心 | Software configuration item test method and system |
CN105007196A (en) * | 2015-07-29 | 2015-10-28 | 上海斐讯数据通信技术有限公司 | HTTP protocol-based automatic testing method and system |
CN109344069A (en) * | 2018-09-30 | 2019-02-15 | 福建星瑞格软件有限公司 | A kind of the synergetic office work method and synergetic office work platform of software automated testing |
CN113760430A (en) * | 2021-08-23 | 2021-12-07 | 成都安恒信息技术有限公司 | Graphic program substitution method for operation and maintenance auditing system based on automatic |
CN115567340A (en) * | 2022-09-22 | 2023-01-03 | 重庆长安汽车股份有限公司 | Test engineering generation method, device, equipment and medium of CAN bus |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100407667C (en) * | 2005-11-18 | 2008-07-30 | 华为技术有限公司 | Network communication apparatus protocol testing system and method |
CN101046763A (en) * | 2006-03-29 | 2007-10-03 | 盛趣信息技术(上海)有限公司 | Implementing method of automatic test system based on scenario |
CN101719062A (en) * | 2009-11-27 | 2010-06-02 | 浪潮集团山东通用软件有限公司 | Implementing method for executing test design by script |
CN202339542U (en) * | 2011-03-21 | 2012-07-18 | 中国工商银行股份有限公司 | Software product test system |
CN102354200A (en) * | 2011-06-10 | 2012-02-15 | 大唐移动通信设备有限公司 | Method and device for automatic test through control instrument |
CN103139006A (en) * | 2011-12-05 | 2013-06-05 | 上海博腾信息科技有限公司 | Web service based automated testing device and method |
CN102799511A (en) * | 2012-06-30 | 2012-11-28 | 成都西可科技有限公司 | Android-based automatic test method and system |
-
2013
- 2013-08-30 CN CN201310390590.9A patent/CN103455422B/en active Active
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103761185B (en) * | 2014-01-14 | 2016-06-22 | 烽火通信科技股份有限公司 | A kind of automatization test system and method |
CN103761185A (en) * | 2014-01-14 | 2014-04-30 | 烽火通信科技股份有限公司 | Automated testing system and automated testing method |
CN103995773A (en) * | 2014-02-28 | 2014-08-20 | 上海斐讯数据通信技术有限公司 | Automatic testing method for URL filtering function |
CN103995773B (en) * | 2014-02-28 | 2019-11-22 | 上海斐讯数据通信技术有限公司 | A kind of automatic test approach of url filtering function |
CN104219689B (en) * | 2014-09-16 | 2017-11-14 | 京信通信***(中国)有限公司 | LTE radio communications air protocol software self-measuring device and method |
CN104219689A (en) * | 2014-09-16 | 2014-12-17 | 京信通信***(中国)有限公司 | LTE wireless communication air interface protocol software self testing device and method |
CN104866423A (en) * | 2015-05-20 | 2015-08-26 | 中国科学院空间应用工程与技术中心 | Software configuration item test method and system |
CN104866423B (en) * | 2015-05-20 | 2018-04-20 | 中国科学院空间应用工程与技术中心 | The test method and system of a kind of software configuration item |
CN105007196A (en) * | 2015-07-29 | 2015-10-28 | 上海斐讯数据通信技术有限公司 | HTTP protocol-based automatic testing method and system |
CN109344069A (en) * | 2018-09-30 | 2019-02-15 | 福建星瑞格软件有限公司 | A kind of the synergetic office work method and synergetic office work platform of software automated testing |
CN113760430A (en) * | 2021-08-23 | 2021-12-07 | 成都安恒信息技术有限公司 | Graphic program substitution method for operation and maintenance auditing system based on automatic |
CN115567340A (en) * | 2022-09-22 | 2023-01-03 | 重庆长安汽车股份有限公司 | Test engineering generation method, device, equipment and medium of CAN bus |
CN115567340B (en) * | 2022-09-22 | 2024-04-26 | 重庆长安汽车股份有限公司 | CAN bus test engineering generation method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN103455422B (en) | 2017-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455422A (en) | Software function automatic testing method | |
US9754059B2 (en) | Graphical design verification environment generator | |
CN108959068B (en) | Software interface testing method, device and storage medium | |
WO2012033485A1 (en) | System and method for automated deployment of a multi-component computer environment | |
Gao et al. | Saas testing on clouds-issues, challenges and needs | |
CN105426309A (en) | Test case automatic generation method and apparatus | |
KR20170015968A (en) | High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices | |
CN105143895A (en) | Automated generation of a test class pre-header from an interactive graphical user interface | |
CN112527252A (en) | Applet management method and device, applet platform, electronic device and medium | |
Grønli et al. | Meeting quality standards for mobile application development in businesses: A framework for cross-platform testing | |
CN103455672B (en) | A kind of FPGA emulation testing use-case automatization homing method | |
US9280627B1 (en) | GUI based verification at multiple abstraction levels | |
CN111382065B (en) | Verification flow management system and method based on test template | |
CN103744757B (en) | DF file verification method based on ARINC661 | |
CN113947047B (en) | Interface connection method for verifying design to be tested and related equipment | |
US9298428B2 (en) | Graphical user interface editor that displays live data during editing | |
US10386806B2 (en) | Method for connecting models of technical systems in a testing device equipped for control unit development | |
Sebastian et al. | Seamless test environment for distributed embedded wireless networks | |
Xie et al. | Guide: A gui differentiator | |
CA3204820A1 (en) | System and method for developing user interface applications | |
CN106019021A (en) | Universal test tool of electronic device test device and test method of universal test tool | |
Gao et al. | Testing Configurable Component-Based Software-Configuration Test Modeling and Complexity Analysis. | |
Steiner et al. | Automated evaluation system for microcontroller assignments | |
Sadowski et al. | Hybrid Laboratory of Radio Communication With Online Simulators and Remote Access | |
Snyder et al. | Open source software-defined radio tools for education, research, and rapid prototyping |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180313 Granted publication date: 20170804 |
|
PD01 | Discharge of preservation of patent |
Date of cancellation: 20210313 Granted publication date: 20170804 |
|
PD01 | Discharge of preservation of patent | ||
PP01 | Preservation of patent right |
Effective date of registration: 20210313 Granted publication date: 20170804 |
|
PP01 | Preservation of patent right | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20240313 Granted publication date: 20170804 |
|
PD01 | Discharge of preservation of patent |