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

Test task operation scheduling method in support of parallel tests

A test task and operation scheduling technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as poor software reusability, difficulty for developers to complete, and tediousness, so as to improve integrity and simplify software The effect of development work

Active Publication Date: 2016-10-12
THE 41ST INST OF CHINA ELECTRONICS TECH GRP
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1) The interaction between the main thread and the test thread is very difficult and cumbersome: it is difficult for the test thread to transmit test progress information and test intermediate data to the main thread, and it is also difficult for the main thread to control the running process of the test thread. There are many techniques for implementing interactive functions Hard problems need to be solved, which is difficult for ordinary developers to complete
[0006] 2) The main thread not only manages the operation control of the test thread, but also realizes the human-computer interaction of the user interface. The management function and the display function are mixed together, which does not conform to the single responsibility principle in the software design pattern, and the readability of the system and very low maintainability
[0007] 3) Poor software reusability: When developing a new parallel test system, it is necessary to develop a test task management function for the information of the test task. Only part of the code can be reused, and the software development efficiency is very low

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 task operation scheduling method in support of parallel tests
  • Test task operation scheduling method in support of parallel tests
  • Test task operation scheduling method in support of parallel tests

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0044] The flow chart of task scheduling is as follows: Figure 4 shown, including the following steps:

[0045] Step 101: When the user starts the test, the task scheduling table needs to be accessed first;

[0046] Step 102: Determine whether the task scheduler is empty:

[0047] If the task scheduling table is empty, it means that the user interface has not passed the task scheduling table, and the system will report an error and exit the operation;

[0048] Step 103: judging whether the column number of the task scheduling table is zero;

[0049] If the number of columns in the task scheduling table is zero, it means that there is no task test item information in the task scheduling table, and it is an empty scheduling table, and an error will be reported and the operation will exit.

[0050] Step 104: The column index of the task scheduling table is cleared, and the first column of the task scheduling table is accessed.

[0051] The first column of the task scheduling...

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 test task operation scheduling method in support of parallel tests. The method is based on a user interface and a task scheduling table. Test tasks are stored in the task scheduling table column by column. For any one behavior test task item in any one column, the method comprises the steps of accessing the task scheduling table; establishing a column index and setting the initial value of the column index to be a starting column; accessing and starting test tasks corresponding to the column index of the task scheduling table, and starting the test task items corresponding to the column index line by line; establishing communication intermediary objects, calling the test task items in the step 3 in an asynchronous calling mode, and transmitting the communication intermediary objects to the test task items; finishing the test task items; and adding the column index up with one, and returning to the step 3 until the number of the column indexes is equal to the total column number of the task scheduling table. The method has the advantages that through adoption of a synchronization method of calling the test tasks asynchronously, many inherent complicated problems in multi-thread design are hidden; moreover, the advantages of a multi-thread application are exerted; and the software development work is simplified.

Description

technical field [0001] The invention relates to the field of automatic testing, in particular to a test task operation scheduling method supporting parallel testing. Background technique [0002] At present, common parallel test systems adopt a multi-thread structure, that is, multiple test threads are executed simultaneously in one process, and parallel test tasks are completed by switching between threads. During the execution of these test tasks, problems such as competition and deadlock often occur due to limitations in test resources and priority constraints, and test threads cannot run completely in parallel. This requires scheduling the execution of these test tasks so that they run in an orderly manner. Execution scheduling of test tasks is the core problem of parallel test system, which is directly related to the performance and reliability of parallel test system. [0003] Existing parallel test system software often adopts the method of starting a new test task ...

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
CPCG06F11/3688
Inventor 胡宝刚丁志钊纪石勇
Owner THE 41ST INST OF CHINA ELECTRONICS TECH GRP
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