CN101334755B - Use case automatic performance control method and device - Google Patents

Use case automatic performance control method and device Download PDF

Info

Publication number
CN101334755B
CN101334755B CN2008101427530A CN200810142753A CN101334755B CN 101334755 B CN101334755 B CN 101334755B CN 2008101427530 A CN2008101427530 A CN 2008101427530A CN 200810142753 A CN200810142753 A CN 200810142753A CN 101334755 B CN101334755 B CN 101334755B
Authority
CN
China
Prior art keywords
case
execution
tool module
management tool
control method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2008101427530A
Other languages
Chinese (zh)
Other versions
CN101334755A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008101427530A priority Critical patent/CN101334755B/en
Publication of CN101334755A publication Critical patent/CN101334755A/en
Application granted granted Critical
Publication of CN101334755B publication Critical patent/CN101334755B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a use case automatic-execution control method and a corresponding apparatus. The apparatus comprises a management tool module used for acquiring use cases, storing use cases and use case execution processes and storing and sending use case execution results; an execution tool module used for reading use cases, analyzing use cases and automatically executing use cases; a regulation control module which is used for controlling the execution tool module and the management tool module by a pre-compiled use case execution regulation. The method and apparatus of the invention adopt the automatic track maintaining for the use case state so as to realize the automation of the use case execution process, enhance the use case execution efficiency, shorten the development cycle of products and reduce the product cost. Moreover, the invention leads the use case execution process to be systematized and standardized so as to bring convenience for management and reduce maintaining cost.

Description

Control method that a kind of use-case automatically performs and device
Technical field
What the present invention relates to is method and the device that a kind of use-case in the software field is carried out, in particular control method and the device that a kind of use-case automatically performs in the software test field.
Background technology
In the prior art, use-case is a group of input, executive condition and expected results working out for certain special objective, to verify certain Program path or to examine and whether satisfy certain particular demands.The execution of use-case is important link in the software development, for the ease of management, just needs executing rule and retrains, and can bring the extra work amount to the operational staff like this; But,,, will increase huge workload to the operational staff if will meet executing rule in the process of implementation for a large amount of use-case situations is arranged.The quantity of use-case execution work amount and use-case is proportional; Product is complicated more, and the use-case quantity that needs to design in the Product Validation process will be big more, and the workload of increase is just many more; In the time will developing a complex product, its use-case storehouse will be huge unusually, and it is not only time-consuming but also be difficult to administer and maintain to carry out use-case so by hand.
Thereby prior art awaits to improve and improve.
Summary of the invention
The control method and the device that the object of the present invention is to provide a kind of use-case to automatically perform to realize robotization, systematization and the standardization of use-case implementation, reach the execution efficient that improves use-case, reduce the management of use-case and the purpose of maintenance cost.
Technical scheme of the present invention comprises:
The control device that a kind of use-case automatically performs, it comprises: a management tool module, described management tool module are used to realize that use-case obtains, use-case is preserved, the use-case implementation is preserved, the use-case execution result is preserved and output; One carries out tool model, and described execution tool model is used for that use-case reads, use-case analysis, use-case automatically perform;
Described control device also comprises: a regular control module, be used for described execution tool model and described management tool module are controlled, and realize by an executing rule of writing in advance.
Wherein said executing rule is realized by C++ programming language or SQA script control language.
The control method that a kind of use-case automatically performs, it may further comprise the steps:
Pre-designed use-case is obtained and stored to A, a management tool module;
B, one carries out tool model and read pending use-case from described management tool module, and carries out the use-case analysis;
C, described execution tool model are handled use-case automatically by described executing rule, and implementation and execution result are issued described management tool module;
D, described management tool module are preserved implementation, and execution result are preserved and exported.
Wherein also comprise among the step C use-case state is carried out automatic tracking and maintenance; Described automatic tracking and maintenance process comprises: use-case determined property, use-case state are judged, the use-case attribute information upgrades and the operation of state information updating.
Wherein said automatic tracking and maintenance process also comprises following concrete steps:
C1, from described management tool module alternative;
Whether C2, to detect described object be use-case, if not and be not to finish sign, then return step C1;
C3 is if use-case and be not to finish sign then detects the executing state of use-case; If the executing state of use-case is executed, then return step C1;
If the executing state of C4 use-case for not carrying out, then empties use-case executing state sign, according to the status information and the attribute information of described executing rule information change use-case.
Wherein said step B also comprises: operation and flow process that described use-case analytic process also generates the various scenes of product use to be measured and can occur under corresponding scene.
The key element of wherein said use-case comprises: use-case title, use-case content, use-case executing state, use-case attribute.
Wherein said use-case attribute information comprises: not by, pass through.
Wherein said execution state information comprises: execution, executed.
The invention provides control method and device that a kind of use-case automatically performs, owing to adopted described execution tool model and described management tool module controlled, carry out tracking and maintenance by automatic state to use-case, realized the robotization of use-case implementation, improve use-case and carried out efficient, thereby shortened product development cycle, reduced cost of products; Further, make the implementation systematization and the standardization of use-case, thereby convenient management has reduced maintenance cost.
Description of drawings
Fig. 1 is the structured flowchart of the control device of a preferred embodiment of the present invention;
Fig. 2 is the control method process flow diagram of a preferred embodiment of the present invention;
Fig. 3 carries out the method flow diagram of automatic tracking and maintenance for a preferred embodiment of the present invention to the use-case state.
Embodiment
Below in conjunction with accompanying drawing, will be described in detail preferred embodiment of the present invention.
The invention provides control method and device that a kind of use-case automatically performs, owing to adopted regular control module that described execution tool model and described management tool module are controlled; Carry out tracking and maintenance by automatic state, realized the robotization of use-case implementation, systematization and standardization use-case.
Be illustrated in figure 1 as the structured flowchart of the control device of a preferred embodiment of the present invention, this device comprises: management tool module, execution tool model and regular control module.
Described management tool mould is used for realizing that use-case obtains (be included in and directly write on its software or import from the outside), use-case storage; Implementation and result are preserved; Output execution result etc.Described management tool module can be selected commercial tool or develop voluntarily to form.
Described execution tool model is used for realizing, use-case reads, use-case analysis, use-case automatically perform by executing rule.Described execution tool model can be selected commercial tool or develop voluntarily to form, and is used for the support to implementation, promptly automatically use-case is handled automatically according to predetermined executing rule.
Described regular control module is used for described execution tool model and described management tool module are controlled, and described control is to carry out rule by a use-case that writes in advance to realize; In other words, described regular control module is to cooperate described execution tool model and described management tool module to realize their functions separately by described executing rule.According to different application demands, advise the execution robotization that realizes use-case by writing different execution.Described executing rule can be write by different control languages, for example: C++ programming language or SQA script control language etc.The robotization of whole use-case implementation just depends on this control device.
Be illustrated in figure 2 as the control method process flow diagram of a preferred embodiment of the present invention, this control method is to be realized by above-described described control device, its step is carried out under the control of a regular control module, and described control is to realize by the described executing rule that writes in advance.
Use-case is a group of input, executive condition and expected results working out for certain special objective, to verify certain Program path or to examine and whether satisfy certain particular demands.An effective use-case is according to the actual requirements, by analysis, design and obtain.The key element of the described use-case among the present invention comprises: use-case title, use-case content, use-case executing state and use-case attribute etc.For example, the use-case name is called " creating the user "; Its content is: (1) is opened the user and is created window; (2) input user name username; (3) input password password; (4) repeat to input password password; (5) import other user profile otherinformation; (6) click " determining " button, finish user's establishment; (7) whether the checking user creates successful; The use-case execution state information comprises: do not carry out and executed; The use-case attribute information comprises: not by and pass through.
It is as follows to describe described control method of the present invention below in detail, as shown in Figure 2:
S201, described management tool module are obtained pre-designed use-case, and described use-case is stored in the described management tool module; Described use-case can directly be write acquisition by commercial tool on management tool; Also can write back importing management tool by other edit tools earlier and obtain according to template;
S202, described execution tool model read pending use-case, and described use-case are carried out the use-case analysis from described management tool module; Operation and flow process that described use-case analysis generates the various scenes of product use to be measured and can occur under each scene;
S203, described execution tool model are handled use-case automatically by described executing rule, and implementation and execution result are issued described management tool module;
S204, described management tool module are preserved the implementation of use-case, and the execution result of use-case are preserved and exported.
Described execution tool model is handled use-case automatically by described executing rule, wherein comprises the automatic tracking and maintenance to the use-case state; Described automatic tracking and maintenance comprises: use-case determined property, use-case state are judged, the use-case attribute information upgrades and the operation of state information updating.It step that comprises is described in detail as follows, as shown in Figure 3:
S301, from described management tool module alternative;
Whether S302, the described object of detection are use-case, and following four kinds of situations are arranged:
(1) if object be not use-case and be not to finish sign, then withdraw from the use-case properties dialog, return step S301;
(2) if object is not use-case and is to finish sign that termination routine is carried out;
(3) if to liking use-case and being to finish sign, termination routine is carried out;
(4) if, then carry out next procedure to liking use-case and not being to finish sign;
The executing state of S303, detection use-case; Described executing state comprises: execution, executed; Following two kinds of situations are then arranged:
(1) if the executing state of use-case is executed, then withdraws from the use-case properties dialog, return step S301;
(2) if the executing state of use-case for not carrying out, is then carried out next procedure
S304, empty use-case executing state sign, according to described execution rule information change use-case status information and attribute information;
S305, will change to be provided with to beam back in the described management tool module and preserve, withdraw from the use-case properties dialog simultaneously, return step S301;
In sum, the invention provides control method and device that a kind of use-case automatically performs, owing to adopted regular control module that described execution tool model and described management tool module are controlled, carry out tracking and maintenance by automatic state, realized the robotization of use-case implementation use-case; So the manual implementation of use-case is converted into use-case and automatically performs process, need not manually-operated, shortened the use-case execution time, improved use-case and carried out efficient, thereby shortened product development cycle, reduced cost of products, improved product competitiveness; Further,, make the implementation systematization and the standardization of use-case, thereby convenient management has reduced maintenance cost owing to adopted the case management instrument.
Should be understood that above-mentioned description at specific embodiment is comparatively detailed, can not therefore think the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.

Claims (9)

1. control device that use-case automatically performs, it comprises: a management tool module, described management tool module are used to realize that use-case obtains, use-case is preserved, the use-case implementation is preserved, the use-case execution result is preserved and output;
One carries out tool model, and described execution tool model is used for that use-case reads, use-case analysis, use-case automatically perform;
It is characterized in that described control device also comprises: a regular control module, be used for described execution tool model and described management tool module are controlled, automatically the state of use-case is carried out tracking and maintenance by an executing rule of writing in advance.
2. control device according to claim 1 is characterized in that, described executing rule is realized by C++ programming language or SQA script control language.
3. control method of control device according to claim 1, it may further comprise the steps:
Pre-designed use-case is obtained and stored to A, a management tool module;
B, one carries out tool model and read pending use-case from described management tool module, and carries out the use-case analysis;
C, described execution tool model carry out tracking and maintenance to the state of use-case automatically by described executing rule, and implementation and execution result are issued described management tool module;
D, described management tool module are preserved implementation, and execution result are preserved and exported.
4. control method according to claim 3 is characterized in that, described automatic tracking and maintenance process comprises: use-case determined property, use-case state are judged, the use-case attribute information upgrades and the operation of state information updating.
5. control method according to claim 4 is characterized in that, described automatic tracking and maintenance process also comprises following concrete steps:
C1, from described management tool module alternative;
Whether C2, to detect described object be use-case, if not and be not to finish sign, then return step C1;
C3 is if use-case and be not to finish sign then detects the executing state of use-case; If the executing state of use-case is executed, then return step C1;
If the executing state of C4 use-case for not carrying out, then empties use-case executing state sign, according to the status information and the attribute information of described executing rule information change use-case.
6. control method according to claim 3 is characterized in that, described step B also comprises:
Operation and flow process that described use-case analytic process also generates the various scenes of product use to be measured and can occur under corresponding scene.
7. control method according to claim 3 is characterized in that, the key element of described use-case comprises: use-case title, use-case content, use-case executing state, use-case attribute.
8. control method according to claim 4 is characterized in that, described use-case attribute information comprises: not by, pass through.
9. control method according to claim 4 is characterized in that, described execution state information comprises: execution, executed.
CN2008101427530A 2008-07-29 2008-07-29 Use case automatic performance control method and device Expired - Fee Related CN101334755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101427530A CN101334755B (en) 2008-07-29 2008-07-29 Use case automatic performance control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101427530A CN101334755B (en) 2008-07-29 2008-07-29 Use case automatic performance control method and device

Publications (2)

Publication Number Publication Date
CN101334755A CN101334755A (en) 2008-12-31
CN101334755B true CN101334755B (en) 2011-04-06

Family

ID=40197364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101427530A Expired - Fee Related CN101334755B (en) 2008-07-29 2008-07-29 Use case automatic performance control method and device

Country Status (1)

Country Link
CN (1) CN101334755B (en)

Also Published As

Publication number Publication date
CN101334755A (en) 2008-12-31

Similar Documents

Publication Publication Date Title
CN102541521B (en) Automatic operating instruction generating device based on structured query language and method
CN104778124B (en) A kind of software application automated testing method
CN103186460B (en) A kind of method, Apparatus and system of generating test use case script
CN104133772A (en) Automatic test data generation method
CN103164328A (en) Method and device and system for regression testing of service function
US20060020921A1 (en) Data cube script development and debugging systems and methodologies
CN106021816B (en) A kind of implementation method of the distributed system behavior simulation analysis tool of Behavior-based control tree
CN103052943A (en) Source code conversion method and source code conversion program
CN100561445C (en) A kind of method and apparatus that generates test data set according to contents of program automatically
CN103605606B (en) A kind of embedded software test use-case batch execution method that can automatically change
US9009175B2 (en) System and method for database migration and validation
CN102915242A (en) Method for implementing code programming by graphical operations
CN104216888A (en) Data processing task relation setting method and system
CN102819492A (en) Keyword driven automatic testing frame on basis of Android
CN101976187A (en) Stack tracing method and device in decompilation process and decompiler
CN104850411A (en) Storage system reference evaluation program generating method and apparatus
CN104778118A (en) Improvement method for automatic testing technology
CN110196720A (en) A kind of Simulink generates the optimization method of dynamic link library
CN113806429A (en) Canvas type log analysis method based on large data stream processing framework
CN114185874A (en) Big data based modeling method and device, development framework and equipment
CN106293687A (en) The control method of a kind of flow process of packing, and device
CN104461864A (en) Java source code defect detecting method and system based on Eclipse plugin
CN103793653A (en) Program dependence relationship analysis method and system based on tree optimization
TWI402705B (en) Method and tool for generating simulation case for ic device
CN116128448B (en) Design data processing method and device for FPGA engineering project and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110406

Termination date: 20170729