Method and device for generating case script based on model automatization

An automatic generation and use case technology, applied in the field of information processing, can solve the problems of use case readability, poor portability, delay in automation period, high development cost, etc., to achieve maintainability, portability, high reusability, and reduce The effect of development costs

Inactive Publication Date: 2009-05-06
HUAWEI DEVICE (SHENZHEN) CO LTD
View PDF0 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, large-scale recording of use cases takes a lot of time, and the readability and portability of use cases are poor, and the cost of recording increases linearly with the increase of products
With the transformation of mobile phones to the mass customization production mode, there will be more and more serialization and customizatio

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating case script based on model automatization
  • Method and device for generating case script based on model automatization
  • Method and device for generating case script based on model automatization

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] An embodiment of the present invention provides a method for automatically generating a use case script based on a model. Refer to the following figure 1 The embodiment of the present invention is described in detail, specifically including the following steps:

[0026] Step S101 models the terminal according to the UI; and

[0027] Step S102 automatically generates a use case script according to the model.

[0028] In the step S101 of modeling the terminal, the menu and buttons of the terminal UI are described in XML language (eXtensible Markup Language). In the step S102 of automatically generating use case scripts according to the model, the terminal UI is first abstracted into different types of controls or applications, and then use case generation rules for the controls are designed, and use case scripts are automatically generated according to the design model and the obtained use case generation rules.

[0029] Through the embodiment of the present invention,...

Embodiment 2

[0031] refer to figure 2 , taking the mobile phone as an example, describe in detail the method of automatically generating use case scripts based on the model. The user interface menu is the user-oriented core of the mobile phone. It directly provides most of the mobile phone functions to the user and directly determines the user experience. In order to get closer to users, the present invention provides a method for automatically generating use case scripts by modeling from the UI level of the mobile phone, specifically including:

[0032] Step S201 uses XML language (eXtensible Markup Language) to describe the menu and buttons of the mobile phone UI;

[0033] Step S202 abstracts the mobile phone UI into different types of controls or applications;

[0034] Step S203 design the use case generation rules of the control; and

[0035] Step S204 automatically generates a use case script according to the design model and use case generation rules.

[0036] refer to image 3...

Embodiment 3

[0043] refer to Figure 6 , is a structural diagram of an embodiment of the device for automatically generating use case scripts based on models in the present invention.

[0044]In this embodiment, a device for automatically generating use case scripts based on a model is provided, the device at least includes a script modeling module and a script generating module, wherein the script modeling module is used to build a terminal according to a graphical user interface model; the script generation module is used to automatically generate use case scripts according to the model. When modeling the terminal, the script modeling module uses XML language (eXtensible Markup Language) or UML language (Unified Modeling Language, Unified Modeling Language) to describe menus and buttons of the terminal UI. The script generation module first abstracts the terminal UI into different types of controls or applications, then designs the use case generation rules of the controls, and automati...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method automatically generating a use case script based on the model, which comprises the steps as follows: a terminal is modeled according to a graphical user interface; and the use case script is automatically generated according to the model. The invention provides a method and a device which can automatically generate the use case script by cellphone software with low cost and quick development and high covering degree as well as high transportability, can obviously lower the development cost of the automatic use case script, effectively improves the transportability and the maintenance of the automatic use case, and provides better economic benefit for the cellphone development and the cellphone test.

Description

technical field [0001] The invention relates to an information processing method, in particular to a method and device for automatically generating a use case script based on a model. Background technique [0002] With the continuous enhancement of mobile phone functions, more customized versions, and shortened market cycles, mobile phone software testing has become more complex and the test cycle has become shorter. Mobile phone software testing automation has become a necessary and important software testing method. [0003] The test cases for mid- and high-end mobile phone software are huge, reaching 3,000 to 6,000, including about 1,500 to 3,000 automated use cases. To effectively carry out automated testing, it is necessary to be able to quickly develop automated use case scripts with low cost and high coverage, while effectively reducing the Use case script maintenance, porting costs. [0004] At present, manual writing of automated test case scripts is widely used, t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44H04W24/00
Inventor 黄小勇
Owner HUAWEI DEVICE (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products