CN113779776B - Test profile modeling method, system, equipment and medium for power grid dispatching application - Google Patents

Test profile modeling method, system, equipment and medium for power grid dispatching application Download PDF

Info

Publication number
CN113779776B
CN113779776B CN202110969511.4A CN202110969511A CN113779776B CN 113779776 B CN113779776 B CN 113779776B CN 202110969511 A CN202110969511 A CN 202110969511A CN 113779776 B CN113779776 B CN 113779776B
Authority
CN
China
Prior art keywords
power grid
dispatching application
application
grid dispatching
test
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
CN202110969511.4A
Other languages
Chinese (zh)
Other versions
CN113779776A (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.)
China Electric Power Research Institute Co Ltd CEPRI
State Grid Shanghai Electric Power Co Ltd
Original Assignee
China Electric Power Research Institute Co Ltd CEPRI
State Grid Shanghai Electric Power 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 China Electric Power Research Institute Co Ltd CEPRI, State Grid Shanghai Electric Power Co Ltd filed Critical China Electric Power Research Institute Co Ltd CEPRI
Priority to CN202110969511.4A priority Critical patent/CN113779776B/en
Publication of CN113779776A publication Critical patent/CN113779776A/en
Application granted granted Critical
Publication of CN113779776B publication Critical patent/CN113779776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/08Probabilistic or stochastic CAD

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Evolutionary Computation (AREA)
  • Computer Hardware Design (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Geometry (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention belongs to the field of power system automation, and discloses a test profile modeling method, a system, equipment and a medium for power grid dispatching application, which comprise the following steps: acquiring a plurality of elements influencing the operation of the power grid dispatching application and a business logic relation of the power grid dispatching application; according to the business logic relation of the power grid dispatching application, obtaining the association relation among a plurality of elements, and constructing a plurality of power grid system scenes according to the association relation among the plurality of elements; under each power grid system scene, according to the business logic relationship of power grid dispatching application, obtaining the logic relationship of the power grid system scene; according to the logic relation of the power grid system scene, combining the preset execution probability and constraint conditions to obtain a power grid system scene section; and combining the power grid system scene sections of the power grid system scenes to obtain a test section of power grid dispatching application. The workflow of the power grid dispatching application can be better described, and then an important basic function is provided for the subsequent application reliability test link.

Description

Test profile modeling method, system, equipment and medium for power grid dispatching application
Technical Field
The invention belongs to the field of power system automation, and relates to a test profile modeling method, a system, equipment and a medium for power grid dispatching application.
Background
The application reliability test is a test for guaranteeing and verifying the reliability of the application, is a random test, adopts a test method for carrying out random test on the application based on the running section of the application, and is mainly characterized in that the application is tested according to the mode of actually using the application by a user. The emphasis of the application reliability test is that by designing test cases, running tests and collecting failure data, faults with great influence on reliability are found, and the requirement of reliability is met in a short time. The key point of successfully realizing the reliability test is to design a use case meeting the test requirement, and obtain evaluation data which can truly reflect the reliability, safety and other aspects of the application during operation through test operation, thereby providing a quantized basis for the reliability evaluation of the application.
The power grid dispatching automation real-time monitoring application is an integrated and intensive system oriented to dispatching production service and is used for providing technical support for the services such as monitoring, analysis, control, planning, evaluation, dispatching management and the like of power grid operation. The complex functions and the distributed design of the system are not obvious in operation, and the system has the main characteristics of system interactivity, environmental influence, activity time sequence and the like in the operation process, and has special technical requirements when the system is applied to the reliability test section structure.
However, the conventional operation profile does not have the factors described in the above technical requirements, since the application is described only from the perspective of a single operator, and the influence of the external environment on the running process of the application is not involved, and the operation itself is described only in the sequence of the operations during the description of the operation, and the time relationship between the operations is not involved. The existing reliability test technology is difficult to model the accurate and proper reliability test profile description of the power grid dispatching application.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a test profile modeling method, a system, equipment and a medium for power grid dispatching application.
In order to achieve the purpose, the invention is realized by adopting the following technical scheme:
in a first aspect of the present invention, a method for modeling a test profile for power grid dispatching applications includes the steps of:
acquiring a plurality of elements influencing the operation of the power grid dispatching application and a business logic relation of the power grid dispatching application;
according to the business logic relation of the power grid dispatching application, obtaining the association relation among a plurality of elements, and constructing a plurality of power grid system scenes according to the association relation among the plurality of elements;
Under each power grid system scene, according to the business logic relationship of the power grid dispatching application, obtaining all use modes contained in the power grid dispatching application, all functions contained in each use mode, association relationships among functions, all operations contained in each function and operation flows of each operation, and obtaining the logic relationship of the power grid system scene;
under each power grid system scene, according to the logic relation of the power grid system scene, combining the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation to obtain a power grid system scene section;
and combining the power grid system scene sections of the power grid system scenes to obtain a test section of power grid dispatching application.
The test profile modeling method for power grid dispatching application is further improved in that:
the elements include one or more of user classification, operation mode, operation environment, and usage conditions.
The power grid system scene comprises one or more of a power grid use scene, a power grid operation continuous scene and a power grid operation concurrent scene.
The preset execution probability of each use mode, the preset execution probability of each function and the preset execution probability of each operation are obtained according to the historical data statistics of the same or similar application or according to the user investigation data statistics.
Further comprises: according to the power grid system scene profile of each power grid system scene, using the use modes, functions and operations as nodes, using the association relation and operation flow among the functions as paths among the nodes, using the execution probability preset by each use mode, the execution probability preset by each function and the execution probability preset by each operation as the weights of the paths, adding a start node and an end node, constructing a power grid system scene network graph of each power grid system scene, and combining the power grid system scene network graph of each power grid system scene to obtain the test profile network graph of the power grid dispatching application.
Further comprises: and (5) testing the test section of the power grid dispatching application to obtain a test result.
The specific method for obtaining the test result by checking the test section of the power grid dispatching application comprises the following steps:
checking whether the association relation among a plurality of elements is correct or not, and obtaining a first sub-checking result;
under each power grid system scene, checking whether all the use modes contained in the power grid dispatching application, all the functions contained in each use mode, the association relation among the functions, all the operations contained in each function and the operation flow of each operation are correct or not, and obtaining a second sub-checking result;
Under each power grid system scene, checking whether the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation are correct or not to obtain a third sub-checking result;
when the first sub-test result, the second sub-test result and the third sub-test result are all correct, the test result is that the test is passed; otherwise, the test result is that the test is not passed.
In a second aspect of the present invention, a test profile modeling system for a power grid dispatching application, comprises:
the data acquisition module is used for acquiring a plurality of factors influencing the operation of the power grid dispatching application and the business logic relationship of the power grid dispatching application;
the scene construction module is used for obtaining the association relation among a plurality of elements according to the business logic relation of the power grid dispatching application and constructing a plurality of power grid system scenes according to the association relation among the plurality of elements;
the logic relation determining module is used for acquiring all the use modes contained in the power grid dispatching application, all the functions contained in the use modes, the association relation among the functions, all the operations contained in the functions and the operation flow of the operations under the condition of each power grid system according to the business logic relation of the power grid dispatching application, and obtaining the logic relation of the power grid system scene;
The profile construction module is used for obtaining a power grid system scene profile according to the logic relation of the power grid system scene by combining the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation;
and the combination module is used for combining the power grid system scene profiles of all the power grid system scenes to obtain a test profile of power grid dispatching application.
In a third aspect the invention consists in a computer device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that the steps of a test profile modeling method as described above for a grid dispatching application are realized when said computer program is executed by said processor.
In a fourth aspect of the invention, a computer readable storage medium stores a computer program, characterized in that the computer program when executed by a processor implements the steps of a test profile modeling method for a grid dispatching application as described above.
Compared with the prior art, the invention has the following beneficial effects:
According to the test profile modeling method of the power grid dispatching application, the association relation among the elements is obtained by obtaining the elements influencing the operation of the power grid dispatching application and the business logic relation of the power grid dispatching application, and a plurality of power grid system scenes are constructed according to the association relation among the elements, so that the modeling of the whole environment and the condition of the power grid system operation is realized, the characteristics of the system interactivity, the environment influence and the like of the power grid dispatching application are fully considered, the constructed power grid system scenes are more in line with the actual situation of the power grid dispatching application, and the use of the power grid dispatching application by a user is reflected more truly. And further, under each power grid system scene, each factor of the power grid system scene is refined gradually from top to bottom, a layering system is formed by constructing a use mode, functions and operations layer by layer, and execution probability and constraint conditions preset by each use mode, execution probability and constraint conditions preset by each function and execution probability and constraint conditions preset by each operation are distributed to obtain a power grid system scene section, and the power grid dispatching application test section is obtained by combining the power grid system scene sections, so that a work flow of the power grid dispatching application is better described, a reliability test case for the actual operation of the attached power dispatching application can be generated through the power grid dispatching application test section, and an important foundation is provided for a subsequent reliability test link.
Drawings
FIG. 1 is a flow chart of a test profile modeling method for a power grid dispatching application of the present invention;
FIG. 2 is a schematic view of a user scenario of the SCADA system of the present invention;
FIG. 3 is a schematic view of a SCADA system usage pattern and probability distribution scenario of the present invention;
FIG. 4 is a schematic view of a usage pattern of a SCADA system switch module of the present invention;
FIG. 5 is a schematic diagram of a telemetry control function scenario of the SCADA system of the present invention;
FIG. 6 is a schematic diagram of a telemetry control function scenario of the SCADA system of the present invention;
FIG. 7 is a schematic diagram showing probability distribution of errors according to the present invention;
FIG. 8 is a schematic diagram of a correct probability distribution display of the present invention;
fig. 9 is a block diagram of a test profile modeling architecture for a grid dispatching application of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, the meaning represented by some technical terms related to the present invention will be described:
test section: a test profile refers to the set of all possible operating processes and their occurrence probabilities applied under the combined action of a plurality of operators, participants. The method can embody the branching process and the running probability of the application which can be expressed under the common behaviors of a plurality of operators or participants, and the influence and the change of the interaction behavior of the application with other applications in the system under the system where the functional requirements are located. The operating profile is a definition of the conditions under which the system will be used. I.e. the input values of the system are defined by their distribution in time or by their probability of occurrence within the range of possible inputs.
Scene: a scenario refers to a set of sequences of actions that the system implements a complete functional requirement specification, describing interactions between users, system components and the environment for a certain purpose.
The invention is described in further detail below with reference to the attached drawing figures:
currently, the existing test profile construction method using reliability tests is generally a Musa operation profile. The construction method of the Musa operation section is divided into two types.
In a first method, first, the primary use customers of the application product are determined, and the probability of each customer is determined; secondly, determining the user type and the occurrence probability of each client; third, defining a system operation mode and occurrence probability of the system in the use process of each user; determining main function operation and use probability of the system in each mode; and fifthly, fusing the information obtained in the previous four steps to determine the complete operation section of the whole application object. In the second method, the operating mode of the system is first determined, the concept of the operating mode being the same as the system mode concept in the Musa first method, being the unique mode used by the system, being the set of environmental conditions that need to be tested separately. And determining an initiator of the operation, wherein the initiator comprises a user of the system, an external system and a control program of the system. The third step selects the representation of the operating profile, which may be represented by a tabular representation or a graphical representation. Fourth, based on each operation initiator, determining its operation list, and determining each significantly different process as a different operation. Fifth, the occurrence rate of each operation, which is the number of occurrences of the operation or attribute value per unit time, is determined, preferably using actual data. Such metrics for use are often obtained from a log of the system. Sixth, the occurrence probability of the operation is determined, and the occurrence probability of the operation or the attribute value is calculated by the occurrence probability, and can be obtained by dividing the occurrence number of the operation/attribute value by the total number of all the operation/attribute value occurrences.
However, the power grid dispatching application does not have obvious operation, has main characteristics of system interactivity, environmental influence, activity time sequence and the like in the running process, and has special technical requirements when the power grid dispatching application is applied to the application reliability test section structure.
Wherein, system interactivity: for the interactivity of an application, on one hand, in the running process of the application, not only the operation process of a single operator is affected, but a plurality of operation originators or participators can jointly determine the running process of a certain activity of the application and the branching conditions and subsequent effects possibly generated by the running process of the activity. On the other hand, the activity process of an application is not determined by the application itself, but it is possible that in a real-time system where a certain functional requirement is commonly completed, the interaction processes of multiple applications commonly determine possible running processes of each application. Environmental impact: for the application, the application is often influenced by factors such as temperature, pressure, humidity and the like in the external environment of the system where the application is located in the running process; the application can enable the system to enter different operation environments under different operation modes to form an operation process with a feedback loop. For the application of the dispatching automation master station system, various input circuit indexes may have different change rules according to different environmental seasons and different time of day. Activity timing: in the operation process, the operation process is not only a simple series relation of operation sequences, but also a limiting condition of time factors. Different runs may occur at different time intervals between the application of the respective operations. Taking the application of the dispatching automation master station system as an example, the complexity of the activity time sequence is mainly embodied in the processes of automatically sending and receiving data and automatically processing the data and possibly required manual operation due to the characteristic of long-time operation monitoring.
It can be seen that the existing method for constructing the Musa operation profile does not have the factors described in the above technical requirements and cannot be applied to modeling the test profile for the power grid dispatching application.
Based on the above, referring to fig. 1, in an embodiment of the present invention, a method for modeling a test profile of a power grid dispatching application is provided, and a modeling process of a power grid system scene is added according to characteristics of the power grid dispatching application, and modeling is performed from two angles of the power grid system scene and the application scene by using extracted system features, i.e. a plurality of elements affecting operation of the power grid dispatching application, so as to jointly form the test profile for testing application reliability. Specifically, the test profile modeling method for the power grid dispatching application comprises the following steps:
s1: and acquiring a plurality of elements influencing the operation of the power grid dispatching application and business logic relations of the power grid dispatching application.
Specifically, before the test profile modeling of the grid dispatching application is performed, a set of elements affecting the operation of the grid system needs to be analyzed on the basis of the outside of the grid system, and preferably, the elements include user classification, different operation modes, different operation environments, different use conditions and the like.
When the test profile modeling of the power grid dispatching application is performed, a plurality of elements in the pre-element set and the business logic relation of the power grid dispatching application are required to be obtained, wherein the business logic relation of the power grid dispatching application is the necessary content for constructing the power grid dispatching application, and corresponding information can be obtained from a management system of the power grid dispatching application. Based on the business logic relationship of the power grid dispatching application, each element can be a conditional relationship or an independent relationship, and a plurality of combinations can be divided according to the tightness degree of the relationship between the elements.
S2: and obtaining the association relation among a plurality of elements according to the business logic relation of the power grid dispatching application, and constructing a plurality of power grid system scenes according to the association relation among the plurality of elements.
Specifically, according to the business logic relationship of the power grid dispatching application, the association relationship among a plurality of elements is obtained, for example, under different user classifications, the running mode and the use condition contained in the power grid dispatching application are different, and if the application authority owned by a manager is more than that of a user.
Referring to fig. 2, in this embodiment, a real-time monitoring (SCADA) system in a smart grid dispatching control system is taken as an example, and a grid system scenario is established. The SCADA system has three types of users, wherein a two-way relation is established between a dispatcher and an operator and the system, namely the SCADA system provides information for the users, and the users have control rights to the SCADA system; the operation and maintenance personnel and the SCADA system have unidirectional relation and are responsible for operating and maintaining the SCADA system.
Referring to fig. 3, a process of modeling a grid system scenario for different operation modes of the grid system is shown, and the SCADA system can be described as three usage modes, namely a switch module usage mode, a telemetry signal control module usage mode, and a knife switch module usage mode. Analysis from different user's perspective, different types of users have different purposes of application usage, such as dispatcher and operator being more concerned about the switch module usage mode and telemetry signal control module usage mode, as they need to receive monitoring information and alarm information from the SCADA system.
Preferably, the grid system scene comprises one or more of a grid use scene, a grid operation continuous scene and a grid operation concurrent scene.
The continuous scene of power grid operation is used for describing the condition that a certain input variable continuously changes in the manual operation of the power grid, and can be understood as continuous operation of a power grid use scene, wherein the description of each variable in the continuous scene of power grid operation is composed of coordinates of time on a horizontal axis and values (Boolean type, floating point type and integer type) or character strings (enumeration type) on a vertical axis. The concurrent scene of the grid operation is used for representing the starting time and duration of the manual operation of the grid and the description mode of the concurrent operation in the application running state, and can be understood as continuous running of a plurality of grid use scenes to represent the concurrent relationship among the internal grid use scenes. Wherein the grid manual operation includes each usage pattern, each function, and each operation of the grid scheduling application.
S3: under each power grid system scene, according to the business logic relationship of the power grid dispatching application, all the use modes contained in the power grid dispatching application, all the functions contained in each use mode, the association relationship among the functions, all the operations contained in each function and the operation flow of each operation are obtained, and the logic relationship of the power grid system scene is obtained.
In particular, in each grid system scenario, modeling is performed on how the grid system is used, and what is considered is that the usage can be implemented on the level of the grid system scenario, and the relationship between each usage, which represents the usage situation of the user for the grid dispatching application in a specific range, and is essentially a dynamic simulation of the usage situation of the user. Firstly, all use modes contained in a power grid dispatching application are obtained to be used as a layer structure, then all functions contained in each use mode and association relations among the functions are obtained to be used as a structure of a next layer, finally all operations contained in each function and operation flows of each operation are obtained to be used as a bottom layer structure, and a logic relation of a power grid system scene of a layered nested structure is formed.
In this embodiment, referring to fig. 4, taking a use mode of a switch module of the SCADA system as an example, a logic relationship of a grid system scene is constructed. For the use mode of a switch module in the SCADA, the main functions of the switch module include the functions of setting a signpost, remote control checking, remote control, pre-information, remote control testing, alarm suppression/recovery, remote signaling blocking/releasing, refreshing measurement point information, remote signaling alignment, station remote signaling alignment and interval remote signaling alignment and the like, wherein a nested structure of the next level is established for the functions of setting the signpost, remote control checking, remote control, pre-information and the like. Referring to fig. 5, taking a telemetry control function as an example, after a main workflow of the telemetry control function selects a remote control reason and a monitoring type for a user, a login operation is performed at an input window, after the user logs in correctly, remote control presetting and remote control executing operations are performed, and in the executing process, a certain probability exists to cancel the existing telemetry control.
S4: and under each power grid system scene, according to the logic relation of the power grid system scene, combining the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation to obtain the power grid system scene profile.
After establishing the logical relationship of the grid system scenarios, the probability of possible use of each usage pattern, each function and each operation, i.e. the execution probability, needs to be allocated, which is a relative probability that one grid is manually operated and then other or own grid is manually operated.
In the present embodiment, the execution probability of each usage pattern, the execution probability of each function, and the execution probability of each operation are set in advance. Preferably, the execution probability of each usage mode, the execution probability of each function and the execution probability of each operation can be obtained by statistics according to historical data of the same or similar application or statistics according to investigation data of a user. Specifically, the execution probability of each usage pattern includes a probability of directly executing the usage pattern, and an execution probability of continuing to execute the usage pattern after the previous usage pattern associated with the usage pattern is executed. Similarly, the execution probability of each function and the execution probability of each operation include the probability of directly executing the function or operation and the probability of continuing to execute the function or operation after executing the function or operation associated therewith, respectively. And starting from one power grid manual operation, the sum of the execution probabilities of all power grid manual operations which are possibly executed continuously is equal to 1.
After the logical relationship of the grid system scenario of each grid system scenario is established, constraint conditions of each usage mode, each function and each operation need to be set. Specifically, the constraint condition is set based on a business logic relation of the power grid dispatching application, and each use mode, each function and each operation are realized, so that the application is prevented from running infinitely. The constraint is another usage determinant of the grid manual operation, which is typically embodied in a precondition in the grid manual operation. The source of the constraint condition can be the value of the previous input variable, the time, or the output value of the tested system with unknown value.
Referring to fig. 6, in this embodiment, taking an alarm suppression/recovery operation in a telemetry control function in a SCADA system as an example, a user may click an alarm suppression button and an interval alarm suppression button in an initial situation during the alarm suppression/recovery operation. When the selected telemetry value is in the alarm suppression state, the user can select to click an alarm recovery button, when the selected telemetry value is in the interval alarm suppression state, the user can select the alarm recovery of a single telemetry value in an interval or the interval alarm recovery of a whole interval, and if the alarm recovery of the single telemetry value is selected, the user can still continue to select the next alarm recovery button and the interval alarm recovery button until all alarm suppression signals in the interval are reset.
And embedding the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation into the logic relation of the power grid system scene to obtain the power grid system scene profile. The profile may be understood as a set of association relationships.
S5: and combining the power grid system scene profiles of the power grid system scenes to obtain a test profile of power grid dispatching application.
Specifically, the power grid system scene profiles of the power grid system scenes are combined to obtain a test profile of power grid dispatching application, wherein the test profile of the power grid dispatching application is a sequentially nested hierarchical structure, and sequentially is the power grid system scene profile of the power grid system scenes, the use modes, the functions and the operations.
In summary, according to the test profile modeling method for the power grid dispatching application, through obtaining the elements influencing the operation of the power grid dispatching application and the business logic relationship of the power grid dispatching application, the association relationship among the elements is further obtained, and according to the association relationship among the elements, a plurality of power grid system scenes are constructed, so that the overall environment and the condition of the operation of the power grid system are modeled, the characteristics of the system interactivity, the environment influence and the like of the power grid dispatching application are fully considered, and the constructed power grid system scenes are more in line with the actual situation of the power grid dispatching application. And in the construction process, each factor of the power grid system scene is refined gradually from top to bottom, a layering system is formed by constructing a use mode, functions and operations layer by layer, and execution probability and constraint conditions preset by each use mode, execution probability and constraint conditions preset by each function and execution probability and constraint conditions preset by each operation are distributed to obtain a power grid system scene section.
In still another embodiment of the present invention, a method for modeling a test profile for a power grid dispatching application is provided, including, in addition to all the contents in the previous embodiment: according to the power grid system scene profile of each power grid system scene, using the use modes, functions and operations as nodes, using the association relation and operation flow among the functions as paths among the nodes, using the execution probability preset by each use mode, the execution probability preset by each function and the execution probability preset by each operation as the weights of the paths, adding a start node and an end node, constructing a power grid system scene network graph of each power grid system scene, and combining the power grid system scene network graph of each power grid system scene to obtain the test profile network graph of the power grid dispatching application. The actual running process of the power grid dispatching application is described in a networking mode through a test profile network diagram of the power grid dispatching application, and a traceable understood flow chart is provided for testers to know the use of the power grid dispatching application.
In still another embodiment of the present invention, a method for modeling a test profile for a power grid dispatching application is provided, including, in addition to all the contents of the first embodiment, the steps of: and (5) testing the test section of the power grid dispatching application to obtain a test result. By checking the test profile of the power grid dispatching application, the accuracy of the test profile of the power grid dispatching application is ensured, and the validity of the test case generated according to the test profile of the power grid dispatching application is ensured.
Preferably, the specific method for testing the test section of the power grid dispatching application and obtaining the test result is as follows: checking whether the association relation among a plurality of elements is correct or not, and obtaining a first sub-checking result; under each power grid system scene, checking whether all the use modes contained in the power grid dispatching application, all the functions contained in each use mode, the association relation among the functions, all the operations contained in each function and the operation flow of each operation are correct or not, and obtaining a second sub-checking result; under each power grid system scene, checking whether the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation are correct or not to obtain a third sub-checking result; when the first sub-test result, the second sub-test result and the third sub-test result are all correct, the test result is that the test is passed; otherwise, the test result is that the test is not passed.
In this embodiment, taking the SCADA system as an example, the test section of the SCADA system is mainly based on the sum of probability distribution, all usage modes included, all functions included in each usage mode, association relationships among functions, all operations included in each function, and whether the operation flow of each operation is accurate. Taking interval alarm suppression/recovery as an example, see fig. 7 and 8 for a schematic diagram of the verification of the sum of probability distributions, wherein fig. 7 is a probability distribution display of errors and fig. 8 is a schematic diagram of a probability distribution display of correct errors. When the sum of probabilities on all the communication paths from a certain node is not equal to 1, the first special color, such as red dotted line, is used for indicating that the validity of the probability value is prompted for the testers. When the sum of the probabilities is 1, then a second special color, such as a broken line (presence probability value) or a solid line (direct connection) of green, will be displayed.
And when the test result is that the test is passed, adding a preset test passing mark to the test section of the power grid dispatching application, for example, displaying a folder of the test section of the power grid dispatching application as a green opposite-hook pattern.
The test section of the power grid dispatching application is a layering network system taking power grid functions and operations as basic elements, and the system not only comprises information of the operations and the use probabilities thereof, but also comprises possible operation constraint and sequence information, and is a dynamic operation section. The profile adopts a hierarchical sub-grid profile form, and functions as a tissue container of the sub-grid profile to express possible use conditions for application. The test profile consists of several used sub-grid profiles, each of which in turn appears in functional form in the sub-grid profile of the previous stage. The function has a pre-condition and a post-condition, and is essentially a constraint on the section of the sub-power grid, namely a constraint condition. It must be emphasized that the operations and functions in the sub-grid profile are not simply combined, they are connected by relational elements, special elements being auxiliary, together representing the logical meaning of the sub-grid profile.
The following are device embodiments of the present invention that may be used to perform method embodiments of the present invention. For details of the device embodiment that are not careless, please refer to the method embodiment of the present invention.
Referring to fig. 9, in still another embodiment of the present invention, a test profile modeling system for a power grid dispatching application is provided, which can be used to implement the test profile modeling method for a power grid dispatching application described above, and specifically, the test profile modeling system for a power grid dispatching application includes a data acquisition module, a scene construction module, a logic relationship determination module, a profile construction module, and a combination module.
The data acquisition module is used for acquiring a plurality of factors influencing the operation of the power grid dispatching application and the business logic relation of the power grid dispatching application; the scene construction module is used for obtaining the association relation among a plurality of elements according to the business logic relation of the power grid dispatching application and constructing a plurality of power grid system scenes according to the association relation among the plurality of elements; the logic relation determining module is used for acquiring all the use modes contained in the power grid dispatching application, all the functions contained in each use mode, the association relation among the functions, all the operations contained in each function and the operation flow of each operation under each power grid system scene according to the business logic relation of the power grid dispatching application, and obtaining the logic relation of the power grid system scene; the profile construction module is used for obtaining a power grid system scene profile according to the logic relation of the power grid system scene by combining the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation; the combination module is used for combining the power grid system scene profiles of all the power grid system scenes to obtain a test profile of power grid dispatching application.
Preferably, the method further comprises: the network diagram construction module is used for constructing a network diagram of the power grid system scene of each power grid system scene by taking a use mode, functions and operations as nodes, taking an association relation among the functions and an operation flow as paths among the nodes, taking the preset execution probability of each use mode, the preset execution probability of each function and the preset execution probability of each operation as weights of the paths, adding a start node and an end node, and combining the network diagram of the power grid system scene of each power grid system scene to obtain a test section network diagram of the power grid dispatching application.
Preferably, the method further comprises: and the checking module is used for checking the testing section of the power grid dispatching application to obtain a checking result. Specifically, the method is used for checking whether the association relation among a plurality of elements is correct or not, and a first sub-checking result is obtained; under each power grid system scene, checking whether all the use modes contained in the power grid dispatching application, all the functions contained in each use mode, the association relation among the functions, all the operations contained in each function and the operation flow of each operation are correct or not, and obtaining a second sub-checking result; under each power grid system scene, checking whether the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation are correct or not to obtain a third sub-checking result; when the first sub-test result, the second sub-test result and the third sub-test result are all correct, the test result is that the test is passed; otherwise, the test result is that the test is not passed.
In yet another embodiment of the present invention, a computer device is provided that includes a processor and a memory for storing a computer program including program instructions, the processor for executing the program instructions stored by the computer storage medium. The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which are the computational core and control core of the terminal adapted to implement one or more instructions, in particular adapted to load and execute one or more instructions within a computer storage medium to implement the corresponding method flow or corresponding functions; the processor disclosed by the embodiment of the invention can be used for the operation of a test profile modeling method for power grid dispatching application.
In yet another embodiment of the present invention, a storage medium, specifically a computer readable storage medium (Memory), is a Memory device in a computer device, for storing a program and data. It is understood that the computer readable storage medium herein may include both built-in storage media in a computer device and extended storage media supported by the computer device. The computer-readable storage medium provides a storage space storing an operating system of the terminal. Also stored in the memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor. The computer readable storage medium herein may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. One or more instructions stored in a computer-readable storage medium may be loaded and executed by a processor to implement the respective steps of the test profile modeling method in relation to a power grid scheduling application in the above-described embodiments.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining application and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. 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 (10)

1. The test profile modeling method for the power grid dispatching application is characterized by comprising the following steps of:
acquiring elements influencing the operation of the power grid dispatching application and business logic relations of the power grid dispatching application;
obtaining an association relation between elements according to a business logic relation of power grid dispatching application, and constructing a power grid system scene according to the association relation between the elements;
under each power grid system scene, according to the business logic relationship of the power grid dispatching application, obtaining all use modes contained in the power grid dispatching application, all functions contained in each use mode, association relationships among functions, all operations contained in each function and operation flows of each operation, and obtaining the logic relationship of the power grid system scene;
under each power grid system scene, according to the logic relation of the power grid system scene, combining the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation to obtain a power grid system scene section;
and combining the power grid system scene sections of the power grid system scenes to obtain a test section of power grid dispatching application.
2. The method of modeling a test profile of a grid dispatching application of claim 1, wherein the elements comprise one or more of user classification, operating mode, operating environment, and usage conditions.
3. The method of modeling a test profile for a grid dispatching application of claim 1, wherein the grid system scenario comprises one or more of a grid usage scenario, a grid operation continuation scenario, and a grid operation concurrency scenario.
4. The method for modeling a test profile of a power grid dispatching application according to claim 1, wherein the preset execution probability of each usage pattern, the preset execution probability of each function and the preset execution probability of each operation are obtained according to historical data statistics of the same or similar application or according to user investigation data statistics.
5. The method of modeling a test profile for a power grid dispatching application of claim 1, further comprising: according to the power grid system scene profile of each power grid system scene, using the use modes, functions and operations as nodes, using the association relation and operation flow among the functions as paths among the nodes, using the execution probability preset by each use mode, the execution probability preset by each function and the execution probability preset by each operation as the weights of the paths, adding a start node and an end node, constructing a power grid system scene network graph of each power grid system scene, and combining the power grid system scene network graph of each power grid system scene to obtain the test profile network graph of the power grid dispatching application.
6. The method of modeling a test profile for a power grid dispatching application of claim 1, further comprising: and (5) testing the test section of the power grid dispatching application to obtain a test result.
7. The method for modeling a test profile of a power grid dispatching application according to claim 6, wherein the specific method for obtaining the test result by checking the test profile of the power grid dispatching application is as follows:
checking whether the association relation between the elements is correct or not, and obtaining a first sub-checking result;
under each power grid system scene, checking whether all the use modes contained in the power grid dispatching application, all the functions contained in each use mode, the association relation among the functions, all the operations contained in each function and the operation flow of each operation are correct or not, and obtaining a second sub-checking result;
under each power grid system scene, checking whether the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation are correct or not to obtain a third sub-checking result;
when the first sub-test result, the second sub-test result and the third sub-test result are all correct, the test result is that the test is passed; otherwise, the test result is that the test is not passed.
8. A test profile modeling system for a power grid dispatching application, comprising:
the data acquisition module is used for acquiring elements influencing the operation of the power grid dispatching application and the business logic relationship of the power grid dispatching application;
the scene construction module is used for obtaining the association relation between the elements according to the business logic relation of the power grid dispatching application and constructing a power grid system scene according to the association relation between the elements;
the logic relation determining module is used for acquiring all the use modes contained in the power grid dispatching application, all the functions contained in the use modes, the association relation among the functions, all the operations contained in the functions and the operation flow of the operations under the condition of each power grid system according to the business logic relation of the power grid dispatching application, and obtaining the logic relation of the power grid system scene;
the profile construction module is used for obtaining a power grid system scene profile according to the logic relation of the power grid system scene by combining the preset execution probability and constraint conditions of each use mode, the preset execution probability and constraint conditions of each function and the preset execution probability and constraint conditions of each operation;
and the combination module is used for combining the power grid system scene profiles of all the power grid system scenes to obtain a test profile of power grid dispatching application.
9. Computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, realizes the steps of the test profile modeling method of a grid dispatching application according to any one of claims 1 to 7.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the test profile modeling method of a grid dispatching application of any one of claims 1 to 7.
CN202110969511.4A 2021-08-23 2021-08-23 Test profile modeling method, system, equipment and medium for power grid dispatching application Active CN113779776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110969511.4A CN113779776B (en) 2021-08-23 2021-08-23 Test profile modeling method, system, equipment and medium for power grid dispatching application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110969511.4A CN113779776B (en) 2021-08-23 2021-08-23 Test profile modeling method, system, equipment and medium for power grid dispatching application

Publications (2)

Publication Number Publication Date
CN113779776A CN113779776A (en) 2021-12-10
CN113779776B true CN113779776B (en) 2024-01-30

Family

ID=78838941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110969511.4A Active CN113779776B (en) 2021-08-23 2021-08-23 Test profile modeling method, system, equipment and medium for power grid dispatching application

Country Status (1)

Country Link
CN (1) CN113779776B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033806A (en) * 2010-12-14 2011-04-27 北京航空航天大学 Method for generating reliability test data of real time embedded software
CN103914353A (en) * 2014-04-17 2014-07-09 北京航空航天大学 Combined test method for combining software reliability tests with hardware reliability tests
CN105204826A (en) * 2014-06-16 2015-12-30 深圳市雅都软件股份有限公司 Power grid service-oriented multi-scenario service information automatic sharing platform and method
CN109933047A (en) * 2019-03-22 2019-06-25 北京航空航天大学 A kind of joint reliability test sectional plane building method of software and hardware hybrid system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033806A (en) * 2010-12-14 2011-04-27 北京航空航天大学 Method for generating reliability test data of real time embedded software
CN103914353A (en) * 2014-04-17 2014-07-09 北京航空航天大学 Combined test method for combining software reliability tests with hardware reliability tests
CN105204826A (en) * 2014-06-16 2015-12-30 深圳市雅都软件股份有限公司 Power grid service-oriented multi-scenario service information automatic sharing platform and method
CN109933047A (en) * 2019-03-22 2019-06-25 北京航空航天大学 A kind of joint reliability test sectional plane building method of software and hardware hybrid system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《A load profile management integrated power dispatch using a Newton-like particle swarm optimization method》;Wang Caisheng等;《Sustainable Computering:Informatics and Systems》(第8期);第8-17页 *
《电网调度自动化系统软件通用测试规范解读》;李宇佳等;《智能电网》;第3卷(第2期);第186-190页 *

Also Published As

Publication number Publication date
CN113779776A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
Li et al. Architectural technical debt identification based on architecture decisions and change scenarios
US7890803B2 (en) Constraint programming for reduction of system test-configuration-matrix complexity
CN108959068A (en) Software interface test method, equipment and storage medium
CN112052172B (en) Rapid test method and device for third-party channel and electronic equipment
Kang et al. Development of a Bayesian belief network model for software reliability quantification of digital protection systems in nuclear power plants
CN109800387A (en) A method of generating test report
CN110309052A (en) A kind of data verification method and relevant device
CN110188036A (en) A kind of method for testing software and device
CN101561904B (en) A kind of software project cost assay method of Kernel-based methods data and system
Bendell et al. Software Reliability: State of the Art Report 14: 2
CN102937933A (en) Class test sequence determining method based on testing level
CN111309581A (en) Application performance detection method and device in database upgrading scene
Guo et al. Nuclear safety-critical Digital Instrumentation and Control system software: Reliability demonstration
CN106502887A (en) A kind of stability test method, test controller and system
CN113779776B (en) Test profile modeling method, system, equipment and medium for power grid dispatching application
US20240086165A1 (en) Systems and methods for building and deploying machine learning applications
CN109446718B (en) Visual development method and system for protection device and control device
Pereira et al. Causal model for probabilistic risk analysis of jet engine failure in manufacturing situational operation (CAPEMO)
Zapata-Jaramillo et al. On the relationship of ISO/IEC 9126 metrics and the alpha states of the SEMAT kernel
Ganzarain et al. Testing successful Business Model using System Dynamics
Galinac et al. Software verification process improvement proposal using Six Sigma
Lopez et al. Relevance of the cyclomatic complexity threshold for the java programming language
US20110218649A1 (en) Method and apparatus for at least one device control instruction
Pereira et al. Probabilistic risk analysis in manufacturing situational operation: application of modelling techniques and causal structure to improve safety performance.
Fenton et al. Probabilistic modelling for software quality control

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