An automatic testing method and system based on state transition

A technology of automatic testing and state migration, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as lack of standardization of test scripts, difficult test process scheduling management, and difficulty in writing, so as to achieve simple and easy-to-use scripts Writing methods, improving script writing efficiency, and logically clear effects

Active Publication Date: 2021-08-03
CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 1. The scripts of the automatic test system of the existing wireless block center are directly written in script language, requiring testers to be proficient in script programming, which is difficult to write
[0008] 2. The existing automatic test system of the wireless block center uses a text editor to directly edit the script when writing the script, which cannot provide a visual script editing interface
[0009] 3. At present, the automatic test system of the wireless block center cannot provide real-time feedback on the execution of the script during the test process, and can only view the test results through the test log after the test is completed.
[0010] The present invention mainly aims at the lack of standardization of test scripts in the prior art, so that it is difficult to finely schedule and manage the test process, and proposes a new solution

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
  • An automatic testing method and system based on state transition
  • An automatic testing method and system based on state transition
  • An automatic testing method and system based on state transition

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0103] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0104] The embodiment of the present invention provides an automatic testing method based on state transition, comprising the following steps:

[0105] Obtain a test script, the test script includes one or more state elements, and the state elements are used to represent test actions and state transition relationships;

[010...

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 present invention provides an automatic test method and system based on state transition, the method includes the following steps: obtaining a test script, the test script includes one or more state elements, and the state elements are used to represent test actions and state transition relationships; Parse the test script, convert the state elements into state objects, store the state objects in the state object list; execute automatic testing, including: obtain at least one state object from the state object list as the current state object, and execute the corresponding state object according to the current state object Test action: Migrate the current state object to other state objects in the state object list according to the specified conditions, and continue to perform automatic testing based on the switched current state object. By standardizing the test script and the corresponding object list, it is possible to realize the fine-grained control, scheduling and management of the test process with related relationships, which facilitates comprehensive and real-time grasp of the test execution situation, and reduces the difficulty of editing test scripts.

Description

technical field [0001] The invention belongs to the field of automatic testing, in particular to an automatic testing method and system based on state transition. Background technique [0002] In recent years, in order to meet the needs of the rapid development of passenger dedicated lines and high-speed railways, my country has used the European ETCS standard for reference and proposed the China Train Operation Control System (CTCS) based on my country's national conditions. The Raid Block Center (RBC) is the most critical equipment in the ground equipment of the CTCS-3 (Chinese Train Control System Level 3, China Train Operation Control System Application Level 3) train control system. It is obtained by interacting with other external ground systems The line information and train location information generate safety control commands, calculate the movement authority (MA), and transmit it to the train through the GSM-R (GSM For Railway) wireless network, so as to realize th...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 曹雅鑫崔岩彭栋张玙韩兴邦王振辉
Owner CRSC RESEARCH & DESIGN INSTITUTE GROUP 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