Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, device and system for converting a testing and test control notation version 3 (TTCN-3) script into a Java source code

A source code and script technology, applied in the field of converting TTCN-3 scripts into Java source codes, can solve the problem of high price

Active Publication Date: 2013-02-13
ISOFT INFRASTRUCTURE SOFTWARE
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The currently known compilers are all commercial compilers, which are expensive. Although they are powerful, in actual situations, the compiler does not need to support the complete TTCN-3 syntax

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, device and system for converting a testing and test control notation version 3 (TTCN-3) script into a Java source code
  • Method, device and system for converting a testing and test control notation version 3 (TTCN-3) script into a Java source code
  • Method, device and system for converting a testing and test control notation version 3 (TTCN-3) script into a Java source code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

[0059] figure 1 The general execution flow of converting TTCN-3 script files (*.ttcn) into Java source code files described in the present invention is given. This process first needs to build a translator for TTCN-3 script files, which can convert TTCN-3 script files into a Java source code file.

[0060] Then build the support library needed to run the Java source code, the support library implements the basic class referenced in the translation, compile the Java source code generated by the translation through a Java compiler, and execute the Java source code generated by the translation.

[0061] Among them, the translator is an important unit for converting TTCN-3 script files to Java source code files; specifically, the translator needs to include the following functions:

[0062] (1) Perform lexical analysis and syntax analysis on all T...

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 discloses a method, a device and a system for converting a testing and test control notation version 3 (TTCN-3) script into a Java source code so as to compile the TTCN-3 script. According to the method, a translator of the TTCN-3 script is constructed, analyzes and verifies a test object file, and then translates the TTCN-3 script into a Java file according to predefined translation rules. A Java runtime support library is constructed according to the translation rules of the translator, supports the foundation classes quoted in a translation scheme, and completes the execution of the code generated by translation and the recording of the execution results. The complete Java source code in accordance with a TTCN-3 semanteme can be acquired through the integration of the code translated by the translator and the code of the runtime support library. By the method, the process of the design of an interlanguage by a compiler and the optimization of the object code is eliminated; and moreover, the method is simple and convenient to implement, and allows self-customization of the grammar range of translation.

Description

technical field [0001] The invention relates to the field of computer script compilation, in particular to a method and device for converting TTCN-3 scripts into Java source codes. Background technique [0002] TTCN-3 (Testing and Test Control Notation version 3, Test and Test Control Notation-3), is an internationally standardized test development programming language dedicated to various tests. Typical application areas are system testing, interaction testing, protocol testing, business testing, service testing, module testing, etc. For example, mobile and Internet protocol testing can be carried out through TTCN-3, platform-based CORBA (Common Object Request Broker Architecture, public object request broker architecture) testing, API (Application programming interface application programming interface,) testing and for describing AUTOSAR (Automotive Open Systems Architecture, Automotive OpenSystems Architecture) standard basic software module compliance testing and so on...

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/45
Inventor 周毅邹志斌李璐璐冉正
Owner ISOFT INFRASTRUCTURE SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products