[go: up one dir, main page]

WO2008000143A1 - Procédé destiné à vérifier la qualité d'un équipement, procédé et dispositif destinés à automatiquement adapter les données de vérification de qualité - Google Patents

Procédé destiné à vérifier la qualité d'un équipement, procédé et dispositif destinés à automatiquement adapter les données de vérification de qualité Download PDF

Info

Publication number
WO2008000143A1
WO2008000143A1 PCT/CN2007/001888 CN2007001888W WO2008000143A1 WO 2008000143 A1 WO2008000143 A1 WO 2008000143A1 CN 2007001888 W CN2007001888 W CN 2007001888W WO 2008000143 A1 WO2008000143 A1 WO 2008000143A1
Authority
WO
WIPO (PCT)
Prior art keywords
quality check
item
quality
check item
inspection
Prior art date
Application number
PCT/CN2007/001888
Other languages
English (en)
French (fr)
Inventor
Yi Hu
Ying Lei
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to EP07721461A priority Critical patent/EP2028790B1/en
Priority to DE602007006793T priority patent/DE602007006793D1/de
Priority to AT07721461T priority patent/ATE469483T1/de
Publication of WO2008000143A1 publication Critical patent/WO2008000143A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Definitions

  • the invention relates to the field of equipment maintenance application, in particular to a device quality inspection method, an automatic adaptation quality inspection data method and device.
  • the device quality check is based on the device quality check data to determine whether the device has data configuration errors and faults.
  • the device quality check data is a description of all the information required for quality check of a certain type of device, including but not limited to devices. Configuration data, logging, trace files, alarm data, and device status data.
  • Equipment shield inspection methods usually include online inspection, offline inspection, and online offline combined inspection. Among them, offline inspection is to first export the data of the device by hand or other tools, and then use the equipment quality inspection device for analysis.
  • the online check is the device quality check device uses the protocol interface provided by the device (such as MML protocol interface, TELNET protocol interface, binary protocol interface, etc.) to query the data of the device in real time and analyze it.
  • the combination of online and offline means that part of the data analysis of the device is done online, and part of it is implemented by offline method.
  • the inspection items required for different devices are different; even for the same device, the inspection items are different when the device version is different; even for the same inspection item, the data content to be checked due to the difference in the device version, Data collection methods and data analysis methods may also differ. Therefore, the total number of equipment check items is very large. In actual tests, how to select appropriate quality inspection data has become a problem for developers of quality inspection equipment.
  • List of maintenance check items in the equipment quality inspection device During the development of the equipment quality inspection device, for each version of a device, a list of inspection items is maintained inside the equipment quality inspection device, and each inspection item list is in the inspection device. Internal hardcoded implementation so that each check item is listed The functions of each check item in the table are also implemented inside the inspection device; that is, the equipment quality inspection data is developed while developing the equipment quality inspection device, and different device models and versions correspond to different quality inspection item lists;
  • the equipment inspection item is arranged in the equipment quality inspection device, that is, the equipment quality inspection device is first developed, and the equipment quality inspection data is developed in the equipment quality inspection device according to the actual situation; in the actual inspection process, the inspection device is inspected according to the configuration.
  • the project information selects a corresponding quality check item list to perform quality check on the device;
  • Configure the communication device to check the project information through the configuration file Before starting the device quality check, configure the check items of all devices with the configuration file. In the actual check process, firstly, the device model is first queried by some means. And the version information, the inspection device performs quality check on the device according to the actual model and version information of the device, and selects the corresponding quality check item list by referring to the inspection item information in the configuration file.
  • the equipment quality inspection data is the equipment inspection apparatus for a certain equipment.
  • the above system cannot be shared among different devices for different devices; therefore, even if different types of devices have a large number of duplicate devices and extensive inspection data, they must be independently developed and separately maintained;
  • the quality check requires the user to manually configure the inspection item of the device. Therefore, in the case of a large number of devices and/or a large number of inspection items, a large amount of work will be caused. This brings about the problem of inefficient inspection; at the same time, this manual configuration inspection project is carried out on the inspection equipment, that is to say, the development of the equipment quality inspection data is not really independent of the equipment quality inspection device;
  • the embodiment of the invention provides a method and device for checking the shield quantity of the device, realizing the separation of the development of the equipment quality inspection data and the development of the equipment quality inspection device, automatically selecting the quality inspection item, reducing the workload, and facilitating the quality inspection data packet in different devices.
  • a method for checking the quality of a device comprising the following steps:
  • a method for automatically adapting device quality check data comprising the following steps:
  • a device quality inspection device comprising:
  • An information obtaining unit configured to acquire device model information and version information that needs to implement a quality inspection device
  • a traversing search unit configured to traverse all the quality check items stored in advance according to the device model information and version information, to obtain a required quality check item
  • the quality inspection execution unit is configured to perform a device quality check according to the quality inspection item.
  • a device for automatically adapting device quality check data comprising:
  • An information obtaining unit configured to acquire device model information and version information that needs to implement a quality inspection device
  • the traversing search unit is configured to traverse the pre-stored all shield check items according to the device model information and the version information to obtain a required quality check item.
  • the embodiment of the present invention has the following beneficial effects by independently setting the device quality inspection device and automatically matching the implementation method of the quality inspection data:
  • By automatically obtaining the quality inspection data items applicable to the matching equipment manual configuration of the quality inspection data items is avoided, and the equipment quality inspection efficiency is improved; the development of the equipment quality inspection data is separated from the development of the equipment quality inspection apparatus, and the repetition of the equipment shield inspection content is avoided. Setting, reducing the workload;
  • Equipment quality inspection data can be maintained separately and easily extended and upgraded.
  • FIG. 1 is a flow chart of a method provided in accordance with an embodiment of the present invention.
  • FIG. 2 is a flow chart of a method for setting quality inspection data in a method according to an embodiment of the present invention
  • FIG. 3 is a flow chart of a method for executing an applicable quality inspection item in the method shown in FIG.
  • the device extensive inspection method provided by the embodiment of the present invention can solve the problem of large configuration and update workload when the number of devices is relatively large.
  • the device quality checking method includes the following steps: Step 1. Obtain device model information and version information of a device that needs to perform quality check; Step 2. According to the obtained device model information and version Information, traverse all the quality check items stored in advance, obtain the required quality check items and execute them; the quality check items obtained at this time are checked one by one according to the device model information and the version information, thus including the stored All applicable
  • Step 3 Generate a quality check report.
  • the shield inspection device automatically finds the applicable device shield inspection data, thereby avoiding manual configuration for the devices one by one, saving time and improving inspection efficiency.
  • the quality inspection device can obtain the device model and version information by running a pre-stored script function for device model and version query.
  • the equipment quality inspection data involved in the method may be collectively set according to the following methods, as shown in FIG. 2, specifically the steps of developing the equipment quality inspection data before performing the equipment quality inspection:
  • Step a storing all the quality check items required for performing the equipment quality check, each quality check item It consists of basic information, test scripts, and auxiliary scripts.
  • the device that stores all the quality check items can be a database, or other devices that can import and export data, such as text files.
  • Step b Configuring a test package, the test package includes the quality check item, specifically, configuring one or more versions of the quality check items corresponding to one model of the device to be tested as a test package;
  • Step c Configure a device quality check data packet, where the device quality check data packet includes the test packet, specifically, all test packets corresponding to one or more types of devices are configured as a device quality check data packet.
  • the invention organizes the equipment quality inspection data hierarchically, so that the testing apparatus can simultaneously search for the inspection items of all known equipments, so that The development does not depend on the type and version of the device, and the development of the device quality inspection content is separated from the development of the device quality inspection device, which avoids repeated setting of the device quality inspection capacity and reduces the workload.
  • the quality inspection item is the basic inspection unit when performing equipment quality inspection, and each quality inspection item corresponds to one item that the equipment needs to check.
  • the extension of the quality inspection item can be as large or as small as the system, as small as a single board, and the device; according to the size of the quality inspection item, the quality inspection items can be divided into different levels, quality.
  • Check items can contain sub-quality check items.
  • the step of setting the device quality check data may further include organizing the quality check items in a hierarchical structure in each test package, specifically: setting a specified level of hierarchy for each quality check item, such as
  • the quality check item X has a hierarchical level of 1
  • the quality check items A and B have a hierarchical level of 2
  • the quality check items C, D, E, and F have a hierarchical level of 3.
  • the highest level is
  • Check items for example, A, B, C, D, E, F quality check items as described above, C, D, E, and F are the same level, and A and B are CDEF high level one quality check items; , D, E settings For the sub-quality check item of A, set F to the sub-quality check item of B, then A becomes the parent quality check item of C, D, E, and C, D, E belong to multiple sub-quality check items of the same quality check item A , becomes the brother quality check item; B becomes the parent quality check item of F, F becomes the sub-quality check item of B; or, sets 0, D, E, F to the sub-quality check item of A, B has no sub-quality check Items, then €, D, E, F are brother quality check items with a common parent quality check item A.
  • any sub-quality check item can be a subset of its parent QA version information. For example, if the version corresponding to the parent QA is VI and V2, the version corresponding to the sub-monitor check item can only be VI. And / or V2. Take (3, D, E, F are set to A sub-shield check items as an example, if (the version of D is set to 1 ⁇ 1, the version of E, F is set to 1.2.1, then the version setting of A Must be compatible with at least 1.1.1 and 1.2.1 at the same time; conversely, if the version of A is set to 1 ⁇ 1 and 1.2.1, C, D, E, F are unlikely to correspond to 1.1.1 and 1.2.1. Other version information outside.
  • At least one of the quality check items is provided with a parent quality check item.
  • a parent quality check item For example, it is impossible to have a case where C is a child check item of A and B at the same time.
  • the root quality check item has no parent quality check items.
  • root quality check items X there are root quality check items X, A and B are his sub-quality check items.
  • Quality inspection item ID Unique identification of quality inspection item
  • Quality inspection item name A short description of the quality inspection item
  • Parent quality inspection item ID The shield inspection item ID of the upper quality inspection item of the shield inspection item; each quality inspection item can only have one upper level skin inspection item;
  • Sub-quality check item ID list The list of the check items ID of the next-level quality check item of this quality check item. Each quality check item can have 0, 1 or more next level ⁇ : quantity check item;
  • script module name Execute the interface function where python! ⁇ this module name; 8.
  • Execution interface function name The name of the script interface function that the quality check item performs the check activity. This attribute is valid for the automatic execution mode.
  • test package consists of two parts: one is its basic information, and the other is the script file it contains.
  • the basic information of the test package in this embodiment is as follows:
  • Test package name A short description of the test package
  • Test package description A detailed description of the test package, such as string type;
  • Device version A list of the version numbers of the devices to which this test package applies, such as VI ⁇ 1 , V1.2.1, etc.;
  • Script module name Define the name of the python script module where the preprocessor interface function and the post-processing interface function are located;
  • Pre-processing interface function name The name of the script interface function to be pre-processed before the execution of the shield check item in the test package; wherein, the pre-processing interface function is used to set the running environment of the test package, for example, applying for resources , establish a connection with the network, establish a mapping with memory, etc.;
  • Post-processing interface function name The name of the script interface function that is post-processed after scheduling all the quality check items in the test package; wherein, the post-processing interface function is used to complete the test package after the check Take up the release of resources.
  • a device quality check packet is a collection of all test packages, help files, and some public helper scripts for one or more types of devices (the device type in this document refers to the technical classification of the device), such as optical network devices, digital communication devices, and so on. . Therefore, it is a description of all the information needed to perform a quality check on a certain type of device.
  • the device quality check packet consists of two parts: one is its basic information, and the other is its included files, including script files and help files.
  • the basic information of the device quality check data packet is as follows:
  • Category Refers to the professional technical fields of products, such as wireless products, data communication products, optical transmission products, etc.;
  • Equipment model refers to the list of equipment models applicable to the equipment quality inspection data package, such as product A and product B;
  • Test package list a list of 1 or more test package names; 5.
  • Help file name The help file of the device quality check data package;
  • Script module name Define the name of the python script module where the device model and version query function are located;
  • Device model and version query function name Script function for reading the device model and version; name.
  • the equipment quality inspection data does not depend on the specific quality inspection device or the specific equipment model and version information, and can be shared among different quality inspection equipments, which is easy to upgrade and expand the equipment shield inspection data.
  • hierarchically set and organize quality inspection data which is easy to classify and call, and has clear organization and can achieve targeted search; for example, after knowing a device model information, it can determine the quality inspection data package of the device, and further based on the version information. Find the test package in the device quality check packet without having to find all the test packages.
  • the procedure for setting the device quality check data occurs before the actual device quality check is performed, and does not need to be set each time.
  • the initial set device quality check data is always valid without increasing the network device model or version information.
  • an XML file is used to describe device quality check packets, test packets, and quality check items.
  • Cross-platform features based on XML files, device quality check packets, test packages, and quality) Check items can also be used across platforms.
  • the step 1 is specifically: the user configures the IP address of the device that needs to perform the quality check, and obtains the device model information and version information of each device to be inspected according to the IP address. In this way, the user is prevented from manually performing the query operation repeatedly, and can be completed by repeatedly executing the script function for acquiring the device model and version j.
  • step 1 may also be: obtaining an IP address of a device that needs to perform quality check by automatically searching, according to the IP address. Obtain device model information and version information of the device.
  • a script language can be used to implement all of the pre-stored pre-storage in step 2. Shield check items, obtain all applicable quality check items, and perform the steps of the quality check items one by one. In this way, based on the cross-platform nature of the scripting language, device quality check packets, test packages, and QA items can be used across platforms.
  • step 2 is specifically as follows:
  • Step 2a According to the obtained device model, compare with the device model information described in the device quality check data packet, and automatically select a test packet whose device model information matches;
  • Step 2b setting a running environment of the test package according to a pre-processing interface function in the test package;
  • Step 2c Initialize the test package, set the root shield inspection item of the test package to the current quality) check item, and set its forward identifier to be empty; the forward identifier is automatically marked by the processing process in the test device; Step 2d Checking whether the current quality check item corresponds to the version information described in step 1, if yes, step 2e is performed, otherwise step 2h is performed;
  • Step 2e Execute the execution interface function in the current quality check item, that is, perform the check content in the quality check item;
  • Step 2f checking whether the current quality check item has a sub-quality check item, and then executing the step
  • Step 2g setting the forward identifier of the sub-quality check item to point to the current shield inspection item, and setting the sub-quality check item to the current shield quantity check item, and then performing step 2d;
  • Step 2h checking whether the current quality check item has a sibling quality check item, and then executing) step 2i, otherwise performing step 2j; because there is a forward identifier mark, in the process of checking whether there is a sibling quality check item, Will be included in the quality inspection items that have been checked again;
  • Step 2i setting the forward identifier of the sibling quality check item to point to the current quality check item, and setting the sibling shield check item to the current quality check item, and then performing step 2d;
  • Step 2j determining whether the quality check item corresponding to the previous item identifier of the current shield quantity check item is; the brother quality check item of the current quality check item is the content of the parent quantity check item of the current quality check item If all the executions have been completed, step 2k is performed. Otherwise, the forward identifier corresponds to the parent quality check item of the current quality check item, and the quality check item corresponding to the previous item mark is set as the current quality check item, and step 21 is performed. ;
  • Step 2k returning the quality check item corresponding to the forward identifier of the current quality check item, and setting Set the quality check item corresponding to the previous item identifier to the current quality check item and re-execute step 2j; after the sequential processing of this step, the parent quality check item of the current quality check item is finally returned;
  • Step 21 Check whether the forward identifier of the current quality check item is empty, and then execute step 2m, otherwise perform step 2h;
  • Step 2m Clean the running environment according to the post-processing interface function class in the test package.
  • X is the root quality check item
  • a and B are the sub-quality check items of X
  • D, E are set to the sub-quality check item of A
  • F is set to the sub-quality check item of B.
  • a specific embodiment 1 step of performing all applicable shield inspection items in step 2 is:
  • Step 201 Initialize the test package, set the root check item X of the test package to the current test check item, and set the forward identifier of the root quantity check item X to be empty;
  • Step 202 Check that the current quality check item X corresponds to the version information, and execute an execution interface function of the current quality check item X, that is, perform a root quality check item X to perform corresponding check;
  • Step 203 Check that the current quality inspection item X has a sub-quality inspection item A, point the forward identification of the sub-quality inspection item A to the current quality inspection item X, and then set the sub-quality inspection item A as the current quality inspection item; , the current quality check item is A and no longer X;
  • Step 204 Check that the version number of the current quality check item A is 1.1.1 and 1.2.1, and corresponding to the current version information 1.1.1, execute the execution interface function in the current quality check item A, that is, execute the sub Quality inspection item A;
  • Step 205 Check that the current quality check item A has a sub-quality check item C, point the forward mark of the sub-quality check item C to the current quality check item A, and then set the sub-quality check item C to the current quantity check item; That is, the current quality check item is C instead of A;
  • Step 206 Check that the version number of the sub-quality check item C is 1.1.1, and corresponding to the current version information, execute the sub-quality check item C;
  • Step 207 Check that the current shield check item C has no sub-quality check items
  • Step 208 Check that the current quality check item C has a sibling quality check item D, point the forward identifier of the sibling quality check item D to the current quality check item C, and then set the sibling quality check item D to the current quality check item; , the current quality check item is D instead of C;
  • Step 209 Check that the version number of the sibling quality check item D is 1.2.1, and does not correspond to the current version number;
  • Step 210 Check that the current quality check item D has a sibling check item E, and the sibling quality check item
  • the forward indicator of E points to the current quality check item D, and then sets the sibling quality check item E to the current quality check item; that is, the current quality check item is E instead of D;
  • Step 211 Check that the version number of the sibling quality check item E is 1.1.1 and 1.2.1, corresponding to the current version number, and execute the current quality check item E;
  • Step 212 Check that the current quality check item E does not have a sub-shield check item
  • Step 213 Check that the current quality check item E does not have a sibling quality check item
  • Step 214 Check the current shield inspection item E.
  • the forward identifier corresponds to the sibling shield check item.
  • Step 215. Check the current shield inspection item D.
  • the forward identifier corresponds to the sibling quality check item.
  • Step 216 Check that the forward quality identifier of the current quality check item C corresponds to the parent quality check item A, and is not the brother check item of the current quality check item, and then set the parent quality check item A to the current quality check item;
  • Step 217 Check that the forward identifier of the current quality check item corresponds to the quality check item X, not r-,
  • Step 218 Check that the current quality check item A has a sibling quality check item B, point the forward identifier of the sibling quality check item B to the current shield quantity check item A, and then set the sibling quality check item B to the current quality check item; That is, the current quality check item is B and is no longer A;
  • Step 219 The current quality check item B is adapted to have a version number of 1.2.1, and does not correspond to the current version number;
  • Step 220 Check that the current quality check item B has no brother quality check items that have not been checked; Step 221: Check the current shield check item B. The forward mark corresponds to the brother quality check item.
  • Step 222 Check that the forward identifier of the current shield check item A corresponds to the parent quality check item X, which is not the sibling check item of the current quality check item, and then set the parent quality check item X to be the current quality check item;
  • Step 223 Check that the forward identifier of the current shield check item X is empty
  • Step 224 Clean up the running environment according to the post-processing interface function class in the test package.
  • the case where the quality check item B version numbers do not match is indicated.
  • a specific embodiment 2 of performing all applicable quality check items in step 2 is as follows:
  • Step 201, - step 218' is the same as step 201-step 218;
  • Step 219' the version number of the brother quality check item B is 1.1.1 and 1.2.1 corresponding to the current version number, and the current quality check item B is executed;
  • Step 22CK Check that the current quality check item B has a sub-quality check item F, point the forward identifier of the sub-quality check item F to the current quality check item B, and then set the sub-quality check item F to the current quality check item; , the current quality check item is F and no longer B;
  • Step 221 ' check that the current quality check item F is adapted to the version number 1.2.1, which does not correspond to the current version number;
  • Step 111 ′ checking the current quality check item F does not have a sibling quality check item
  • Step 223 ′ checking that the forward identifier of the current quality check item F corresponds to the parent quality check item B, and is not the sibling check item of the current quality check item, and then setting the parent quality check item B to the current quality check item. ;
  • Step 224 ′ checking that the current quality check item B has no unchecked sibling quality check items
  • Step 225 ′ checking that the forward quality identifier of the current quality check item B corresponds to the sibling quality check item A, then returning the quality check item A, And set the quality check item A to the current quality check item;
  • Step 116 ′ checking that the forward identifier of the current quality check item A corresponds to a parent quality check item) X, which is not a sibling check item of the current quality check item, and setting the parent quality check item X as a current quality check item;
  • Step 1TV Check that the forward identifier of the current shield check item X is empty
  • Step 228' cleaning the running environment according to the post-processing interface function class in the test package.
  • a specific embodiment 3 of performing all applicable quality check items in step 2 includes:
  • Step 20 - Step 220" is the same as step 201' - step 220';
  • Step 221 check that the current quality check item F is adapted to the version number 1.1.1, corresponding to the current version number, and execute the current quality check item F;
  • Step 222 checking that the current quality check item F does not have a sub-quality check item
  • Step 223 checking that the current quality check item F does not have a sibling shield check item
  • Step 224" - Step 229" is the same as step 223' - step 228'.
  • the embodiment of the present invention automatically obtains the quality inspection data items applicable to the matching device, avoids manually configuring the quality inspection data items, and improves the equipment quality inspection efficiency;
  • all the quality inspection items of the known equipment are set centrally, and the development of the equipment shield inspection content is separated from the development of the equipment quality inspection equipment, thereby avoiding repeated setting of the equipment quantity inspection content for different equipment quality inspection equipment, and reducing the The workload; especially in the quality inspection of large-scale networks, the effect of the reduction in workload is particularly obvious;
  • the identification of invalid quality inspection data is avoided one by one, and the equipment quality inspection efficiency is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Selective Calling Equipment (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • General Factory Administration (AREA)

Description

设备质量检查方法、 自动适配质量检查数据方法及装置 本申请要求于 2006 年 6 月 19 日提交中国专利局、 申请号为 200610082900.0、 发明名称为"一种设备质量检查方法"的中国专利申请的优先 权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及一种设备维护应用领域, 尤其指一种设备质量检查方法、 自 动适配质量检查数据方法及装置。
背景技术
随着通信网络规模的日益扩大和运营商对业务质量要求的日益提高,运营 商和设备提供商必须在网络设备的运行过程中,对设备进行质量检查, 以保证 网络设备的正常运行。
设备质量的检查是依据设备质量检查数据来判断设备是否存在数据配置 错误和故障隐患,其中设备质量检查数据是对某种类型设备进行质量检查时需 要的全部信息的描述, 包括但不限于设备的配置数据、 日志记录、 跟踪文件、 告警数据和设备状态数据。设备盾量检查的方式通常包括联机检查、脱机检查 以及联机脱机结合检查三种。其中,脱机检查是先通过手工或者其它工具把设 备的数据导出来,然后再用设备质量检查装置进行分析。联机检查是设备质量 检查装置利用设备提供的协议接口 (如 MML协议接口、 TELNET协议接口, 二进制协议接口等)实时查询设备的数据并进行分析。联机和脱机相结合则是 指设备的数据分析一部分通过联机方法完成, 一部分通过脱机方法实现。
由于设备众多, 不同的设备所需的检查项目各有不同; 即便是同一设备, 当设备版本不同时,检查项目也有不同; 即使是同一检查项目, 由于设备版本 的差异,所要检查的数据内容、数据采集的方法以及数据的分析方法也可能存 在差异。 因此, 全部的设备检查项列表数目非常庞大, 在实际的测试中, 如何 选择合适的质量检查数据成为了困扰质量检查装置开发者的难题。
目前主要采取以下三种方法:
一、 在设备质量检查装置内部维护检查项列表: 在设备质量检查装置开 发过程中,针对某一设备的不同版本,在设备质量检查装置内部分别维护一个 检查项列表,各个检查项列表在检查装置内部硬编码实现,从而每个检查项列 表中各检查项功能也在检查装置内部实现;亦即在开发设备质量检查装置的同 时开发设备质量检查数据, 不同的设备型号和版本对应不同的质量检查项列 表;
二、 手工设置设备型号和版本: 在开始执行设备质量检查之前, 首先通 ; 过某种途径先查询到设备的型号和版本信息,再根据实际的设备的型号和版本 信息,用手工方式一个一个的在设备质量检查装置中配置设备的检查项目, 亦 即先开发设备质量检查装置,再根据实际情况在设备质量检查装置中开发设备 质量检查数据; 则实际检查过程中,检查装置根据配置的检查项目信息选择对 应的质量检查项列表对设备进行质量检查;
) 三、 通过配置文件配置通信设备检查项目信息: 在开始执行设备质量检 查之前, 先用配置文件配置所有的设备的检查项目; 在实际检查过程中, 首先 通过某种途径先查询到设备的型号和版本信息,检查装置根据实际的设备的型 号和版本信息,参照配置文件中检查项目信息选择对应的质量检查项列表对设 备进行质量检查。
; 发明人在实现本发明的过程中发现上述现有技术至少存在如下问题: 对 于在设备质量检查装置内部维护检查项列表的方法而言,设备质量检查数据是 在针对某一设备的设备检查装置上设制的,无法在针对不同设备的不同装置间 共享; 因此, 即使不同型号的设备具有大量重复的设备廣量检查数据,也必须 独立开发, 分别维护;
) 对于手工设置设备型号和版本的方法而言, 质量检查需要用户通过手工 配置设备的检查项目, 因此, 在设备数量比较多和 /或检查项目比较多的情况 下, 将导致大量的工作量, 带来了检查效率低下的问题; 同时, 这种手工配置 检查项目是在检查设备上进行的,也就是说,设备质量检查数据的开发并未真 正独立于设备质量检查装置;
5 对于通过配置文件配置通信设备检查项目信息的方法而言, 由于配置文 件需要预先针对全部设备进行对应编辑,如果设备比较多, 必然导致庞大的工 作量; 同时, 在设备升级、 扩容之后, 也必须逐一更新配置文件, 也必然存在 工作量大的问题。
可见,现有的方法中无法克服设备质量检查过程中工作量庞大,更新复杂 的问题。随着网络设备数量的日益扩大,上述问题所带来的维护压力日益加大 和维护成本增加的问题也日益明显。
发明内容
本发明实施例提供一种设备盾量检查方法和装置, 实现设备质量检查数 据的开发与设备质量检查装置开发的分离,自动选择质量检查项,降低工作量, 并利于质量检查数据包在不同设备质量检查装置的共享、跨平台使用和升级更 新。
本发明实施例的技术方案包括:
一种设备质量检查方法, 包括以下步驟:
获取需要实施质量检查设备的设备型号信息和版本信息;
根据所述设备型号信息和版本信息, 遍历预先存储的全部质量检查项, 获得所需的质量检查项, 依据所述质量检查项执行设备廣量检查。
一种自动适配设备质量检查数据的方法, 包括以下步骤:
获取需要实施盾量检查设备的设备型号信息和版本信息;
根据所述设备型号信息和版本信息, 遍历预先存储的全部质量检查项, 获得所需的质量检查项。
一种设备质量检查装置, 包括:
信息获取单元, 用于获取需要实施质量检查设备的设备型号信息和版本 信息;
遍历查找单元, 用于根据所述设备型号信息和版本信息, 遍历预先存储 的全部质量检查项, 获得所需的质量检查项;
质量检查执行单元, 用于根据所述质量检查项执行设备质量检查。
一种自动适配设备质量检查数据的装置, 包括:
信息获取单元, 用于获取需要实施质量检查设备的设备型号信息和版本 信息;
遍历查找单元, 用于根据所述设备型号信息和版本信息, 遍历预先存储 的全部盾量检查项, 获得所需的质量检查项。
由上述技术方案可知, 本发明实施例通过独立设置设备质量检查装置, 自动匹配质量检查数据的实现方式, 具有以下有益效果: 通过自动获取匹配设备适用的质量检查数据项,避免手工配置质量检查数 据项,提高设备质量检查效率;设备质量检查数据的开发与设备质量检查装置 的开发分离, 避免了设备盾量检查内容的反复设置, 降低了工作量;
由于设备质量检查数据单独设置,实现了对不同设备和不同版本的质量检 查数据的统一组织和处理;
设备质量检查数据可单独维护, 易于扩展和升级。
下面通过附图和实施例, 对本发明的技术方案做进一步的详细描述。 附图说明
图 1为根据本发明实施例所提供方法的流程图;
图 2为根据本发明实施例所提供方法中设置质量检查数据的方法流程图; 图 3为图 1所示方法中执行适用的质量检查项的方法流程图。
具体实施方式
本发明实施例所提供的设备廣量检查方法,能够解决设备数量比较多的情 况下, 配置以及更新工作量大的问题。
参见图 1 , 本发明实施例所提供的设备质量检查方法包括以下步骤: 步骤 1、 获取需要实施质量检查的设备的设备型号信息和版本信息; 步骤 2、 根据所述获取的设备型号信息和版本信息, 遍历预先存储的全部 质量检查项, 获得所需的质量检查项并执行; 此时获得的质量检查项, 由于是 根据设备型号信息和版本信息逐一排查所得, 因此,嚢括了已存储的全部适用
^量检查项;
步骤 3、 生成质量检查艮告。
通过上述技术方案,盾量检查装置获得设备型号信息和版本信息后, 自动 查找适用的设备盾量检查数据,避免了针对设备逐一进行手动配置, 节约了时 间, 提高了检查效率。
其中,质量检查装置通过可以通过运行预存的、用于设备型号和版本查询 的脚本函数来获取设备型号和版本信息。
本方法中涉及的设备质量检查数据可以按照以下方法集中设置, 参见图 2 , 具体为进行设备质量检查之前包括开发设备质量检查数据的步骤:
步骤 a、 存储进行设备质量检查所需的全部质量检查项, 每一质量检查项 由基本信息、 测试脚本及辅助脚本组成。
存储全部质量检查项的装置可以为数据库,也可以是其他可进行数据导入 导出的装置, 比如文本文件。
为了便于查找, 还可包括:
; 步骤 b、 配置测试包, 该测试包包括所述质量检查项, 具体为将对应一个 待测设备型号的一个或者多个版本的质量检查项, 配置为一测试包;
步骤 c、 配置设备质量检查数据包, 该设备质量检查数据包包括所述测试 包,具体为将对应一种或者多种类型设备的所有测试包,配置为一设备质量检 查数据包。
) 相对于目前设备质量检查方法中根据设备设计检查装置的技术,本发明通 过分层次的对设备质量检查数据进行组织,使测试装置可以同时搜索获得所有 已知设备的^量检查项, 因此其开发不必依赖于设备的类型和版本, 实现了设 备质量检查内容的开发与设备质量检查装置的开发分离,避免了设备质量检查 容的反复设置, 降低了工作量。
5 其中,质量检查项是进行设备质量检查时的基本检查单元,每一质量检查 项对应设备需要检查的一项内容。
由于质量检查内容的多少不同, 因此质量检查项的外延可大可小, 大到系 统, 小到单板, 器件; 根据质量检查项外延的大小, 可以把质量检查项划分成 不同的层次, 质量检查项可以包含子质量检查项。
) 也就是说,设置设备质量检查数据的步驟还可包括在每一测试包中,将所 述质量检查项按照层次结构进行组织,具体为: 为每一个质量检查项设置指定 的层次级别, 比如质量检查项 X的层次级别为 1 , 质量检查项 A、 B的层次级别 都为 2, 而质量检查项 C、 D、 E、 F的层次级别为 3。
有且仅有一个质量检查项对应最高层次级别,在本实施例中, 最高级别为
5 1 , 设置为根质量检查项; 其余质量检查项的级别都低于根质量检查项。
将低于最高级别的任一层次的质量检查项设置为其高一层次质量检查项 的子质量检查项, 同时,对应将其高一层次质量检查项设置为该层次的质量检 查项的父质量检查项; 例如, 如上所述的 A、 B、 C、 D、 E、 F质量检查项, C、 D、 E和 F为同一层次, A和 B为 CDEF高一层次的质量检查项; 将€、 D、 E设置 为 A的子质量检查项, 将 F设置为 B的子质量检查项, 则 A成为 C、 D、 E的父质 量检查项, C、 D、 E属于同一质量检查项 A的多个子质量检查项, 成为兄弟质 量检查项; B成为 F的父质量检查项, F成为 B的子质量检查项; 或者, 将0、 D、 E、 F都设置为 A的子质量检查项, B没有子质量检查项, 则€、 D、 E、 F为兄弟 质量检查项, 具有共同的父质量检查项 A。
将任一子质量检查项的版本信息设置为其父质量检查项版本信息的子集, 如父质量检查项对应的版本为 VI和 V2;则其子盾量检查项对应得版本只能是 VI和 /或 V2。 以(3、 D、 E、 F都设置为 A的子盾量检查项为例, 如果 (、 D的版 本设置为 1丄1 , E、 F的版本设置为 1.2.1 , 则 A的版本设置必须为至少同时兼容 1.1.1和 1.2.1; 反过来, 如果 A的版本设置为 1丄1和 1.2.1 , C, D、 E、 F都不 可能对应超出 1.1.1和 1.2.1之外的其他的版本信息。
除所述根质量检查项外, 任一所述质量检查项至多设有一个父质量检查 项, 例如, 不可能存在 C同时为 A、 B的子^量检查项的情况。 该根质量检查项 没有父质量检查项。
在本实施例中, 存在根质量检查项 X, A和 B都是他的子质量检查项。
通过给质量检查项划分不同的层次, 构成树状组织, 能够实现按照数学方 法进行遍历, 比起无序的随机查找或者顺序查找匹配的质量检查项, 能够提高 查找效率, 节约资源。
本实施例中质量检查项的基本信息包括:
1、 质量检查项 ID: 质量检查项唯一标识;
1、 质量检查项名称: 质量检查项的简短描述;
3、 质量检查项描述: 质量检查项的详细描述;
4、 设备版本: 本质量检查项适用的设备的版本号, 如 VU.l , V1.2.1等; 如果本属性为空, 则表示适用于所有版本;
5、父质量检查项 ID:本盾量检查项的上一级质量检查项的盾量检查项 ID; 每个质量检查项最多只能有一个上一级膚量检查项;
6、 子质量检查项 ID列表: 本质量检查项的下一级质量检查项的^量检查 项 ID列表, 每个质量检查项可以有 0个、 1个或者多个下一级^:量检查项;
7、 脚本模块名称: 执行接口函数所在的 python!^本模块名称; 8、 执行接口函数名称: 质量检查项执行检查活动的脚本接口函数名称, 本属性对自动执行模式有效。
测试包由两部分组成:一部分是其基本信息,一部分是其包含的脚本文件。 其中, 本实施例中测试包的基本信息如下:
1、 测试包名称: 测试包的筒短描述;
2、 测试包描述: 测试包的详细描述, 例如字符串类型;
3、 设备版本: 本测试包适用的设备的版本号列表, 如 VI丄 1 , V1.2.1等;
4、 盾量检查项: 本测试包包含的质量检查项, 可以有多个;
5、 脚本模块名称: 定义预处理接口函数和后处理接口函数所在的 python 脚本模块名称;
6、 预处理接口函数名称: 本测试包里面的盾量检查项在执行之前进行预 处理的脚本接口函数名称; 其中, 所谓预处理接口函数, 用于设置测试包的运 行环境, 比如, 申请资源, 建立与网络的连接, 建立与内存的映射等;
7、 后处理接口函数名称: 在调度执行完本测试包里面的所有质量检查项 之后进行后处理的脚本接口函数名称; 其中, 所谓后处理接口函数, 用于在测 试包检查结束后, 完成所占用资源的释放。
设备质量检查数据包是针对一种或者多种类型设备(本文的设备类型指设 备的技术分类), 如光网络设备、 数字通信设备等的所有测试包列表、 帮助文 档和一些公共辅助脚本的集合。 因此,它是对某种类型的设备进行质量检查时 需要的全部信息的描述。
设备质量检查数据包由两部分组成: 一部分是其基本信息,一部分是其包 含的文件, 包括脚本文件和帮助文件。 其中, 本实施例中, 设备质量检查数据 包的基本信息如下:
1、 名称: 设备质量检查数据包的简短描述;
2、 类别: 指产品的专业技术领域, 如无线产品、 数据通信产品、 光传输 产品等;
3、 设备型号: 指本设备质量检查数据包适用的设备型号列表, 如产品 A、 产品 B;
4、 测试包列表: 1个或者多个测试包名称的列表; 5、 帮助文件名称: 本设备质量检查数据包的帮助文件;
6、 脚本模块名: 定义设备型号和版本查询函数所在的 python脚本模块名 称;
7、 设备型号和版本查询函数名称: 用于读取设备型号和版本的脚本函数 ; 名称。
可见,在具体检查之前,将所有型号及版本的设备检查信息都通过数据库 保存起来, 实现了设备质量检查数据, 包括设备质量检查数据包、 测试包和质 量检查项独立于设备质量检查装置一次性开发; 因此,设备质量检查数据不依 赖于具体的质量检查装置或者具体的设备型号和版本信息,可在不同的质量检 ) 查装置间实现共享, 易于设备盾量检查数据的升级和扩展。 同时, 分层次设置 和组织质量检查数据,便于分类和调用,条理清晰,可实现针对性查找; 比如, 获知了一个设备型号信息后, 即可确定所属设备质量检查数据包,再进一步根 据版本信息,查找该设备质量检查数据包内的测试包, 而无需查找全部的测试 包。
) 此外, 设置设备质量检查数据的步骤发生在实际进行设备质量检查之前, 且无需每次设置。在未增加网络设备型号或版本信息的情况下,初始设置的设 备质量检查数据始终保持有效。
在本实施例中, 采用 XML文件描述设备质量检查数据包、 测试包和质量 检查项。 基于 XML文件的跨平台特性, 设备质量检查数据包、 测试包和质量 ) 检查项也可以跨平台使用。
在实际检查中, 由于是通过网络自动对设备进行质量检查,必须首先获得 设备的 IP地址。 因此, 步骤 1具体为: 用户配置需要实施质量检查的设备的 IP 地址, 根据所述 IP地址分别获得各待检查设备的设备型号信息和版本信息。这 样,避免了用户手工反复执行查询操作, 而可以改由用于获取设备型号和版本 j 的脚本函数反复执行来完成。
但是, 在设备数量比较多的情况下, 逐一配置设备 IP将导致产生大量的工 作量, 因此, 步骤 1还可以为: 通过自动搜索获得需要实施质量检查的设备的 IP地址, 根据所述 IP地址获得所述设备的设备型号信息和版本信息。
在本发明中, 可以采用脚本语言来实现步驟 2中前序遍历预先存储的全部 盾量检查项,获得适用的所有质量检查项,并逐一执行所述质量检查项的步骤。 这样, 基于脚本语言的跨平台特性, 设备质量检查数据包、 测试包和质量检查 项都可以跨平台使用。
参见图 3 , 步骤 2具体为:
; 步骤 2a、 根据所述获得的设备型号, 与设备质量检查数据包中描述的设 备型号信息进行比较, 自动选择设备型号信息匹配的测试包;
步骤 2b、 按照所述测试包中的预处理接口函数设置所述测试包的运行环 境;
步骤 2c、 初始化所述测试包, 将测试包的根盾量检查项设置为当前质量 ) 检查项,并设置其前向标识为空;前向标识由测试设备中的处理进程自动标示; 步驟 2d、 检查所述当前质量检查项是否与步骤 1 中所述版本信息对应, 是则执行步驟 2e, 否则执行步骤 2h;
步驟 2e、 执行所述当前质量检查项中的执行接口函数, 即为执行该质量 检查项中的检查内容;
; 步驟 2f、检查所述当前质量检查项是否具有子质量检查项,是则执行步骤
2g, 否则执行步骤 2h;
步骤 2g、 设置所述子质量检查项的前向标识指向所述当前盾量检查项, 并设置所述子质量检查项为当前盾量检查项, 然后执行步骤 2d;
步驟 2h、 检查所述当前质量检查项是否具有兄弟质量检查项, 是则执行 ) 步骤 2i, 否则执行步驟 2j; 由于有前向标识的标记, 在检查是否具有兄弟质量 检查项的过程中, 不会再次列入已经检查过的质量检查项;
步驟 2i、 设置所述兄弟质量检查项的前向标识指向所述当前质量检查项, 并设置所述兄弟盾量检查项为当前质量检查项, 然后执行步骤 2d;
步骤 2j、判断所述当前盾量检查项的前项标识所对应的质量检查项是否为 ; 所述当前质量检查项的兄弟质量检查项,是则当前质量检查项的父 量检查项 下的内容已经被全部执行完成, 则执行步骤 2k, 否则前向标识所对应的是当 前质量检查项的父质量检查项,设置所述前项标示对应的质量检查项为当前质 量检查项, 并执行步骤 21;
步骤 2k、 返回所述当前质量检查项的前向标识所对应的质量检查项, 设 置所述前项标识对应的质量检查项为当前质量检查项并重新执行步骤 2j;经过 本步骤的依序处理, 最终也是返回当前质量检查项的父质量检查项;
步骤 21、 检查所述当前质量检查项的前向标识是否为空, 是则执行步骤 2m, 否则执行步骤 2h;
步驟 2m、 按照所述测试包中的后处理接口函数类清理运行环境。
以所匹配测试包中, X为根质量检查项, A、 B为 X的子质量检查项, (:、 D、 E设置为 A的子质量检查项, 将 F设置为 B的子质量检查项为例, 步驟 2中执 行适用的所有盾量检查项的一个具体实施例 1步骤为:
步骤 201、初始化所述测试包,将测试包的根 量检查项 X设置为当前测 试检查项 , 同时设置该根廣量检查项 X的前向标识为空;
步骤 202、检查当前质量检查项 X与版本信息对应,执行该当前质量检查 项 X的执行接口函数, 即执行根质量检查项 X进行相应检查;
步骤 203、检查当前质量检查项 X具有子质量检查项 A, 将该子质量检查 项 A的前向标识指向当前质量检查项 X, 然后将该子质量检查项 A设置为当 前质量检查项; 即, 当前质量检查项是 A而不再是 X;
步骤 204、 检查当前质量检查项 A所适应的版本号为 1.1.1和 1.2.1 , 与当 前版本信息 1.1.1能够对应, 则执行当前质量检查项 A中的执行接口函数, 即 执行该子质量检查项 A;
步骤 205、检查当前质量检查项 A具有子质量检查项 C, 将该子质量检查 项 C的前向标识指向当前质量检查项 A, 然后将该子质量检查项 C设置为当 前廣量检查项; 即, 当前质量检查项是 C而不再是 A;
步骤 206、 检查子质量检查项 C所适应的版本号为 1.1.1 , 与当前版本信 息对应, 则执行该子质量检查项 C;
步骤 207、 检查当前盾量检查项 C无子质量检查项;
步骤 208、 检查当前质量检查项 C有兄弟质量检查项 D,将该兄弟质量检 查项 D的前向标识指向当前质量检查项 C, 然后将该兄弟质量检查项 D设置 为当前质量检查项; 即, 当前质量检查项是 D而不再是 C;
步驟 209、 检查所述兄弟质量检查项 D所适应的版本号为 1.2.1 , 与当前 版本号不对应; 步骤 210、检查当前质量检查项 D具有兄弟检查项 E,将该兄弟质量检查项
E的前向标识指向当前质量检查项 D,然后将该兄弟质量检查项 E设置为当前 质量检查项; 即, 当前质量检查项是 E而不再是 D;
步驟 211、 检查所述兄弟质量检查项 E所适应的版本号为 1.1.1和 1.2.1 , 与当前版本号对应, 执行所述当前质量检查项 E;
步骤 212、 检查当前质量检查项 E不具有子盾量检查项;
步骤 213、 检查当前质量检查项 E不具有兄弟质量检查项;
步骤 214、检查当前盾量检查项 E的前向标识所对应的是兄弟盾量检查项
D, 则返回质量检查项 D, 并设置质量检查项 D为当前质量检查项;
I 步驟 215、检查当前盾量检查项 D的前向标识所对应的是兄弟质量检查项
C, 则返回质量检查项 C, 并设置质量检查项 C为当前质量检查项;
步骤 216、检查当前质量检查项 C的前向标识所对应的是父质量检查项 A, 不是当前质量检查项的兄弟检查项, 则设置所述父质量检查项 A为当前质量 检查项;
; 步驟 217、 检查当前质量检查项的前向标识对应的是质量检查项 X, 不为 r-,
步骤 218、 检查当前质量检查项 A有兄弟质量检查项 B,将该兄弟质量检 查项 B的前向标识指向当前盾量检查项 A, 然后将该兄弟质量检查项 B设置 为当前质量检查项; 即, 当前质量检查项是 B而不再是 A;
) 步骤 219、 所述当前质量检查项 B所适应的版本号为 1.2.1, 与当前版本 号不对应;
步骤 220、 检查当前质量检查项 B没有尚未检查的兄弟质量检查项; 步骤 221、检查当前盾量检查项 B的前向标识所对应的是兄弟质量检查项
A, 则返回质量检查项 A, 并设置质量检查项 A为当前质量检查项;
5 步骤 222、检查当前盾量检查项 A的前向标识所对应的是父质量检查项 X, 不是当前质量检查项的兄弟检查项, 则设置所述父质量检查项 X为当前质量 检查项;
步骤 223 检查所述当前盾量检查项 X的前向标识为空;
步骤 224、 按照所述测试包中的后处理接口函数类清理运行环境。 在上一实施例 1 中指示了质量检查项 B版本号不匹配的情况, 在质量检 查项 B版本号匹配的情况下, 步骤 2中执行适用的所有质量检查项的一个具 体实施例 2如下:
步驟 201, -步骤 218' 与步骤 201-步骤 218相同;
步驟 219'、 所述兄弟质量检查项 B所适应的版本号为 1.1.1和 1.2.1与当 前版本号对应 , 执行所述当前质量检查项 B;
步骤 22CK、 检查当前质量检查项 B具有子质量检查项 F, 将该子质量检 查项 F的前向标识指向当前质量检查项 B,然后将该子质量检查项 F设置为当 前质量检查项; 即, 当前质量检查项是 F而不再是 B;
3 步骤 221'、 检查当前质量检查项 F所适应的版本号为 1.2.1 , 与当前版本 号不对应;
步驟 111'、 检查当前质量检查项 F不具有兄弟质量检查项;
步驟 223'、 检查当前质量检查项 F的前向标识所对应的是父质量检查项 B, 不是当前质量检查项的兄弟检查项, 则设置所述父质量检查项 B为当前质 ) 量检查项;
步骤 224'、 检查当前质量检查项 B没有尚未检查的兄弟质量检查项; 步骤 225'、 检查当前质量检查项 B的前向标识所对应的是兄弟质量检查 项 A, 则返回质量检查项 A, 并设置质量检查项 A为当前质量检查项;
步驟 116'、 检查当前质量检查项 A的前向标识所对应的是父质量检查项 ) X, 不是当前质量检查项的兄弟检查项, 则设置所述父质量检查项 X为当前质 量检查项;
步骤 1TV、 检查所述当前盾量检查项 X的前向标识为空;
步骤 228'、 按照所述测试包中的后处理接口函数类清理运行环境。
在上一实施例 2中, 子质量检查项 F与当前版本信息不对应, 如果对应, ; 则步骤 2中执行适用的所有质量检查项的一个具体实施例 3包括:
步驟 20 -步骤 220" 与步骤 201' -步骤 220' 相同;
步骤 221" 、检查当前质量检查项 F所适应的版本号为 1.1.1 ,与当前版本 号对应, 执行所述当前质量检查项 F;
步骤 222" 、 检查当前质量检查项 F不具有子质量检查项; 步骤 223" 、 检查当前质量检查项 F不具有兄弟盾量检查项;
步骤 224" -步骤 229" 与步驟 223' -步骤 228' 相同。
上述具体实施例 1、 2和 3分别描述了不同情况下, 执行适用的所有质量 检查项的过程。可以看出, 这种过程应用的是树的前序遍历思想,对集中设置 5 的设备质量检查数据进行遍历, 保证了对所有符合条件的质量检查项的遍历; 且遇到不匹配版本信息的父盾量检查项时,就不再进行进一步的遍历,节省了 时间和资源。
根据上述对本发明实施例技术方案的详细阐述,可以看出本发明实施例通 过自动获取匹配设备适用的质量检查数据项, 避免手工配置质量检查数据项, ) 提高设备质量检查效率;
进一步的,集中设置已知设备的全部质量检查项,设备盾量检查内容的开 发与设备质量检查设备的开发分离,避免了针对不同的设备质量检查设备进行 设备 量检查内容的反复设置, 降低了工作量;在对大规模网络进行质量检查 时, 所带来的工作量降低的效果尤为明显;
> 由于进行了质量检查项的集中设置, 因此可统一组织和处理,进行单独维 护, 并易于扩展和升级数据;
由于集中设置的质量检查项独立存在, 不依赖于具体的设备质量检查装 置, 因此实现了质量检查数据在多个设备质量检查装置间的共享, 以及质量检 查数据的跨平台使用;
) 同时,按照层次结构避免对无效质量检查数据的逐一判别,提高设备质量 检查效率„
最后所应说明的是, 以上实施例仅用以说明本发明的技术方案而非限制, 尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理 解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方 ) 案的精神和范围。

Claims

权 利 要 求
1、 一种设备质量检查方法, 其特征在于包括以下步驟:
获取需要实施质量检查设备的设备型号信息和版本信息;
根据所述设备型号信息和版本信息,遍历预先存储的全部质量检查项,获
5 得所需的盾量检查项, 依据所述质量检查项执行设备质量检查。
2、 根据权利要求 1所述的设备质量检查方法, 其特征在于所述获取设备 型号信息和版本信息之前, 还包括开发设备质量检查数据的步骤, 具体为: 设置并存储进行设备质量检查所需的全部质量检查项,每一所述质量检查 项由基本信息、 测试脚本及辅助脚本组成。
)
3、 根据权利要求 2所述的设备质量检查方法, 其特征在于所述设置设备 质量检查数据的步骤还包括:
所述质量检查项被配置在测试包内,具体为将对应一个待测设备型号的一 个或者多个版本的质量检查项, 配置为一测试包;
所述测试包被配置在设备质量检查数据包内,具体为将对应一种或多种类 ; 型设备的所有测试包, 配置为一设备质量检查数据包。
4、根据权利要求 3所述的设备质量检查方法, 其特征在于, 进一步包括: 在每一测试包中,将所述质量检查项按照层次结构进行組织, 具体为: 为每一 个盾量检查项设置指定的层次级别;唯一的对应最高级别的盾量检查项设置为 根盾量检查项;将低于最高级别的任一层次的质量检查项设置为其高一层次质
) 量检查项的子质量检查项;将任一子质量检查项的版本信息设置为其父质量检 查项版本信息的子集; 除所述 ^^质量检查项外,任一所述质量检查项至多设有 一个父质量检查项。
5、 根据权利要求 2至 4中任一项所述的设备质量检查方法, 其特征在于 所述质量检查项的基本信息包括: 质量检查 ID、 质量检查项名称、 质量检查
; 项描述、 设备版本、 父质量检查项 ID、 子盾量检查项 ID列表、脚本模块名称 和执行接口函数名称。
6、 根据权利要求 3或 4所述的设备质量检查方法, 其特征在于所述测试 包基本信息包括: 测试包名称、 测试包描述、设备版本、 质量检查项、 脚本模 块名称、 预处理接口函数名称、 后处理接口函数名称。
7、 根据权利要求 1所述的设备质量检查方法, 其特征在于, 所述获取设. 备型号信息和版本信息的步骤包括:
接收来自用户配置的需要实施质量检查的设备的 Π>地址,根据所述 IP地 址分别获得所述设备的设备型号信息和版本信息; 或者,
j 自动搜索需要实施质量检查的设备的 Π>地址,根据所述 IP地址分别获得 所述设备的设备型号信息和版本信息。
8、 根据权利要求 6所述的设备质量检查方法, 其特征在于所述遍历预先 存储的全部质量检查项,获得所需的质量检查项并执行设备质量检查的步骤包 括:
) 步骤 2a、 根据所述获得的设备型号信息, 与设备质量检查数据包中描述 的设备型号信息进行比较, 自动选择设备型号信息匹配的测试包;
步驟 2b、 按照所述测试包中的预处理接口函数设置所述测试包的运行环 境;
步骤 2c、 初始化所述测试包, 将测试包的才艮质量检查项设置为当前质量 ; 检查项, 并设置其前向标识为空;
步驟 2d、 检查所述当前质量检查项是否与所述版本信息对应, 是则执行 步骤 2e, 否则执行步骤 2h;
步骤 2e、 执行所述当前质量检查项中的执行接口函数;
步驟 2f、检查所述当前质量检查项是否具有子质量检查项,是则执行步驟 I 2g, 否则执行步骤 2h;
步骤 2g、 设置所述子质量检查项的前向标识指向所述当前质量检查项, 并设置所述子质量检查项为当前质量检查项, 然后执行步驟 2d;
步驟 2h、 检查所述当前质量检查项是否具有兄弟质量检查项, 是则执行 步骤 2i, 否则执行步骤 2j;
步骤 2i、 设置所述兄弟质量检查项的前向标识指向所述当前盾量检查项, 并设置所述兄弟质量检查项为当前质量检查项, 然后执行步骤 2d;
步驟 2j、判断所述当前质量检查项的前项标识所对应的盾量检查项是否为 所述当前质量检查项的兄弟盾量检查项, 是则执行步骤 2k, 否则设置所述前 向标识对应的质量检查项为当前质量检查项, 并执行步骤 21; 步骤 2k、 返回所述当前质量检查项的前向标识所对应的质量检查项, 设 置所述前项标识对应的盾量检查项为当前质量检查项并重新执行步骤 2j;
步骤 21、 检查所述当前质量检查项的前向标识是否为空, 是则执行步骤 2m, 否则执行步骤 2h;
5 步骤 2m、 按照所述测试包中的后处理接口函数类清理运行环境。
9、根据权利要求 1所述的设备质量检查方法,其特征在于,进一步包括: 根据质量检查结果生成质量检查报告。
10、 一种自动适配设备质量检查数据的方法, 其特征在于, 包括以下步 骤:
) 获取需要实施质量检查设备的设备型号信息和版本信息;
根据所述设备型号信息和版本信息, 遍历预先存储的全部质量检查项, 获得所需的质量检查项。
11、 根据权利要求 10所述的自动适配设备质量检查数据的方法, 其特征 在于,所述获取设备型号信息和版本信息之前,还包括开发设备质量检查数据 ) 的步驟, 具体为:
设置并存储进行设备质量检查所需的全部盾量检查项, 每一所述质量检 查项由基本信息、 测试脚本及辅助脚本组成;
将所述盾量检查项配置为测试包, 具体为将对应一个待测设备型号的一 个或者多个版本的质量检查项, 配置为一测试包;
) 将所述测试包配置为设备盾量检查数据包, 具体为将对应一种或多种类 型设备的所有测试包, 配置为一设备质量检查数据包;
进一步包括: .在每一测试包中, 将所述质量检查项按照层次结构进行组 织, 具体为: 为每一个质量检查项设置指定的层次级别; 唯一的对应最高级别 的质量检查项设置为根质量检查项;将低于最高级别的任一层次的质量检查项 ; 设置为其高一层次质量检查项的子质量检查项;将任一子质量检查项的版本信 息设置为其父质量检查项版本信息的子集; 除所述根质量检查项外,任一所述 质量检查项至多设有一个父质量检查项。
12、 根据权利要求 11所述的设备质量检查方法, 其特征在于,
所述质量检查项的基本信息包括: 质量检查 ID、 盾量检查项名称、 质量 检查项描述、 设备版本、 父质量检查项 ID、 子质量检查项 ID列表、 脚本模块 名称和执行接口函数名称;
所述测试包基本信息包括: 测试包名称、 测试包描述、 设备版本、 质量检 查项、 脚本模块名称、 预处理接口函数名称、 后处理接口函数名称。
13、 根据权利要求 12所述的设备盾量检查方法, 其特征在于所述遍历预 先存储的全部质量检查项, 获得所需的质量检查项的步骤包括:
步骤 2a、 根据所述获得的设备型号信息, 与设备质量检查数据包中描述 的设备型号信息进行比较, 自动选择设备型号信息匹配的测试包;
步骤 2b、 按照所述测试包中的预处理接口函数设置所述测试包的运行环 境;
步骤 2c、 初始化所述测试包, 将测试包的根盾量检查项设置为当前质量 检查项, 并设置其前向标识为空;
步骤 2d、 检查所述当前质量检查项是否与所述版本信息对应, 是则执行 步骤 2e, 否则执行步驟 2h;
步骤 2e、 获得所述当前质量检查项;
步骤 2f、检查所述当前质量检查项是否具有子质量检查项,是则执行步驟 2g, 否则执行步骤 2h;
步骤 2g、 设置所述子质量检查项的前向标识指向所述当前质量检查项, 并设置所述子质量检查项为当前质量检查项, 然后执行步骤 2d;
步骤 2h、 检查所述当前质量检查项是否具有兄弟质量检查项, 是则执行 步骤 2i, 否则执行步骤 ¾;
步骤 2i、 设置所述兄弟质量检查项的前向标识指向所述当前质量检查项, 并设置所述兄弟质量检查项为当前质量检查项, 然后执行步骤 2d;
步骤 2j、判断所述当前盾量检查项的前项标识所对应的盾量检查项是否为 所述当前质量检查项的兄弟质量检查项, 是则执行步骤 2k, 否则设置所述前 向标识对应的质量检查项为当前质量检查项, 并执行步骤 21;
步驟 Sk、 返回所述当前质量检查项的前向标识所对应的质量检查项, 设 置所述前项标识对应的质量检查项为当前 量检查项并重新执行步驟 2j;
步骤 21、 检查所述当前质量检查项的前向标识是否为空, 是则执行步骤 2m, 否则执行步骤 2h;
步骤 2m、 按照所述测试包中的后处理接口函数类清理运行环境。
14、 一种设备质量检查装置, 其特征在于, 包括:
信息获取单元, 用于获取需要实施质量检查设备的设备型号信息和版本 ; 信息; - 遍历查找单元, 用于根据所述设备型号信息和版本信息, 遍历预先存储 的全部质量检查项, 获得所需的质量检查项;
质量检查执行单元, 用于根据所述质量检查项执行设备盾量检查。
15、 根据权利要求 14所述的设备质量检查装置, 其特征在于, 所述装置 ) 还包括:
设置存储单元, 用于设置并存储设备 量检查所需的全部质量检查项, 每一所述质量检查项由基本信息、测试脚本及辅助脚本组成; 将对应一个待测 设备型号的一个或者多个版本的质量检查项, 配置为一测试包;将对应一种或 多种类型设备的所有测试包, 配置为一设备质量检查数据包;
; 在每一测试包中, 为每一个质量检查项设置指定的层次级别; 唯一的对 应最高级别的质量检查项设置为根质量检查项;将低于最高级别的任一层次的 质量检查项设置为其高一层次质量检查项的子质量检查项;将任一子质量检查 项的版本信息设置为其父质量检查项版本信息的子集; 除所述根质量检查项 夕卜, 任一所述盾量检查项至多设有一个父质量检查项。
)
16、 根据权利要求 14或 15所述的设备质量检查装置, 其特征在于, 所 述装置还包括: 报告生成单元, 用于根据质量检查结果生成质量检查报告。
17、 一种自动适配设备质量检查数据的装置, 其特征在于, 包括: 信息获取单元, 用于获取需要实施质量检查设备的设备型号信息和版本 信息;
; 遍历查找单元, 用于根据所述设备型号信息和版本信息, 遍历预先存储 的全部质量检查项, 获得所需的质量检查项。
18、 根据权利要求 17所述的自动适配设备质量检查数据的装置, 其特征 在于, 所述装置还包括:
设备质量检查数据设置存储单元, 用于设置并存储设备质量检查所需的 全部廣量检查项,每一所述质量检查项由基本信息、测试脚本及辅助脚本组成; 将对应一个待测设备型号的一个或者多个版本的质量检查项 , 配置为一测试 包;将对应一种或多种类型设备的所有测试包,配置为一设备质量检查数据包; 在每一测试包中, 为每一个质量检查项设置指定的层次級别; 唯一的对 应最高级别的质量检查项设置为根质量检查项;将低于最高级别的任一层次的 质量检查项设置为其高一层次质量检查项的子质量检查项;将任一子质量检查 项的版本信息设置为其父质量检查项版本信息的子集; 除所述根质量检查项 外, 任一所述质量检查项至多设有一个父质量检查项。
PCT/CN2007/001888 2006-06-19 2007-06-15 Procédé destiné à vérifier la qualité d'un équipement, procédé et dispositif destinés à automatiquement adapter les données de vérification de qualité WO2008000143A1 (fr)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP07721461A EP2028790B1 (en) 2006-06-19 2007-06-15 Method for equipment quality check, method and device for automatically adapting quality check data
DE602007006793T DE602007006793D1 (de) 2006-06-19 2007-06-15 Verfahren zur gerätequalitätsprüfung, verfahren unitätsüberprüfungsdaten
AT07721461T ATE469483T1 (de) 2006-06-19 2007-06-15 Verfahren zur gerätequalitätsprüfung, verfahren und vorrichtung zur automatischen anpassung der qualitätsüberprüfungsdaten

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2006100829000A CN101047555A (zh) 2006-06-19 2006-06-19 一种设备质量检查方法
CN200610082900.0 2006-06-19

Publications (1)

Publication Number Publication Date
WO2008000143A1 true WO2008000143A1 (fr) 2008-01-03

Family

ID=38771804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/001888 WO2008000143A1 (fr) 2006-06-19 2007-06-15 Procédé destiné à vérifier la qualité d'un équipement, procédé et dispositif destinés à automatiquement adapter les données de vérification de qualité

Country Status (5)

Country Link
EP (1) EP2028790B1 (zh)
CN (1) CN101047555A (zh)
AT (1) ATE469483T1 (zh)
DE (1) DE602007006793D1 (zh)
WO (1) WO2008000143A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112683318A (zh) * 2020-12-11 2021-04-20 东方蓝天钛金科技有限公司 一种条件检测校验系统

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024439B (zh) * 2012-12-27 2014-12-17 贵阳海信电子有限公司 智能电视的检测方法及系统
CN105791346B (zh) * 2014-12-22 2020-07-14 中兴通讯股份有限公司 实现soap接口的跨平台解决方法及服务、网络设备
CN108231176A (zh) * 2017-12-28 2018-06-29 北京全域医疗技术有限公司 放疗设备的运行质量确定方法、服务器及系统
CN109767135A (zh) * 2019-01-17 2019-05-17 中国信息通信研究院 一种通信建设监管服务系统
CN112734348B (zh) * 2019-10-14 2024-03-29 冠呈能源环控有限公司 绿建筑工程机电设备性能查验管理系统
CN111046236B (zh) * 2019-12-04 2024-09-03 楚天龙股份有限公司 一种应用于ic卡的个人化数据检查方法、装置及介质
CN111311099A (zh) * 2020-02-18 2020-06-19 中车贵阳车辆有限公司 一种铁路货车质量检查信息系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6715108B1 (en) 1999-10-12 2004-03-30 Worldcom, Inc. Method of and system for managing test case versions
US6778934B1 (en) * 1999-10-22 2004-08-17 Clarion Co., Ltd. Automatic measuring apparatus, automatic measurement data processing and control apparatus, network system, and recording medium of automatic measurement processing and control program that selects from a plurality of test conditions
CN1635497A (zh) * 2003-12-30 2005-07-06 英业达股份有限公司 基于硬件级的测试脚本自动生成系统及方法
US20050154553A1 (en) 2004-01-12 2005-07-14 Wheeler Jonathan T. Enhanced testing for compliance with universal plug and play protocols
CN1760833A (zh) * 2005-11-09 2006-04-19 浪潮电子信息产业股份有限公司 多台计算机整机系统的同步自动安装测试方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7305659B2 (en) * 2002-09-03 2007-12-04 Sap Ag Handling parameters in test scripts for computer program applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6715108B1 (en) 1999-10-12 2004-03-30 Worldcom, Inc. Method of and system for managing test case versions
US6778934B1 (en) * 1999-10-22 2004-08-17 Clarion Co., Ltd. Automatic measuring apparatus, automatic measurement data processing and control apparatus, network system, and recording medium of automatic measurement processing and control program that selects from a plurality of test conditions
CN1635497A (zh) * 2003-12-30 2005-07-06 英业达股份有限公司 基于硬件级的测试脚本自动生成系统及方法
US20050154553A1 (en) 2004-01-12 2005-07-14 Wheeler Jonathan T. Enhanced testing for compliance with universal plug and play protocols
CN1760833A (zh) * 2005-11-09 2006-04-19 浪潮电子信息产业股份有限公司 多台计算机整机系统的同步自动安装测试方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112683318A (zh) * 2020-12-11 2021-04-20 东方蓝天钛金科技有限公司 一种条件检测校验系统

Also Published As

Publication number Publication date
CN101047555A (zh) 2007-10-03
DE602007006793D1 (de) 2010-07-08
EP2028790A4 (en) 2009-09-09
ATE469483T1 (de) 2010-06-15
EP2028790A1 (en) 2009-02-25
EP2028790B1 (en) 2010-05-26

Similar Documents

Publication Publication Date Title
WO2008000143A1 (fr) Procédé destiné à vérifier la qualité d'un équipement, procédé et dispositif destinés à automatiquement adapter les données de vérification de qualité
US20210306235A1 (en) Automating 5G slices using real-time analytics
CN111897724B (zh) 一种适用于云平台的自动化测试方法及装置
CN103186444B (zh) 一种性能测试方法、测试平台及测试机
CN103095475B (zh) 多模通信设备的巡检方法和系统
US20180278725A1 (en) Converting a single-tenant application for multi-tenant use
US20200267242A1 (en) Cloud assisted behavioral automated testing
US10013414B2 (en) System and method for metadata enhanced inventory management of a communications system
CN106209515B (zh) 接入网设备自动化测试系统
CN103678130A (zh) 自动化性能测试方法及测试平台
US10009216B2 (en) Repeat execution of root cause analysis logic through run-time discovered topology pattern maps
CN106569950B (zh) 一种网管软件的测试系统及网管软件的测试方法
WO2016107397A1 (en) System and method for model-based search and retrieval of networked data
CN114490246B (zh) 一种监控方法、装置、电子设备以及存储介质
CN110851471A (zh) 分布式日志数据处理方法、装置以及系统
US8489631B2 (en) Distributing a query
CN105183605A (zh) 一种服务器性能测试方法及装置
CN111400167A (zh) Redfish服务合规性验证方法、装置及设备和介质
CN107092502B (zh) 一种基于云操作系统的应用自动配置方法和装置
CN111950252A (zh) Http响应报文格式校验方法、装置和设备
TW201629768A (zh) 基礎架構規則產生技術
CN119645482A (zh) 数据处理方法和装置、存储介质及电子设备
CN100396026C (zh) 对设备进行基于管理信息库的测试的系统和方法
CN109710487A (zh) 一种监控方法和装置
CN112202593B (zh) 数据获取方法、装置、网管系统及计算机存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07721461

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2007721461

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU