[go: up one dir, main page]

CN101098359B - Time sharing test approach for tester - Google Patents

Time sharing test approach for tester Download PDF

Info

Publication number
CN101098359B
CN101098359B CN2006100904622A CN200610090462A CN101098359B CN 101098359 B CN101098359 B CN 101098359B CN 2006100904622 A CN2006100904622 A CN 2006100904622A CN 200610090462 A CN200610090462 A CN 200610090462A CN 101098359 B CN101098359 B CN 101098359B
Authority
CN
China
Prior art keywords
test
measurand
time
current
tester
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2006100904622A
Other languages
Chinese (zh)
Other versions
CN101098359A (en
Inventor
傅佳芳
黄一川
汪步江
高延玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Huabo Enterprise Management Consulting Co ltd
Electric Power Research Institute of State Grid Xinjiang Electric Power Co Ltd
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2006100904622A priority Critical patent/CN101098359B/en
Publication of CN101098359A publication Critical patent/CN101098359A/en
Application granted granted Critical
Publication of CN101098359B publication Critical patent/CN101098359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

本发明公开了一种用于测试仪的分时测试方法,包括,根据被测对象的测试特性和方法,将被测对象的测试流程分成相对独立且存在一定次序的测试项;将上位机软件处理时间分片,在单个时间片内,上位机只与一个下位机进行通讯,依次完成所有下位机通讯,如此循环,直至所有的被测对象测试完成;上位机软件查询到所有的被测对象都测试完成,测试结束,退出测试程序。采用本发明所述方法,与传统测试仪一次测试一个被测对象比较,通过分时测试,充分利用上位机性能,与多个下位机进行交互,同时完成多个被测对象,提高了测试效率;分时测试充分利用了测试仪资源,降低了测试仪成本。

Figure 200610090462

The invention discloses a time-sharing testing method for a tester, comprising: according to the testing characteristics and methods of the testing object, dividing the testing process of the testing object into relatively independent testing items with a certain order; Processing time slicing, in a single time slice, the upper computer communicates with only one lower computer, and completes all the lower computer communications in turn, and so on, until all the tested objects are tested; the upper computer software queries all the tested objects All tests are completed, the test is over, and the test program is exited. Using the method of the present invention, compared with the traditional tester testing one object at a time, through the time-sharing test, the performance of the upper computer is fully utilized to interact with multiple lower computers, and simultaneously complete multiple measured objects, which improves the test efficiency. ; The time-sharing test makes full use of the tester resources and reduces the cost of the tester.

Figure 200610090462

Description

一种用于测试仪的分时测试方法 A time-sharing test method for tester

技术领域technical field

本发明涉及一种自动测试方法,特别涉及通讯测试仪中对多个被测对象进行测试的方法。The invention relates to an automatic test method, in particular to a method for testing multiple measured objects in a communication tester.

背景技术Background technique

目前大多数自动化测试仪,采用上位机一下位机两层结构,完成对被测对象的测试和测量。上位机一般由计算机和测试监控软件组成,完成测试流程的生成和控制、测试数据信息的存取和显示,以及与用户进行交互操作等功能;下位机则是由具备一定处理能力的专用测试硬件设备或仪表组成。测试仪上位机通过某些通讯接口,按照一定的通讯协议,实现与下位机的交互通讯,也可通过其他接口对测试仪下位机直接进行操作。被测对象是在测试仪下位机的直接控制下进行测试的,一般不会与上位机直接交互。At present, most automated testers adopt a two-layer structure of upper computer and lower computer to complete the test and measurement of the measured object. The upper computer is generally composed of a computer and test monitoring software, which completes the generation and control of the test process, the access and display of test data information, and the interactive operation with the user; the lower computer is composed of special test hardware with certain processing capabilities. equipment or instruments. The upper computer of the tester realizes interactive communication with the lower computer through certain communication interfaces according to a certain communication protocol, and can also directly operate the lower computer of the tester through other interfaces. The tested object is tested under the direct control of the lower computer of the tester, and generally does not directly interact with the upper computer.

一般地,在某个时刻,测试仪只能对一个被测对象进行测试或测量。传统的测试方法是:首先将被测对象置于测试仪环境中,然后测试仪上位机启动测试程序,将所有的测试流程分成多个相对独立测试项,并依次执行。上位机每执行一个测试项,都是通过对下位机发送测试命令或进行直接操作,由下位机对被测对象进行实际测试,上位机就处于等待状态。当该项测试完成后,由下位机将测试数据返回到上位机,上位机判断测试数据后保存测试结果,进入下一测试项的测试,直至所有测试项都完成。Generally, at a certain moment, the tester can only test or measure one object under test. The traditional test method is: first place the object under test in the environment of the tester, then the upper computer of the tester starts the test program, divides all the test processes into multiple relatively independent test items, and executes them sequentially. Every time the upper computer executes a test item, it sends a test command to the lower computer or performs direct operation, and the lower computer performs the actual test on the measured object, and the upper computer is in a waiting state. When the test is completed, the lower computer will return the test data to the upper computer, and the upper computer will save the test results after judging the test data, and enter the next test until all the test items are completed.

上述测试仪及其测试方法能够满足目前多数情况的需求,但在某些情况下,由于被测对象的特性,使用上述方法进行操作的效率很低。如CDMA基站系统的时钟单板,其测试流程包括程序下载、自动参数设置、TOD状态等测试项,这些测试项的耗时较长,采用上述测试方法对该板进行测试,总共需要两小时左右。分析CDMA基站时钟单板的测试过程,大部分测试项并不需要上位机一直对其操作,如TOD测试项,上位机下发测试命令给下位机,下位机开始测试,在后续TOD实际测试过程中已不再需要上位机的参与,上位机只需在指定的时间下发命令给下位机,查询测试是否完成并获得测试数据即可。所以在整个测试过程中,上位机有效参与测试的时间非常短,大多数过程是处于空闲状态。The above-mentioned tester and its test method can meet the needs of most current situations, but in some cases, due to the characteristics of the object to be tested, the efficiency of using the above-mentioned method is very low. For example, the clock single board of the CDMA base station system, its test process includes test items such as program download, automatic parameter setting, TOD status, etc. These test items take a long time. Using the above test method to test the board will take about two hours in total . Analyze the test process of the CDMA base station clock single board. Most of the test items do not require the host computer to operate on it all the time. For example, the TOD test item, the host computer sends a test command to the lower computer, and the lower computer starts the test. In the subsequent TOD actual test process No longer need the participation of the host computer, the host computer only needs to send commands to the lower computer at the specified time, check whether the test is completed and obtain the test data. Therefore, during the whole test process, the time for the upper computer to effectively participate in the test is very short, and most of the processes are in an idle state.

对于类似的被测对象,采用上述的测试方法,在某个时刻,测试仪只能测一个被测对象,效率非常低,而且也不能充分利用测试仪的资源。For similar measured objects, with the above-mentioned testing method, at a certain moment, the tester can only test one tested object, which is very inefficient and cannot make full use of the resources of the tester.

发明内容Contents of the invention

本发明的目的是为了提供一种利用分时特性,可同时对多个被测对象进行测试的方法,解决了传统测试仪在面对某些被测对象时测试效率低、资源利用率低的问题,明显提高了测试效率,提高了测试仪的利用率。The purpose of the present invention is to provide a method for testing multiple measured objects at the same time by using the time-sharing feature, which solves the problem of low test efficiency and low resource utilization of traditional testers when facing some measured objects. Problems, significantly improve the test efficiency, improve the utilization rate of the tester.

本发明所述用于测试仪的分时测试方法的核心思想是:建立一套上位机和多套下位机,每个下位机相互独立,而且只对一个被测对象进行操作,上位机可以与各个下位机进行双向通讯。将测试仪上位机的处理时间分割成细微的时间片,在一个时间片内,上位机只与一个下位机进行相互通讯,在下一个时间片,上位机与另外一个下位机通讯,直到与所有下位机都完成至少一次通讯。依此顺序,上位机与所有下位机进行通讯,直至完成所有被测对象的测试工作。The core idea of the time-sharing test method used for testers in the present invention is: set up a set of upper computer and multiple sets of lower computers, each lower computer is independent of each other, and only operates on one measured object, the upper computer can be connected with Each lower computer carries out two-way communication. Divide the processing time of the upper computer of the tester into fine time slices. In one time slice, the upper computer only communicates with one lower computer. In the next time slice, the upper computer communicates with another lower computer until it communicates with all lower computers. The machine has completed at least one communication. In this order, the upper computer communicates with all the lower computers until the testing of all the objects under test is completed.

本发明具体是这样实现的:The present invention is specifically realized like this:

一种用于测试仪的分时测试方法,包括如下步骤:A time-sharing testing method for a tester, comprising the steps of:

步骤1、根据被测对象的测试特性和方法,将被测对象的测试流程分成相对独立且存在一定次序的测试项;Step 1. According to the test characteristics and methods of the test object, the test process of the test object is divided into relatively independent test items with a certain order;

步骤2、将上位机软件处理时间分片,在单个时间片内,上位机只与一个下位机进行通讯,依次完成所有下位机通讯,如此循环,直至所有的被测对象测试完成;Step 2. Slice the software processing time of the upper computer. In a single time slice, the upper computer only communicates with one lower computer, and completes all the lower computer communications in turn, and so on, until all the tested objects are tested;

步骤3、上位机软件查询到所有的被测对象都测试完成,测试结束,退出测试程序。Step 3. The host computer software inquires that all the tested objects have been tested, and the test is finished, and the test program is exited.

所述上位机软件由测试模块和支撑软件组成,The host computer software is composed of a test module and supporting software,

所述测试模块完成与测试业务相关的功能,所述支撑软件则完成辅助的功能;The test module completes functions related to the test business, and the support software completes auxiliary functions;

所述下位机是具有处理能力的专用测试硬件设备或测试仪表;The lower computer is a special test hardware device or a test instrument with processing capability;

所述上位机软件发出测试命令,所述下位机和被测对象完成测试。The upper computer software issues a test command, and the lower computer and the object under test complete the test.

所有的被测对象的测试并不一定同步,各个被测对象测试项是独立的;允许在测试过程中随时加入新的被测对象,进入轮流测试;每个时间片会执行一个被测对象的一个测试项,但一个测试项有可能在前后多个时间片里进行测试。The tests of all the tested objects are not necessarily synchronized, and the test items of each tested object are independent; it is allowed to add new tested objects at any time during the test process, and enter the test in turn; each time slice will execute a tested object A test item, but a test item may be tested in multiple time slices before and after.

所述步骤2的测试过程中,分时是在上位机软件中实现,时间片动态分配,每个时间片的时间大小不定,具体步骤如下:In the test process of described step 2, time-sharing is to realize in upper computer software, and time slice is allocated dynamically, and the time size of each time slice is indefinite, and concrete steps are as follows:

1、开始当前时间片,获得当前被测对象,并读取当前待测测试项;1. Start the current time slice, obtain the current tested object, and read the current test item to be tested;

2、执行当前被测对象的当前测试项;2. Execute the current test item of the current object under test;

3、当前测试项返回后,保存测试项数据,结束当前时间片;3. After the current test item returns, save the test item data and end the current time slice;

4、跳到下一个被测对象,分配新的时间片进行测试,转入1,直至所有的被测对象测试完成。4. Jump to the next tested object, allocate a new time slice for testing, and turn to 1 until all the tested objects are tested.

当用户开始测试时,在上位机软件中创建独立的测试线程;When the user starts the test, create an independent test thread in the host computer software;

测试线程启动后,根据测试仪得到的实际被测对象信息,创建和更新测试对象数据,上位机软件为每个被测对象创建一个软件数据结构;After the test thread is started, create and update the test object data according to the actual measured object information obtained by the tester, and the host computer software creates a software data structure for each tested object;

被测对象数据将被包含在一定的容器里。The measured object data will be contained in a certain container.

所述时间片的时间大小不定,由测试项的测试函数的定义决定,整个测试过程是由时间片组成的;The time size of the time slice is indefinite, determined by the definition of the test function of the test item, and the whole test process is composed of time slices;

在每个时间片内,In each time slice,

首先从保存被测对象的容器中找到当前被测对象,该对象数据中的测试位置指示了实际的被测对象,再从对象数据中获得当前测试项信息;First find the current tested object from the container that stores the tested object, the test position in the object data indicates the actual tested object, and then obtain the current test item information from the object data;

根据当前测试项信息,调用实现测试项的测试函数,进行实际的测试,当函数返回后,将当前测试结果保存在测试对象数据中,当前时间片结束;According to the current test item information, call the test function that implements the test item to perform the actual test. When the function returns, save the current test result in the test object data, and the current time slice ends;

在紧接着下一个时间片中,在容器中找到下一个被测对象,重复上述测试,直至所有的被测对象都已经完成,则结束整个测试。In the next time slice, find the next object under test in the container, repeat the above test until all the objects under test have been completed, then end the whole test.

所述测试项的测试函数返回中有三种类型,分别是测试成功、测试失败或挂起;There are three types in the test function return of the test item, which are test success, test failure or suspension;

当所述函数返回测试成功或失败时,说明该测试项已经完成,不仅将保存测试结果,也将根据测试项定义,找到下一个测试项信息并设为当前测试项,待被测对象得到的下一个时间片执行;When the function returns test success or failure, it means that the test item has been completed. Not only will the test result be saved, but also the next test item information will be found and set as the current test item according to the test item definition. Execute in the next time slice;

当函数返回测试挂起时,说明该测试项尚未完成,依旧保存当前测试项信息,待被测对象得到的下一个时间片执行。When the function returns that the test is suspended, it means that the test item has not been completed, and the current test item information is still saved, and it will be executed in the next time slice obtained by the tested object.

采用本发明所述方法,具备以下优点:Adopt method of the present invention, possess following advantage:

1、与传统测试仪一次测试一个被测对象比较,通过分时测试,充分利用上位机性能,与多个下位机进行交互,同时完成多个被测对象,提高了测试效率;1. Compared with the traditional tester that tests one object at a time, through the time-sharing test, the performance of the upper computer is fully utilized, interacting with multiple lower computers, and completing multiple tested objects at the same time, which improves the test efficiency;

2、与传统测试仪比较,分时测试充分利用了测试仪资源,降低了测试仪成本。2. Compared with the traditional tester, the time-sharing test makes full use of the tester resources and reduces the cost of the tester.

附图说明Description of drawings

图1是本发明具体实施的流程图。Fig. 1 is a flow chart of the specific implementation of the present invention.

具体实施方式Detailed ways

下面结合附图对技术方案的实施作进一步的详细描述:Below in conjunction with accompanying drawing, the implementation of technical scheme is described in further detail:

采用该发明,测试仪的上位机软件一般由测试模块和支撑软件组成,测试模块完成与测试业务相关的功能,支撑软件则完成辅助的功能,如界面显示、数据存取等。With this invention, the upper computer software of the tester generally consists of a test module and support software. The test module completes functions related to the test business, and the support software completes auxiliary functions, such as interface display and data access.

一般地,上位机软件发起测试命令,但实际的测试是由下位机和被测对象完成的。下位机是具有处理能力的专用测试硬件设备或者测试仪表,能够和被测对象相互配合完成真正的测试。在进行并行测试时,下位机资源支持同时对若干被测对象进行测试。Generally, the upper computer software initiates the test command, but the actual test is completed by the lower computer and the object under test. The lower computer is a special test hardware device or test instrument with processing capability, which can cooperate with the measured object to complete the real test. During parallel testing, the resources of the lower computer support simultaneous testing of several objects under test.

在CDMA基站时钟单板的测试中,下位机通过唯一的串口与上位机进行通讯,接受上位机下发的测试命令进行测试,或对下发的查询指令进行回答;同时,下位机和各被测单板一起组成实际进行测试的子系统,它们能够同时进行测试。In the test of the CDMA base station clock single board, the lower computer communicates with the upper computer through the only serial port, accepts the test command issued by the upper computer for testing, or responds to the issued query command; at the same time, the lower computer and each slave The test boards together form the subsystems that are actually tested, and they can be tested at the same time.

具体的步骤如下:The specific steps are as follows:

一、将被测对象的测试流程分割成有前后顺序关系的一系列测试项1. Divide the test process of the object under test into a series of test items with a sequential relationship

根据被测对象的测试特性和方法,首先将被测对象的测试流程分成多个测试项。According to the test characteristics and methods of the object under test, the test process of the object under test is firstly divided into multiple test items.

如根据CDMA基站时钟单板的测试方法和特性,将测试流程划分成相对独立且存在一定次序的测试项,包括程序下载、自动参数设置、TOD状态测试等测试项,这些测试项的具体测试过程由测试动态链接库文件中的函数来实现。For example, according to the test method and characteristics of the CDMA base station clock single board, the test process is divided into relatively independent test items with a certain order, including test items such as program download, automatic parameter setting, and TOD status test. The specific test process of these test items It is realized by testing the functions in the dynamic link library file.

这些测试项的大多数测试过程都是由上位机下发测试命令给下位机,下位机开始测试并给上位机回应,然后上位机不时的下发命令查询测试是否完成,下位机则将当前测试情况返回给上位机,直到上位机下发命令查询到测试已完成且获得测试结果为止。Most of the test process of these test items is that the upper computer sends test commands to the lower computer, the lower computer starts the test and responds to the upper computer, and then the upper computer sends commands from time to time to check whether the test is completed, and the lower computer will The current test The situation is returned to the host computer until the host computer issues a command to inquire that the test has been completed and the test result is obtained.

这些测试项的完成并不是在一次测试完成,如TOD状态测试,整个测试过程需要30分钟,都是在轮流测试中的多个时间片完成的。The completion of these test items is not completed in one test, such as the TOD state test, the entire test process takes 30 minutes, and is completed in multiple time slots in the test in turn.

二、将上位机处理时间分片,在一个时间片内,上位机只与一个下位机进行通讯,依次完成所有下位机通讯,如此循环,直至所有的被测对象测试完成。2. Divide the processing time of the upper computer into slices. In one time slice, the upper computer only communicates with one lower computer, and completes the communication of all lower computers in turn, and so on, until all the tested objects are tested.

所述步骤二的测试过程中,分时是在上位机软件中实现,时间片动态分配,每个时间片的长短可不定。具体步骤如下:In the test process of said step 2, the time-sharing is realized in the host computer software, and the time slices are allocated dynamically, and the length of each time slice can be variable. Specific steps are as follows:

1、开始当前时间片,获得当前被测对象,并读取当前待测测试项;1. Start the current time slice, obtain the current tested object, and read the current test item to be tested;

2、执行当前被测对象的当前测试项;2. Execute the current test item of the current object under test;

3、当前测试项返回后,保存测试项数据,结束当前时间片;3. After the current test item returns, save the test item data and end the current time slice;

4、跳到下一个被测对象,分配新的时间片进行测试,转入步骤1,如所有被测对象所有测试项都已完成,则跳出轮流测试。4. Jump to the next tested object, allocate a new time slice for testing, and go to step 1. If all the test items of all the tested objects have been completed, jump out of the test in turn.

上述步骤并不要求同步所有的被测对象的测试,各个被测对象测试项是独立的;允许在测试过程中随时加入新的被测对象,进入轮流测试;每个时间片会执行一个被测对象的一个测试项,但一个测试项有可能在前后多个时间片里进行测试。The above steps do not require synchronizing the tests of all tested objects, each tested object test item is independent; it is allowed to add new tested objects at any time during the test process, and enter the test in turn; each time slice will execute a tested object A test item of the object, but a test item may be tested in multiple time slices before and after.

当用户开始测试时,在上位机软件中创建独立的测试线程。不管被测对象有多少个,都只使用同一个测试线程进行测试。测试线程启动后,根据测试仪得到的实际被测对象信息,创建或更新测试对象数据。上位机软件为每个测试对象创建一个软件数据结构,包含了被测对象的ID、测试位置、当前测试项等信息。这些测试对象数据将被包含在一定的容器里,如数组、链表等,以便在测试后续过程,利用容器快速定位和处理指定的被测对象。When the user starts the test, an independent test thread is created in the host computer software. No matter how many objects are tested, only the same test thread is used for testing. After the test thread is started, create or update the test object data according to the actual measured object information obtained by the tester. The host computer software creates a software data structure for each test object, which contains information such as the ID of the tested object, the test location, and the current test item. These test object data will be contained in a certain container, such as an array, a linked list, etc., so that in the subsequent test process, the container can be used to quickly locate and process the specified test object.

如CDMA基站的时钟单板测试仪,在上位机软件中为单板及其相关属性创建了一个类,定义了被测单板测试槽号、当前步骤ID等成员,并为每个实际待测的单板创建该类的对象,这些对象以链表形式保存。For example, the clock single-board tester of a CDMA base station creates a class for the single board and its related attributes in the host computer software, defines the test slot number of the single board under test, the current step ID and other members, and creates a class for each actual test board The single board creates objects of this class, and these objects are saved in the form of a linked list.

当测试开始后,对所有被测对象的所有测试项按照一定的次序轮流测试,执行一个被测对象中其中一个测试项的时间称为时间片,每个时间片的时间大小不定,由测试项的测试函数的定义决定,整个测试过程是由时间片组成的。When the test starts, all test items of all tested objects are tested in turn in a certain order. The time to execute one of the test items in a tested object is called a time slice. The time of each time slice is variable, determined by the test item. The definition of the test function determines that the entire test process is composed of time slices.

在每个时间片内,首先从保存被测对象的容器中找到当前被测对象,该对象数据中的测试位置指示了实际的被测对象,再从对象数据中获得当前测试项信息;根据当前测试项信息,调用实现测试项的函数,进行实际的测试,当函数返回后,将当前测试结果保存在测试对象数据中,当前时间片结束。在紧接着下一个时间片中,在容器中找到下一个被测对象,重复上述测试。每个被测对象的每个测试项都有机会获得时间片进行测试。In each time slice, first find the current measured object from the container that saves the measured object, the test position in the object data indicates the actual measured object, and then obtain the current test item information from the object data; according to the current Test item information, call the function that implements the test item, and perform the actual test. When the function returns, the current test result is saved in the test object data, and the current time slice ends. In the next time slice, find the next object under test in the container, and repeat the above test. Each test item of each tested object has the opportunity to get a time slice for testing.

在新时间即将开始的时刻,上位机软件会对保存在容器中的下一个被测对象首先进行检查,确认其是否已经完成所有测试项的测试,如已经完成,则直接跳过该对象对下一个对象进行操作。如所有的被测对象都已经完成,则结束整个测试。At the moment when the new time is about to start, the upper computer software will first check the next object under test stored in the container to confirm whether it has completed the tests of all test items. An object to operate on. If all the measured objects have been completed, the entire test is ended.

如在CDMA基站时钟单板测试中,假设同时测试多块单板,则测试对象链表包含了对应的多个测试对象。For example, in the CDMA base station clock single board test, assuming that multiple single boards are tested at the same time, the test object linked list includes a plurality of corresponding test objects.

当测试开始时,上位机软件从链表中依次获得当前测试单板,检查该单板的测试标志是否为全部测试完成,如未完成,则读取单板的当前待测测试项数据,根据数据中测试项动态链接库文件名及其测试项函数名,调用相应动态链接库文件中的函数,函数执行并返回后,将测试结果保存在测试流程中。When the test starts, the host computer software obtains the current test board in sequence from the linked list, and checks whether the test flag of the board is all tested. In the test item dynamic link library file name and its test item function name, call the function in the corresponding dynamic link library file, after the function is executed and returned, the test result is saved in the test process.

测试项函数定义了一个测试项的具体测试过程,一般,完成一个测试项只需要执行一次函数,但在某些情况下,需要在前后分隔的多个时间片中多次执行函数才可。在实现中,每个测试项函数返回中有三种类型,分别是测试成功、测试失败或挂起。当函数返回测试成功或失败时,说明该测试项已经完成,不仅将保存测试结果,也将根据测试项定义,找到下一个测试项信息并设为当前测试项,待该单板得到的下一个时间片执行;当函数返回测试挂起时,说明该测试项尚未完成,依旧保存当前测试项信息,待该单板得到的下一个时间片执行。The test item function defines the specific test process of a test item. Generally, it only needs to execute the function once to complete a test item, but in some cases, the function needs to be executed multiple times in multiple time slices separated before and after. In the implementation, there are three types in the return of each test item function, which are test success, test failure or suspension. When the function returns test success or failure, it means that the test item has been completed. Not only will the test result be saved, but also the next test item information will be found and set as the current test item according to the test item definition. Time slice execution; when the function returns to test suspension, it means that the test item has not been completed, and the current test item information is still saved, and it will be executed in the next time slice obtained by the board.

如TOD状态测试函数,该函数将包含上位机发送查询测试是否完成的命令,并等候和分析下位机返回的结果,如返回下位机已测试完成,则该函数返回测试成功或测试失败,如返回下位机仍在测试,则该函数返回测试挂起。所以,在测试TOD状态测试的近半个小时时间内,虽然在多个时间片对该被测单板的TOD状态进行测试,多次调用了该函数,但除了最后获得结果的时间片外,其他情况下该函数均返回测试挂起,当函数返回测试挂起后,说明该测试项尚未测试完成,需要分配后续时间片继续对该测试项进行测试。当前时间片结束后,从测试链表中获得下一个单板,进行上述测试。Such as the TOD status test function, this function will include the command sent by the upper computer to check whether the test is completed, and wait for and analyze the results returned by the lower computer. If the lower computer is still being tested, the function returns that the test is suspended. Therefore, during nearly half an hour of testing the TOD state test, although the TOD state of the tested board was tested in multiple time slices and the function was called many times, except for the time slice where the result was finally obtained, In other cases, the function returns test suspension. When the function returns test suspension, it means that the test item has not been tested, and it is necessary to allocate subsequent time slices to continue testing the test item. After the current time slice ends, the next single board is obtained from the test linked list, and the above test is performed.

在每个新时间片开始,上位机软件会查询当前被测单板是否已经测试完成,如已经完成,则跳到链表中的下一个单板(如当前单板在链表结尾位置,则认为下一单板在链表起始位置),继续判断和测试,直至所有的时钟单板测试完成。At the beginning of each new time slice, the host computer software will query whether the current board under test has been tested. If it has been completed, it will jump to the next board in the linked list (if the current board is at the end of the linked list, it A single board is at the starting position of the linked list), continue to judge and test until all clock single board tests are completed.

三、测试结束,退出程序3. After the test is over, exit the program

当上位机软件查询到所有的被测对象都已经测试完成,则退出轮流测试的循环,并退出测试程序,完成整个测试过程。When the host computer software inquires that all the tested objects have been tested, it exits the cycle of the test in turn and exits the test program to complete the entire test process.

在上述测试实现过程,可以看到在测试进行过程中,可以随时加入新的被测对象。如在CDMA基站时钟单板测试中,加入新的单板,则在上位机软件链表中加入新的测试单板数据,也就加入了轮流测试的过程。并且,由于各单板的测试状态均被链表中对应的测试对象数据所记录,所以各单板的测试进度可以不同步。In the above test implementation process, it can be seen that new objects under test can be added at any time during the test process. For example, in the CDMA base station clock single-board test, if a new single board is added, the new test single-board data will be added to the host computer software linked list, and the process of testing in turn will be added. Moreover, since the test status of each board is recorded by the corresponding test object data in the linked list, the test progress of each board may not be synchronized.

上述方案的被测对象测试的实际测试是由下位机和被测对象共同完成的,它们本身具有并行测试的特性,测试过程虽然需要上位机的干预,但每个被测对象上下位机通讯过程中具有通讯次数少、时间短的特点,而整个测试过程上位机空闲时间较长。所以方案的本质在于充分利用上位机测试单个被测对象时大量空闲时间的特点,将其变成上位机多个被测对象轮流对下位机测试进行通讯的分时测试方案。采用该方法,利用分时特性,将原先测试一个对象的空闲时间用于其它多个对象测试,使得测试效率比传统方法明显提高。The actual test of the measured object test in the above scheme is completed by the lower computer and the measured object. They have the characteristics of parallel testing. Although the test process requires the intervention of the upper computer, the communication process between the upper and lower computers of each measured object It has the characteristics of less communication times and short time, while the idle time of the upper computer is longer during the whole test process. Therefore, the essence of the scheme is to make full use of the characteristics of a large amount of idle time when the host computer tests a single tested object, and turn it into a time-sharing test scheme in which multiple tested objects in the host computer communicate with the lower computer in turn. By adopting this method and using the time-sharing feature, the free time of originally testing one object is used for testing other multiple objects, so that the testing efficiency is obviously improved compared with the traditional method.

上面描述的是一个使用分时测试方法实现多个被测对象的生产测试具体实施例。需要注意该实施例仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明所述方法的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可以做出很多变形,这些均属于本发明的保护之内。What has been described above is a specific embodiment of a production test that uses a time-sharing test method to realize multiple test objects. It should be noted that this embodiment is only illustrative, rather than restrictive. Under the inspiration of the method of the present invention, those skilled in the art can also Many modifications can be made, and these all belong to the protection of the present invention.

Claims (7)

1. a time sharing test approach that is used for tester is characterized in that, comprises the steps:
Step 1, according to the test characteristic and the method for measurand, be divided into the testing process of measurand relatively independent and have the test item of a graded;
Step 2, with upper computer software processing time burst, in single timeslice, host computer only carries out communication with a slave computer, from the container of preserving measurand, find current measurand, test position in this object data has been indicated actual measurand, from object data, obtain current test item information again, according to current test item information, call the test function of realizing test item, carry out actual test, after function returns, current test result is kept in the tested object data, the current time sheet finishes; In next timeslice and then, in container, find next measurand, repeat above-mentioned test, all finish until all measurands;
Step 3, upper computer software inquire all measurands and all test and finish, and EOT withdraws from test program.
2. the time sharing test approach that is used for tester as claimed in claim 1 is characterized in that:
Described upper computer software is made up of test module and support programs,
Described test module is finished the function relevant with test service, and described support programs are then finished auxiliary function;
Described slave computer is special test hardware device or the test instrumentation with disposal ability;
Described upper computer software sends test command, and described slave computer and measurand are finished test.
3. the time sharing test approach that is used for tester as claimed in claim 1 is characterized in that:
The test of all measurands might not be synchronous, and each measurand test item is independently; Permission adds new measurand at any time in test process, enter the wheel current test; Each timeslice can be carried out a test item of a measurand, but a test item might be tested in a plurality of timeslices in front and back.
4. as claim 1 or the 2 or 3 described time sharing test approach that are used for tester, it is characterized in that:
In the test process of described step 2, timesharing is to realize in upper computer software, the timeslice dynamic assignment, and the time size of each timeslice is indefinite, and concrete steps are as follows:
1, beginning current time sheet obtains current measurand, and reads current test item to be measured;
2, carry out the current test item of current measurand;
3, after current test item returns, preserve the test item data, finish the current time sheet;
4, jump to next measurand, distribute new timeslice to test, change 1 over to, finish until all measurand tests.
5. the time sharing test approach that is used for tester as claimed in claim 4 is characterized in that:
When the user begins to test, in upper computer software, create and independently test thread;
After the test thread starts, according to the actual measurand information that tester obtains, create and the refresh test object data, upper computer software is created a software data structure for each measurand;
The measurand data will be comprised in certain container.
6. the time sharing test approach that is used for tester as claimed in claim 4 is characterized in that:
The time size of described timeslice is indefinite, and by the definition decision of the test function of test item, whole test process is made up of timeslice;
7. the time sharing test approach that is used for tester as claimed in claim 6 is characterized in that:
Have three types during the test function of described test item returns, be respectively test successfully, test crash or hang-up;
When returning, described function tests successfully or when failing, illustrate that this test item finishes, not only will preserve test result, also will define according to test item, find next test item information and be made as current test item, treat the next timeslice execution that measurand obtains;
When function returns test and hangs up, illustrate that this test item do not finish as yet, still preserve current test item information, treat that the next timeslice that measurand obtains carries out.
CN2006100904622A 2006-06-27 2006-06-27 Time sharing test approach for tester Active CN101098359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100904622A CN101098359B (en) 2006-06-27 2006-06-27 Time sharing test approach for tester

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100904622A CN101098359B (en) 2006-06-27 2006-06-27 Time sharing test approach for tester

Publications (2)

Publication Number Publication Date
CN101098359A CN101098359A (en) 2008-01-02
CN101098359B true CN101098359B (en) 2011-05-11

Family

ID=39011868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100904622A Active CN101098359B (en) 2006-06-27 2006-06-27 Time sharing test approach for tester

Country Status (1)

Country Link
CN (1) CN101098359B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102076014A (en) * 2011-02-17 2011-05-25 福建邮科通信技术有限公司 Base station identifier monitoring system
CN102818694B (en) * 2011-06-07 2016-08-03 中兴通讯股份有限公司 Veneer light automatic test of indexes method, system and control server
CN102662826B (en) * 2012-03-02 2016-01-20 百度在线网络技术(北京)有限公司 Test bootstrap technique, system and test agent server
CN103763167B (en) 2013-12-25 2016-06-01 京东方科技集团股份有限公司 Communication system and communication method thereof
CN104660465B (en) * 2015-01-30 2018-04-24 深圳市极致汇仪科技有限公司 A kind of more DUT parallel test methods and system
CN111370050B (en) * 2020-03-06 2021-12-03 武汉精鸿电子技术有限公司 Diagnostic calibration system and method for test equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790562A (en) * 1996-05-06 1998-08-04 General Motors Corporation Circuit with built-in test and method thereof
CN1507205A (en) * 2002-12-13 2004-06-23 英业达股份有限公司 Test method for serial communication equipment
CN1553598A (en) * 2003-05-29 2004-12-08 华为技术有限公司 Detecting method and detector for single-board fault
CN1780236A (en) * 2004-11-17 2006-05-31 中兴通讯股份有限公司 General test system and method for telecommunication intelligent service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790562A (en) * 1996-05-06 1998-08-04 General Motors Corporation Circuit with built-in test and method thereof
CN1507205A (en) * 2002-12-13 2004-06-23 英业达股份有限公司 Test method for serial communication equipment
CN1553598A (en) * 2003-05-29 2004-12-08 华为技术有限公司 Detecting method and detector for single-board fault
CN1780236A (en) * 2004-11-17 2006-05-31 中兴通讯股份有限公司 General test system and method for telecommunication intelligent service

Also Published As

Publication number Publication date
CN101098359A (en) 2008-01-02

Similar Documents

Publication Publication Date Title
CN101098359B (en) Time sharing test approach for tester
CN102567203B (en) A kind of method and system of test distributed file system performance
CN104252481B (en) The dynamic check method and apparatus of master-slave database consistency
CN111190810B (en) Method, device, server and storage medium for executing test task
US8584089B2 (en) Virtual computer system, test method, and recording medium
CN103544103A (en) Method and system for test, simulation and concurrence of software performance
CN113742033B (en) Kubernetes cluster federation system and implementation method thereof
CN102035697A (en) Concurrent connections performance testing system and method for file system
US6507809B1 (en) Method and system for simulating performance of a computer system
CN106970880A (en) A kind of distributed automatization method for testing software and system
CN113672441B (en) Method and device for testing intelligent equipment
CN108228407A (en) Apparatus function test method, apparatus and readable storage medium storing program for executing
CN101441592A (en) Test system and method of embedded system
CN110795118A (en) Cloud platform upgrading tool and upgrading method
CN103077135A (en) Test resource management method capable of supporting parallel tests
CN109062820A (en) A kind of software performance testing method and device
CN106201810A (en) A kind of method of testing, device
CN107526636A (en) Resource identification method and device
CN106021100A (en) Test task operation scheduling method in support of parallel tests
CN108647149A (en) Test method, device, system and the storage medium of electronic equipment
CN103973793A (en) Distributed aviation electronic testing system
CN112256588A (en) Resource allocation method for application program test, computer readable storage medium and tester
CN109522217A (en) The internal storage testing method and terminal device of application program
CN115292176A (en) Pressure testing method, device, equipment and storage medium
CN113098730B (en) Method and device for testing a server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: GUANGDONG HUABO ENTERPRISE MANAGEMENT CONSULTING C

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20141102

Owner name: ELECTRIC POWER RESEARCH INSTITUTE, STATE GRID XINJ

Free format text: FORMER OWNER: GUANGDONG HUABO ENTERPRISE MANAGEMENT CONSULTING CO., LTD.

Effective date: 20141102

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 510640 GUANGZHOU, GUANGDONG PROVINCE TO: 830011 URUMQI, XINJIANG UYGUR AUTONOMOUS REGION

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 510640 GUANGZHOU, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20141102

Address after: 830011, 66, lane two, Changchun Middle Road, the Xinjiang Uygur Autonomous Region hi tech Industrial Development Zone (new urban area), Urumqi

Patentee after: ELECTRIC POWER SCIENCES RESEARCH INSTITUTE OF STATE GRID XINJIANG ELECTRIC POWER Co.

Address before: 510640 Guangdong city of Guangzhou province Tianhe District gold Yinglu No. 1 was 1106 room two

Patentee before: GUANGDONG HUABO ENTERPRISE MANAGEMENT CONSULTING Co.,Ltd.

Effective date of registration: 20141102

Address after: 510640 Guangdong city of Guangzhou province Tianhe District gold Yinglu No. 1 was 1106 room two

Patentee after: GUANGDONG HUABO ENTERPRISE MANAGEMENT CONSULTING Co.,Ltd.

Address before: 518057, Guangdong Shenzhen hi tech Industrial Park Nanshan District science and technology south road ZTE building 6 floor of the Ministry of law

Patentee before: ZTE Corp.