CN118152282A - Plug-in testing method, device, equipment and storage medium - Google Patents
Plug-in testing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN118152282A CN118152282A CN202410272053.2A CN202410272053A CN118152282A CN 118152282 A CN118152282 A CN 118152282A CN 202410272053 A CN202410272053 A CN 202410272053A CN 118152282 A CN118152282 A CN 118152282A
- Authority
- CN
- China
- Prior art keywords
- updated
- plug
- production environment
- plugin
- preset
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3698—Environments for analysis, debugging or testing of software
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical Field
本发明实施例涉及电力系统技术领域,尤其涉及一种插件测试方法、装置、设备及存储介质。Embodiments of the present invention relate to the technical field of power systems, and in particular to a plug-in testing method, device, equipment and storage medium.
背景技术Background technique
在现代电力系统中,分布式人工智能(AI)服务日益成为提高运行效率、保障安全稳定和支持智能决策的关键技术;这些服务通常以插件的形式嵌入到电力系统的管理软件中,插件可以定义为增加特定功能的软件组件,它们使得系统能够根据需要轻松扩展和升级;在电力分布式人工智能服务中,插件通常用于负责执行数据分析、模式识别、负载预测等任务,对系统的性能和稳定性起着至关重要的作用。In modern power systems, distributed artificial intelligence (AI) services are increasingly becoming a key technology for improving operational efficiency, ensuring safety and stability, and supporting intelligent decision-making. These services are usually embedded in the power system management software in the form of plug-ins. Plug-ins can be defined as software components that add specific functions. They enable the system to be easily expanded and upgraded as needed. In power distributed artificial intelligence services, plug-ins are usually responsible for performing tasks such as data analysis, pattern recognition, and load forecasting, which play a vital role in the performance and stability of the system.
然而,随着技术的进步和系统需求的变化,需要定期更新这些插件以保持电力系统的最优性能和安全;插件的更新不仅涉及到性能的改进,还包括安全补丁和功能增强;不当的更新可能导致与现有系统的不兼容问题;甚至影响整个电力系统的稳定运行,因此,在对插件进行测试和更新变得极为重要。However, with the advancement of technology and changes in system requirements, these plug-ins need to be updated regularly to maintain the optimal performance and safety of the power system; plug-in updates not only involve performance improvements, but also include security patches and function enhancements; improper updates may lead to incompatibility issues with existing systems; and even affect the stable operation of the entire power system. Therefore, it is extremely important to test and update the plug-ins.
发明内容Summary of the invention
本发明实施例提供一种插件测试方法、装置、设备及存储介质,解决了由于插件的不当更新导致电力系统稳定性降低的问题。The embodiments of the present invention provide a plug-in testing method, device, equipment and storage medium, which solve the problem of reduced stability of the power system due to improper update of the plug-in.
根据本发明的一方面,提供了一种插件测试方法,包括:According to one aspect of the present invention, there is provided a plug-in testing method, comprising:
获取更新后的第一插件的参数集合,并根据更新后的第一插件的参数集合确定更新后的第一插件对应的生产环境集合;Obtaining a parameter set of the updated first plug-in, and determining a production environment set corresponding to the updated first plug-in according to the parameter set of the updated first plug-in;
根据更新后的第一插件和更新后的第一插件对应的生产环境集合确定目标生产环境;Determine a target production environment according to the updated first plug-in and a set of production environments corresponding to the updated first plug-in;
获取当更新后的第一插件部署在目标生产环境时,更新后的第一插件的运行参数;Obtaining running parameters of the updated first plug-in when the updated first plug-in is deployed in the target production environment;
若所述更新后的第一插件的运行参数满足第一预设参数条件,则将所述更新后的第一插件部署在生产环境集合中的每个生产环境中。If the running parameters of the updated first plug-in meet the first preset parameter condition, the updated first plug-in is deployed in each production environment in the production environment set.
根据本发明的另一方面,提供了一种插件测试装置,该插件测试装置包括:According to another aspect of the present invention, a plug-in testing device is provided, the plug-in testing device comprising:
环境获取模块,用于获取更新后的第一插件的参数集合,并根据更新后的第一插件的参数集合确定更新后的第一插件对应的生产环境集合;An environment acquisition module, used to acquire a parameter set of the updated first plug-in, and determine a production environment set corresponding to the updated first plug-in according to the parameter set of the updated first plug-in;
环境确定模块,用于根据更新后的第一插件和更新后的第一插件对应的生产环境集合确定目标生产环境;An environment determination module, configured to determine a target production environment according to the updated first plug-in and a set of production environments corresponding to the updated first plug-in;
参数获取模块,用于获取当更新后的第一插件部署在目标生产环境时,更新后的第一插件的运行参数;A parameter acquisition module, used to acquire the running parameters of the updated first plug-in when the updated first plug-in is deployed in the target production environment;
插件部署模块,用于若所述更新后的第一插件的运行参数满足第一预设参数条件,则将所述更新后的第一插件部署在生产环境集合中的每个生产环境中。The plug-in deployment module is used to deploy the updated first plug-in in each production environment in the production environment set if the operating parameters of the updated first plug-in meet the first preset parameter conditions.
根据本发明的另一方面,提供了一种电子设备,所述电子设备包括:According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例所述的插件测试方法。The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the plug-in testing method described in any embodiment of the present invention.
根据本发明的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的插件测试方法。According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the plug-in testing method described in any embodiment of the present invention when executed.
本发明实施例通过获取更新后的第一插件的参数集合,并根据更新后的第一插件的参数集合确定更新后的第一插件对应的生产环境集合;根据更新后的第一插件和更新后的第一插件对应的生产环境集合确定目标生产环境;获取当更新后的第一插件部署在目标生产环境时,更新后的第一插件的运行参数;若所述更新后的第一插件的运行参数满足第一预设参数条件,则将所述更新后的第一插件部署在生产环境集合中的每个生产环境中,解决了由于插件的不当更新导致电力系统稳定性降低的问题,能够实现插件的稳定更新,保障电力系统的稳定运行。The embodiment of the present invention obtains a parameter set of an updated first plug-in, and determines a production environment set corresponding to the updated first plug-in based on the parameter set of the updated first plug-in; determines a target production environment based on the updated first plug-in and the production environment set corresponding to the updated first plug-in; obtains operating parameters of the updated first plug-in when the updated first plug-in is deployed in the target production environment; if the operating parameters of the updated first plug-in meet the first preset parameter conditions, deploys the updated first plug-in in each production environment in the production environment set, thereby solving the problem of reduced stability of the power system due to improper updating of the plug-in, achieving stable updating of the plug-in, and ensuring stable operation of the power system.
应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
图1是本发明实施例一中的一种插件测试方法的流程图;FIG1 is a flow chart of a plug-in testing method in Embodiment 1 of the present invention;
图2是本发明实施例二中的一种插件测试装置的结构示意图;FIG2 is a schematic diagram of the structure of a plug-in testing device in Embodiment 2 of the present invention;
图3是本发明实施例三中的一种电子设备的结构示意图。FIG3 is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
可以理解的是,在使用本公开各实施例公开的技术方案之前,均应当依据相关法律法规通过恰当的方式对本公开所涉及个人信息的类型、使用范围、使用场景等告知用户并获得用户的授权。It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
实施例一Embodiment 1
图1是本发明实施例一中的一种插件测试方法的流程图,本实施例可适用于对电力系统中的分布式人工智能服务插件的更新的情况,该方法可以由本发明实施例中的插件测试装置来执行,该装置可采用软件和/或硬件的方式实现。Figure 1 is a flow chart of a plug-in testing method in embodiment 1 of the present invention. This embodiment is applicable to the update of a distributed artificial intelligence service plug-in in a power system. The method can be executed by a plug-in testing device in an embodiment of the present invention, which can be implemented in software and/or hardware.
如图1所示,该方法具体包括如下步骤:As shown in FIG1 , the method specifically comprises the following steps:
S110,获取更新后的第一插件的参数集合,并根据更新后的第一插件的参数集合确定更新后的第一插件对应的生产环境集合。S110, obtaining a parameter set of the updated first plug-in, and determining a production environment set corresponding to the updated first plug-in according to the parameter set of the updated first plug-in.
其中,第一插件为必要更新的插件,参数集合包括:质量评分、兼容性评分以及效率评分。第一插件对应的生产环境集合中的每一生产环境均为电力系统中能够部署第一插件的生产环境。The first plug-in is a plug-in that needs to be updated, and the parameter set includes: quality score, compatibility score, and efficiency score. Each production environment in the production environment set corresponding to the first plug-in is a production environment in the power system where the first plug-in can be deployed.
具体的,在得到更新后的第一插件后,基于实际的电力系统中的生产环境检测测试环境,将插件版本控制系统中的创建的分支上的更新后的第一插件部署至测试环境中,也就是从主开发分支(master或main)创建一个新的分支,命名应反映其目的,例如feature/update-plugin-x或hotfix/plugin-x-version-y(功能/更新插件x或修补程序/插件-x-版本-y)。获取更新后的第一插件的参数集合的方式如下:采用CI工具(例如Jenkins、Travis CI、CircleCI)自动构建和测试代码,每次推送到分支时CI工具都运行测试并报告结果,在代码的审查过程中,通过自动化代码审查工具SonarQube识别潜在的问题和需要改进的地方,由此得到更新后的第一插件的质量评分;通过模拟真实电力系统环境的测试环境来执行集成测试,确保更新后的第一插件与系统其他部分的兼容和交互,由此得到更新后的第一插件的兼容性评分;使用性能测试工具(如LoadRunner、JMeter)来模拟用户负载和操作,由此得到更新后第一插件的效率评分。Specifically, after obtaining the updated first plug-in, the test environment is detected based on the production environment in the actual power system, and the updated first plug-in on the created branch in the plug-in version control system is deployed to the test environment, that is, a new branch is created from the main development branch (master or main), and the naming should reflect its purpose, such as feature/update-plugin-x or hotfix/plugin-x-version-y. The method of obtaining the parameter set of the updated first plug-in is as follows: using CI tools (such as Jenkins, Travis CI, CircleCI) to automatically build and test the code, each time it is pushed to the branch, the CI tool runs the test and reports the results. During the code review process, the automated code review tool SonarQube is used to identify potential problems and areas for improvement, thereby obtaining the quality score of the updated first plug-in; performing integration testing by simulating the test environment of the real power system environment to ensure the compatibility and interaction of the updated first plug-in with other parts of the system, thereby obtaining the compatibility score of the updated first plug-in; using performance testing tools (such as LoadRunner, JMeter) to simulate user load and operation, thereby obtaining the efficiency score of the updated first plug-in.
具体的,获取更新后的第一插件的参数集合,根据更新后的第一插件的参数集合中的每一参数确定更新后的第一插件能够部署的电力系统的生产环境,进而确定更新后的第一插件对应的生产环境集合。Specifically, a parameter set of the updated first plug-in is obtained, and a production environment of the power system in which the updated first plug-in can be deployed is determined according to each parameter in the parameter set of the updated first plug-in, thereby determining a production environment set corresponding to the updated first plug-in.
通过在新的分支中将更新后的第一插件部署至测试环境,能够让开发者在不影响主开支的情况下开发和测试新功能或第一插件的更新,任何更新都能够在新的分支被完整的测试,确保不会对电力系统造成破坏,并且新的分支能够被持续继承或持续部署管道中,如此每次第一插件更新时都可以自动构建和测试,保证插件的变更不会破坏现有的电力系统。By deploying the updated first plug-in to the test environment in a new branch, developers can develop and test new functions or updates to the first plug-in without affecting the main branch. Any update can be fully tested in the new branch to ensure that it will not cause damage to the power system, and the new branch can be continuously inherited or continuously deployed in the pipeline, so that each time the first plug-in is updated, it can be automatically built and tested to ensure that changes to the plug-in will not damage the existing power system.
可选的,在获取更新后的第一插件的参数集合之前,还包括:Optionally, before obtaining the updated parameter set of the first plug-in, the following method is further included:
获取至少一个待更新的插件和更新后的插件的每一测试指标的目标评分;Obtain a target score for each test indicator of at least one plug-in to be updated and an updated plug-in;
根据所述更新后的插件的每一测试指标的目标评分、每一测试指标的预设权重以及测试指标的数量确定更新后的插件的更新指数;Determining an update index of the updated plug-in according to a target score of each test indicator of the updated plug-in, a preset weight of each test indicator, and the number of test indicators;
将所述更新指数大于预设指数阈值的更新后的插件确定为更新后的第一插件。The updated plug-in whose update index is greater than a preset index threshold is determined as an updated first plug-in.
其中,待更新的插件为需要更新的插件,测试指标可以为安全性、可靠性、性能以及功能性,目标评分为每一测试指标的评分。每一测试指标的预设权重、测试指标的数量以及预设指数阈值可根据实际需求设定。The plug-in to be updated is the plug-in that needs to be updated, the test indicators can be security, reliability, performance and functionality, and the target score is the score of each test indicator. The preset weight of each test indicator, the number of test indicators and the preset index threshold can be set according to actual needs.
需要说明的是,测试指标的目标评分的获取方式可以为:安全性的目标评分可通过分析更新后的第一插件的代码、文档和配置来计算,分析的过程包括审查更新中包含的安全补丁和修复来评估潜在的安全性,通过静态代码分析工具来检测潜在的安全漏洞;可靠性的目标评分基于更新历史记录和开发者提供的信息来计算;性能的目标评分的计算基于运行性能模拟测试来计算,例如负载测试和压力测试,以计算更新后的第一插件对电力系统性能的影响,分析开发者提供的性能改变日志和性能基准数据;功能性的目标评分的计算通过分析更新的第一插件的文档和发布说明,确定更新的第一插件的功能和改进的具体内容,运行功能测试用例,包括单元测试和集成测试,得到功能性对应的评分。It should be noted that the target scores of the test indicators can be obtained in the following ways: the target score of security can be calculated by analyzing the code, documentation and configuration of the updated first plug-in, and the analysis process includes reviewing the security patches and fixes contained in the update to assess potential security, and detecting potential security vulnerabilities through static code analysis tools; the target score of reliability is calculated based on the update history and the information provided by the developer; the target score of performance is calculated based on running performance simulation tests, such as load tests and stress tests, to calculate the impact of the updated first plug-in on the performance of the power system, and analyze the performance change logs and performance benchmark data provided by the developer; the target score of functionality is calculated by analyzing the documentation and release notes of the updated first plug-in, determining the functions of the updated first plug-in and the specific content of the improvements, and running functional test cases, including unit tests and integration tests, to obtain the corresponding score of functionality.
具体的,获取至少一个待更新的插件,也就是需要更新的插件,获取的方式不进行限制,在获取至少一个待更新的插件后,获取更新后的插件和基于更新后的插件对应的测试指标和每个测试指标的量化评分标准,基于每个测试指标的量化评分标准对更新后的插件的每个测试指标的影响因素进行评分,得到更新后的插件的每一测试指标的目标评分,例如可以是,将每个测试指标的评分归一化到0到1之间:Specifically, at least one plug-in to be updated, that is, a plug-in that needs to be updated, is obtained. The method of obtaining is not limited. After obtaining at least one plug-in to be updated, the updated plug-in and the test indicators corresponding to the updated plug-in and the quantitative scoring standard for each test indicator are obtained. Based on the quantitative scoring standard for each test indicator, the influencing factors of each test indicator of the updated plug-in are scored to obtain the target score of each test indicator of the updated plug-in. For example, the score of each test indicator can be normalized to between 0 and 1:
xi=ti/tim;x i = ti /t im ;
其中,xi表示测试指标i的归一化评分,也就是目标评分,介于0和1之间,ti表示测试指标i的实际评分,tim表示测试指标i的总分。Among them, xi represents the normalized score of test indicator i, that is, the target score, which is between 0 and 1, ti represents the actual score of test indicator i, and tim represents the total score of test indicator i.
具体的,根据更新后的插件的每一测试指标的目标评分、每一测试指标的预设权重以及测试指标的数量确定更新后的插件的更新指数的方式可以为:Specifically, the update index of the updated plug-in may be determined according to the target score of each test indicator of the updated plug-in, the preset weight of each test indicator, and the number of test indicators:
其中,N为更新指数,wi为测试指标i预设权重,n是测试指标的数量, Among them, N is the update index, w i is the preset weight of test indicator i, n is the number of test indicators,
具体的,若更新后的插件的更新指数大于预设指数阈值,则说明该插件的此次更新为必要更新,将更新后的插件确定为更新后的第一插件,若更新后的插件的更新指数小于或等于预设指数阈值,则说明该插件的此次更新为非必要更新,则此次不进行更新。Specifically, if the update index of the updated plug-in is greater than the preset index threshold, it means that the update of the plug-in is a necessary update, and the updated plug-in is determined as the first plug-in after the update; if the update index of the updated plug-in is less than or equal to the preset index threshold, it means that the update of the plug-in is not a necessary update, and no update is performed this time.
通过根据更新后的插件的每一测试指标的目标评分、每一测试指标的预设权重以及测试指标的数量确定更新后的插件的更新指数;将所述更新指数大于预设指数阈值的更新后的插件确定为更新后的第一插件,能够根据待更新的插件对电力系统运行的影响程度来评估插件更新的必要性,判断此次更新是否是必要的,能够排除一些更新后对于电力系统的优化较少的更新,从而保证电力系统的稳定性。By determining the update index of the updated plug-in according to the target score of each test indicator of the updated plug-in, the preset weight of each test indicator and the number of test indicators; determining the updated plug-in whose update index is greater than the preset index threshold as the first updated plug-in, the necessity of plug-in update can be evaluated according to the impact of the plug-in to be updated on the operation of the power system, and whether the update is necessary can be determined, and some updates with less optimization for the power system after the update can be excluded, thereby ensuring the stability of the power system.
可选的,根据更新后的第一插件的参数集合确定更新后的第一插件对应的生产环境集合,包括:Optionally, determining a production environment set corresponding to the updated first plug-in according to the parameter set of the updated first plug-in includes:
若更新后的第一插件的参数集合中每一参数均满足第二预设参数条件,则根据更新后的第一插件的属性信息确定更新后的第一插件对应的生产环境集合。If each parameter in the parameter set of the updated first plug-in satisfies the second preset parameter condition, the production environment set corresponding to the updated first plug-in is determined according to the attribute information of the updated first plug-in.
其中,更新后的第一插件的参数集合中的参数包括:质量评分、兼容性评分以及效率评分,第二预设参数条件为评分大于预设评分阈值。The parameters in the parameter set of the updated first plug-in include: a quality score, a compatibility score, and an efficiency score, and the second preset parameter condition is that the score is greater than a preset score threshold.
其中,更新后的第一插件的属性信息可以包括更新后的第一插件的兼容性、版本信息、依赖项、配置方式、管理接口、日志以及部署策略等等。The property information of the updated first plug-in may include compatibility, version information, dependencies, configuration methods, management interfaces, logs, and deployment strategies of the updated first plug-in.
具体的,若更新后的第一插件的参数集合中的每一参数均满足第二预设参数条件,也就是说每一参数均满足更新要求,则根据更新后的第一插件的属性信息对电力系统中的所有的生产环境进行判断,获取电力系统中能够部署更新后的第一插件的生产环境集合。需要说明的是,若更新后的第一插件的集合参数中存在至少一个参数不满足第二预设参数条件,则对更新后的第一插件进行进一步优化,直至优化后的第一插件的每一参数均满足第二预设参数条件。Specifically, if each parameter in the parameter set of the updated first plug-in satisfies the second preset parameter condition, that is, each parameter meets the update requirement, all production environments in the power system are judged according to the attribute information of the updated first plug-in, and a set of production environments in which the updated first plug-in can be deployed in the power system is obtained. It should be noted that if there is at least one parameter in the set parameters of the updated first plug-in that does not meet the second preset parameter condition, the updated first plug-in is further optimized until each parameter of the optimized first plug-in meets the second preset parameter condition.
通过若更新后的第一插件的参数集合中每一参数均满足第二预设参数条件,则根据更新后的第一插件的属性信息确定更新后的第一插件对应的生产环境集合,能够对更新后的第一插件进行初步的评估,判断更新后的第一插件是否合格,若合格,则根据更新后的第一插件的属性信息确定更新后的第一插件对应的生产环境集合,能够提高在电力系统的生产环境中部署更新后的第一插件的准确性。By determining the production environment set corresponding to the updated first plug-in according to the attribute information of the updated first plug-in if each parameter in the parameter set of the updated first plug-in satisfies the second preset parameter condition, a preliminary evaluation can be performed on the updated first plug-in to determine whether the updated first plug-in is qualified; if qualified, the production environment set corresponding to the updated first plug-in is determined according to the attribute information of the updated first plug-in, thereby improving the accuracy of deploying the updated first plug-in in the production environment of the power system.
S120,根据更新后的第一插件和更新后的第一插件对应的生产环境集合确定目标生产环境。S120: Determine a target production environment according to the updated first plug-in and a set of production environments corresponding to the updated first plug-in.
其中,目标生产环境为更新后的第一插件对其影响度最低的生产环境。The target production environment is the production environment on which the impact of the updated first plug-in is the lowest.
具体的,根据更新后的第一插件获取更新后的第一插件对更新后的第一插件对应的生产环境集合中每一生产环境的影响度,将影响度最小的生产环境确定目标生产环境。Specifically, the influence of the updated first plug-in on each production environment in the production environment set corresponding to the updated first plug-in is obtained according to the updated first plug-in, and the production environment with the smallest influence is determined as the target production environment.
可选的,根据更新后的第一插件和更新后的第一插件对应的生产环境集合确定目标生产环境,包括:Optionally, determining the target production environment according to the updated first plug-in and a production environment set corresponding to the updated first plug-in includes:
获取将更新后的第一插件部署在生产环境集合中的每个生产环境中时,更新后的第一插件对每个生产环境的影响度;Obtaining the impact of the updated first plug-in on each production environment when the updated first plug-in is deployed in each production environment in the production environment set;
根据更新后的第一插件对每个生产环境的影响度对生产环境集合进行筛选,得到目标生产环境。The production environment set is screened according to the impact of the updated first plug-in on each production environment to obtain a target production environment.
具体的,将更新后的第一插件部署到生产环境集合中的每个生产环境中进行测试,获取更新后的第一插件为每个生产环境的影响度。Specifically, the updated first plug-in is deployed to each production environment in the production environment set for testing, and the impact of the updated first plug-in on each production environment is obtained.
具体的,根据更新后的第一插件对每个生产环境的影响度对生产环境集合进行筛选,将影响度最小的生产环境确定为目标生产环境。Specifically, the production environment set is screened according to the impact of the updated first plug-in on each production environment, and the production environment with the smallest impact is determined as the target production environment.
可选的,获取将更新后的第一插件部署在生产环境集合中的每个生产环境中时,更新后的第一插件对每个生产环境的影响度,包括:Optionally, obtaining the impact of the updated first plug-in on each production environment when the updated first plug-in is deployed in each production environment in the production environment set includes:
获取将更新后的第一插件部署在生产环境集合中的每个生产环境中时,每个影响度评价指标的评分;Obtaining a score for each impact evaluation indicator when the updated first plug-in is deployed in each production environment in the production environment set;
根据将更新后的第一插件部署在生产环境集合中的每个生产环境中时,每个影响度评价指标的评分、影响度评价指标的数量以及每个影响度评价指标的预设权重确定将更新后的第一插件部署在生产环境集合中的每个生产环境中时,更新后的第一插件对每个生产环境的影响度。The impact of the updated first plug-in on each production environment in the production environment set is determined based on the score of each impact evaluation indicator, the number of impact evaluation indicators, and the preset weight of each impact evaluation indicator when the updated first plug-in is deployed in each production environment in the production environment set.
其中,每个影响度评价指标、影响度评价指标的数量以及每个影响度评价指标的预设权重可根据实际需求设定。Among them, each impact evaluation indicator, the number of impact evaluation indicators and the preset weight of each impact evaluation indicator can be set according to actual needs.
具体的,根据将更新后的第一插件部署在生产环境集合中的每个生产环境中时,每个影响度评价指标的评分、影响度评价指标的数量以及每个影响度评价指标的预设权重确定将更新后的第一插件部署在生产环境集合中的每个生产环境中时,更新后的第一插件对每个生产环境的影响度的方式可以为:Specifically, when the updated first plug-in is deployed in each production environment in the production environment set, the score of each impact evaluation indicator, the number of impact evaluation indicators, and the preset weight of each impact evaluation indicator determine the impact of the updated first plug-in on each production environment when the updated first plug-in is deployed in each production environment in the production environment set. The manner may be:
其中,TI为更新后的第一插件对第I个生产环境的影响度,m为影响度评价指标的数量,wz为第z个影响度评价指标的预设权重,yz为第z个影响度评价指标的评分。Among them, TI is the impact of the updated first plug-in on the I-th production environment, m is the number of impact evaluation indicators, wz is the preset weight of the z-th impact evaluation indicator, and yz is the score of the z-th impact evaluation indicator.
通过获取更新后的第一插件对每一生产环境的影响度,并将影响度最小的生产环境确定为目标生产环境,能够将更新后的第一插件对系统的影响控制到最小,能够最大限度的降低由于插件问题导致电力系统稳定性降低的问题。By obtaining the impact of the updated first plug-in on each production environment and determining the production environment with the least impact as the target production environment, the impact of the updated first plug-in on the system can be minimized, and the problem of reduced stability of the power system due to plug-in problems can be minimized.
S130,获取当更新后的第一插件部署在目标生产环境时,更新后的第一插件的运行参数。S130, obtaining running parameters of the updated first plug-in when the updated first plug-in is deployed in the target production environment.
其中,更新后的第一插件的运行参数为关键性能指标,所述关键性能指标可根据实际情况设定。The updated operating parameters of the first plug-in are key performance indicators, which can be set according to actual conditions.
具体的,可通过性能监控工具实时监控当更新后的第一插件部署在目标生产环境时的运行参数。Specifically, the operating parameters of the updated first plug-in when it is deployed in the target production environment can be monitored in real time through a performance monitoring tool.
S140,若更新后的第一插件的运行参数满足第一预设参数条件,则将更新后的第一插件部署在生产环境集合中的每个生产环境中。S140: If the running parameters of the updated first plug-in meet the first preset parameter condition, deploy the updated first plug-in in each production environment in the production environment set.
其中,第一预设参数条件可以为更新后的第一插件的运行参数对应的当前达标率大于历史达标率。The first preset parameter condition may be that a current compliance rate corresponding to the updated running parameter of the first plug-in is greater than a historical compliance rate.
具体的,若更新后的第一插件的运行参数满足第一预设参数条件,说明该更新的第一插件为合格的插件版本,则将更新后的第一插件部署在生产环境集合中的每个生产环境中。Specifically, if the running parameters of the updated first plug-in meet the first preset parameter condition, indicating that the updated first plug-in is a qualified plug-in version, the updated first plug-in is deployed in each production environment in the production environment set.
可选的,若所述更新后的第一插件的运行参数满足第一预设参数条件,则将所述更新后的第一插件部署在生产环境集合中的每个生产环境中,包括:Optionally, if the running parameter of the updated first plug-in satisfies the first preset parameter condition, deploying the updated first plug-in in each production environment in the production environment set includes:
获取第一插件的历史记录和历史应用周期,并根据所述历史记录和历史应用周期确定历史达标率;Obtaining historical records and historical application cycles of the first plug-in, and determining a historical compliance rate according to the historical records and historical application cycles;
根据更新后的第一插件的运行参数和预设监控周期确定当前达标率;Determine the current compliance rate according to the updated operating parameters of the first plug-in and the preset monitoring period;
若当前达标率大于历史达标率,则确定所述更新后的第一插件的运行参数满足第一预设参数条件,将所述更新后的第一插件部署在生产环境集合中的每个生产环境中。If the current compliance rate is greater than the historical compliance rate, it is determined that the operating parameters of the updated first plug-in meet the first preset parameter condition, and the updated first plug-in is deployed in each production environment in the production environment set.
其中,预设监控周期可根据实际需求设定。Among them, the preset monitoring period can be set according to actual needs.
具体的,获取第一插件的历史记录和历史应用周期,基于历史应用周期获取运行参数包含的关键性能指标中低于关键性能指标阈值的次数,并基于历史应用周期以及关键性能指标低于历史关键性能指标阈值的次数,得到历史达标率。Specifically, the historical records and historical application cycles of the first plug-in are obtained, the number of times the key performance indicators included in the operating parameters are lower than the key performance indicator threshold is obtained based on the historical application cycle, and the historical compliance rate is obtained based on the historical application cycle and the number of times the key performance indicators are lower than the historical key performance indicator threshold.
具体的,设定更新后的第一插件的当前关键性能指标阈值,当监控的关键性能指标低于当前关键性能指标阈值时,进行记录并预警;在预设监控周期内获取当前关键性能指标低于当前关键性能指标阈值的次数,并基于次数和预设监控周期获取当前达标率。Specifically, the current key performance indicator threshold of the updated first plug-in is set, and when the monitored key performance indicator is lower than the current key performance indicator threshold, it is recorded and an alert is issued; the number of times the current key performance indicator is lower than the current key performance indicator threshold within the preset monitoring period is obtained, and the current compliance rate is obtained based on the number and the preset monitoring period.
具体的,若当前达标率大于历史达标率,确定更新后的第一插件的运行参数满足第一预设参数条件,认为当前更新后的第一插件的性能和稳定性达标,则将更新后的第一插件部署在生产环境集合中的每一个生产环境中;若当前达标率小于或等于历史达标率,认为当前更新后的第一插件的性能和稳定性不达标,需要对第一插件进行修改。Specifically, if the current compliance rate is greater than the historical compliance rate, it is determined that the operating parameters of the updated first plug-in meet the first preset parameter conditions, and it is considered that the performance and stability of the current updated first plug-in meet the standards, then the updated first plug-in is deployed in each production environment in the production environment set; if the current compliance rate is less than or equal to the historical compliance rate, it is considered that the performance and stability of the current updated first plug-in do not meet the standards, and the first plug-in needs to be modified.
通过若当前达标率大于历史达标率,则确定所述更新后的第一插件的运行参数满足第一预设参数条件,将所述更新后的第一插件部署在生产环境集合中的每个生产环境中,能够准确地将性能和稳定性均达标的第一插件部署在生产环境中,提高系统的稳定性。If the current compliance rate is greater than the historical compliance rate, it is determined that the operating parameters of the updated first plug-in meet the first preset parameter conditions, and the updated first plug-in is deployed in each production environment in the production environment set. The first plug-in that meets both performance and stability requirements can be accurately deployed in the production environment, thereby improving the stability of the system.
可选的,在将所述更新后的第一插件部署在生产环境集合中的每个生产环境中之后,还包括:Optionally, after deploying the updated first plug-in in each production environment in the production environment set, the method further includes:
获取更新后的第一插件部署在每个生产环境时的实际监控指标,其中,所述监控指标包括:响应时间、吞吐量以及错误率;Acquire actual monitoring indicators of the updated first plug-in when it is deployed in each production environment, wherein the monitoring indicators include: response time, throughput, and error rate;
若实际监控指标满足实际响应时间小于预设时间阈值、实际吞吐量小于预设吞吐量阈值以及实际错误率大于预设错误率中的至少一种,则进行预警。If the actual monitoring indicator satisfies at least one of the following: the actual response time is less than the preset time threshold, the actual throughput is less than the preset throughput threshold, and the actual error rate is greater than the preset error rate, an early warning is issued.
具体的,部署监控工具监控更新后的第一插件部署在每个生产环境时的实际监控指标,如Nagios、Zabbix、Prometheus中的其中一种,定制化监控指标,监控指标包括响应时间、吞吐量以及错误率,获取每项监控指标的阈值,包括预设时间阈值、预设吞吐量阈值以及预设错误率。Specifically, a monitoring tool is deployed to monitor actual monitoring indicators when the updated first plug-in is deployed in each production environment, such as one of Nagios, Zabbix, and Prometheus, and customized monitoring indicators. The monitoring indicators include response time, throughput, and error rate, and the thresholds of each monitoring indicator are obtained, including a preset time threshold, a preset throughput threshold, and a preset error rate.
具体的,若实际监控指标满足实际响应时间小于预设时间阈值、实际吞吐量小于预设吞吐量阈值以及实际错误率大于预设错误率中的至少一种,则进行预警。Specifically, if the actual monitoring indicator satisfies at least one of the following: the actual response time is less than a preset time threshold, the actual throughput is less than a preset throughput threshold, and the actual error rate is greater than a preset error rate, an early warning is issued.
本实施例的技术方案,通过获取更新后的第一插件的参数集合,并根据更新后的第一插件的参数集合确定更新后的第一插件对应的生产环境集合;根据更新后的第一插件和更新后的第一插件对应的生产环境集合确定目标生产环境;获取当更新后的第一插件部署在目标生产环境时,更新后的第一插件的运行参数;若所述更新后的第一插件的运行参数满足第一预设参数条件,则将所述更新后的第一插件部署在生产环境集合中的每个生产环境中,解决了由于插件的不当更新导致电力系统稳定性降低的问题,能够实现插件的稳定更新,保障电力系统的稳定运行。The technical solution of this embodiment obtains a parameter set of the updated first plug-in, and determines a production environment set corresponding to the updated first plug-in based on the parameter set of the updated first plug-in; determines a target production environment based on the updated first plug-in and the production environment set corresponding to the updated first plug-in; obtains the operating parameters of the updated first plug-in when the updated first plug-in is deployed in the target production environment; if the operating parameters of the updated first plug-in meet the first preset parameter conditions, deploys the updated first plug-in in each production environment in the production environment set, thereby solving the problem of reduced stability of the power system due to improper update of the plug-in, and can achieve stable update of the plug-in to ensure stable operation of the power system.
实施例二Embodiment 2
图2是本发明实施例二中的一种插件测试装置的结构示意图。本实施例可适用于对电力系统中的分布式人工智能服务插件的更新的情况,该装置可采用软件和/或硬件的方式实现,该装置可集成在任何提供插件测试的功能的设备中,如图2所示,所述插件测试装置具体包括:环境获取模块210、环境确定模块220、参数获取模块230和插件部署模块240。FIG2 is a schematic diagram of the structure of a plug-in testing device in Embodiment 2 of the present invention. This embodiment is applicable to the case of updating a distributed artificial intelligence service plug-in in a power system. The device can be implemented in software and/or hardware, and can be integrated in any device that provides plug-in testing functions. As shown in FIG2 , the plug-in testing device specifically includes: an environment acquisition module 210, an environment determination module 220, a parameter acquisition module 230, and a plug-in deployment module 240.
其中,环境获取模块210,用于获取更新后的第一插件的参数集合,并根据更新后的第一插件的参数集合确定更新后的第一插件对应的生产环境集合;The environment acquisition module 210 is used to acquire a parameter set of the updated first plug-in, and determine a production environment set corresponding to the updated first plug-in according to the parameter set of the updated first plug-in;
环境确定模块220,用于根据更新后的第一插件和更新后的第一插件对应的生产环境集合确定目标生产环境;An environment determination module 220, configured to determine a target production environment according to the updated first plug-in and a set of production environments corresponding to the updated first plug-in;
参数获取模块230,用于获取当更新后的第一插件部署在目标生产环境时,更新后的第一插件的运行参数;The parameter acquisition module 230 is used to acquire the running parameters of the updated first plug-in when the updated first plug-in is deployed in the target production environment;
插件部署模块240,用于若所述更新后的第一插件的运行参数满足第一预设参数条件,则将所述更新后的第一插件部署在生产环境集合中的每个生产环境中。The plug-in deployment module 240 is configured to deploy the updated first plug-in in each production environment in the production environment set if the operating parameters of the updated first plug-in meet the first preset parameter condition.
可选的,还包括:Optionally, also include:
评分获取模块,用于获取至少一个待更新的插件和更新后的插件的每一测试指标的目标评分;A score acquisition module, used to acquire a target score for each test indicator of at least one plug-in to be updated and an updated plug-in;
指数确定模块,用于根据所述更新后的插件的每一测试指标的目标评分、每一测试指标的预设权重以及测试指标的数量确定更新后的插件的更新指数;An index determination module, configured to determine an update index of the updated plug-in according to a target score of each test indicator of the updated plug-in, a preset weight of each test indicator, and the number of test indicators;
插件确定模块,用于将所述更新指数大于预设指数阈值的更新后的插件确定为更新后的第一插件。The plug-in determination module is used to determine the updated plug-in whose update index is greater than a preset index threshold as the updated first plug-in.
可选的,所述环境获取模块具体用于:Optionally, the environment acquisition module is specifically used for:
若更新后的第一插件的参数集合中每一参数均满足第二预设参数条件,则根据更新后的第一插件的属性信息确定更新后的第一插件对应的生产环境集合。If each parameter in the parameter set of the updated first plug-in satisfies the second preset parameter condition, the production environment set corresponding to the updated first plug-in is determined according to the attribute information of the updated first plug-in.
可选的,所述环境确定模块具体用于:Optionally, the environment determination module is specifically used to:
获取将更新后的第一插件部署在生产环境集合中的每个生产环境中时,更新后的第一插件对每个生产环境的影响度;Obtaining the impact of the updated first plug-in on each production environment when the updated first plug-in is deployed in each production environment in the production environment set;
根据更新后的第一插件对每个生产环境的影响度对生产环境集合进行筛选,得到目标生产环境。The production environment set is screened according to the impact of the updated first plug-in on each production environment to obtain a target production environment.
可选的,所述环境确定模块具体用于:Optionally, the environment determination module is specifically used to:
获取将更新后的第一插件部署在生产环境集合中的每个生产环境中时,每个影响度评价指标的评分;Obtaining a score for each impact evaluation indicator when the updated first plug-in is deployed in each production environment in the production environment set;
根据将更新后的第一插件部署在生产环境集合中的每个生产环境中时,每个影响度评价指标的评分、影响度评价指标的数量以及每个影响度评价指标的预设权重确定将更新后的第一插件部署在生产环境集合中的每个生产环境中时,更新后的第一插件对每个生产环境的影响度。The impact of the updated first plug-in on each production environment in the production environment set is determined based on the score of each impact evaluation indicator, the number of impact evaluation indicators, and the preset weight of each impact evaluation indicator when the updated first plug-in is deployed in each production environment in the production environment set.
可选的,所述插件部署模块具体用于:Optionally, the plug-in deployment module is specifically used to:
获取第一插件的历史记录和历史应用周期,并根据所述历史记录和历史应用周期确定历史达标率;Obtaining historical records and historical application cycles of the first plug-in, and determining a historical compliance rate according to the historical records and historical application cycles;
根据更新后的第一插件的运行参数和预设监控周期确定当前达标率;Determine the current compliance rate according to the updated operating parameters of the first plug-in and the preset monitoring period;
若当前达标率大于历史达标率,则确定所述更新后的第一插件的运行参数满足第一预设参数条件,将所述更新后的第一插件部署在生产环境集合中的每个生产环境中。If the current compliance rate is greater than the historical compliance rate, it is determined that the operating parameters of the updated first plug-in meet the first preset parameter condition, and the updated first plug-in is deployed in each production environment in the production environment set.
可选的,还包括:Optionally, also include:
指标获取模块,用于获取更新后的第一插件部署在每个生产环境时的实际监控指标,其中,所述监控指标包括:响应时间、吞吐量以及错误率;An indicator acquisition module, used to acquire actual monitoring indicators when the updated first plug-in is deployed in each production environment, wherein the monitoring indicators include: response time, throughput and error rate;
指标预警模块,用于若实际监控指标满足实际响应时间小于预设时间阈值、实际吞吐量小于预设吞吐量阈值以及实际错误率大于预设错误率中的至少一种,则进行预警。The indicator warning module is used to issue an early warning if the actual monitoring indicator meets at least one of the following conditions: the actual response time is less than a preset time threshold, the actual throughput is less than a preset throughput threshold, and the actual error rate is greater than a preset error rate.
上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above-mentioned product can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
实施例三Embodiment 3
图3是本发明实施例三中的一种电子设备的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG3 is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and/or required herein.
如图3所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM12以及RAM13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in FIG3 , the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11 in communication, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.
处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如插件测试方法。The processor 11 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the plug-in testing method.
在一些实施例中,插件测试方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM13并由处理器11执行时,可以执行上文描述的插件测试方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行插件测试方法。In some embodiments, the plug-in testing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the plug-in testing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the plug-in testing method in any other appropriate manner (e.g., by means of firmware).
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and/or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions/operations specified in the flow chart and/or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410272053.2A CN118152282A (en) | 2024-03-11 | 2024-03-11 | Plug-in testing method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410272053.2A CN118152282A (en) | 2024-03-11 | 2024-03-11 | Plug-in testing method, device, equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118152282A true CN118152282A (en) | 2024-06-07 |
Family
ID=91284761
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410272053.2A Pending CN118152282A (en) | 2024-03-11 | 2024-03-11 | Plug-in testing method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118152282A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118656957A (en) * | 2024-06-13 | 2024-09-17 | 深圳市新源鑫电器有限公司 | A method for assembling a high-density power supply backplane |
-
2024
- 2024-03-11 CN CN202410272053.2A patent/CN118152282A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118656957A (en) * | 2024-06-13 | 2024-09-17 | 深圳市新源鑫电器有限公司 | A method for assembling a high-density power supply backplane |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112084110B (en) | Data processing method, device, equipment and storage medium | |
| CN114661571B (en) | Model evaluation method, device, electronic equipment and storage medium | |
| CN113918430A (en) | Method, related device and program product for determining the running state of server hardware | |
| CN118152282A (en) | Plug-in testing method, device, equipment and storage medium | |
| CN117724980A (en) | Method and device for testing software framework performance, electronic equipment and storage medium | |
| CN117236275A (en) | Chip optimization method, device, equipment and storage medium | |
| CN112579402A (en) | Method and device for positioning faults of application system | |
| CN114330221B (en) | Scoreboard implementation method, scoreboard, electronic device and storage medium | |
| CN118885390A (en) | A spacecraft automated testing method and system based on big data | |
| CN118535835A (en) | A dynamic scoring method, system, and computer storage medium for open source components | |
| CN114896418B (en) | Knowledge graph construction method, device, electronic device and storage medium | |
| CN117609064A (en) | Unit test method and device, electronic equipment and storage medium | |
| CN115719167A (en) | Method and device for monitoring vehicle information security | |
| CN119105889A (en) | Cluster node failure prediction method and device, electronic device and storage medium | |
| CN114490349A (en) | Software quality testing method, device, electronic equipment and storage medium | |
| CN118502814B (en) | Software modification evaluation method, device, equipment and medium based on byte codes | |
| Ruan et al. | An Accurate and Efficient Vulnerability Propagation Analysis Framework | |
| CN117632726A (en) | Test case validity detection method and device, electronic equipment and storage medium | |
| CN115904943A (en) | Code coverage rate determining method, system, electronic equipment and storage medium | |
| CN119473344A (en) | Method, device, equipment and medium for publishing large model applications | |
| CN118276933A (en) | Method, device, equipment and medium for processing software compatibility problem | |
| CN116737121A (en) | Software development management method, device, system, equipment and storage medium | |
| CN120492344A (en) | An optimization effect analysis method and electronic device based on distributed link tracing | |
| CN119493789A (en) | A database detection method, device, equipment and storage medium | |
| CN115878362A (en) | Operating system abnormity positioning method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |