CN113064816B - Testing device and testing method for programmable logic device software - Google Patents

Testing device and testing method for programmable logic device software Download PDF

Info

Publication number
CN113064816B
CN113064816B CN202110278695.XA CN202110278695A CN113064816B CN 113064816 B CN113064816 B CN 113064816B CN 202110278695 A CN202110278695 A CN 202110278695A CN 113064816 B CN113064816 B CN 113064816B
Authority
CN
China
Prior art keywords
test
node
programmable logic
testing
logic device
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
CN202110278695.XA
Other languages
Chinese (zh)
Other versions
CN113064816A (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.)
Beijing Sushi Weizhen Technology Co ltd
32180 Troops Of People's Liberation Army Of China
Original Assignee
Beijing Sushi Weizhen Technology Co ltd
32180 Troops Of People's Liberation Army Of China
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 Beijing Sushi Weizhen Technology Co ltd, 32180 Troops Of People's Liberation Army Of China filed Critical Beijing Sushi Weizhen Technology Co ltd
Priority to CN202110278695.XA priority Critical patent/CN113064816B/en
Publication of CN113064816A publication Critical patent/CN113064816A/en
Application granted granted Critical
Publication of CN113064816B publication Critical patent/CN113064816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a programmable logic device software testing device and a testing method, comprising a testing signal excitation generating module, a testing control module, a testing result acquisition and output module and an analysis module; the programmable logic device software testing method comprises the following steps: configuring network parameters of the test node and the node to be tested, and establishing network connection between the test node and the node to be tested; creating a test function corresponding to the test case at the test node through a scripting language, generating a test function sequence, and sending a call instruction by the test function to generate the test case; and caching and recording the test call function return value at the test node, and analyzing and outputting a test result according to the test call function return value. The programmable logic device testing device and the software testing method provided by the invention can bring simpler, more convenient and more automatic programmable logic device software design and testing experience to users.

Description

Testing device and testing method for programmable logic device software
Technical Field
The invention belongs to the technical field of testing, relates to a software design realization of programmable logic device software and a testing technology of functional performance indexes, and particularly relates to a programmable logic device software testing device and a testing method.
Background
Programmable logic devices are used as programmable electronic components and their applications are emerging, and these applications face the technical test of software and hardware system integration. In the field of programmable logic device software testing, the programmable logic device software testing and the programmable logic device software programming process are accompanied with functional performance testing and code change all the time; the software function of the programmable logic device is continuously expanded, the performance is greatly improved, the structure is more and more complex, the technical content is more and more high, and the software testing work also faces unprecedented challenges. In the application process of the programmable logic device, a development user usually combines application software developed by a developer and customized hardware to carry out deep development and optimization on the programmable logic device software, which brings unprecedented challenges to software quality guarantee work and mainly shows two aspects, namely, in order to ensure the reliable operation of equipment products, the verification of the programmable logic device software design after the integration of software and hardware is an essential link, a complete test system is needed to ensure the quality of the programmable logic device software; secondly, after software and hardware are developed and integrated at present, the software functional performance of the programmable logic device is higher and higher, high requirements are put forward on the metering test of the test result, and the optimization and the perfection of the test method are needed.
The conventional test tool and test environment for the programmable logic device software generally aim at manual test of circuit design with the programmable logic device software, and because the circuit design test generally aims at circuit implementation test of the programmable logic device, the test tool for the circuit design implementation generally rarely aims at development of test requirements for coverage of the programmable logic device software function and comparison of test results, on the other hand, manufacturers of foreign programmable logic device software development tools set basic test tools of the programmable logic device capability as commercial or military secrets and core competitiveness, and generally cannot be commercially sold. Therefore, the traditional commercial test tool can not meet the test requirements on the software design realization and the functional performance index of the programmable logic device software.
For testing of programmable logic device software, many test cases are used for one-time complete programmable logic device software testing, and manual programming and compiling modes are adopted, and the testing result is measured or judged manually, so that manual errors are easily introduced. In view of this, a programmable logic device software testing tool and a data testing mechanism that overcome the above-mentioned drawbacks are problems that need to be solved urgently.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a programmable logic device software testing device and a testing method, which solve the problems that manual errors are easily introduced and the development cost and the maintenance cost are too high when the programmable logic device software testing is carried out by adopting a full-manual configuration and compiling mode at present.
(II) technical scheme
In order to realize the purpose, the invention is realized by the following technical scheme:
a testing device for programmable logic device software comprises a test signal excitation generation module, a test control module, a test result acquisition and output module and an analysis module;
the test signal excitation generation module is used for defining a device for testing as a test node and defining a device provided with programmable logic device software to be tested as a node to be tested, and the test signal excitation generation module is used for controlling a test signal in a test process and configuring network parameters of the test node and the node to be tested so as to establish network connection between the test node and the node to be tested;
the test control module is used for creating a preset number of test functions at the test nodes through a script language and generating a test function sequence, the test functions send call instructions and generate test cases, and the call instructions comprise test call functions for calling the programmable logic device software positioned at the nodes to be tested;
the test result acquisition and output module is used for enabling the node to be tested to run the test calling function according to the calling instruction and returning a test calling function return value to the test node in real time;
and the analysis module is used for caching and recording the test calling function return value by the test node, and analyzing and outputting a test result according to the test calling function return value.
Further, the step of the test function issuing the call instruction and generating the test case includes: and when the input of the test function does not meet the operation condition of the test function, defining the test function sequence as the test function sequence before the test function sends a call instruction.
Further, in the test control module, the returning a test call function return value to the test node in real time includes: when a test failure condition is triggered, the test result is defined as the test result before adjustment.
Further, in the analysis module, the caching and recording the test call function return value by the test node, and analyzing and outputting a test result according to the test call function return value includes: the test node stores the original data of the test call function return value and the metering test result of the output signal corresponding to the input signal controlled by the test call function in a data file, reads the original data file of the test result at regular time, temporarily stores the content of the read file in the data cache of the control node, tests and executes the data in the data cache by the test node, analyzes the data which is in accordance with the execution setting, discards the data which is not in accordance with the requirements, and informs the execution failure to form the final test result.
Further, in the analysis module, the test result includes: the response time of each programmable logic device to the input signal controlled by the test call function, the output signal metering value corresponding to the input signal controlled by the test call function, the success rate and the script execution log.
The device further comprises a comparison module for comparing the test result obtained by the analysis module with a subsequent test result.
On the other hand, the application also protects a method for testing the software of the programmable logic device, which comprises the following steps:
step 101: defining a device for testing as a testing node, defining a device provided with programmable logic device software as a node to be tested, and configuring network parameters of the testing node and the node to be tested so as to establish network connection between the testing node and the node to be tested;
step 102: creating a preset number of test functions at the test node through a scripting language, generating a test function sequence, sending a call instruction by the test functions and generating a test case, wherein the call instruction calls the test call function of the programmable logic device software located at the node to be tested;
step 103: running the test calling function at the test node according to the calling instruction, and returning a return value of the test calling function to the test node in real time;
step 104: and caching and recording the test call function return value at the test node, and analyzing and outputting a test result according to the test call function return value.
Further, in step 102, the step of issuing a call instruction and generating a test case by the test function includes: and when the input of the test function does not meet the operation condition of the test function, defining the test function sequence as the test function sequence before the test function sends out the call instruction.
Further, in step 103, the returning the test call function return value to the test node in real time includes: when a test failure condition is triggered, the test result is defined as the test result before adjustment.
Further, in step 104, the step of caching and recording the test call function return value by the test node, and analyzing and outputting a test result according to the test call function return value includes: the test node stores the original data of the test call function return value and the metering test result of the output signal corresponding to the input signal controlled by the test call function in a data file, reads the original data file of the test result at regular time, temporarily stores the content of the read file in the data cache of the control node, tests and executes the data in the data cache by the test node, analyzes the data which is in accordance with the execution setting, discards the data which is not in accordance with the requirement, and informs the execution failure to form the final test result.
Further, the test results include: the response time of each programmable logic device to the input signal controlled by the test call function, the output signal metering value corresponding to the input signal controlled by the test call function, the success rate and the script execution log.
Further, after step 104, the method further includes: and step 105, comparing the test result obtained in the step 104 with a subsequent test result.
In another aspect, the present application also protects an electronic device, including: at least one test control processing device; and a storage analysis device communicatively connected to the at least one test control processing device; wherein the storage analysis device stores instructions executable by the at least one test control processing device to enable the at least one test control processing device to perform any of the methods described above.
In another aspect, the present application also protects a computer-readable medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements a testing method as in any of the previous claims.
(III) advantageous effects
The invention provides a programmable logic device software testing device and a testing method. The method has the following beneficial effects:
the invention provides a programmable logic device software testing device and a testing method, which automatically call a testing call function of programmable logic device software by designing a set testing script file, and analyze a return value of the testing call function to complete the functional performance test of the programmable logic device software, thereby bringing simpler and more automatic programmable logic device software testing experience to users.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for testing software of a programmable logic device according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for testing programmable logic device software according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a programmable logic device software testing apparatus according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of another programmable logic device software testing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, distributed computing environments that include any of the above systems or devices, and the like.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The first embodiment is as follows:
as shown in fig. 1, there is provided a programmable logic device software testing method, including:
step 101, defining a device for testing as a test node, defining a device provided with programmable logic device software to be tested as a node to be tested, and configuring network parameters of the test node and the node to be tested so as to establish network connection between the test node and the node to be tested;
in this embodiment, the network parameters are set in the test signal excitation generating module of the test node, the network connection between the test computer and the operating system computer to be tested is established, and the network state is displayed;
considering that there may be differences in network environments of each test environment, it is necessary to determine the network parameters of the test, the connection status of the network and the return values of the abnormal conditions of the network according to the specific conditions (the occupation condition of the network ports of the test computer, the special definition of the network ports by the operating system).
102, creating a preset number of test functions at the test nodes through a scripting language, generating a test function sequence, sending a call instruction by the test functions, generating a test case, and calling the test call function of the programmable logic device software at the node to be tested by the call instruction;
after the testing requirement of the programmable logic device software to be tested is determined, selecting or filling in testing parameters on a testing tool interface according to the testing requirement of the programmable logic device software to be tested, and generating and determining a testing instruction of the programmable logic device software, wherein the testing instruction of the programmable logic device software comprises a testing starting instruction, a testing function to be tested, a testing function sequence, testing function parameters and the like.
For testing programmable logic device software, a preset number of test functions are created through a scripting language, parameters selected by an interface are filled in, the test functions are converted into function values, the function values are compiled into a sequence, and the programmable logic device software is tested.
103, the node to be tested operates the test calling function according to the calling instruction, and returns a return value of the test calling function to the test node in real time;
the test node generates test instructions, wherein the number of the generated test call functions is about 20 to 30, and the code amount of test scripts needs to be written in a range from 1000 lines to 1500 lines, so that an automatic programmable logic device software test tool is used for testing, and the reliability and the test efficiency of a programmable logic device software test project are improved.
And step 104, caching and recording the test call function return value by the test node, and analyzing and outputting a test result according to the test call function return value.
And the node to be tested returns the executed function value to the test node through the network, the test node caches and displays the test record, packages the test result of the graph, analyzes the test result and displays the test result. The test node analyzes the test record according to the setting of the test step, the setting is formulated by the script language, the test result is obtained by analysis, and the computer executable document (such as WORD document) template with the generated format is called by the script language to form a test process document.
In this embodiment, the test results include, but are not limited to: the response time of each programmable logic device to the input signal controlled by the test call function, the output signal metering value corresponding to the input signal controlled by the test call function, the success rate and the script execution log.
In the embodiment of the invention, the test calling function of the programmable logic device software is called, the return value of the test calling function is analyzed, the test output signal metering value is packaged, the test case runs one-key operation, the test result is displayed in the unified area of the test interface, and the test process is automatically added into the computer executable document (such as WORD document) of the test case, so that the automation level of the programmable logic device software test is improved.
In another embodiment of the present invention, the method may further include:
in step 103, the returning the test call function return value to the test node in real time includes: and when the test failure condition is triggered, defining the test result as the test result before adjustment.
In this embodiment, in order to avoid that a return value cannot be obtained for a long time due to a test failure (for example, the return value is overtime or has no return value) under a special condition, a fault-tolerant setting is performed by increasing test execution judgment through a setting script according to a test process condition and a test result, and when a test failure condition is triggered, the test result is defined as a test result before adjustment.
In the embodiment, the test failure result is defined as the test result before adjustment, so that the test failure caused by special conditions such as test failure in the test process is avoided, the dead cycle is avoided, and the test efficiency is improved.
In another embodiment of the present invention, in order to ensure the test is performed smoothly, it is necessary to ensure that the test script can be executed smoothly, so that the whole test script needs to be run once in the test environment to correct the error content therein. To this end, the method may further include:
in step 104, the step of caching and recording the test call function return value by the test node, and analyzing and outputting a test result according to the test call function return value includes:
the test node stores the original data of the test call function return value and the metering test result of the output signal corresponding to the input signal controlled by the test call function in a data file, reads the original data file of the test result at regular time, temporarily stores the content of the read file in the data cache of the control node, tests and executes the data in the data cache by the test node, analyzes the data which is in accordance with the execution setting, discards the data which is not in accordance with the requirement, and informs the execution failure to form the final test result.
In this embodiment, the availability of the test data is ensured by the judgment mechanism, so as to avoid inaccurate test results caused by error data (for example, when the running time of some indexes is as long as several hours when the programmable logic device test is performed, it is difficult to avoid the occurrence of data transmission errors or failures in the network environment).
In another embodiment of the present invention, referring to fig. 2, after step 104, the method further includes:
and 105, comparing the test result obtained in the step 104 with a subsequent test result, setting a comparison condition and a test expectation, and adjusting the test result.
Specifically, in this embodiment, the code and the sequence of the test function may be dynamically adjusted, and the test in steps 101 to 104 may be executed again, if the adjusted test result is better than the test result before adjustment and the adjusted test result is within the preset test expected value, the test is ended; otherwise, the execution continues from step 101 to step 104.
In this embodiment, through steps 101 to 105, the testing method may be optimized step by step, so as to obtain a testing result meeting the requirement, and finally complete the testing of the programmable logic device software.
The following describes the apparatus provided by the embodiment of the present invention with reference to the drawings.
Referring to fig. 3, based on the same inventive concept, an embodiment of the present invention provides a programmable logic device software testing apparatus, which may include a test signal excitation generating module 301, a test control module 302, a test result collecting and outputting module 303, and an analyzing module 304. The test signal excitation generating module 301, the test control module 302, the test result collecting and outputting module 303, and the analyzing module 304 may implement related functional units through a hardware processor (hardware processor). Wherein the content of the first and second substances,
the test signal excitation generating module 301 is configured to define a device for testing as a test node and a device with programmable logic device software to be tested as a node to be tested, where the test signal excitation generating module 301 is configured to configure network parameters of the test node and the node to be tested, so that a network connection is established between the test node and the node to be tested;
a test result acquisition and output module 302, configured to create a preset number of test functions through a scripting language at the test node, and generate a test function sequence, where the test functions send a call instruction and generate a test case, where the call instruction includes a test call function that calls the programmable logic device software located at the node to be tested;
the test control module 303 is configured to enable the node to be tested to run the test call function according to the call instruction, and return a test call function return value to the test node in real time;
and the analysis module 304 is configured to cache and record the test call function return value for the test node, and analyze and output a test result according to the test call function return value.
In another embodiment of the present invention, in the test control module 303, the returning a test call function return value to the test node in real time includes: when a test failure condition is triggered, the test result is defined as the test result before adjustment.
In another embodiment of the present invention, in order to ensure the test is performed smoothly, it is necessary to ensure that the test script can be executed smoothly, so that the whole test script needs to be run once in the test environment to correct the error content therein. To this end, the apparatus may further include:
in the analysis module 304, the caching and recording the test call function return value by the test node, and analyzing and outputting a test result according to the test call function return value includes:
the test node stores the original data of the test call function return value and the metering test result of the output signal corresponding to the input signal controlled by the test call function in a data file, reads the original data file of the test result at regular time, temporarily stores the content of the read file in the data cache of the control node, tests and executes the data in the data cache by the test node, analyzes the data which is in accordance with the execution setting, discards the data which is not in accordance with the requirements, and informs the execution failure to form the final test result.
In another embodiment of the present invention, the method further comprises:
a comparison module 305, configured to compare the test result obtained by the analysis module with a subsequent test result.
Specifically, in this embodiment, the script code of the test function may be dynamically adjusted, and the test of the modules 301 to 304 may be passed again, and if the adjusted test result is better than the test result before the adjustment and the adjusted test result is within the preset test expected value, the test is ended; otherwise, testing continues through blocks 301-304.
In this embodiment, the test method can be gradually optimized through the modules 301 to 305, so as to obtain a test result meeting the requirement, and finally complete the software test of the programmable logic device.
It should be understood that the modules depicted in fig. 3 and 4 correspond to various steps in the methods described with reference to fig. 1 and 2. Thus, the features and effects described above for the method are equally applicable to the modules in fig. 3 and 4, and are not described again here.
The embodiment of the application provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute a file acquisition method in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
identifying a file header of a target file;
when the target file is identified to comprise a plurality of file headers, separating the target file into a plurality of subfiles according to the plurality of file headers, wherein the plurality of subfiles comprise a non-target subfile and a target subfile;
and acquiring the target subfile.
As another embodiment, the non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
combining a target transmission file by using a first file of a format supported by a first terminal to generate a second file of the format supported by the first terminal, wherein the second file comprises a file header of the first file and a file header of the target transmission file;
and sending the second file to a second terminal.
As a non-volatile computer readable storage medium, it can be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the file acquisition method in the embodiment of the present application (for example, the test signal excitation generating module 301, the test result collecting and outputting module 302, the test control module 303, and the analysis module 304 shown in fig. 3). The one or more modules are stored in the non-transitory computer-readable storage medium and when executed by a processor, perform a file acquisition method or a file transfer method in any of the above method embodiments.
The non-volatile computer-readable storage medium may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the file acquiring apparatus, and the like. Further, the non-volatile computer-readable storage medium may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the non-transitory computer readable storage medium optionally includes memory located remotely from the processor, which may be connected to the file retrieval device over a network. Examples of such networks include, but are not limited to, intranets and local area networks, and combinations thereof.
Embodiments of the present invention also provide a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute any one of the file acquisition methods or the file transmission methods described above.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 5, the electronic device includes:
one or more test control processing devices 510 and a storage analysis device 520, and one test control processing device 510 is taken as an example in fig. 5.
The device of the file acquisition method may further include: a test signal input device 530 and a test result acquisition output device 540.
The test control processing device 510, the storage analysis device 520, the test signal input device 530 and the test result collecting and outputting device 540 may be connected by a bus or other means, and fig. 5 illustrates an example of connection by a bus.
The storage analysis device 520 is the aforementioned non-volatile computer-readable storage medium. The test control processing device 510 executes various functional applications and data processing of the server by running the nonvolatile software programs, instructions and modules stored in the storage analysis device 520, that is, implements the file acquisition method of the above-described method embodiment.
The test signal input means 530 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the document acquisition means. The test result collecting and outputting device 540 may include a display device such as a display screen.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
As an embodiment, the electronic device includes: at least one test control processing device; and a storage analysis device communicatively connected to the at least one test control processing device; wherein the storage analysis device stores instructions executable by the at least one test control processing device to enable the at least one test control processing device to:
identifying a file header of a target file;
when the target file is identified to contain a plurality of file headers, separating the target file into a plurality of subfiles according to the file headers, wherein the subfiles comprise a non-target subfile and a target subfile;
and acquiring the target subfile.
As another embodiment, the electronic device includes: at least one test control processing device; and a storage analysis device in communication with the at least one test control processing device; wherein the storage analysis device stores instructions executable by the at least one test control processing device to enable the at least one test control processing device to:
combining a target transmission file by using a first file of a format supported by a first terminal to generate a second file of the format supported by the first terminal, wherein the second file comprises a file header of the first file and a file header of the target transmission file;
and sending the second file to a second terminal.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) A mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., i Phone), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MI D, and UMPC devices, etc., such as iPad.
(3) A portable entertainment device: such devices can display and play multimedia content. Such devices include audio and video players (e.g., i-Pod), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the technical solutions in essence or part contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (14)

1. A testing device for programmable logic device software is characterized in that: the device comprises a test signal excitation generation module, a test control module, a test result acquisition and output module and an analysis module;
the test signal excitation generation module is used for defining a device for testing as a test node and defining a device provided with programmable logic device software to be tested as a node to be tested, and the test signal excitation generation module is used for controlling a test signal in a test process and configuring network parameters of the test node and the node to be tested so as to establish network connection between the test node and the node to be tested;
the test control module is used for creating a preset number of test functions at the test nodes through a script language and generating a test function sequence, the test functions send call instructions and generate test cases, and the call instructions comprise test call functions for calling the programmable logic device software positioned at the nodes to be tested;
the test result acquisition and output module is used for enabling the node to be tested to operate the test calling function according to the calling instruction and returning a test calling function return value to the test node in real time;
and the analysis module is used for caching and recording the test calling function return value by the test node, and analyzing and outputting a test result according to the test calling function return value.
2. The apparatus for testing programmable logic device software according to claim 1, wherein: the test function sending a call instruction and generating a test case comprises the following steps: and when the input of the test function does not meet the operation condition of the test function, defining the test function sequence as the test function sequence before the test function sends out the call instruction.
3. A programmable logic device software test apparatus according to claim 1 or 2, wherein: in the test control module, the returning a test call function return value to the test node in real time includes: and when the test failure condition is triggered, defining the test result as the test result before adjustment.
4. A test apparatus for programmable logic device software according to claim 1 or 2, characterized in that: in the analysis module, the test node caches and records the test call function return value, and analyzes and outputs a test result according to the test call function return value, including: the test node stores the original data of the test call function return value and the metering test result of the output signal corresponding to the input signal controlled by the test call function in a data file, reads the original data file of the test result at regular time, temporarily stores the content of the read file in the data cache of the control node, tests and executes the data in the data cache by the test node, analyzes the data which is in accordance with the execution setting, discards the data which is not in accordance with the requirements, and informs the execution failure to form the final test result.
5. A programmable logic device software test apparatus according to any one of claims 1 to 4, characterized in that: in the analysis module, the test result includes: the response time of each programmable logic device to the input signal controlled by the test call function, the output signal metering value corresponding to the input signal controlled by the test call function, the success rate and the script execution log.
6. A programmable logic device software test apparatus according to any one of claims 1 to 5, wherein: the device also comprises a comparison module used for comparing the test result obtained by the analysis module with a subsequent test result.
7. A method for testing programmable logic device software is characterized in that: the method comprises the following steps:
step 101: defining a device for testing as a testing node, defining a device provided with programmable logic device software as a node to be tested, and configuring network parameters of the testing node and the node to be tested so as to establish network connection between the testing node and the node to be tested;
step 102: creating a preset number of test functions at the test node through a scripting language, generating a test function sequence, sending a call instruction by the test functions and generating a test case, wherein the call instruction calls the test call function of the programmable logic device software located at the node to be tested;
step 103: running the test calling function at the test node according to the calling instruction, and returning a return value of the test calling function to the test node in real time;
step 104: and caching and recording the test call function return value at the test node, and analyzing and outputting a test result according to the test call function return value.
8. The method for testing programmable logic device software according to claim 7, wherein: in step 102, the step of issuing a call instruction and generating a test case by the test function includes: and when the input of the test function does not meet the operation condition of the test function, defining the test function sequence as the test function sequence before the test function sends a call instruction.
9. The method for testing programmable logic device software according to claim 7, wherein: in step 103, the returning the test call function return value to the test node in real time includes: and when the test failure condition is triggered, defining the test result as the test result before adjustment.
10. The method for testing programmable logic device software according to claim 7, wherein: in step 104, the step of caching and recording the test call function return value by the test node, and analyzing and outputting a test result according to the test call function return value includes: the test node stores the original data of the test call function return value and the metering test result of the output signal corresponding to the input signal controlled by the test call function in a data file, reads the original data file of the test result at regular time, temporarily stores the content of the read file in the data cache of the control node, tests and executes the data in the data cache by the test node, analyzes the data which is in accordance with the execution setting, discards the data which is not in accordance with the requirements, and informs the execution failure to form the final test result.
11. A method of testing programmable logic device software according to any of claims 7-10, characterized by: the test results include: the response time of each programmable logic device to the input signal controlled by the test call function, the output signal metering value corresponding to the input signal controlled by the test call function, the success rate and the script execution log.
12. The method for testing programmable logic device software according to claim 7, wherein: after step 104, further comprising: and step 105, comparing the test result obtained in the step 104 with a subsequent test result.
13. An electronic device, characterized in that: the method comprises the following steps: at least one test control processing device; and a storage analysis device communicatively connected to the at least one test control processing device; wherein the storage analysis device stores instructions executable by the at least one test control processing device to enable the at least one test control processing device to perform the method of any one of claims 7 to 12.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the testing method according to any one of claims 7 to 12.
CN202110278695.XA 2021-03-16 2021-03-16 Testing device and testing method for programmable logic device software Active CN113064816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110278695.XA CN113064816B (en) 2021-03-16 2021-03-16 Testing device and testing method for programmable logic device software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110278695.XA CN113064816B (en) 2021-03-16 2021-03-16 Testing device and testing method for programmable logic device software

Publications (2)

Publication Number Publication Date
CN113064816A CN113064816A (en) 2021-07-02
CN113064816B true CN113064816B (en) 2022-11-04

Family

ID=76561360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110278695.XA Active CN113064816B (en) 2021-03-16 2021-03-16 Testing device and testing method for programmable logic device software

Country Status (1)

Country Link
CN (1) CN113064816B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149659B (en) * 2023-09-27 2024-04-26 北京唯得科技有限公司 Frequency shift product testing method, system, equipment and medium
CN117672340B (en) * 2023-12-15 2024-05-24 上海先楫半导体科技有限公司 One-time programmable automatic chip system verification method, device and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516818A (en) * 2014-12-29 2015-04-15 北京四方继保自动化股份有限公司 Automatic testing system and method both applicable to compiler in logical configuration software
CN105302950A (en) * 2015-10-19 2016-02-03 北京精密机电控制设备研究所 Software and hardware cooperation based cross-linking simulation test method for programmable logic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210064518A1 (en) * 2019-08-27 2021-03-04 Shield34 LTD. Methods Circuits Devices Systems and Functionally Associated Machine Executable Code For Automatic Failure Cause Identification in Software Code Testing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516818A (en) * 2014-12-29 2015-04-15 北京四方继保自动化股份有限公司 Automatic testing system and method both applicable to compiler in logical configuration software
CN105302950A (en) * 2015-10-19 2016-02-03 北京精密机电控制设备研究所 Software and hardware cooperation based cross-linking simulation test method for programmable logic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
军用可编程逻辑器件测试过程研究;胡胜旺等;《软件产业与工程》;20151110(第06期);全文 *

Also Published As

Publication number Publication date
CN113064816A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN111651366B (en) SDK test method, device, equipment and storage medium
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
CN108984389B (en) Application program testing method and terminal equipment
CN113064816B (en) Testing device and testing method for programmable logic device software
CN110013672B (en) Method, device, apparatus and computer-readable storage medium for automated testing of machine-run games
CN111124919A (en) User interface testing method, device, equipment and storage medium
US10977161B2 (en) Automatic intelligent cloud service testing tool
CN109918310A (en) A kind of Modeling Platform interface test method
CN114238071A (en) DCS software automatic verification system and method based on digital simulation technology
CN115391219A (en) Test case generation method and device, electronic equipment and storage medium
CN112214405A (en) Software testing method and device, electronic equipment and readable storage medium
CN110737900B (en) Webpage function testing method and device, server and computer readable storage medium
CN112699034A (en) Virtual login user construction method, device, equipment and storage medium
CN113886221B (en) Test script generation method and device, storage medium and electronic equipment
CN112559338B (en) Verification method, device, equipment and storage medium of application program
CN109985387B (en) Automatic testing method and device
CN114925516A (en) Method and device for automatic modeling and simulation
CN111026667B (en) Script execution method and device and electronic equipment
CN111026651B (en) Test method, device, storage medium and electronic equipment
CN110795338B (en) Front-end and back-end interaction-based automatic testing method and device and electronic equipment
CN110647314B (en) Skill generation method and device and electronic equipment
CN112965910A (en) Automatic regression testing method and device, electronic equipment and storage medium
WO2004068347A1 (en) Method and apparatus for categorising test scripts
CN110597517A (en) Method and device for dynamically analyzing mat file
CN111026650B (en) Method and device for testing software, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant