CN105243013A - Software testing method and system - Google Patents
Software testing method and system Download PDFInfo
- Publication number
- CN105243013A CN105243013A CN201510594395.7A CN201510594395A CN105243013A CN 105243013 A CN105243013 A CN 105243013A CN 201510594395 A CN201510594395 A CN 201510594395A CN 105243013 A CN105243013 A CN 105243013A
- Authority
- CN
- China
- Prior art keywords
- test
- testing
- control object
- case script
- data structure
- 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
Abstract
The present invention discloses a software testing method and system. The method comprises: determining a testing control object; performing data structure description on the testing control object; abstracting a target operation needed by a test into a class and a function according to the testing control object subjected to the data structure description, and obtaining a public function library; generating a test example script by using the public function library according to the testing control object subjected to the data structure description; visually displaying the test example script by using a GUI (Graphic User Interface) tool; and performing the test by using the visual test example script. According to the method and system disclosed by the present invention, the operation and the object needed by the test can be abstracted into the class and the function to generate the test example script, and the test example script can be visually displayed for performing the test, so that the method and system have relatively high testing efficiency for a large data volume, and can be multiplexed and extended, thereby reducing testing costs, and improving testing efficiency.
Description
Technical field
The present invention relates to software test field, particularly relate to a kind of method for testing software and system.
Background technology
Along with informationalized development, data volume is just with the speed increment of geometry number grade, and the network storage epoch arrive.Compared with conventional store, the network storage has better system performance, good extensibility, lower handling cost.These features all make the network storage be in fast-developing period.
And in the network store system based on software engineering, software test is in occupation of very important status, it directly decides the reliability of storage system.And along with the development of storage system, the complexity of software test is more and more higher, and traditional manual test can not meet the test needs of current storage products.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method for testing software and system, efficiently automatically can carry out the test of big data quantity.
For achieving the above object, the invention provides a kind of method for testing software, comprising:
Determine testing and control object, described testing and control object is carried out data structure description;
According to the described testing and control object after carrying out data structure description, the object run that test needs is abstracted into class sum functions, obtains public function storehouse;
Described public function storehouse generating test use case script is utilized according to the described testing and control object after carrying out data structure description;
Gui tool is utilized to carry out visual display in described test case script;
Visual test case script is utilized to test.
Preferably, described method for testing software also comprises: when utilizing visual test case script to test, test process is carried out test log record.
Preferably, also comprise after utilizing visual test case script to test:
Implementation status according to test case script generates test report.
Preferably, described method for testing software also comprises: identical execution environment and the lower multiple test case scripts used of configuration are extracted public information, generating test set configuration file.
Present invention also offers a kind of software testing system, comprising:
Testing and control object determination module, for determining testing and control object, carries out data structure description by described testing and control object;
Public function storehouse generation module, the object run that test needs is abstracted into class sum functions by the described testing and control object after carrying out data structure description for basis, obtains public function storehouse;
Test case script generation module, the described testing and control object after carrying out data structure description for basis utilizes described public function storehouse generating test use case script;
Gui management module, for utilizing gui tool to carry out visual display in described test case script;
Test module, tests for utilizing visual test case script.
Preferably, described software testing system also comprises:
Test log administration module, for carrying out test log record by test process.
Preferably, described software testing system also comprises:
Test report generation module, generates test report for the implementation status according to test case script.
Preferably, described software testing system also comprises:
Test set configuration file generation module, for extracting public information, generating test set configuration file by identical execution environment and the lower multiple test case scripts used of configuration.
Apply a kind of method for testing software provided by the invention and system, determine testing and control object, described testing and control object is carried out data structure description, according to the described testing and control object after carrying out data structure description, the object run that test needs is abstracted into class sum functions, obtain public function storehouse, described public function storehouse generating test use case script is utilized according to the described testing and control object after carrying out data structure description, gui tool is utilized to carry out visual display in described test case script, visual test case script is utilized to test, the operation that test can be needed and object are abstracted into class function generating test use case script, carry out visual display to test, to the testing efficiency of big data quantity higher and can multiplexing and expansion, reduce testing cost, improve testing efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the process flow diagram of a kind of method for testing software embodiment one of the present invention;
Fig. 2 is the structural representation of a kind of software testing system embodiment two of the present invention;
Fig. 3 is the structural representation of a kind of software testing system embodiment three of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one:
The invention provides a kind of method for testing software, Fig. 1 shows the process flow diagram of method for testing software embodiment 1 of the present invention, comprising:
Step S101: determine testing and control object, carries out data structure description by described testing and control object;
Determine testing and control object, the data used are needed to carry out structuring and objectification in test case script, form certain data structure to describe, mainly comprise the environment/address/log storage path etc. of memory device to be tested, improve the maintainability of test case script.
Step S102: according to the described testing and control object after carrying out data structure description, the object run that test needs is abstracted into class sum functions, obtains public function storehouse;
The operation of test is abstracted into class sum functions, obtains public function storehouse, the multiplexing and amendment tested can be realized.
Step S103: utilize described public function storehouse generating test use case script according to the described testing and control object after carrying out data structure description;
According to test template, testing and control object can be utilized public function storehouse generating test use case script.
Step S104: utilize gui tool to carry out visual display in described test case script;
GUI tool of user graphical interface, is undertaken editing and organizing by test case, makes test case realize visual display.
Step S105: utilize visual test case script to test.
Visual test case script in interface is utilized to test.
Test process can be carried out test log record when testing in the present embodiment, and after test case is finished, implementation status according to test case script generates test report, test report can have various ways, if multiple test case needs to perform under identical environment and configuration in testing, these environment configurations can be taken into public information and generating test set configuration file, follow-up same test environment can directly use.
A kind of method for testing software that application the present embodiment provides, determine testing and control object, described testing and control object is carried out data structure description, according to the described testing and control object after carrying out data structure description, the object run that test needs is abstracted into class sum functions, obtain public function storehouse, described public function storehouse generating test use case script is utilized according to the described testing and control object after carrying out data structure description, gui tool is utilized to carry out visual display in described test case script, visual test case script is utilized to test, the operation that test can be needed and object are abstracted into class function generating test use case script, carry out visual display to test, to pressure, concurrent high with big data quantity testing efficiency, and public function storehouse, test case and gui tool can multiplexing and expansions, reduce testing cost, improve testing efficiency.
Embodiment two:
Present invention also offers a kind of software testing system, Fig. 2 shows the structural representation of software testing system embodiment two of the present invention, comprising:
Testing and control object determination module 101, for determining testing and control object, carries out data structure description by described testing and control object;
Public function storehouse generation module 102, the object run that test needs is abstracted into class sum functions by the described testing and control object after carrying out data structure description for basis, obtains public function storehouse;
Test case script generation module 103, the described testing and control object after carrying out data structure description for basis utilizes described public function storehouse generating test use case script;
Gui management module 104, for utilizing gui tool to carry out visual display in described test case script;
Test module 105, tests for utilizing visual test case script.
A kind of method for testing software that application the present embodiment provides, determine testing and control object, described testing and control object is carried out data structure description, according to the described testing and control object after carrying out data structure description, the object run that test needs is abstracted into class sum functions, obtain public function storehouse, described public function storehouse generating test use case script is utilized according to the described testing and control object after carrying out data structure description, gui tool is utilized to carry out visual display in described test case script, visual test case script is utilized to test, the operation that test can be needed and object are abstracted into class function generating test use case script, carry out visual display to test, to the testing efficiency of big data quantity higher and can multiplexing and expansion, reduce testing cost, improve testing efficiency.
Embodiment three:
Fig. 3 shows the structural representation of software testing system embodiment three of the present invention, corresponding to Fig. 2, also comprises:
Test log administration module 106, for carrying out test log record by test process;
Test report generation module 107, generates test report for the implementation status according to test case script;
Test set configuration file generation module 108, for extracting public information, generating test set configuration file by identical execution environment and the lower multiple test case scripts used of configuration.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For system class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Be described in detail method and system provided by the present invention above, apply specific case herein and set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (8)
1. a method for testing software, is characterized in that, comprising:
Determine testing and control object, described testing and control object is carried out data structure description;
According to the described testing and control object after carrying out data structure description, the object run that test needs is abstracted into class sum functions, obtains public function storehouse;
Described public function storehouse generating test use case script is utilized according to the described testing and control object after carrying out data structure description;
Gui tool is utilized to carry out visual display in described test case script;
Visual test case script is utilized to test.
2. method for testing software according to claim 1, is characterized in that, also comprises: when utilizing visual test case script to test, test process is carried out test log record.
3. method for testing software according to claim 1, is characterized in that, also comprises after utilizing visual test case script to test:
Implementation status according to test case script generates test report.
4. method for testing software according to claim 3, is characterized in that, also comprises: identical execution environment and the lower multiple test case scripts used of configuration are extracted public information, generating test set configuration file.
5. a software testing system, is characterized in that, comprising:
Testing and control object determination module, for determining testing and control object, carries out data structure description by described testing and control object;
Public function storehouse generation module, the object run that test needs is abstracted into class sum functions by the described testing and control object after carrying out data structure description for basis, obtains public function storehouse;
Test case script generation module, the described testing and control object after carrying out data structure description for basis utilizes described public function storehouse generating test use case script;
Gui management module, for utilizing gui tool to carry out visual display in described test case script;
Test module, tests for utilizing visual test case script.
6. software testing system according to claim 5, is characterized in that, also comprises:
Test log administration module, for carrying out test log record by test process.
7. software testing system according to claim 5, is characterized in that, also comprises:
Test report generation module, generates test report for the implementation status according to test case script.
8. software testing system according to claim 5, is characterized in that, also comprises:
Test set configuration file generation module, for extracting public information, generating test set configuration file by identical execution environment and the lower multiple test case scripts used of configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510594395.7A CN105243013B (en) | 2015-09-17 | 2015-09-17 | A kind of method for testing software and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510594395.7A CN105243013B (en) | 2015-09-17 | 2015-09-17 | A kind of method for testing software and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105243013A true CN105243013A (en) | 2016-01-13 |
CN105243013B CN105243013B (en) | 2018-07-20 |
Family
ID=55040666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510594395.7A Active CN105243013B (en) | 2015-09-17 | 2015-09-17 | A kind of method for testing software and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105243013B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106021093A (en) * | 2016-05-05 | 2016-10-12 | 北京思特奇信息技术股份有限公司 | Test case reuse method and system |
CN106407054A (en) * | 2016-08-30 | 2017-02-15 | 浪潮(北京)电子信息产业有限公司 | BMC automatic testing system and method |
CN106815147A (en) * | 2016-12-29 | 2017-06-09 | 东软集团股份有限公司 | A kind of test script generation method and device |
CN107301127A (en) * | 2017-06-22 | 2017-10-27 | 郑州云海信息技术有限公司 | A kind of method and apparatus of the automatic test based on Robot Framework |
CN112506756A (en) * | 2020-11-11 | 2021-03-16 | 东风汽车集团有限公司 | Vehicle controller test case script generation method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1877543A (en) * | 2005-06-06 | 2006-12-13 | 华为技术有限公司 | Data-driven automatic testing system and method |
CN102890652A (en) * | 2012-11-07 | 2013-01-23 | 武汉光迅信息技术有限公司 | Method for constructing testing software and testing system employing method |
US8875103B2 (en) * | 2010-05-12 | 2014-10-28 | Ca, Inc. | Method of testing multiple language versions of a software system using one test script |
KR20140147227A (en) * | 2013-06-19 | 2014-12-30 | 주식회사 큐에이엔씨 | Gui software test automatic system having functon for script maintenance and method of controlling the same |
CN104407978A (en) * | 2014-12-12 | 2015-03-11 | 浪潮(北京)电子信息产业有限公司 | Automatic test method of software and device thereof |
-
2015
- 2015-09-17 CN CN201510594395.7A patent/CN105243013B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1877543A (en) * | 2005-06-06 | 2006-12-13 | 华为技术有限公司 | Data-driven automatic testing system and method |
US8875103B2 (en) * | 2010-05-12 | 2014-10-28 | Ca, Inc. | Method of testing multiple language versions of a software system using one test script |
CN102890652A (en) * | 2012-11-07 | 2013-01-23 | 武汉光迅信息技术有限公司 | Method for constructing testing software and testing system employing method |
KR20140147227A (en) * | 2013-06-19 | 2014-12-30 | 주식회사 큐에이엔씨 | Gui software test automatic system having functon for script maintenance and method of controlling the same |
CN104407978A (en) * | 2014-12-12 | 2015-03-11 | 浪潮(北京)电子信息产业有限公司 | Automatic test method of software and device thereof |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106021093A (en) * | 2016-05-05 | 2016-10-12 | 北京思特奇信息技术股份有限公司 | Test case reuse method and system |
CN106407054A (en) * | 2016-08-30 | 2017-02-15 | 浪潮(北京)电子信息产业有限公司 | BMC automatic testing system and method |
CN106407054B (en) * | 2016-08-30 | 2020-02-04 | 苏州浪潮智能科技有限公司 | BMC automatic test system and method |
CN106815147A (en) * | 2016-12-29 | 2017-06-09 | 东软集团股份有限公司 | A kind of test script generation method and device |
CN107301127A (en) * | 2017-06-22 | 2017-10-27 | 郑州云海信息技术有限公司 | A kind of method and apparatus of the automatic test based on Robot Framework |
CN112506756A (en) * | 2020-11-11 | 2021-03-16 | 东风汽车集团有限公司 | Vehicle controller test case script generation method and device |
CN112506756B (en) * | 2020-11-11 | 2023-06-06 | 东风汽车集团有限公司 | Method and device for generating test case script of vehicle controller |
Also Published As
Publication number | Publication date |
---|---|
CN105243013B (en) | 2018-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105243013A (en) | Software testing method and system | |
CN109522228B (en) | Interface automation test data construction method, device, platform and storage medium | |
CN102436498A (en) | Report form generating method and relative device | |
CN104820677A (en) | Layer display method and system of discipline | |
CN102567172A (en) | Concurrent workload simulation for application performance testing | |
CN103279416A (en) | Storage software automated testing system and method | |
CN107391378A (en) | The generation method and device of a kind of test script | |
CN104461846A (en) | Method and device for detecting power consumption of application program | |
CN103677815A (en) | Method for generating program to automatically test electrical performance of spacecraft low-frequency cable | |
CN104331315A (en) | Analysis and generation method and system of json object of any level | |
CN104850476A (en) | Cross-platform interface automated testing method and cross-platform interface automated testing system | |
CN104484127B (en) | Data storage and distribution system of hardware-in-the-loop radar simulation system | |
CN104977525A (en) | Flying probe test file manual editing method | |
CN103135989B (en) | A kind of callback function code generation method and device | |
CN110766472A (en) | Evaluation method for construction engineering cost operation | |
CN107766230A (en) | A kind of method and apparatus tested based on configuration file | |
CN103150445B (en) | The method for decomposing of a kind of MATLAB model variable and device | |
CN104598351A (en) | Method and device for testing capacity of 3D engine | |
CN103164526B (en) | The generation method of test report and device | |
CN111124772A (en) | Cloud platform storage performance testing method, system, terminal and storage medium | |
CN102004666A (en) | Large-scale computer operation scheduling equipment and system | |
CN107590044B (en) | Testing method, device and equipment for distributed storage cluster | |
CN102567126A (en) | Method and device for site reproduction of hardware | |
Dzyuba et al. | Application of sector modeling technology for giant reservoir simulations | |
US9697304B1 (en) | Configurable composite connector |
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 |