CN111722996A - Interactive standard conformance testing method and device - Google Patents

Interactive standard conformance testing method and device Download PDF

Info

Publication number
CN111722996A
CN111722996A CN201910213310.4A CN201910213310A CN111722996A CN 111722996 A CN111722996 A CN 111722996A CN 201910213310 A CN201910213310 A CN 201910213310A CN 111722996 A CN111722996 A CN 111722996A
Authority
CN
China
Prior art keywords
test
xml
standard
platform software
file
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
CN201910213310.4A
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.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi University
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 Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN201910213310.4A priority Critical patent/CN111722996A/en
Publication of CN111722996A publication Critical patent/CN111722996A/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

Abstract

The invention provides an interactive standard conformance testing method and device, wherein the method comprises the following steps: acquiring a test starting instruction of platform software, and performing test operation on the engineering file in the first directory according to the test starting instruction, wherein the test operation comprises the following steps: analyzing and compiling, wherein the engineering file is a configuration file or an algorithm file exported by any platform software, if the engineering file can be subjected to the test operation, the platform software conforms to an extensible markup language (XML) interactive standard, and the standard conformance test of a PLC program standardized platform is realized by carrying out forward and reverse tests on the XML interactive standard conformance of the platform software, so that the platform software can generate a PLC program file conforming to the standard.

Description

Interactive standard conformance testing method and device
Technical Field
The embodiment of the invention relates to the field of industrial control, in particular to a method and a device for testing the compliance of an interaction standard.
Background
Because the Programmable Logic Controller (PLC) has a simple programming mode, is stable and reliable, and is widely used in various fields, along with the increasing complexity of control systems, the PLC technology is expanded by the PLCopen international organization, and a large number of international standards are established, so that the PLC is expanded from Logic control to fields such as motion control, safety control, process control, industrial internet and the like.
In order to optimize control, the realization of interaction and sharing among PLC software platforms becomes a main development direction, and a standardized platform supports IEC61131-3 language standard, but PLC programs with different program description standards are standardized and normalized to obtain a uniform PLC program.
However, in the prior art, it cannot be tested whether the standardized platform can provide a PLC program file meeting the standard.
Disclosure of Invention
The embodiment of the invention provides an interactive standard conformance testing method and device, which are used for testing the standard conformance of a platform for standardizing and normalizing a PLC program.
In a first aspect, an embodiment of the present invention provides an interaction standard compliance testing method, where the method includes:
acquiring a test starting instruction of platform software;
testing the engineering files in the first directory according to the test starting instruction; the test operation comprises: parsing and compiling; the engineering file is a configuration file or an algorithm file exported by any platform software;
and if the engineering file can be executed with the test operation, the platform software conforms to the extensible markup language XML interactive standard.
Further, the method further comprises:
and if the engineering file fails to execute the test operation, the platform software does not conform to the XML interactive standard.
In a specific implementation manner, before the performing the test operation on the project file in the first directory according to the test start instruction, the method further includes:
scanning the first directory, and acquiring the engineering files in the first directory according to the XML interactive standard, wherein the engineering files are the engineering files in the first directory, which accord with a preset test case set.
Optionally, the obtaining of the test start instruction of the platform software includes:
receiving a test starting instruction selected by a user through an interactive interface;
alternatively, the first and second electrodes may be,
and generating a test starting instruction if at least one project file exists by periodically detecting the first directory.
In a second aspect, an embodiment of the present invention provides an interaction standard compliance testing method, including:
acquiring a test starting instruction;
testing the XML engineering in the first directory according to the test starting instruction and an XSD standard test tool;
and if each project file in the XML project passes the test, the platform software conforms to the XML interaction standard.
Further, the method further comprises:
and if the project file in the XML project fails to pass the test, the platform software does not conform to the XML interaction standard.
In a specific implementation manner, before the testing the XML project in the first directory according to the test starting instruction and the XSD standard test tool, the method further includes:
and scanning the first directory, and acquiring the project file in the first directory according to an XML (extensible markup language) interaction standard.
In a specific implementation manner, before the obtaining of the test start instruction of the platform software, the method further includes:
and generating the XML project according to a preset test case set, exporting the XML project to the first directory, and inputting the preset test case set into platform software to enable the platform software to output the XML project.
In a third aspect, an embodiment of the present invention provides an interaction standard compliance testing apparatus, where the apparatus includes:
the acquisition module is used for acquiring a test starting instruction of the platform software;
the test module is used for carrying out test operation on the engineering files in the first directory according to the test starting instruction; the test operation comprises: parsing and compiling; the engineering file is a configuration file or an algorithm file exported by any platform software;
and the judging module is used for enabling the platform software to accord with an XML (extensive Makeup language) interactive standard if the engineering file can be executed with the test operation.
In a fourth aspect, an embodiment of the present invention provides an apparatus for testing compliance with an interaction standard, where the apparatus includes:
the acquisition module is used for acquiring a test starting instruction;
the test module is used for testing the XML engineering in the first directory according to the test starting instruction and the XSD standard test tool;
and the judging module is used for judging that the platform software conforms to the XML interaction standard if each project file in the XML project passes the test.
The embodiment of the invention provides an interactive standard conformance testing method and device, the method carries out testing operation including analysis and compilation on an engineering file in a first directory according to a test starting instruction by obtaining the test starting instruction of platform software, if the engineering file can be subjected to the testing operation, the platform software conforms to an extensible markup language (XML) interactive standard, if the engineering file fails to be subjected to the testing operation, the platform software does not conform to the XML interactive standard, and the standard conformance testing of a PLC program standardized platform is realized by carrying out forward and reverse testing on the XML interactive standard conformance of the platform software, so that the platform software can generate a PLC program conforming to the standard.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be 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 inventive exercise.
Fig. 1 is a schematic diagram of a bidirectional testing process of the interactive standard conformance testing method provided in this embodiment;
FIG. 2 is a schematic diagram of a platform software interaction model according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a first embodiment of a method for testing compliance with an interaction standard according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a second embodiment of an interaction standard conformance testing method according to the present invention;
FIG. 5 is a diagram illustrating a test case set according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a third embodiment of an interaction standard conformance testing method according to the present invention;
fig. 7 is a schematic flowchart of a fourth embodiment of a method for testing compliance with an interaction standard according to the present invention;
FIG. 8 is a schematic flowchart of a reverse test of the compliance of the interaction standard according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a first exemplary embodiment of an interactive standard compliance testing apparatus according to the present invention;
fig. 10 is a schematic structural diagram of a second exemplary embodiment of an interactive standard compliance testing apparatus according to the present invention;
fig. 11 is a schematic structural diagram of a third example of the interactive standard conformance testing apparatus according to the present invention;
fig. 12 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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 method and the device for testing the conformity of the interactive standard are mainly used for determining whether the platform software can import the engineering file which is exported by other platform software and conforms to the IEC61131-3 language standard (namely forward test), and whether the engineering file exported by the platform software conforms to the Extensible Markup Language (XML) interaction standard (i.e., reverse test), as shown in fig. 1, fig. 1 is a schematic diagram of a bidirectional testing flow of the interactive standard conformance testing method provided in this embodiment, platform software is used as a description conversion middleware of a programming language, programs of different language standards are standardized and transformed, engineering files conforming to a preset test case set are imported into the platform software for forward testing, and sending the engineering file exported by the platform software to an automatic test system for reverse test, wherein the automatic test system comprises a test tool generated according to an XML interactive standard.
The platform software is a platform software capable of standardizing and normalizing PLC programs with different program description standards, and as shown in fig. 2, the platform software receives engineering files exported by other platform software, exports standardized and normalized engineering files to provide to other platform software, or receives engineering files provided by an information producer, and exports the engineering files to provide to an information consumer, wherein the information producer is a team, company or individual providing algorithm files such as graphics, logic, function blocks, and the like, and correspondingly, the information consumer is a demand party for algorithm files such as graphics, logic, function blocks, and the like.
Fig. 3 is a schematic flow chart of a first embodiment of the interaction standard conformance testing method according to the embodiment of the present invention, as shown in fig. 3, the method includes:
s101: and acquiring a test starting instruction of the platform software.
The platform software is provided with a test module, and when a test starting instruction is received, the platform software enters the test module to start automatic testing.
Specifically, the test start instruction may be obtained by receiving a test start instruction input by a user, for example, receiving a test start instruction generated by a standard test module control selected by the user through an interactive interface, or by periodically detecting a first directory, and generating the test start instruction when at least one project file exists in the first directory, specifically, the first directory is a fixed directory that is preset and stores a project file that needs to be imported into platform software for forward testing of the platform software, where the project file that needs to be imported into the platform software includes a configuration file or an algorithm file, and the configuration file or the algorithm file may be exported by other platform software, for example, any PLC platform software supporting IEC61131-3 language standard, or the configuration file or the algorithm file may be provided by an information producer, it should be understood that, the configuration file is a complete PLC engineering file, and the algorithm file is a part of the PLC engineering file and is used for realizing partial algorithms.
S102: and testing the engineering files in the first directory according to the test starting instruction.
After receiving a test starting instruction, the platform software enters a test mode, and it should be understood that the test process is a forward test process of the platform software, that is, whether the platform software is normally imported into other platform software or engineering files provided by an information producer is judged, the engineering files in the first directory are automatically read, test operation is performed on the engineering files in the first directory, and specifically, the engineering files in the first directory are analyzed and compiled.
In a specific implementation manner, if multiple types of files are stored in the first directory, the files in the first directory are scanned, and according to the description specification of the file header given by the XML interactive standard, identifying each file, obtaining the project files in the first directory, further testing the project files in the first directory through a preset test case set, to confirm the project file in the first directory as the import file meeting the requirement of the XML interactive standard, wherein, the XML interactive standard is set according to the practical application environment and comprises a language standard, a program description standard and the like, so that the program interaction between PLC platforms can be realized under the condition of meeting the XML interaction standard, the preset test case set is a set of test items preset according to the standard of an import file required by an XML (extensible markup language) interaction standard.
S103: if the engineering file can be executed with test operation, the platform software conforms to the XML interaction standard.
If the engineering file can be subjected to test operation, that is, the platform software can parse and compile the engineering file conforming to the XML interaction standard, it is indicated that the platform software conforms to the XML interaction standard, and specifically, the platform software conforms to the XML interaction standard in the process of importing the engineering file in the forward direction. Optionally, the test result can be output through interface display, voice broadcast, frame popping and other modes.
According to the interactive standard conformance testing method provided by the embodiment, the test starting instruction of the platform software is obtained, the engineering files in the first directory are subjected to test operation according to the test starting instruction, the test operation comprises analysis and compilation, if the engineering files can be subjected to the test operation, the platform software conforms to the extensible markup language XML interactive standard, the standard conformance testing of the PLC program standardized platform is realized, and the platform software can be ensured to identify the PLC programs conforming to the standard.
On the basis of the embodiment shown in fig. 3, fig. 4 is a schematic flow chart of a second embodiment of the interaction standard conformance testing method provided in the embodiment of the present invention, and as shown in fig. 4, the method further includes:
s104: and if the engineering file fails to execute the test operation, the platform software does not conform to the XML interaction standard.
If the engineering file cannot be subjected to the test operation, that is, the platform software cannot parse and compile the engineering file conforming to the XML interaction standard, it is indicated that the platform software does not conform to the XML interaction standard, and specifically, the platform software does not conform to the XML interaction standard in the process of importing the engineering file in the forward direction.
Optionally, if the platform software does not conform to the XML interaction standard, performing message reminding, voice broadcasting, pop-up frame display and the like on the test result, and outputting a test report so as to analyze the reason of the test failure.
On the basis of the above embodiment, the present solution provides a method for constructing an XML test case set according to an XML interaction standard:
according to 3 graphic languages and 2 text languages, wherein the graphic programming language comprises: ladder Diagram (LD), Function Block map (FBD), Sequential Function Chart (SFC), the text programming language includes: the Instruction List (IL) and the Structured Text (ST), and the test case set designed by the test requirement of each language element, data type, operator, description mode, etc. of the corresponding extension portion, as shown in fig. 5, totally contain 16 test case sets.
Each test case contains a test item. All test cases are classified according to language attributes, such as data type, language object, operator, and the like. First, the standard needs to give all the contents to be tested and the test requirements, and the test requirements of the data types of the basic level are given as shown in table 1 below.
Figure BDA0002001228750000071
Figure BDA0002001228750000081
TABLE 1
The requirement P in the above table indicates that the test is being performed, which means that the correct data type information is entered and the program can be executed correctly. N represents a negative test, and means that wrong data type information is input, for example, data of a non-BOOL type is input in a variable needing the BOOL type, and a program can identify and carry out error prompt. Satisfiability indicates whether or not it needs to be satisfied in this level of testing. And then designing a test case according to the test requirements. In order to support user-defined types and complex types, besides simple types, complex types such as structure bodies, arrays and enumerations are also available, and for the complex types, more test cases are needed to realize the test of each detail, such as the test of the structure bodies, and the test of a plurality of contents such as expression forms, initialization values and data access is needed to be realized.
The test method provides a means for testing according to the purpose to be achieved in the test process and a test case set adopted. All test cases contain both positive and negative test parts. The method for testing the engineering file of the platform software to be imported comprises the following steps: and testing the part of the configuration file or the algorithm file which does not accord with the XML interaction standard, and giving a test report.
The following examples are provided to illustrate the reverse test procedure and method in the interactive standard compliance test method.
Fig. 6 is a schematic flow chart of a third embodiment of the interaction standard conformance testing method provided in the embodiment of the present invention, as shown in fig. 6, the method includes:
s201: and acquiring a test starting instruction.
In the scheme, the execution main body can be a separate automatic test system or an automatic test module integrated in platform software, wherein the automatic test system comprises an extensible markup language architecture XSD standard test tool generated based on an XML Schema Definition (XSD) file, the standard XSD file is designed based on an XML interaction standard and comprises a data structure, a hierarchy and constraint conditions, the file comprises a standardized description of text information and graphic information in a PLC program, and the standard XSD file can be used for carrying out standardized monitoring on a corresponding XML file through the regulation of a structure between nodes.
In this step, the automatic test system or the automatic test module obtains a test start instruction, and may receive the test start instruction input by the user, for example, receive a test start instruction generated by a test start control selected by the user through the interactive interface; or the first directory may be periodically detected, and when at least one engineering file exists in the first directory, a test start instruction is generated, specifically, the first directory is a preset fixed directory and stores the engineering file exported by the platform software according to a preset test case set; or the test starting instruction sent by the platform software may be received, for example, after the platform software completes the XML project, the test starting instruction is generated and sent to the automatic test system or the automatic test module, and the reverse test is started.
In a specific implementation manner, before step S201, the present solution further includes: generating an XML project according to a preset test case set, exporting the XML project to the first directory, inputting the preset test case set into platform software according to current test requirements, and generating the XML project, wherein the preset test case set is the test case set which is selected and set on the basis of the XML test case set constructed in the previous step, and optionally, the generated XML project can be stored in the first directory which is a preset directory specially used for storing the XML project and all project files contained in the XML project.
S202: and testing the XML engineering in the first directory according to the test starting instruction and an XSD standard test tool.
It should be understood that the platform software exports the program and the module generated through the conversion to the first directory, that is, creates the XML project, and after receiving the test starting instruction, tests each XML file in the XML project through the XSD standard test tool to determine whether the XML conforms to the standard of the standard XSD file. The automatic test system or the automatic test module automatically finishes importing after the standard XSD file is updated, and updates an XSD standard test tool.
In a specific implementation manner, if multiple types of files are stored in the first directory, the first directory is scanned, and all the project files in the first directory are acquired according to an XML interaction standard.
S203: and if each project file in the XML project passes the test, the platform software conforms to the XML interaction standard.
If each project file in the XML project passes the test, the XML project exported by the platform software conforms to the XML interaction standard, namely the platform software conforms to the XML interaction standard.
In this embodiment, the XML project in the first directory is tested by obtaining the test start instruction and according to the test start instruction and the XSD standard test tool, and if each project file in the XML project passes the test, the platform software conforms to the XML interaction standard, so that the standard conformance test on the PLC program standardized platform is implemented, and it is ensured that the PLC program generated by the platform software conforms to the standard.
On the basis of the embodiment shown in fig. 6, fig. 7 is a schematic flowchart of a fourth embodiment of the interaction standard conformance testing method provided in the embodiment of the present invention, and as shown in fig. 7, the method further includes:
s204: and if the project file in the XML project fails to pass the test, the platform software does not conform to the XML interaction standard.
It should be understood that when the XML project includes a plurality of project files, if at least one of the project files fails to pass the test, it indicates that the XML project exported by the platform software does not conform to the XML interaction standard, and further, the platform software does not conform to the XML interaction standard.
On the basis of the foregoing embodiment, fig. 8 is a schematic flow diagram of an interaction standard conformance reverse test provided in the embodiment of the present invention, and as shown in fig. 8, an XML project is exported to a first directory by an XML export module of platform software, an automatic test system or an automatic test module tests each project file of the XML project in the first directory according to a standard XSD file, specifically, an XSD file conforming to IEC61131-10 standard, determines whether each project file of the XML project conforms to an XML interaction standard, and finally determines whether the platform software conforms to the XML interaction standard.
Fig. 9 is a schematic structural diagram of a first embodiment of an interaction standard compliance testing device according to an embodiment of the present invention, and as shown in fig. 9, the device 10 includes:
the acquisition module 11 is used for acquiring a test starting instruction of the platform software;
the test module 12 is configured to perform a test operation on the engineering file in the first directory according to the test starting instruction; the test operation comprises: parsing and compiling; the engineering file is a configuration file or an algorithm file exported by any platform software;
and the judging module 13 is configured to, if the engineering file can be subjected to the test operation, enable the platform software to meet an XML interaction standard.
The interactive standard conformance testing device provided by the embodiment comprises an acquisition module, a testing module and a judgment module, wherein the testing starting instruction of platform software is acquired, the engineering files in a first directory are subjected to testing operation according to the testing starting instruction, the testing operation comprises analysis and compilation, if the engineering files can be subjected to the testing operation, the platform software conforms to the extensible markup language (XML) interactive standard, the standard conformance testing of a PLC program standardization platform is realized, and the platform software can identify the PLC programs conforming to the standard.
In a specific implementation manner, the determining module 13 is further configured to determine that the platform software does not conform to the XML interaction standard if the engineering file fails to perform the test operation.
In a specific implementation manner, the obtaining module 11 is further configured to scan the first directory, and obtain the engineering file in the first directory according to the XML interaction standard, where the engineering file is an engineering file in the first directory that meets a preset test case set.
In a specific implementation manner, the obtaining module 11 is specifically configured to receive a test starting instruction input by a user;
alternatively, the first and second electrodes may be,
and generating a test starting instruction if at least one project file exists by periodically detecting the first directory.
The apparatus provided in this embodiment may be configured to implement the technical solution of any of the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a second exemplary embodiment of an interaction standard compliance testing device according to the present invention, and as shown in fig. 10, the device 20 includes:
an obtaining module 21, configured to obtain a test start instruction;
the test module 22 is used for testing the XML engineering in the first directory according to the test starting instruction and the XSD standard test tool;
the judging module 23 is configured to, if each project file in the XML project passes the test, make the platform software conform to the XML interaction standard.
The interactive standard conformance testing device provided by the embodiment comprises an acquisition processing module, a testing module and a judging module, wherein the XML project in a first directory is tested by acquiring a test starting instruction and according to the test starting instruction and an XSD standard testing tool, if each project file in the XML project passes the test, the platform software conforms to the XML interactive standard, the standard conformance test of a PLC program standardized platform is realized, and the PLC program generated by the platform software conforms to the standard.
In a specific implementation manner, the determining module 23 is further configured to determine that the platform software does not conform to the XML interaction standard if the engineering file in the XML engineering fails to pass the test.
In a specific implementation manner, the obtaining module 21 is further configured to scan the first directory, and obtain the engineering file in the first directory according to an XML interaction standard.
On the basis of the embodiment shown in fig. 10, fig. 11 is a schematic structural diagram of a third embodiment of the interaction standard conformance testing device provided in the embodiment of the present invention, and as shown in fig. 11, the device 20 further includes:
and the processing module 24 is used for exporting the programs and modules generated through conversion to the first catalogue by the platform software, namely creating the XML project.
The apparatus provided in this embodiment may be configured to implement the technical solution of any of the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 12 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention. As shown in fig. 12, the terminal device 60 of the present embodiment includes: a processor 601 and a memory 602; wherein
A memory 602 for storing computer-executable instructions;
the processor 601 is configured to execute the computer execution instructions stored in the memory to implement the steps performed by the terminal device in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 602 may be separate or integrated with the processor 601.
When the memory 602 is provided separately, the terminal device further includes a bus 603 for connecting the memory 602 and the processor 601.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the interaction standard compliance testing method is implemented as described above.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules 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 the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An interaction standard conformance testing method, the method comprising:
acquiring a test starting instruction of platform software;
testing the engineering files in the first directory according to the test starting instruction; the test operation comprises: parsing and compiling; the engineering file is a configuration file or an algorithm file exported by any platform software;
and if the engineering file can be executed with the test operation, the platform software conforms to the extensible markup language XML interactive standard.
2. The method of claim 1, further comprising:
and if the engineering file fails to execute the test operation, the platform software does not conform to the XML interactive standard.
3. The method according to claim 1 or 2, wherein before the performing a test operation on the project file in the first directory according to the test start instruction, the method further comprises:
scanning the first directory, and acquiring the engineering files in the first directory according to the XML interactive standard, wherein the engineering files are the engineering files in the first directory, which accord with a preset test case set.
4. The method of claim 1, wherein obtaining the test initiation instruction of the platform software comprises:
receiving a test starting instruction input by a user;
alternatively, the first and second electrodes may be,
and generating a test starting instruction if at least one project file exists by periodically detecting the first directory.
5. An interactive standard conformance testing method is characterized by comprising the following steps:
acquiring a test starting instruction;
testing the XML engineering in the first directory according to the test starting instruction and an XSD standard test tool;
and if each project file in the XML project passes the test, the platform software conforms to the XML interaction standard.
6. The method of claim 5, further comprising:
and if the project file in the XML project fails to pass the test, the platform software does not conform to the XML interaction standard.
7. The method according to claim 5 or 6, wherein before said testing the XML project in the first directory according to the test launching instruction and XSD standard testing tool, the method further comprises:
and scanning the first directory, and acquiring the project file in the first directory according to an XML (extensible markup language) interaction standard.
8. The method of claim 5 or 6, wherein prior to said obtaining a test initiation instruction for platform software, the method further comprises:
and generating the XML project according to a preset test case set, exporting the XML project to the first directory, and inputting the preset test case set into platform software to enable the platform software to output the XML project.
9. An interaction standard compliance testing device, the device comprising:
the acquisition module is used for acquiring a test starting instruction of the platform software;
the test module is used for carrying out test operation on the engineering files in the first directory according to the test starting instruction; the test operation comprises: parsing and compiling; the engineering file is a configuration file or an algorithm file exported by any platform software;
and the judging module is used for enabling the platform software to accord with an XML (extensive Makeup language) interactive standard if the engineering file can be executed with the test operation.
10. An interaction standard compliance testing device, the device comprising:
the acquisition module is used for acquiring a test starting instruction;
the test module is used for testing the XML engineering in the first directory according to the test starting instruction and the XSD standard test tool;
and the judging module is used for judging that the platform software conforms to the XML interaction standard if each project file in the XML project passes the test.
CN201910213310.4A 2019-03-20 2019-03-20 Interactive standard conformance testing method and device Pending CN111722996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910213310.4A CN111722996A (en) 2019-03-20 2019-03-20 Interactive standard conformance testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910213310.4A CN111722996A (en) 2019-03-20 2019-03-20 Interactive standard conformance testing method and device

Publications (1)

Publication Number Publication Date
CN111722996A true CN111722996A (en) 2020-09-29

Family

ID=72563074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910213310.4A Pending CN111722996A (en) 2019-03-20 2019-03-20 Interactive standard conformance testing method and device

Country Status (1)

Country Link
CN (1) CN111722996A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107415A1 (en) * 2002-12-03 2004-06-03 Konstantin Melamed Web-interactive software testing management method and computer system including an integrated test case authoring tool
US7127641B1 (en) * 2002-03-29 2006-10-24 Cypress Semiconductor Corp. System and method for software testing with extensible markup language and extensible stylesheet language
CN102479152A (en) * 2010-11-26 2012-05-30 腾讯科技(深圳)有限公司 Method and device for obtaining tool automatic test results on basis of Android platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7127641B1 (en) * 2002-03-29 2006-10-24 Cypress Semiconductor Corp. System and method for software testing with extensible markup language and extensible stylesheet language
US20040107415A1 (en) * 2002-12-03 2004-06-03 Konstantin Melamed Web-interactive software testing management method and computer system including an integrated test case authoring tool
CN102479152A (en) * 2010-11-26 2012-05-30 腾讯科技(深圳)有限公司 Method and device for obtaining tool automatic test results on basis of Android platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
董京京;吴宝元;申飞;吴仲城;: "传感器信号接口标准符合性测试研究", 计算机测量与控制, no. 11, pages 2867 - 2869 *

Similar Documents

Publication Publication Date Title
CN109918081B (en) Compiling method and compiler
CN105446874A (en) Method and device for detecting resource configuration file
CN113627168B (en) Method, device, medium and equipment for checking component packaging conflict
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN111814449B (en) Form analysis method, device, equipment and storage medium
CN110888801A (en) Software program testing method and device, storage medium and electronic equipment
CN113126955A (en) Random data generation method and device, intelligent terminal and storage medium
CN114895935A (en) Method and device for flashing vehicle ECU, electronic equipment and storage medium
CN115525534A (en) Test case generation method and platform based on swagger interface test
CN111078529B (en) Client writing module testing method and device and electronic equipment
CN111722996A (en) Interactive standard conformance testing method and device
CN113094252A (en) Test case generation method and device, computer equipment and storage medium
CN110543394A (en) server sensor information consistency testing method, system, terminal and storage medium
CN114527993A (en) Application deployment method, device, equipment and medium
CN115437913A (en) Software in-loop testing method, device, system and storage medium
CN114661298A (en) Automatic public method generation method, system, device and medium
CN111258838B (en) Verification component generation method, device, storage medium and verification platform
CN111475403A (en) Dynamic generation method of test script and related device
CN113704123A (en) Interface test method, device, equipment and storage medium
CN112084667A (en) Test case generation method and device and electronic equipment
CN111008150A (en) Test report generation method, device and equipment
CN112148581A (en) Code specification checking method, device, system and storage medium
CN111813396B (en) Script editing method and device, computer equipment and readable storage medium
CN114036876B (en) Integrated circuit EDA platform
CN115686479A (en) File creation method and related device

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