CN103777949A - Design method of automated testing script - Google Patents
Design method of automated testing script Download PDFInfo
- Publication number
- CN103777949A CN103777949A CN201410026102.0A CN201410026102A CN103777949A CN 103777949 A CN103777949 A CN 103777949A CN 201410026102 A CN201410026102 A CN 201410026102A CN 103777949 A CN103777949 A CN 103777949A
- Authority
- CN
- China
- Prior art keywords
- script
- control object
- class
- server
- automation control
- 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
Links
Images
Abstract
The invention provides a design method of an automated testing script. The design method specifically comprises the following steps: firstly selecting the automated control object of the automated testing script; programming the selected automated control object as a template into a class library; initializing the class library to obtain the instantiated automated control object, organizing the automated control object according to a preset testing progress, and programming a top execution script; filing the completed class library prepared for subsequent testing multiplexing. Compared with the prior art, according to the design method of the automated testing script, the difficulty when the testing script is organized by a tester is reduced, and the class library programmed when the script is developed can be continuously multiplexed in other subsequent projects; with an adopted object-oriented manner, the top testing script is relatively simple, so that the whole testing script is simple and easy to understand; the design method is high in practicability and easy to generalize.
Description
Technical field
The present invention relates to technical field of computer data storage, specifically a kind of method for designing of automatic test script.
Background technology
Along with the development of IT industry, computing machine is towards the development of large capacity, high-speed direction, make computer industry more and more higher to the requirement of computer equipment and memory device, capacity to equipment, speed, sustainability, high availability etc. all propose more and more higher requirement.In this background, software test is also more and more obvious for the importance of whole computer system, and any one very little problem causes the loss that cannot retrieve all likely to enterprise and user.
Automatic test is software test important form, can greatly improve the efficiency of software test, also can avoid most of artificial error simultaneously.Although automatic test has great help and raising to software test, but traditional automatized script mode of writing exists and is difficult for tested tissue script, test script is difficult to the problems such as multiplexing and not easy-to-use, causes test man to be relatively difficult to left-hand seat, and automatic test work is bad to be carried out.Therefore, how to improve the efficiency of writing of automatic test script, and guarantee that the reusability of test script and ease for use become an important problem of software test.
Based on this, a kind of OO automatic test script method for designing is now provided, organize script by OO mode, difficulty while not only having reduced test man's tested tissue script, and script when exploitation the class libraries write can in follow-up sundry item, continue multiplexing, on the other hand, due to the OO mode adopting, the test script of top layer can relatively be simplified, and whole test script is easily understood.
Summary of the invention
Technical assignment of the present invention is to solve the deficiencies in the prior art, and a kind of method for designing of automatic test script is provided.
Technical scheme of the present invention realizes in the following manner, the method for designing of this kind of automatic test script, and its specific design process is:
One, first select the automation control object of automatic test script;
Two, be that template is written as class libraries by the automation control object of selection;
Three, initialization class libraries, the automation control object of acquisition instantiation, organizes automation control object according to predetermined testing process, writes top layer and carries out script;
Four, by the class libraries filing completing, wait until follow-up test reuse.
The selection of the control object in described step 1 comprises the server and client side of tested software, operation measured piece.
In described step 2, the manufacturing process of class libraries is the variable of class and the compiling procedure of method: wherein, the variable of class is exactly the various parameters of tested software or runtime server, for tested software, refers to the interface parameters of this software, for server, refer to the IP address of server; The method of class is exactly the function that server is carried out to various operations, comprises the total interface function of tested software, also comprises and needs the power function that uses in test process.
The beneficial effect that the present invention compared with prior art produced is:
The method for designing of a kind of automatic test script of the present invention is organized script by OO mode, difficulty while not only having reduced test man's tested tissue script, and the class libraries that script when exploitation writes can continue multiplexing in follow-up sundry item, on the other hand, due to the OO mode adopting, the test script of top layer can relatively be simplified, and whole test script is easily understood; Practical, be easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is the OO automatic test script design drawing of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the method for designing of a kind of automatic test script of the present invention is described in detail below.
As shown in Figure 1, a kind of method for designing of OO automatic test script, adopts OO mode to develop automatic test script.While writing test script, first clearly all automation control object, then take these automation control object as template construct class libraries, just can carry out initialization to these class libraries afterwards, the automation control object that obtains instantiation, so far, has just built on the basis of automatic test script, and writing of script of top layer execution also just becomes very simple, enumerate the method for these automation control object by testing process.Its specific design process is:
One, first select the automation control object of automatic test script.
In software test, tested object is generally tested software, but the automation control object ours is here selected to be only confined on tested software.Due in software test, not only need tested software to operate, also need the residing environment of tested software to be operated simultaneously, comprise server, the client etc. of tested software operation, the object that what these were all need to participate in automatic test course all needs to be chosen to be automation control object.
Two, be that template is written as class libraries by the automation control object of selection.
Determine after automation control object, what next will do is exactly that the manufacturing process of class libraries is exactly the variable of class and the compiling procedure of method in fact take these objects as template construct class libraries.First, the variable of class is exactly the various parameters of tested software or runtime server, for tested software, is exactly interface parameters and some other attribute of software; For server, be exactly the attributes such as the IP address of server.Next be exactly the method for class, this place it should be noted that the method for tested software class had both comprised the total interface function of tested software, also comprises and needs other power functions that may run in test process.Finally, the method for server category is exactly the function that server is carried out to various operations.
Three, initialization class libraries, the automation control object of acquisition instantiation, organizes automation control object according to predetermined testing process, writes top layer and carries out script.
After class libraries completes, just can obtain by these class libraries of initialization the automation control object of instantiation.So far, has just built on the basis of automatic test script, and writing of script of top layer execution also just becomes very simple, enumerates the method for these automation control object by testing process.Because top layer is carried out script and only had the whole bag of tricks of these automation control object, so the test script of writing by this way will be very easy to understand, the while also can facilitate follow-uply improves script.
Four, by the class libraries filing completing, wait until follow-up test reuse.
After script has designed, we can find, only have top layer to carry out script for fc-specific test FC, the class libraries of before writing goes for all dependence tests, so these class libraries have reusability, especially the class libraries of server category, can be suitable for all tests that have about this kind of operating system especially.So after test, we are direct multiplexing these class libraries just.
The foregoing is only embodiments of the invention, within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (3)
1. a method for designing for automatic test script, is characterized in that its specific design process is:
One, first select the automation control object of automatic test script;
Two, be that template is written as class libraries by the automation control object of selection;
Three, initialization class libraries, the automation control object of acquisition instantiation, organizes automation control object according to predetermined testing process, writes top layer and carries out script;
Four, by the class libraries filing completing, wait until follow-up test reuse.
2. the method for designing of a kind of automatic test script according to claim 1, is characterized in that: the selection of the control object in described step 1 comprises the server and client side of tested software, operation measured piece.
3. the method for designing of a kind of automatic test script according to claim 2, it is characterized in that: in described step 2, the manufacturing process of class libraries is the variable of class and the compiling procedure of method: wherein, the variable of class is exactly the various parameters of tested software or runtime server, for tested software, refer to the interface parameters of this software, for server, refer to the IP address of server; The method of class is exactly the function that server is carried out to various operations, comprises the total interface function of tested software, also comprises and needs the power function that uses in test process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410026102.0A CN103777949A (en) | 2014-01-17 | 2014-01-17 | Design method of automated testing script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410026102.0A CN103777949A (en) | 2014-01-17 | 2014-01-17 | Design method of automated testing script |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103777949A true CN103777949A (en) | 2014-05-07 |
Family
ID=50570231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410026102.0A Pending CN103777949A (en) | 2014-01-17 | 2014-01-17 | Design method of automated testing script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103777949A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239210A (en) * | 2014-09-23 | 2014-12-24 | 浪潮电子信息产业股份有限公司 | Object-oriented designing and compiling method of test case |
CN106227633A (en) * | 2016-08-02 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of server diagnostic test method automatically configuring test item |
CN106547679A (en) * | 2015-09-17 | 2017-03-29 | 腾讯科技(深圳)有限公司 | The method and script management platform of script management |
CN106681908A (en) * | 2016-11-28 | 2017-05-17 | 北京航天自动控制研究所 | Test process generation method based on packet multiplexing |
CN107153614A (en) * | 2017-05-12 | 2017-09-12 | 郑州云海信息技术有限公司 | A kind of automatic test page navigation method for organizing |
CN113505060A (en) * | 2021-06-25 | 2021-10-15 | 北京控制工程研究所 | Python automatic test script compiling method for spacecraft attitude and orbit control software |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6269150B1 (en) * | 1998-06-11 | 2001-07-31 | Lucent Technologies, Inc. | Reliable, unattended, automated testing system and method for complex telecommunication systems |
US6301701B1 (en) * | 1999-11-10 | 2001-10-09 | Tenfold Corporation | Method for computer-assisted testing of software application components |
CN1776643A (en) * | 2004-11-15 | 2006-05-24 | 华为技术有限公司 | Method and device for testing software product robustness |
CN101571802A (en) * | 2009-06-19 | 2009-11-04 | 北京航空航天大学 | Visualization automatic generation method of embedded software test data and system thereof |
CN101968770A (en) * | 2010-11-01 | 2011-02-09 | 北京航空航天大学 | Reusable embedded software testing and developing method and system |
-
2014
- 2014-01-17 CN CN201410026102.0A patent/CN103777949A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6269150B1 (en) * | 1998-06-11 | 2001-07-31 | Lucent Technologies, Inc. | Reliable, unattended, automated testing system and method for complex telecommunication systems |
US6301701B1 (en) * | 1999-11-10 | 2001-10-09 | Tenfold Corporation | Method for computer-assisted testing of software application components |
CN1776643A (en) * | 2004-11-15 | 2006-05-24 | 华为技术有限公司 | Method and device for testing software product robustness |
CN101571802A (en) * | 2009-06-19 | 2009-11-04 | 北京航空航天大学 | Visualization automatic generation method of embedded software test data and system thereof |
CN101968770A (en) * | 2010-11-01 | 2011-02-09 | 北京航空航天大学 | Reusable embedded software testing and developing method and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239210A (en) * | 2014-09-23 | 2014-12-24 | 浪潮电子信息产业股份有限公司 | Object-oriented designing and compiling method of test case |
CN106547679A (en) * | 2015-09-17 | 2017-03-29 | 腾讯科技(深圳)有限公司 | The method and script management platform of script management |
CN106227633A (en) * | 2016-08-02 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of server diagnostic test method automatically configuring test item |
CN106681908A (en) * | 2016-11-28 | 2017-05-17 | 北京航天自动控制研究所 | Test process generation method based on packet multiplexing |
CN107153614A (en) * | 2017-05-12 | 2017-09-12 | 郑州云海信息技术有限公司 | A kind of automatic test page navigation method for organizing |
CN113505060A (en) * | 2021-06-25 | 2021-10-15 | 北京控制工程研究所 | Python automatic test script compiling method for spacecraft attitude and orbit control software |
CN113505060B (en) * | 2021-06-25 | 2023-11-10 | 北京控制工程研究所 | Python automatic test script writing method for spacecraft attitude and orbit control software |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103777949A (en) | Design method of automated testing script | |
CN103309797B (en) | User interface automated testing method and device | |
CN107766045B (en) | Apparatus, system and method for providing a visualization program for a machine vision system | |
EP2169541B1 (en) | Method, system and graphical user interface for configuring a simulator to simulate a plurality of devices | |
CN109146081B (en) | Method and device for creating model project in machine learning platform | |
CN101719095A (en) | Method and device for managing regression testing | |
CN103455414B (en) | Obtain the method and device of the logical place of control | |
US20140366005A1 (en) | Abstract layer for automatic user interface testing | |
US9292652B2 (en) | Generic design rule checking (DRC) test case extraction | |
CN103425584A (en) | Large-scale application regression testing information processing method based on Java bytecode | |
CN102915242A (en) | Method for implementing code programming by graphical operations | |
US10296400B2 (en) | Configuring resources used by a graphics processing unit | |
CN105389261B (en) | The method and device of asynchronous test | |
KR101619192B1 (en) | Method for Modifying MBD Modeling based on Computer Engineering | |
CN106095528B (en) | A method of detection virtual machine drive | |
CN104881311B (en) | The judgment method and device of a kind of edition compatibility | |
CA2678302A1 (en) | Method and system for simulating a plurality of devices | |
CN103942099A (en) | Parallel task execution method and device based on Hive | |
WO2014099828A1 (en) | Test scope determination based on code change(s) | |
CN100437513C (en) | Method and system for implementing automatic testing | |
CN101308701A (en) | Apparatus and method of managing mapping table of non-volatile memory | |
CN105957153B (en) | To the method and apparatus of the datum hole addition character marking on mold in PowerMill software | |
CN107423291A (en) | A kind of data translating method and client device | |
US20150212799A1 (en) | Migration between model elements of different types in a modeling environment | |
CN110018866A (en) | User interface theme update method, device, system, vehicle device and vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140507 |