CN108345532A - A kind of automatic test cases generation method and device - Google Patents

A kind of automatic test cases generation method and device Download PDF

Info

Publication number
CN108345532A
CN108345532A CN201710058828.6A CN201710058828A CN108345532A CN 108345532 A CN108345532 A CN 108345532A CN 201710058828 A CN201710058828 A CN 201710058828A CN 108345532 A CN108345532 A CN 108345532A
Authority
CN
China
Prior art keywords
operation object
automatic test
test cases
component
script
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
CN201710058828.6A
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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710058828.6A priority Critical patent/CN108345532A/en
Publication of CN108345532A publication Critical patent/CN108345532A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of automatic test cases generation method and devices, wherein this method includes:It builds automatic test cases and generates frame, association generates the component of the operation object and operation object of automation use-case;Obtain the attribute information for the operation object for realizing automatic test cases;According to the attribute information of the operation object, the background business logic of operation object is parsed, frame, the incidence relation between formation operation object are generated according to automatic test cases;The core processing test path of business in topological diagram is calculated according to test request;The component for selecting operation object is assembled into automatic test cases according to the sequence in core processing test path.The present invention is developed using test case and scenario generation method, realizes automatic generating test case, greatly improves use-case exploitation maintenance efficiency, exploitation requires degree to substantially reduce, it especially in agile development test process, can flexibly and effectively be applied, effectively promote use-case test depth and range.

Description

A kind of automatic test cases generation method and device
Technical field
The present invention relates to automatization testing technique fields, and in particular to a kind of automatic test cases generation method and dress It sets.
Background technology
This part is introduced to reader may be with the relevant background technology of various aspects of the invention, it is believed that can be carried to reader For useful background information, to contribute to reader to more fully understand various aspects of the invention.It is, therefore, to be understood that our department Point explanation be for the above purpose, and not constitute admission of prior art.
Automatic test is a kind of process that a kind of behavioral test taking human as driving is converted into machine execution, is to save people Power, time cost improve the test method of testing efficiency.Automatization testing technique is used widely in software test field, Mainly carry out quickly returning verification to treat software of reaching the standard grade.Automatic test, which needs manual test use-case being converted to machine, to be held Capable script, this process are known as automating use-case exploitation, this is the key points and difficulties work of automatic test.
Currently, there are two main classes for the implementation method of automation use-case:One kind is script development mode, passes through automated software The interfaces UI obtain tool, obtain system under test (SUT) interface element, then directly use scripting language's script, realization to Interface Element The operation of element and the verification of front and back operating result.Follow-up interface becomes script corresponding with greater need for modification use-case.It is another kind of to be Recording playback mode first by having been manually done the flow of a test, while recording client during whole flow process by computer The communication information between server, and form specific script;But recording mode cannot check the accuracy of operating result, boundary Face becomes with greater need for recording again, and script is strong to condition depended, it is easy to which loss cannot execute the operation of environment.Therefore, Script development mode is higher in the application generality of industry.Large-scale enterprise system is more and complicated, and business demand is vigorous, quickly to ring Appellative function, IT system is answered to need quickly frequently reaching the standard grade for iteration implementation IT system.Practical experience indicates that ensure iteration Quality, automatic test cases quantity is usually tens thousand of, is changing into every time with case script hundred thousands of caused by change, and there is an urgent need to one Kind easily uses case script development mode, can effectively reduce exploitation maintenance cost, fast implements large-scale use-case exploitation. The implementation method of existing automation use-case realizes operation Web page to simulate manual service operation in script, and checks Batch Processing handles the correctness of logic, and script is related to the exploitation of service logic, and use-case exploitation amount is big, difficulty is high, system variation Case maintenance is of high cost.Use-case substantial amounts are returned, thousands of, automation use-case is usually developed according to manual use-case, but past It is past not cover key business logic still.
Invention content
Technical problems to be solved are how to provide a kind of automatic test cases generation method and device.
For the defects in the prior art, the present invention provides a kind of automatic test cases generation method and device, can be with Automation generates various test cases.
In a first aspect, the present invention provides a kind of automatic test cases generation methods, including:
It builds automatic test cases and generates frame, association generates the group of the operation object and operation object of automation use-case Part;
Obtain the attribute information for the operation object for realizing automatic test cases;
According to the attribute information of the operation object, the background business logic of operation object is parsed, according to automatic test Use-case generates frame, the incidence relation between formation operation object;
The core processing test path of business in topological diagram is calculated according to test request;
The component for selecting operation object automatic test is assembled into according to the sequence in core processing test path to use Example.
Optionally, the automatic test cases generation frame of building includes:
It is minimum static elements with the minimum operable object of automatic test cases script, by operation object and operation pair The behavior of elephant forms component, then by operation object parts assembling at use-case, form the use-case Development Framework of a structuring.
Optionally, the operation object is interface static elements, a kind of corresponding script template of action type, script template It is pre-stored in script template library.
Optionally, further include:
After determining operation object, by operation object sequence and the corresponding script template of category associations, and noted in script Enter object properties information formation component script.
Optionally, the component is stored in Component Gallery, the operation object information of the component library storage component liaison And component script.
Optionally, the core processing test path includes the testing sequence between object and operation object.
On the other hand, the present invention provides a kind of automatic test cases generating means, including:
Automatic test cases frame generation unit generates frame for building automatic test cases, and association generates certainly The operation object of dynamicization use-case and the component of operation object;
Attribute information acquiring unit, the attribute information for obtaining the operation object for realizing automatic test cases;
Resolution unit parses the background business logic of operation object, root for the attribute information according to the operation object Frame, the incidence relation between formation operation object are generated according to automatic test cases;
Core processing test path acquiring unit, the core processing for calculating business in topological diagram according to test request are surveyed Try path;
Automatic test cases generation unit, for operation pair will to be selected according to the sequence in core processing test path The component of elephant is assembled into automatic test cases.
Optionally, the automatic test cases frame generation unit includes:
It is minimum static elements with the minimum operable object of automatic test cases script, by operation object and operation pair The behavior of elephant forms component, then by operation object parts assembling at use-case, form the use-case Development Framework of a structuring.
Optionally, the operation object is interface static elements, a kind of corresponding script template of action type, script template It is pre-stored in script template library.
Optionally, further include:
Component script generation unit, it is corresponding by operation object sequence and category associations for after determining operation object Script template, and object properties information formation component script is injected in script.
Optionally, the component is stored in Component Gallery, the operation object information of the component library storage component liaison And component script.
Optionally, the core processing test path includes the testing sequence between object and operation object.
As shown from the above technical solution, automatic test cases generation method provided by the invention and device, utilize test Use-case is developed and scenario generation method, realizes automatic generating test case, greatly improves use-case exploitation maintenance efficiency, and exploitation is wanted It asks degree to substantially reduce, especially in agile development test process, can flexibly and effectively be applied.The test case of the present invention Automation generate, reduce the analysis cost of manual use-case, effectively promote use-case test depth and range.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to make one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of automatic test cases generation method flow diagram in one embodiment of the invention;
Fig. 2 is a kind of automatic test cases generation model schematic in one embodiment of the invention;
Fig. 3 is test case script product process schematic diagram in embodiment shown in FIG. 1;
Fig. 4 is to execute block schematic illustration with case script in embodiment shown in FIG. 1;
Fig. 5 is a kind of automatic test cases generating means structural schematic diagram of one embodiment of the invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Automatic test is the clicking operation of analog subscriber, and script is mainly realized to system under test (SUT) interface element, computer key The operation of disk, and check whether service logic is correct by database table, so automatized script operation object is related to front end circle Surface element, keyboard, background data base table etc..In order to reduce difficulty and the caused automation of demand transformation of automation use-case exploitation Script maintenance workload, the present invention is with the static elements that the minimum operable object of script is minimum, by object and behavior formation group Part, then by parts assembling at use-case, later stage some object or component when changing, it is only necessary to be by object or component replacement Can, without reconstructing all related example scripts.
As shown in Figure 1, the present invention provides a kind of automatic test cases generation method, including:Build automatic test use Example generates frame, and association generates the component of the operation object and operation object of automation use-case;It obtains and realizes that automatic test is used The operation object attribute information of example;According to the attribute information of operation object, the background business logic of operation object is parsed, according to certainly Dynamicization Test cases technology frame, the incidence relation between formation operation object;Business in topological diagram is calculated according to test request Core processing test path;Operation object component will be selected according to the sequence in core processing test path to be assembled into automatically Change test case.Detailed description is unfolded to the present invention and the automatic test cases generation method provided below.
First, it introduces and builds automatic test cases generation frame, association generates operation object and the behaviour of automation use-case Make the component of object.
Automatic test is the clicking operation of analog subscriber, and script is mainly realized to system under test (SUT) interface element, computer key The operation of disk, and check whether service logic is correct by database table, so automatized script operation object is related to front end circle Surface element, keyboard, background data base table etc..
In order to reduce the difficulty and the caused automatized script maintenance workload of demand transformation of automation use-case exploitation, this hair Bright with the minimum operable object of script is minimum static elements, and component is formed by object and behavior, then by parts assembling at Example, has built a set of operation object->Component->The structuring Development Framework of use-case.Later stage some object or component change When, it is only necessary to object or component are replaced, without reconstructing all related example scripts.
In the present invention, component is minimized to the combination operation to an object or multiple common objects, group can be promoted The extent for multiplexing of part reduces operation object and changes the component maintenance cost brought.Unification is operated to the behavior of every class object, so For different types of operation object, corresponding operation object script is formulated, following operation object script template defines example. After determining operation object, object-order and the corresponding script template of category associations are pressed in backstage automatically, and object is injected in script The attribute informations such as NAME, ID form component script.
In the present invention, operation object is operable minimum static elements, is the operation object of component, operation object foot This template definition is as shown in table 1.
Table 1 is operation object script template sample table:
In the present invention, component is the operation behavior to object, and component is minimized to an object or multiple common The combination operation of object, can lifting assembly extent for multiplexing, reduce operation object and change the component maintenance cost brought.In component Increase in library or multiplexing assembly reads in script to Component Gallery according to the operation object type of component liaison from script template library In, and object properties NAME information, the corresponding script of formation component are injected in script.Behavior operation to every generic operation object It is unified, so being directed to different types of operation object, formulates corresponding operation object script, following operation object script mould Plate defines example.After determining operation object, object-order and the corresponding script template of category associations are pressed in backstage automatically, and in foot Attribute informations such as injection object NAME, ID, form component script in this.
Secondly, the operation object attribute information for obtaining and realizing automatic test cases is introduced.
Specifically, as shown in Fig. 2, user is when generating automatic test cases, the operation pair that use-case is related to is analyzed first As increasing in operation object library or multiplexing operation object and preserving the attribute informations such as operation object NAME, ID, TYPE for only One identifies the operation object.For example, obtaining the attributes letters such as NAME, ID of WEB page operation object of automation use-case to be achieved Breath, the attributes such as NAME, ID of WEB page operation object can uniquely position the operation object, can according to the object of capture, Corresponding component is associated in Component Gallery.The operation object information of the component library storage component liaison and script etc..In the present invention In, operation object is that platform development personnel's compilation operation object script template is stored in operation object script bank, supports to make by oneself Justice configuration.
Again, the attribute information according to operation object is introduced, the background business logic of operation object is parsed, according to automation Test cases technology frame, the incidence relation between formation operation object.
Specifically, as shown in figure 3, such as can attribute information NAME, ID according to WEB page operation object, parsing Page background business logic generates the pre-stored operation pair for generating automation use-case in frame according to automatic test cases As and operation object component incidence relation formation operation object between relationship topology figure.There are many logical relations, such as: Physical logic relationship (certain an object include another pair as) and the service logic relationship (value of the value and another control of a certain control It is identical) etc..
4th, introduce the core processing test path that business in topological diagram is calculated according to test request.
Specifically, as shown in figure 3, calculating the core processing path of business in topological diagram.Core processing test path includes Testing sequence between object and operation object.Different test request (such as:Test purpose, testing time, test money Source) it is affected to test case determination.For example, if test request be test Web page involved by all controls whether Meet exploitation to require, needs to test all controls in operation object relationship topology figure at this time.Specifically include business relations Whether meet the requirements, whether position relationship meets the requirements.If test request is the business 1 tested involved by Web page Whether meet the requirement of business 1 between control, sub-control part in the middle part of object relationship topological diagram is only needed to be tested at this time.Therefore, exist It after obtaining object relationship topological diagram, needs to determine core processing test path according to test request, with minimum resource to be reached Test purpose.
Finally, operation object component will be selected according to the sequence in core processing test path by, which introducing, is assembled into automation Test case.
As shown in Figure 3, Figure 4, after obtaining core processing test path, addition test data just generates automation use-case foot This.The component of generation is tested use-case reference, can select corresponding with the operation object involved by core processing test path Test case.It is associated with corresponding one or more components successively according to the operating procedure of test case, is tested based on core processing Testing sequence in path is assembled into the new test case that can meet logical relation by subject component is selected.Due to business When change causes system interface, library table etc. to change, it is only necessary to by corresponding objects or component modifications or substitutions, without weight All related examples of structure.It is needed to rely on the JSON files calling generated when automation task is initiated with case script, completes automation Test.
Further to embody the superiority of automatic test cases generation method provided by the invention, the present invention also provides one Kind applies the automatic test cases generating means of the above method, as shown in figure 5, the device includes:Automatic test cases frame Frame generation unit generates frame for building automatic test cases, and association generates operation object and the operation of automation use-case The component of object;Attribute information acquiring unit, the attribute information for obtaining the operation object for realizing automatic test cases;Solution Unit is analysed, for the attribute information according to operation object, the background business logic of operation object is parsed, is used according to automatic test Example generates frame, the incidence relation between formation operation object;Core processing test path acquiring unit, for being wanted according to test Seek the core processing test path for calculating business in topological diagram;Automatic test cases generation unit, for according to core processing The component for selecting operation object is assembled into automatic test cases by the sequence in test path.Below to the present invention and offer Automatic test cases generating means expansion detailed description, the work of automatic test cases generating means provided by the invention It is roughly the same with above-mentioned automatic test cases generation method to make process, please refers to the processing of automatic test cases generation method Flow, then this no longer repeats one by one.
In the present invention, automatic test cases frame generation unit includes:It can with automatic test cases script minimum Operation object is the static elements of minimum, and component, then the group by operation object are formed by the behavior of operation object and operation object Part is assembled into use-case, forms the use-case Development Framework of a structuring.The present invention is minimum with the minimum operable object of script Static elements form component by object and behavior, then have built a set of operation object-at use-case by parts assembling>Component->With The structuring Development Framework of example.Later stage some object or component when changing, it is only necessary to replace object or component, nothing All related example scripts need to be reconstructed.In the present invention, component is minimized to the group to an object or multiple common objects Closing operation, can lifting assembly extent for multiplexing, reduce operation object and change the component maintenance cost brought.
Automatic test cases generating means provided by the invention further include:Component script generation unit, in determination After operation object, by operation object sequence and the corresponding script template of category associations, and object properties information is injected in script Formation component script.In the present invention, component is the operation behavior to object, and component is minimized to an object or multiple The combination operation of common object, can lifting assembly extent for multiplexing, reduce operation object and change the component maintenance cost brought. Increase in Component Gallery or multiplexing assembly reads in script to group according to the operation object type of component liaison from script template library In part library, and object properties NAME information, the corresponding script of formation component are injected in script.Behavior to every generic operation object Operation is unified, so being directed to different types of operation object, formulates corresponding operation object script, following operation object foot This template definition example.After determining operation object, object-order and the corresponding script template of category associations are pressed in backstage automatically, and The attribute informations such as object NAME, ID are injected in script, form component script.
To sum up, automatic test cases generation method provided by the invention and device utilize test case exploitation and script Generation method realizes automatic generating test case, greatly improves use-case exploitation maintenance efficiency, and exploitation requires degree to drop significantly It is low, especially in agile development test process, can flexibly and effectively it be applied.The automatic metaplasia of the test case of the present invention At, reduce the analysis cost of manual use-case, it is effective to promote use-case test depth and range.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including element.The instructions such as term "upper", "lower" Orientation or positional relationship is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of the description present invention and simplification is retouched It states, does not indicate or imply the indicated device or element must have a particular orientation, with specific azimuth configuration and operation, Therefore it is not considered as limiting the invention.Unless otherwise clearly defined and limited, term " installation ", " connected ", " company Connect " it shall be understood in a broad sense, for example, it may be being fixedly connected, it may be a detachable connection, or be integrally connected;It can be machine Tool connects, and can also be electrical connection;It can be directly connected, can also can be indirectly connected through an intermediary two members Connection inside part.For the ordinary skill in the art, above-mentioned term can be understood in this hair as the case may be Concrete meaning in bright.
In the specification of the present invention, numerous specific details are set forth.Although it is understood that the embodiment of the present invention can To put into practice without these specific details.In some instances, well known method, structure and skill is not been shown in detail Art, so as not to obscure the understanding of this description.Similarly, it should be understood that disclose in order to simplify the present invention and helps to understand respectively One or more of a inventive aspect, in the above description of the exemplary embodiment of the present invention, each spy of the invention Sign is grouped together into sometimes in single embodiment, figure or descriptions thereof.However, should not be by the method solution of the disclosure It releases and is intended in reflection is following:The feature that i.e. the claimed invention requirement ratio is expressly recited in each claim is more More features.More precisely, as the following claims reflect, inventive aspect is to be less than single reality disclosed above Apply all features of example.Therefore, it then follows thus claims of specific implementation mode are expressly incorporated in the specific implementation mode, Wherein each claim itself is as a separate embodiment of the present invention.It should be noted that in the absence of conflict, this The feature in embodiment and embodiment in application can be combined with each other.The invention is not limited in any single aspect, It is not limited to any single embodiment, is also not limited to the arbitrary combination and/or displacement of these aspects and/or embodiment.And And can be used alone of the invention each aspect and/or embodiment or with other one or more aspects and/or its implement Example is used in combination.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme should all cover in the claim of the present invention and the range of specification.

Claims (10)

1. a kind of automatic test cases generation method, which is characterized in that including:
It builds automatic test cases and generates frame, association generates the component of the operation object and operation object of automation use-case;
Obtain the attribute information for the operation object for realizing automatic test cases;
According to the attribute information of the operation object, the background business logic of operation object is parsed, according to automatic test cases Generate frame, the incidence relation between formation operation object;
The core processing test path of business in topological diagram is calculated according to test request;
The component for selecting operation object is assembled into automatic test cases according to the sequence in core processing test path.
2. automatic test cases generation method according to claim 1, which is characterized in that described to build automatic test Use-case generates frame:
It is minimum static elements with the minimum operable object of automatic test cases scripts, by operation object and operation object Behavior forms component, then by operation object parts assembling at use-case, form the use-case Development Framework of a structuring.
3. automatic test cases generation method according to claim 1, which is characterized in that further include:
After determining operation object, by operation object sequence and the corresponding script template of category associations, and the injection pair in script As attribute information formation component script.
4. automatic test cases generation method according to claim 1, which is characterized in that the operation object is interface Static elements, a kind of corresponding script template of action type, script template are pre-stored in script template library;
The component is stored in Component Gallery, the operation object information and component script of the component library storage component liaison.
5. automatic test cases generation method according to claim 1, which is characterized in that the core processing tests road Diameter includes the testing sequence between object and operation object.
6. a kind of automatic test cases generating means, which is characterized in that including:
Automatic test cases frame generation unit generates frame for building automatic test cases, and association generates automation The operation object of use-case and the component of operation object;
Attribute information acquiring unit, the attribute information for obtaining the operation object for realizing automatic test cases;
Resolution unit parses the background business logic of operation object for the attribute information according to the operation object, according to certainly Dynamicization Test cases technology frame, the incidence relation between formation operation object;
Core processing test path acquiring unit, the core processing for calculating business in topological diagram according to test request test road Diameter;
Automatic test cases generation unit, for operation object will to be selected according to the sequence in core processing test path Component is assembled into automatic test cases.
7. automatic test cases generating means according to claim 6, which is characterized in that the automatic test cases Frame generation unit includes:
It is minimum static elements with the minimum operable object of automatic test cases scripts, by operation object and operation object Behavior forms component, then by operation object parts assembling at use-case, form the use-case Development Framework of a structuring.
8. automatic test cases generating means according to claim 6, which is characterized in that further include:
Component script generation unit, for after determining operation object, by operation object sequence and the corresponding script of category associations Template, and object properties information formation component script is injected in script.
9. automatic test cases generating means according to claim 6, which is characterized in that the operation object is interface Static elements, a kind of corresponding script template of action type, script template are pre-stored in script template library;
The component is stored in Component Gallery, the operation object information and component script of the component library storage component liaison.
10. automatic test cases generating means according to claim 6, which is characterized in that the core processing test Path includes the testing sequence between object and operation object.
CN201710058828.6A 2017-01-23 2017-01-23 A kind of automatic test cases generation method and device Pending CN108345532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710058828.6A CN108345532A (en) 2017-01-23 2017-01-23 A kind of automatic test cases generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710058828.6A CN108345532A (en) 2017-01-23 2017-01-23 A kind of automatic test cases generation method and device

Publications (1)

Publication Number Publication Date
CN108345532A true CN108345532A (en) 2018-07-31

Family

ID=62962341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710058828.6A Pending CN108345532A (en) 2017-01-23 2017-01-23 A kind of automatic test cases generation method and device

Country Status (1)

Country Link
CN (1) CN108345532A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344059A (en) * 2018-09-20 2019-02-15 天津龙拳风暴科技有限公司 A kind of server stress test method and device
CN109885474A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Test case edit methods and device, terminal and computer readable storage medium
CN109901999A (en) * 2019-01-31 2019-06-18 国核自仪系统工程有限公司 The emulation mode and system of programmable logic based on UVM
CN110109837A (en) * 2019-05-06 2019-08-09 上海蔚来汽车有限公司 Integration test method, device and controller and medium
CN110162457A (en) * 2019-04-12 2019-08-23 深圳壹账通智能科技有限公司 Test method, device, equipment and the storage medium of user interface
CN110232014A (en) * 2019-02-25 2019-09-13 上海蔚来汽车有限公司 Operation flow automated testing method, device, controller and medium
CN110334003A (en) * 2019-05-22 2019-10-15 梁俊杰 A kind of flow designing method and relevant device
CN110413524A (en) * 2019-07-26 2019-11-05 中国工商银行股份有限公司 For generating method and apparatus, the automated testing method of test script
CN110825618A (en) * 2019-10-10 2020-02-21 重庆金融资产交易所有限责任公司 Method and related device for generating test case
CN110891044A (en) * 2018-09-11 2020-03-17 中国科学院信息工程研究所 NPC generation and depiction method in network test scene
CN111522748A (en) * 2020-04-26 2020-08-11 中国农业银行股份有限公司 Automatic test case generation method and device, server and storage medium
CN111752827A (en) * 2020-06-04 2020-10-09 武汉迎风聚智科技有限公司 Test script generation method and device
CN112286810A (en) * 2020-10-29 2021-01-29 中国航空工业集团公司洛阳电光设备研究所 Method and system for quickly generating use case based on use case data and logic separation
CN112988578A (en) * 2021-03-10 2021-06-18 中国建设银行股份有限公司 Automatic testing method and device
CN113448869A (en) * 2021-07-16 2021-09-28 建信金融科技有限责任公司 Method and device for generating test case, electronic equipment and computer readable medium
CN113742222A (en) * 2021-08-20 2021-12-03 许继集团有限公司 Automatic generation method and test method for server communication test case
CN116804972A (en) * 2023-08-23 2023-09-26 北京遥感设备研究所 Dynamic generation method for database reference test cases

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126592A1 (en) * 1998-09-21 2003-07-03 Mishra Debi P. Method and system for on-demand installation of software implementations
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN104407978A (en) * 2014-12-12 2015-03-11 浪潮(北京)电子信息产业有限公司 Automatic test method of software and device thereof
CN104699608A (en) * 2015-03-10 2015-06-10 于秀山 Automatic test method and device for graphic user interface software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126592A1 (en) * 1998-09-21 2003-07-03 Mishra Debi P. Method and system for on-demand installation of software implementations
CN103605609A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 Automatic test framework applicable to cloud computing
CN104407978A (en) * 2014-12-12 2015-03-11 浪潮(北京)电子信息产业有限公司 Automatic test method of software and device thereof
CN104699608A (en) * 2015-03-10 2015-06-10 于秀山 Automatic test method and device for graphic user interface software

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891044A (en) * 2018-09-11 2020-03-17 中国科学院信息工程研究所 NPC generation and depiction method in network test scene
CN110891044B (en) * 2018-09-11 2021-04-27 中国科学院信息工程研究所 NPC generation and depiction method in network test scene
CN109344059A (en) * 2018-09-20 2019-02-15 天津龙拳风暴科技有限公司 A kind of server stress test method and device
CN109344059B (en) * 2018-09-20 2023-04-11 天津龙拳风暴科技有限公司 Server pressure testing method and device
CN109885474A (en) * 2018-12-14 2019-06-14 平安万家医疗投资管理有限责任公司 Test case edit methods and device, terminal and computer readable storage medium
CN109901999B (en) * 2019-01-31 2021-01-29 国核自仪系统工程有限公司 Simulation method and system of programmable logic based on UVM
CN109901999A (en) * 2019-01-31 2019-06-18 国核自仪系统工程有限公司 The emulation mode and system of programmable logic based on UVM
CN110232014A (en) * 2019-02-25 2019-09-13 上海蔚来汽车有限公司 Operation flow automated testing method, device, controller and medium
CN110162457A (en) * 2019-04-12 2019-08-23 深圳壹账通智能科技有限公司 Test method, device, equipment and the storage medium of user interface
CN110109837A (en) * 2019-05-06 2019-08-09 上海蔚来汽车有限公司 Integration test method, device and controller and medium
CN110109837B (en) * 2019-05-06 2023-10-13 上海蔚来汽车有限公司 Integrated test method, integrated test device, controller and medium
CN110334003A (en) * 2019-05-22 2019-10-15 梁俊杰 A kind of flow designing method and relevant device
CN110413524A (en) * 2019-07-26 2019-11-05 中国工商银行股份有限公司 For generating method and apparatus, the automated testing method of test script
CN110825618A (en) * 2019-10-10 2020-02-21 重庆金融资产交易所有限责任公司 Method and related device for generating test case
CN110825618B (en) * 2019-10-10 2024-01-26 天航长鹰(江苏)科技有限公司 Method and related device for generating test case
CN111522748A (en) * 2020-04-26 2020-08-11 中国农业银行股份有限公司 Automatic test case generation method and device, server and storage medium
CN111522748B (en) * 2020-04-26 2023-06-13 中国农业银行股份有限公司 Automatic test case generation method, device, server and storage medium
CN111752827A (en) * 2020-06-04 2020-10-09 武汉迎风聚智科技有限公司 Test script generation method and device
CN112286810A (en) * 2020-10-29 2021-01-29 中国航空工业集团公司洛阳电光设备研究所 Method and system for quickly generating use case based on use case data and logic separation
CN112988578A (en) * 2021-03-10 2021-06-18 中国建设银行股份有限公司 Automatic testing method and device
CN113448869A (en) * 2021-07-16 2021-09-28 建信金融科技有限责任公司 Method and device for generating test case, electronic equipment and computer readable medium
CN113742222A (en) * 2021-08-20 2021-12-03 许继集团有限公司 Automatic generation method and test method for server communication test case
CN113742222B (en) * 2021-08-20 2024-04-09 河南源网荷储电气研究院有限公司 Automatic generation method and test method for server communication test cases
CN116804972A (en) * 2023-08-23 2023-09-26 北京遥感设备研究所 Dynamic generation method for database reference test cases
CN116804972B (en) * 2023-08-23 2023-11-14 北京遥感设备研究所 Dynamic generation method for database reference test cases

Similar Documents

Publication Publication Date Title
CN108345532A (en) A kind of automatic test cases generation method and device
CN110309071B (en) Test code generation method and module, and test method and system
US10127141B2 (en) Electronic technology resource evaluation system
Rubin et al. Process mining framework for software processes
US8448146B2 (en) Generation of functional tests for re-hosted applications
CN109726132A (en) A kind of method for testing software and software test automation management system
US20040143819A1 (en) Generic software testing system and mechanism
CN101996131A (en) Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
CN114625353A (en) Model framework code generation system and method
CN103164328A (en) Method and device and system for regression testing of service function
CN111966665B (en) Data migration testing method and device
CN101526916A (en) Method and system for using page-based object flow verification in regression test
CN103761189A (en) Test case management method and system
CN117389541B (en) Configuration system and device for generating template based on dialogue retrieval
Strüber et al. Scalability of Model Transformations: Position Paper and Benchmark Set.
CN105159746B (en) Reliablility simulation tool towards fault-tolerant combination web services
CN117743154A (en) Quantitative analysis method and system for software code iteration change influence domain
Granda et al. Towards a Model-Driven Testing Framework for GUI Test Cases Generation from User Stories.
Hryszko et al. Bottlenecks in software defect prediction implementation in industrial projects
Staron et al. Using models to develop measurement systems: a method and its industrial use
CN108132802B (en) Application method of configuration model in system development
CN103714066B (en) Database analysis device based on template
CN110286882A (en) A kind of foreground system design and verification method based on model inspection
CN114064469A (en) Interface automation test method and storage medium
CN110968342B (en) Version comparison method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180731