CN111984435A - Method and system for executing and debugging test program - Google Patents

Method and system for executing and debugging test program Download PDF

Info

Publication number
CN111984435A
CN111984435A CN202010843365.6A CN202010843365A CN111984435A CN 111984435 A CN111984435 A CN 111984435A CN 202010843365 A CN202010843365 A CN 202010843365A CN 111984435 A CN111984435 A CN 111984435A
Authority
CN
China
Prior art keywords
test
debugging
test program
instrument
test instrument
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.)
Pending
Application number
CN202010843365.6A
Other languages
Chinese (zh)
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.)
China Electronics Technology Instruments Co Ltd CETI
Original Assignee
China Electronics Technology Instruments Co Ltd CETI
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 China Electronics Technology Instruments Co Ltd CETI filed Critical China Electronics Technology Instruments Co Ltd CETI
Priority to CN202010843365.6A priority Critical patent/CN111984435A/en
Publication of CN111984435A publication Critical patent/CN111984435A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosed method and system for executing and debugging test program includes: calling a test program file on line, starting a debugging instruction, and analyzing the test program into a test instrument control instruction; and sending the test instrument control instruction to the test instrument to enable the test instrument to execute the test instrument control instruction. The online test program calling and sending to the test instrument for executing and debugging are realized, the remote execution and debugging of the test program are realized, and the problems of high cost and low efficiency caused by long-term business trip, field development and field debugging of test developers are fundamentally solved.

Description

Method and system for executing and debugging test program
Technical Field
The disclosure relates to a method and a system for executing and debugging a test program.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
A test system is called an Automatic Test System (ATS), which is a system that automatically measures and processes data and displays or outputs test results in a proper manner with little or no human involvement. Compared with manual testing, automatic testing saves time and labor.
The development of automatic test equipment (ATS) has gone through three stages:
(1) special test equipment is adopted.
(2) And connecting related equipment by adopting a standardized General Purpose Interface Bus (GPIB).
(3) The computer and the test equipment are integrated, and computer software is used to replace some hardware functions in traditional equipment, so that the computer can be used to produce excitation, complete test function and generate test program.
In the third stage of ATS development, the problem of integrated control of test instruments is well solved, but in the current society with extremely high degree of networking, the problem becomes a backward component that can only be executed by stand-alone control, and if the test cannot be networked, the test means that the test cannot be compatible with many networking resources, technologies and implementation manners, and even the test cannot be industrially implemented by 4.0.
Thus, some vendors' test software have begun to run from locally developed, locally executed to locally developed, online solutions. Most of the existing solutions utilize local test program development software to develop and debug the test program, a certain upper computer in the network performs online control of the test engine, and a test program execution engine performs final local test execution, wherein the engine is generally stripped from the execution part of the executable program in the third stage.
The solution needs test developers to carry out long-term business trip, field development and field debugging, the personnel cost is high, the debugging efficiency is low, and the local execution of the test program is not beneficial to the sharing of test information and the unified monitoring of the test state and is also not beneficial to the information collection in the test process.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a method and a system for executing and debugging a test program, which can call the test program on line and send the test program to a test instrument for executing and debugging, thereby implementing remote online execution and debugging of the test program, and fundamentally solving the problems of high cost and low efficiency of long-term business trip, field development and field debugging of test developers.
In order to achieve the purpose, the following technical scheme is adopted in the disclosure:
in one or more embodiments, a method for executing and debugging a test program is provided, including:
calling a test program file on line, starting a debugging instruction, and analyzing the test program into a test instrument control instruction;
and sending the test instrument control instruction to the test instrument to enable the test instrument to execute the test instrument control instruction.
Further, the method also comprises the steps of developing the test program on line and storing and generating a test program file.
And further, judging whether a test instrument control instruction executed by the test instrument is in accordance with expectation or not, and debugging the test program.
In one or more embodiments, a debugging system of a test instrument is provided, which includes a server, a test instrument connected with the server;
the server includes:
the display control module is used for managing page display and user control;
the execution control module receives the display control module instruction, calls the Visa library, converts the webpage control instruction into a test instrument control instruction, and sends the test instrument control instruction to the test instrument;
the Visa library converts the webpage control command into a test instrument control command;
and the data cache module is used for storing the edited test program and generating a test program file.
In one or more embodiments, a computer-readable storage medium is provided for storing computer instructions which, when executed by a processor, perform the steps of the method for executing and debugging a test program.
Compared with the prior art, the beneficial effect of this disclosure is:
1. the method for executing and debugging the test program can develop the test program on line, call the test program on line and send the test program to the test instrument for remote debugging, and fundamentally solves the problems of high cost and low efficiency of test developers in long-term business trip, field development and field debugging.
2. According to the system, the Visa library is directly packaged in the server, and a test instrument connected in a network can be remotely controlled without deploying a test station industrial personal computer, so that online development and debugging of a test program are met; and moreover, the online control of the test resources can be carried out without carrying out secondary packaging of the test execution engine, so that the debugging time and the field maintenance time required by test developers are greatly reduced.
3. The system disclosed by the invention does not need to additionally package a communication protocol in a communication link, and further reduces the debugging time and the field maintenance time required by a test developer.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application.
FIG. 1 is a block diagram of a server architecture for the system of the present disclosure;
FIG. 2 is a block diagram of the overall architecture of the system of the present disclosure;
FIG. 3 is a flowchart of the online development of the present disclosure;
FIG. 4 is an online debugging flow diagram of the present disclosure;
fig. 5 is a schematic diagram of a remote online execution of a conventional test program.
The specific implementation mode is as follows:
the present disclosure is further described with reference to the following drawings and examples.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
In the present disclosure, terms such as "upper", "lower", "left", "right", "front", "rear", "vertical", "horizontal", "side", "bottom", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only relational terms determined for convenience in describing structural relationships of the parts or elements of the present disclosure, and do not refer to any parts or elements of the present disclosure, and are not to be construed as limiting the present disclosure.
In the present disclosure, terms such as "fixedly connected", "connected", and the like are to be understood in a broad sense, and mean either a fixed connection or an integrally connected or detachable connection; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present disclosure can be determined on a case-by-case basis by persons skilled in the relevant art or technicians, and are not to be construed as limitations of the present disclosure.
Example 1
Currently, popular automatic test software in the market includes a LabView development environment of national instruments ltd (NI), a TestStudio of the tyranda (Teradyne), a test management tool of the mesoelectronic instruments ltd (TestCenter), and other graphical integrated development tools, and also includes a code level development tool of an interactive C language development platform of the NI (LabWindows/CVI), a microsoft integrated development environment (Visual Studio). In the test development tools, only LabView of an NI company supports Remote control, a data socket network communication technology or a Remote Panel (Remote Panel) technology developed by the NI company is utilized to realize release and sharing of field test data, the data socket technology can realize real-time data transmission, a server end (used for data acquisition and release) and a client end (used for data access, display, storage and the like) are respectively developed, and the design of a Remote test system can be completed; by utilizing the LabView remote panel technology, relevant parameters are required to be set in the LabView, a front panel of a VI on a remote field end computer is opened and operated from a local end computer, or a remote panel on a server is opened through a browser, so that remote testing and control are realized, the LabView-based remote testing system is designed to be suitable for a local area network environment, and a LabView operation library also needs to be installed in the remote testing system.
The Datasocket technology is based on COM and ActiveX of Microsoft, highly encapsulates TCP/IP protocols, and realizes cross-computer, cross-language and cross-process real-time data sharing. The technology does not have cross-operating system characteristics because the COM technology of Microsoft is utilized, and the technology of NI corporation is not open, so that the usability of the technology on other test system software is greatly limited.
LabView of NI company can realize local development, debugging and online execution by using Datasket technology or Remote Panel (Remote Panel) technology, and the solution is only an intermediate turn of the future stage of automatic test, and the online development, debugging and execution state of the test program is the final form of the next stage of automatic test.
Taking a database technology developed by LabView of NI corporation as an example, the technology interacts with a remote end through a package communication layer outside an execution engine of LabView, so as to receive remote control for test execution and test state feedback, as shown in fig. 5, the method can meet the remote online execution of a test program, but cannot meet the online development and debugging of the test program.
As shown in fig. 5, the communication protocol a side is paired with the communication protocol B side for controlling the instrument. The method has the advantages that manufacturers developing the test execution software can separate and independent the test execution engine from the test execution software, the test remote online execution can be realized by combining a communication protocol developed specifically and a server, the development workload is small, the realization is easy, and the Dataskets technology of NI company is realized by the method.
The method can realize the remote online control of the test, but is difficult to carry out the remote online development and debugging of the test.
In order to implement online development, debugging and execution of the test program, the embodiment provides a method for implementing online development, debugging and execution of the test program based on a network, wherein the network communication technology used is not limited to a certain technology, and an upper layer communication protocol based on TCP or UDP extension can be adopted, so that the mutual communication between a network control end and a local execution end can be satisfied.
A method for executing and debugging a test program comprises the following steps:
developing a test program on line, and storing and generating a test program file;
calling a test program file on line, starting a debugging instruction, and analyzing the test program into a test instrument control instruction;
and sending the test instrument control instruction to the test instrument to enable the test instrument to execute the test instrument control instruction.
Further, the method also comprises the following steps: and judging whether the test instrument control instruction executed by the test instrument is in accordance with expectation or not, and debugging the test program.
The process of online development is shown in fig. 3, and includes:
the method comprises the following steps: a user inputs an IP address and a port number of a test instrument on line;
step two: a user edits a test program required by a test instrument through a page;
step three: storing the test program edited by the user to a data cache module;
step four: judging whether a new test instrument is added, if so, skipping to the first step, and if not, executing the fifth step;
step five: and clicking the recording database when saving by the user and generating a test program file.
A process performed online, comprising:
the method comprises the following steps: a user calls a test program file through a page;
step two: starting debugging by a user through a page;
step three: the execution control module calls a Visa library;
step four: the execution control module analyzes the content of the test program into a control instruction of the test instrument, wherein the control instruction comprises a plurality of control statements;
step five: the execution control module sends a control statement to the test instrument through the network;
step six: the test instrument monitors and receives the control statement and executes the control statement;
step seven: and (6) ending.
The process of online debugging comprises the following steps: as shown in fig. 4, includes:
the method comprises the following steps: a user calls a test program file through a page;
step two: starting debugging by a user through a page;
step three: the execution control module calls a Visa library;
step four: the execution control module analyzes the content of the test program into a control instruction of the test instrument, wherein the control instruction comprises a plurality of control statements;
step five: the execution control module sends a control statement to the test instrument through the network;
step six: the test instrument monitors and receives the control statement and executes the control statement, whether the control statement executed by the test instrument meets expectations is judged, if yes, the step four is skipped, and if not, the step seven is skipped;
step seven: and (6) ending.
Compared with the online debugging process, the online execution process only calls a test program online and sends the test program to a test instrument for execution; without making a determination as to whether the test procedure performed by the test instrument is as expected.
The debugging method in the embodiment realizes remote online calling of the test program for debugging execution and online development of the test program, fundamentally solves the problems of high cost and low efficiency of long-term business trip, field development and field debugging of test developers, improves the development efficiency of the test program, improves the test monitoring and information sharing degree, and is convenient for information collection in the test process.
Example 2
In this embodiment, a debugging system of a test instrument is disclosed, as shown in fig. 2, including a server, and a test instrument connected to the server.
The server is composed of a display control module, an execution control module and a data cache module, wherein the execution control module calls the Visa library, as shown in fig. 1, specifically:
the display control module is used for managing webpage display and user control, and a user edits the test program and calls the test program through the display control module;
the execution control module receives the display control module instruction, calls the Visa library, converts the webpage control instruction into a test instrument control instruction, and sends the test instrument control instruction to the test instrument;
and the data cache module is used for collecting, summarizing, storing and analyzing data, storing the edited test program and generating a test program file.
The display control module, the execution control module and the data cache module have different processes and cooperation relations aiming at development, debugging and execution of the test program.
The test instrument comprises two types, one type is that the test instrument is completely controlled by a network (LAN), the other type is that the test instrument is not completely controlled by the network (LAN), wherein the controlled instrument by the network can directly receive a control instruction sent by a server through the network, but is not controlled by the network, the controlled instrument is required to be connected with a conversion terminal through a bus, the conversion terminal receives the control instruction sent by the server through the network, the control instruction received through the network is converted to a corresponding bus, and the converted instruction is sent to the controlled instrument not by the network through the bus for debugging.
The bus is as follows: a GPIB bus, a sync 232 bus, or a sync 485 bus, etc.
The system of the embodiment breaks through the limitation of the existing local development software of the test program, upgrades the remote control technology based on the existing test program execution engine, provides a direct control scheme of the test instrument based on the network, and separates the server end into the display control module, the execution control module and the data cache module, thereby realizing the online development, debugging and execution of the test program.
The core of the System is that the concept of the existing Test System (ATS) is separated and broken, a new idea that network resources can be controlled is formed, the calling and upgrading of the Visa library in the local place are provided, the Visa library is packaged in a server System, and Test equipment and instruments connected in a network can be remotely controlled without deploying a Test station industrial personal computer, so that the online development and debugging of a Test program are met; and moreover, the online control of the test resources can be carried out without carrying out secondary packaging of the test execution engine, so that the debugging time and the field maintenance time required by test developers are greatly reduced.
The utility model provides a test program executing and debugging method, which realizes the online development of the test program, and remotely calls the test program online to debug and execute, thus fundamentally solving the problems of high cost and low efficiency caused by long-term business trip, field development and field debugging of test developers; the problem of online execution of a test program is solved, the limitation of the current Datasocket technology of an NI company is avoided, and the requirement of self-research and development can be met; in the on-line execution of the test program, an execution engine is not required to be packaged at the tail end of a communication link, and the control of a test instrument can be carried out in a network; and a communication protocol in a communication link does not need to be packaged additionally, so that the debugging time and the field maintenance time required by a test developer are reduced.
Example 3
In this embodiment, a computer readable storage medium is disclosed for storing computer instructions which, when executed by a processor, perform the steps of the method for executing and debugging the test program of embodiment 1.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Although the present disclosure has been described with reference to specific embodiments, it should be understood that the scope of the present disclosure is not limited thereto, and those skilled in the art will appreciate that various modifications and changes can be made without departing from the spirit and scope of the present disclosure.

Claims (10)

1. A method for executing and debugging a test program, comprising:
calling a test program file on line, starting a debugging instruction, and analyzing the test program into a test instrument control instruction;
and sending the test instrument control instruction to the test instrument to enable the test instrument to execute the test instrument control instruction.
2. The method for executing and debugging the test program according to claim 1, further comprising developing the test program on-line and storing and generating a test program file, specifically:
inputting an IP address and a port number of a test instrument on line;
editing a test program required by a test instrument through a page;
storing the edited test program and generating a test program file.
3. The method of claim 1, wherein the test program file is called by a page.
4. The method as claimed in claim 1, wherein the Visa library is used to parse the test program into the test instrument control commands.
5. The method as claimed in claim 1, wherein the test instrument control command is transmitted to the test instrument via a network.
6. The method as claimed in claim 1, further comprising determining whether the test instrument control command executed by the test instrument is expected, and debugging the test program.
7. The debugging system of the test instrument is characterized by comprising a server and the test instrument connected with the server;
the server software includes:
the display control module is used for managing webpage display and user control;
the execution control module receives the display control module instruction, calls the Visa library, converts the webpage control instruction into a test instrument control instruction, and sends the test instrument control instruction to the test instrument;
and the data cache module is used for storing the edited test program and generating a test program file.
8. The system for debugging of a test instrument as recited in claim 7, wherein the test instrument is a network-controlled instrument or a non-network-controlled instrument.
9. The debugging system of claim 7, wherein the network-controlled device directly receives the test device control command sent by the execution control module via the network;
the non-network-control-accepted instrument is connected with the conversion terminal, the conversion terminal receives a test instrument control instruction sent by the execution control module through the network, carries out bus instruction conversion, and sends the converted instruction to the non-network-control-accepted instrument for testing.
10. A computer-readable storage medium storing computer instructions which, when executed by a processor, perform the steps of a method of executing and debugging a test program according to any of claims 1-6.
CN202010843365.6A 2020-08-20 2020-08-20 Method and system for executing and debugging test program Pending CN111984435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010843365.6A CN111984435A (en) 2020-08-20 2020-08-20 Method and system for executing and debugging test program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010843365.6A CN111984435A (en) 2020-08-20 2020-08-20 Method and system for executing and debugging test program

Publications (1)

Publication Number Publication Date
CN111984435A true CN111984435A (en) 2020-11-24

Family

ID=73443440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010843365.6A Pending CN111984435A (en) 2020-08-20 2020-08-20 Method and system for executing and debugging test program

Country Status (1)

Country Link
CN (1) CN111984435A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701664A (en) * 2013-12-25 2014-04-02 北京航天测控技术有限公司 Method for testing runtime of equipment and testing server
US20140143600A1 (en) * 2012-11-19 2014-05-22 Teradyne, Inc. Debugging in a semiconductor device test environment
US20140237292A1 (en) * 2013-02-21 2014-08-21 Advantest Corporation Gui implementations on central controller computer system for supporting protocol independent device testing
CN113068452B (en) * 2012-12-05 2015-12-23 中国人民解放军第五七二0工厂 Method for constructing software development platform of automatic test system
CN105378493A (en) * 2013-02-21 2016-03-02 爱德万测试公司 Cloud based infrastructure for supporting protocol reconfigurations in protocol independent device testing systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143600A1 (en) * 2012-11-19 2014-05-22 Teradyne, Inc. Debugging in a semiconductor device test environment
CN104797948A (en) * 2012-11-19 2015-07-22 泰拉丁公司 Debugging in a semiconductor device test environment
CN113068452B (en) * 2012-12-05 2015-12-23 中国人民解放军第五七二0工厂 Method for constructing software development platform of automatic test system
US20140237292A1 (en) * 2013-02-21 2014-08-21 Advantest Corporation Gui implementations on central controller computer system for supporting protocol independent device testing
CN105378493A (en) * 2013-02-21 2016-03-02 爱德万测试公司 Cloud based infrastructure for supporting protocol reconfigurations in protocol independent device testing systems
CN103701664A (en) * 2013-12-25 2014-04-02 北京航天测控技术有限公司 Method for testing runtime of equipment and testing server

Similar Documents

Publication Publication Date Title
CN104778124B (en) A kind of software application automated testing method
US9170856B2 (en) Message traffic interception system
US8321602B2 (en) Device management apparatus, device management method and device management program
CN108460199B (en) CNI modeling system
CN109560996B (en) Automatic testing system and method for terminal of Internet of things
US20140172401A1 (en) Method of simulating discrete event
WO2007061241A1 (en) Error test method for mobile communication terminals
CN112464620A (en) Implementation method and implementation system of financial rule engine
CN111881044A (en) Automatic matching test case system according to configuration file
KR100794130B1 (en) Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal
CN108833005B (en) Optical network communication equipment and automatic test kit and method for networking service thereof
CN113347060B (en) Method, device and system for detecting power network fault based on process automation
CN106292584B (en) A kind of flexible manufacturing system based on modular control unit
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN111984435A (en) Method and system for executing and debugging test program
CN108153671B (en) Test system and method for ATML signal-oriented runtime service
CN111966572A (en) Description method and device based on signal-oriented test description model
CN116708592A (en) Configurable communication protocol interaction method and system
CN114925516B (en) Automatic modeling and simulating method and device
CN113407214B (en) Reconfigurable multithreading parallel upper computer system based on can communication
TWI387924B (en) Integrated Software Component Management System
CN113590475A (en) Joint debugging test method and joint debugging test device for online development platform
CN112732551A (en) Automatic test method and system for radio frequency indexes
CN110826293A (en) Microwave switch matrix visual modeling method and system
CN110377463A (en) Interface test method, device, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination