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

Test method and system of software development tool

A technology of software development tools and testing methods, applied in the direction of software testing/debugging, etc., can solve problems such as spending a lot of time and manpower, no need to modify method testing, and difficult implementation of test scripts, so as to reduce costs, improve efficiency, The effect of shortening the time

Active Publication Date: 2010-10-20
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, the following problems exist in building test sets directly with open source software projects: (1) test scripts can be written directly for a certain project to complete the test, but because the source files of different projects have different organizational structures and dependencies, common Because the test scripts of multiple projects are not easy to realize; (2) The construction mechanism description files of open source software projects are generally created, modified and organized along with the development of the project, so its content and distribution method are closely related to the program project. The general modification method makes it meet the needs of testing; (3) For large-scale open source software projects, the number of project construction mechanism description files is huge, and it takes a lot of time and manpower to modify one by one; (4) This mechanism serves project compilation, and The progress control of source program analysis and error detection is not the same as that of compilation, so this mechanism cannot be directly used for testing program analysis and detection tools

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
  • Test method and system of software development tool
  • Test method and system of software development tool
  • Test method and system of software development tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0136] The present invention is illustrated below by setting up a black-box test program set comprising an open source software project on the Linux operating system as an example.

[0137] The test set framework contains three subdirectories, progs, modules, and results, which are used to store open source software projects, modules, and logs respectively. Modules include command processing shared module shared_adapter.py, replay driver module build.py, command processing independent module sendmail_adapter.py, breakpoint execution module inc_adapter.py, test report generation module report.py, and test configuration file config.py . Each module is written in python (a dynamic programming language for interpretation and execution), and corresponds to a program file with a .py suffix.

[0138] The interface specification includes the following interfaces:

[0139] enter_dir: Adjust and execute directory change commands to enter a specific directory.

[0140] exit_dir: Adjust ...

Embodiment approach

[0236] The command processing shared module is also used to replay the build process and record failed test commands into the breakpoint record file.

[0237] The replay driver module is also used to read the breakpoint record file, sequentially obtain the build command of the open source software project performing single-step operation from the breakpoint record file, form a build command stream, and call the breakpoint execution module.

[0238] The breakpoint execution module is used to convert the build command stream into a test command stream according to the modification method, and call the command processing shared module to execute the test command to replay and monitor the build process.

[0239] The organizational structure of the test set created in the specific embodiment of the present invention is as attached Image 6 As shown, the semantics of each shape in the figure complies with the component diagram specification of the unified modeling language UML, wher...

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 relates to a test method and a system of a software development tool. The method comprises the following steps that: 1. a configuring module obtains and stores a construction command of an open source software item, and stores the configured modification mode on the construction command; 2. a test execution module reads the stored construction command, and modifies the construction command stream according to the configuration modification mode for converting the construction command stream into a test command stream; 3. the test execution module invokes the software developmenttool to be tested for executing the test command stream for carrying out construction process replay; and 4. the test execution module monitors the construction process replay, and a test report generation module generates a test report according to the monitoring results output by the test execution module. The invention can improve the test efficiency on the software development tool.

Description

technical field [0001] The invention relates to the field of software development, in particular to a testing method and system of a software development tool. Background technique [0002] Software development tools, such as advanced compilers, program static analysis and error detection tools, use the source program as input data, and complete functions such as compilation and program analysis by processing the source program. In the development process of such software development tools, black box testing is widely used. The use of black-box testing requires the use of a large number of test cases in the testing process of software development tools. Since such software development tools take source programs as input, there are a large number of existing open source software projects that are natural candidates for test sets. However, open source software projects cannot be directly applied to testing. [0003] Usually, the program size of an open source software proje...

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 Applications(China)
IPC IPC(8): G06F11/36
Inventor 霍玮丁兆伟于洪涛李丰陈聪明王雪张兆庆冯晓兵
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
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