CN117075574A - Automatic test method, system, equipment and medium for process protection function of trusted DCS controller - Google Patents

Automatic test method, system, equipment and medium for process protection function of trusted DCS controller Download PDF

Info

Publication number
CN117075574A
CN117075574A CN202311021609.2A CN202311021609A CN117075574A CN 117075574 A CN117075574 A CN 117075574A CN 202311021609 A CN202311021609 A CN 202311021609A CN 117075574 A CN117075574 A CN 117075574A
Authority
CN
China
Prior art keywords
dcs controller
process protection
trusted
client
module
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
CN202311021609.2A
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.)
Datang Gaohong Xin'an Zhejiang Information Technology Co ltd
Xian Thermal Power Research Institute Co Ltd
Original Assignee
Datang Gaohong Xin'an Zhejiang Information Technology Co ltd
Xian Thermal Power Research Institute Co Ltd
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 Datang Gaohong Xin'an Zhejiang Information Technology Co ltd, Xian Thermal Power Research Institute Co Ltd filed Critical Datang Gaohong Xin'an Zhejiang Information Technology Co ltd
Priority to CN202311021609.2A priority Critical patent/CN117075574A/en
Publication of CN117075574A publication Critical patent/CN117075574A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention belongs to the field of DCS controllers and discloses an automatic test method, system, equipment and medium for a process protection function of a trusted DCS controller. The invention can effectively improve the test speed and the test quality, can discover problems in the process protection function earlier, can test the stability of the process protection function, and can obviously reduce the test cost.

Description

Automatic test method, system, equipment and medium for process protection function of trusted DCS controller
Technical Field
The invention belongs to the field of DCS controllers, and particularly relates to an automatic test method, system, equipment and medium for a process protection function of a trusted DCS controller.
Background
The domestic trusted DCS controller integrates a process protection function, and in the DCS controller system, a specified process can be protected from being terminated during operation. The function can effectively prevent a user from sending a termination signal to the process through a kill command, so that the process always provides continuous and stable service. After the deployment of the process protection function is completed, the test is required, the domestic trusted DCS controller adopts a winged SylixOS operating system, the system cannot automatically test through main stream scripts such as shell locally, the speed of traditional manual test is slower, the problem of the function cannot be found in the first time, and the stability of the function cannot be tested. If the test is complete, the project time will be prolonged, resulting in an overspray cost.
Disclosure of Invention
The invention aims to overcome the defects and provide an automatic test method, system, equipment and medium for the process protection function of the trusted DCS controller, which can effectively improve the test speed and test quality.
In order to achieve the above purpose, an automated test method for a process protection function of a trusted DCS controller includes:
the client is connected with the DCS controller;
after the connection is successful, an execution instruction is sent to the DCS controller;
the DCS controller feeds back an execution result to the client;
the client judges the execution result;
saving the judging success log or judging failure log into a database;
and generating a test report according to the log in the database.
The client executes the python test script.
The client is connected with the DCS controller through telnet.
And if the connection between the client and the DCS controller fails, reconnecting.
The DCS controller executes the instruction as follows:
randomly setting the state of a process protection module according to the instruction;
marking the appointed process file;
running a process file, and verifying whether the process of the marked process protection strategy can be deleted or not in the state of the process protection module;
deleting the process protection strategy operation on the appointed process file;
and running the process file, and verifying whether the process without marking the process protection strategy can be deleted in the state of the process protection module.
The test report adopts an html format test report.
An automated test system for process protection functions of a trusted DCS controller, comprising:
the connection module is used for connecting the client with the DCS controller;
the execution instruction sending module is used for sending an execution instruction to the DCS controller after the connection is successful;
the feedback module is used for enabling the DCS controller to feed back the execution result to the client;
the judging module is used for enabling the client to judge the execution result;
the storage module is used for storing the judging success log or the judging failure log into a database;
and the test report generation module is used for generating a test report according to the log in the database.
An electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of an automated test method of trusted DCS controller process protection functions when executing the computer program.
A storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of an automated test method for trusted DCS controller process protection functions.
Compared with the prior art, the invention has the advantages that the client is connected with the DCS controller, the DCS controller sends the execution instruction to the DCS controller, the DCS controller feeds back the execution result to the client, the client judges the execution result, the judging success log or the judging failure log is stored in the database, and the test report is generated according to the log in the database. The invention can effectively improve the test speed and the test quality, can discover problems in the process protection function earlier, can test the stability of the process protection function, and can obviously reduce the test cost.
Drawings
FIG. 1 is a flow chart of the present invention;
fig. 2 is a system diagram of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 1, an automated test method for a process protection function of a trusted DCS controller includes:
s1, a client is connected with a DCS controller;
wherein the client executes the python test script. The client is connected with the DCS controller through telnet.
S2, after connection is successful, sending an execution instruction to the DCS controller; and if the connection between the client and the DCS controller fails, reconnecting.
S3, the DCS controller executes the instruction as follows:
randomly setting the state of a process protection module according to the instruction;
marking the appointed process file;
running a process file, and verifying whether the process of the marked process protection strategy can be deleted or not in the state of the process protection module;
deleting the process protection strategy operation on the appointed process file;
and running the process file, and verifying whether the process without marking the process protection strategy can be deleted in the state of the process protection module.
S4, the DCS controller feeds back an execution result to the client;
s5, the client judges the execution result;
s6, storing the judging success log or the judging failure log into a database;
s7, generating a test report according to the log in the database, wherein the test report adopts an html format test report.
Referring to fig. 2, an automated test system for trusted DCS controller process protection functions includes:
the connection module is used for connecting the client with the DCS controller;
the execution instruction sending module is used for sending an execution instruction to the DCS controller after the connection is successful;
the feedback module is used for enabling the DCS controller to feed back the execution result to the client;
the judging module is used for enabling the client to judge the execution result;
the storage module is used for storing the judging success log or the judging failure log into a database;
and the test report generation module is used for generating a test report according to the log in the database.
Examples:
the precondition is that: ensuring that the client and the DCS controller are in the same network segment. The configuration file of the automation script fills in the ip address of the DCS controller, the user name and the password of telnet login.
Step 1: the client executes an automatic test script of the process protection function, performs telnet connection through the ip address of the DCS controller filled in the configuration file, and if the connection fails, reconnecting after a period of time, and if the connection is successful, performing the following steps.
Step 2: the real-time state of process protection is set randomly in the following 3 states, namely, 1. An on state, 2. An off state and 3. A monitoring state.
Step 3: and configuring a process protection strategy for the designated process file.
Step 4: and running the file configured with the process protection strategy.
Step 5: carrying out kill operation on the process in the step 4;
if the process protection state set in the step 2 is on, performing kill operation on the process in the step 5, and generating a log when the kill operation fails.
Step 6: and carrying out strategy deleting operation on the file configured with the process protection strategy.
Step 7: and running the file after deleting the process protection strategy.
Step 8: and (3) carrying out kill operation on the process in the step (7), and not configuring a process file of a strategy, wherein no matter whether a process protection function is started or not, the process is not protected, so that the kill operation can be normally carried out on the process.
Step 9: and repeating the steps 2-8, wherein the steps 2-8 are automatically executed after the script is executed in the step 1.
Step 10: the automated test script is terminated.
Step 11: and generating a test report through the log file.
Setting the state of a process protection function, configuring or deleting a process protection strategy for a file, and marking the process of the process protection strategy by kill to generate logs, judging each log by a client, and storing the judging result in a database. And generating an html format test report through a log in the database.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.

Claims (9)

1. The automatic test method for the process protection function of the trusted DCS controller is characterized by comprising the following steps of:
the client is connected with the DCS controller;
after the connection is successful, an execution instruction is sent to the DCS controller;
the DCS controller feeds back an execution result to the client;
the client judges the execution result;
saving the judging success log or judging failure log into a database;
and generating a test report according to the log in the database.
2. The automated test method of trusted DCS controller process protection functions of claim 1, wherein the client executes a python test script.
3. The automated testing method of trusted DCS controller process protection functions of claim 1, wherein the client is connected to the DCS controller via telnet.
4. The automated test method of trusted DCS controller process protection functions of claim 1, wherein if the client fails to connect with the DCS controller, the connection is reconnected.
5. The automated test method of trusted DCS controller process protection functions of claim 1, wherein the DCS controller executes instructions as follows:
randomly setting the state of a process protection module according to the instruction;
marking the appointed process file;
running a process file, and verifying whether the process of the marked process protection strategy can be deleted or not in the state of the process protection module;
deleting the process protection strategy operation on the appointed process file;
and running the process file, and verifying whether the process without marking the process protection strategy can be deleted in the state of the process protection module.
6. The automated test method of trusted DCS controller process protection functions of claim 1, wherein the test report is an html format test report.
7. The automatic test system of trusted DCS controller process protect function, characterized by comprising:
the connection module is used for connecting the client with the DCS controller;
the execution instruction sending module is used for sending an execution instruction to the DCS controller after the connection is successful;
the feedback module is used for enabling the DCS controller to feed back the execution result to the client;
the judging module is used for enabling the client to judge the execution result;
the storage module is used for storing the judging success log or the judging failure log into a database;
and the test report generation module is used for generating a test report according to the log in the database.
8. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the automated test method of the trusted DCS controller process protection function of any one of claims 1 to 6.
9. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the automated test method of trusted DCS controller process protection functions of any one of claims 1 to 6.
CN202311021609.2A 2023-08-14 2023-08-14 Automatic test method, system, equipment and medium for process protection function of trusted DCS controller Pending CN117075574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311021609.2A CN117075574A (en) 2023-08-14 2023-08-14 Automatic test method, system, equipment and medium for process protection function of trusted DCS controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311021609.2A CN117075574A (en) 2023-08-14 2023-08-14 Automatic test method, system, equipment and medium for process protection function of trusted DCS controller

Publications (1)

Publication Number Publication Date
CN117075574A true CN117075574A (en) 2023-11-17

Family

ID=88707290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311021609.2A Pending CN117075574A (en) 2023-08-14 2023-08-14 Automatic test method, system, equipment and medium for process protection function of trusted DCS controller

Country Status (1)

Country Link
CN (1) CN117075574A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117970907A (en) * 2024-04-01 2024-05-03 西安热工研究院有限公司 Trusted DCS controller trusted function test method, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117970907A (en) * 2024-04-01 2024-05-03 西安热工研究院有限公司 Trusted DCS controller trusted function test method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110928774B (en) Automatic test system based on node type
CN106681924B (en) A kind of method for testing software and system
CN117075574A (en) Automatic test method, system, equipment and medium for process protection function of trusted DCS controller
CN110768863B (en) Scheme for simulating and testing AIOT equipment
CN112953983A (en) SFTP transmission method and device
CN110824982A (en) ECU remote debugging method, server and storage medium
CN111104139A (en) Firmware upgrading method, device, equipment and storage medium
CN106534130A (en) Method and system for debugging set-top box based on embedded web
CN109273045B (en) Storage device online detection method, device, equipment and readable storage medium
CN114374632A (en) Internet of things data platform multi-protocol test efficiency improvement method
CN111078484B (en) Power-off test method, device, equipment and storage medium for system upgrade
CN115422048A (en) Link stability testing method and device, computer equipment and storage medium
CN117112407A (en) Automatic test method and related device for trusted white list function of DCS controller
CN116974941A (en) Testing method for management interface function of intelligent platform of baseboard management controller
CN109960657B (en) Test environment deployment method and related device
CN116074492A (en) Method, system, equipment and medium for testing infrared function of set top box
CN116302989A (en) Pressure testing method and system, storage medium and computer equipment
CN102158374A (en) Bandwidth speed limiting testing method and testing device
CN111400094A (en) Method, device, equipment and medium for restoring factory settings of server system
CN111082984A (en) Method and device for simulating login of network equipment to carry out command line interaction
CN116232643B (en) Terminal control method, device, electronic equipment and storage medium
CN115250249B (en) IPv6 Ready-based automatic testing method, device, medium and equipment
CN115022378B (en) Transmission valve control equipment communication method and system, valve tower monitoring equipment and storage medium
CN111752773B (en) Method and device for realizing power-on self-check verification of clustered system
CN117221186A (en) Throughput test method, system, equipment and medium based on iperf

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