CN112101000A - Information consistency test method, device, equipment and computer readable storage medium - Google Patents

Information consistency test method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112101000A
CN112101000A CN202010980195.6A CN202010980195A CN112101000A CN 112101000 A CN112101000 A CN 112101000A CN 202010980195 A CN202010980195 A CN 202010980195A CN 112101000 A CN112101000 A CN 112101000A
Authority
CN
China
Prior art keywords
information
consistency test
result
management interface
replaceable unit
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.)
Withdrawn
Application number
CN202010980195.6A
Other languages
Chinese (zh)
Inventor
李秀丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202010980195.6A priority Critical patent/CN112101000A/en
Publication of CN112101000A publication Critical patent/CN112101000A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an information consistency testing method, which comprises the following steps: reading desktop management interface information in the desktop management interface file through a python script; reading the field replaceable unit information in the field replaceable unit file through a python script; and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result. By applying the technical scheme provided by the embodiment of the invention, the testing efficiency is improved, the artificial subjective error caused by manual testing is avoided, and the accuracy of the testing result is improved. The invention also discloses an information consistency testing device, equipment and a storage medium, and has corresponding technical effects.

Description

Information consistency test method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for testing information consistency.
Background
At present, consistency check of Desktop Management Interface (DMI) information and Field Replaceable Unit (FRU) information is basically completed by manual testing, and one piece of information is manually compared to complete consistency test of the Desktop Management Interface information and the field replaceable unit information. The testing personnel is required to carefully complete the inspection of each piece of information, the testing result is manually recorded, about 15-20 minutes of time is required, the time is long, the testing result is manually compared and recorded by the testing personnel, errors can occur at a certain probability, and if the testing personnel carelessly perform the information inspection error, errors are caused to the testing result, and the judgment of the testing result is influenced.
In summary, how to effectively solve the problems that the test result error is easily caused by long time spent on the consistency test of the desktop management interface information and the field replaceable unit information by hand is a problem that needs to be solved by the technical personnel in the field at present.
Disclosure of Invention
The invention aims to provide an information consistency testing method, which greatly saves testing time, improves testing efficiency and improves the accuracy of a testing result; another object of the present invention is to provide an information consistency testing apparatus, device and computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
an information consistency test method comprises the following steps:
reading desktop management interface information in the desktop management interface file through a python script;
reading field replaceable unit information in a field replaceable unit file through the python script;
and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
In an embodiment of the present invention, after obtaining the information consistency test result, the method further includes:
and storing the information consistency test result.
In a specific embodiment of the present invention, storing the information consistency test result includes:
acquiring a preset result storage format;
generating an excel table according to the preset result storage format;
and storing the information consistency test result into the excel table.
In an embodiment of the present invention, after storing the information consistency test result, the method further includes:
and outputting and displaying the information consistency test result.
An information consistency test apparatus comprising:
the first information reading module is used for reading the desktop management interface information in the desktop management interface file through the python script;
a second information reading module for reading field replaceable unit information in the field replaceable unit file via the python script;
and the test result obtaining module is used for carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
In one embodiment of the present invention, the method further comprises:
and the result storage module is used for storing the information consistency test result after the information consistency test result is obtained.
In a specific embodiment of the present invention, the result saving module includes:
the format acquisition submodule is used for acquiring a preset result storage format;
the table generation submodule is used for generating an excel table according to the preset result storage format;
and the result storage submodule is used for storing the information consistency test result into the excel table.
In one embodiment of the present invention, the method further comprises:
and the result display module is used for outputting and displaying the information consistency test result after the information consistency test result is stored.
An information conformance testing apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the information consistency testing method when executing the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for consistency testing of information as set forth above.
By applying the method provided by the embodiment of the invention, the desktop management interface information in the desktop management interface file is read through the python script; reading the field replaceable unit information in the field replaceable unit file through a python script; and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result. The consistency test of the desktop management interface information and the field replaceable unit information is realized through the python script, compared with a manual test mode, the test time is greatly saved, the test efficiency is improved, artificial subjective errors caused by manual test are avoided, and the accuracy of test results is improved.
Correspondingly, the embodiment of the invention also provides an information consistency testing device, equipment and a computer readable storage medium corresponding to the information consistency testing method, which have the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an embodiment of a method for testing information consistency according to the present invention;
FIG. 2 is a flow chart of another embodiment of a method for testing information consistency according to the present invention;
FIG. 3 is a block diagram of an apparatus for testing information consistency according to an embodiment of the present invention;
fig. 4 is a block diagram of an information consistency testing apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an implementation of a method for testing consistency of information according to an embodiment of the present invention, where the method may include the following steps:
s101: and reading the desktop management interface information in the desktop management interface file through the python script.
The desktop management interface information is saved into a desktop management interface file (such as a smbios. txt file) by using a dmi instruction in advance under the system. And presetting a python script for reading the desktop management interface information in the desktop management interface file. When the consistency test of the desktop management interface information and the field replaceable unit information is needed, the desktop management interface information in the desktop management interface file is read through the python script.
S102: the field replaceable unit information in the field replaceable unit file is read by the python script.
The ipmi command is used in advance to save the field replaceable unit information into a field replaceable unit file (e.g., a fru. txt file). A python script for reading the field replaceable unit information in the field replaceable unit file is preset. And when the desktop management interface information and the field replaceable unit information need to be subjected to consistency test, reading the field replaceable unit information in the field replaceable unit file through the python script.
It should be noted that, in the embodiment of the present invention, the execution order of step S101 and step S102 is not limited, and may be executed sequentially or in parallel.
S103: and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
And after the desktop management interface information and the field replaceable unit information are respectively read, carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
The consistency test of the desktop management interface information and the field replaceable unit information is realized through the script, the dependency on the environment is reduced as long as the python environment supports the consistency test, and the python script can be suitable for consistency check of the desktop management interface information and the field replaceable unit information of any domestic project product without depending on the field environment. And the test time of manual test is saved, the test efficiency is improved, errors caused by errors in the comparison process of manual test data are avoided, and the accuracy of the test result is improved.
By applying the method provided by the embodiment of the invention, the desktop management interface information in the desktop management interface file is read through the python script; reading the field replaceable unit information in the field replaceable unit file through a python script; and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result. The consistency test of the desktop management interface information and the field replaceable unit information is realized through the python script, compared with a manual test mode, the test time is greatly saved, the test efficiency is improved, artificial subjective errors caused by manual test are avoided, and the accuracy of test results is improved.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of the method for testing consistency of information according to the embodiment of the present invention, where the method may include the following steps:
s201: and reading the desktop management interface information in the desktop management interface file through the python script.
S202: the field replaceable unit information in the field replaceable unit file is read by the python script.
S203: and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
S204: and acquiring a preset result storage format.
And presetting a storage format of the information consistency test result. And after the information consistency test result is obtained, obtaining a preset result storage format.
S205: and generating an excel table according to a preset result storage format.
And after the preset result storage format is obtained, generating an excel table according to the preset result storage format. The excel table comprises DMI original data, FRU standard data and test results.
S206: and saving the information consistency test result into an excel table.
And after generating the excel table according to the preset result storage format, storing the information consistency test result into the excel table. And further processing the test result, storing the information consistency test result into an excel table, and directly inquiring inconsistent data through the excel table if the information consistency test result is failure (fail). As shown in table 1, table 1 is a table of the consistency comparison test result of the desktop management interface information and the field replaceable unit information.
TABLE 1
Figure BDA0002687243310000061
Figure BDA0002687243310000071
S207: and outputting and displaying the information consistency test result.
And after the information consistency test result is stored in the excel table, outputting and displaying the information consistency test result. The information consistency test result is output and displayed, so that the original data of the comparison data is reflected in the final test report, the test result is more visual, and particularly, the test of the test failure item is more clear.
The present embodiment is different from the first embodiment corresponding to the technical solution claimed in independent claim 1, and the technical solutions claimed in the dependent claims 2 to 4 are added, and of course, according to different practical situations and requirements, the technical solutions claimed in the dependent claims can be flexibly combined on the basis of not affecting the completeness of the solutions, so as to better meet the requirements of different use scenarios.
Corresponding to the above method embodiment, the embodiment of the present invention further provides an information consistency testing apparatus, and the information consistency testing apparatus described below and the information consistency testing method described above may be referred to in correspondence.
Referring to fig. 3, fig. 3 is a block diagram of an information consistency testing apparatus according to an embodiment of the present invention, where the apparatus may include:
the first information reading module 31 is configured to read desktop management interface information in the desktop management interface file through a python script;
a second information reading module 32 for reading the field replaceable unit information in the field replaceable unit file via a python script;
the test result obtaining module 33 is configured to perform a comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information correspondence, so as to obtain an information consistency test result.
By applying the device provided by the embodiment of the invention, the desktop management interface information in the desktop management interface file is read through the python script; reading the field replaceable unit information in the field replaceable unit file through a python script; and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result. The consistency test of the desktop management interface information and the field replaceable unit information is realized through the python script, compared with a manual test mode, the test time is greatly saved, the test efficiency is improved, artificial subjective errors caused by manual test are avoided, and the accuracy of test results is improved.
In one embodiment of the present invention, the apparatus may further include:
and the result storage module is used for storing the information consistency test result after the information consistency test result is obtained.
In one embodiment of the present invention, the result saving module includes:
the format acquisition submodule is used for acquiring a preset result storage format;
the table generation submodule is used for generating an excel table according to a preset result storage format;
and the result storage submodule is used for storing the information consistency test result into the excel table.
In one embodiment of the present invention, the apparatus may further include:
and the result display module is used for outputting and displaying the information consistency test result after the information consistency test result is stored.
Corresponding to the above method embodiment, referring to fig. 4, fig. 4 is a schematic diagram of an information consistency testing device provided by the present invention, where the device may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
reading desktop management interface information in the desktop management interface file through a python script; reading the field replaceable unit information in the field replaceable unit file through a python script; and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
reading desktop management interface information in the desktop management interface file through a python script; reading the field replaceable unit information in the field replaceable unit file through a python script; and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An information consistency testing method is characterized by comprising the following steps:
reading desktop management interface information in the desktop management interface file through a python script;
reading field replaceable unit information in a field replaceable unit file through the python script;
and carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
2. The information consistency test method according to claim 1, further comprising, after obtaining the information consistency test result:
and storing the information consistency test result.
3. The method according to claim 2, wherein storing the result of the information consistency test comprises:
acquiring a preset result storage format;
generating an excel table according to the preset result storage format;
and storing the information consistency test result into the excel table.
4. The information consistency test method according to claim 2 or 3, further comprising, after saving the information consistency test result:
and outputting and displaying the information consistency test result.
5. An information consistency test apparatus, comprising:
the first information reading module is used for reading the desktop management interface information in the desktop management interface file through the python script;
a second information reading module for reading field replaceable unit information in the field replaceable unit file via the python script;
and the test result obtaining module is used for carrying out comparison test on the desktop management interface information and the field replaceable unit information according to the pre-established information corresponding relation to obtain an information consistency test result.
6. The information consistency test apparatus according to claim 5, further comprising:
and the result storage module is used for storing the information consistency test result after the information consistency test result is obtained.
7. The apparatus according to claim 6, wherein the result saving module comprises:
the format acquisition submodule is used for acquiring a preset result storage format;
the table generation submodule is used for generating an excel table according to the preset result storage format;
and the result storage submodule is used for storing the information consistency test result into the excel table.
8. The information consistency test apparatus according to claim 6 or 7, further comprising:
and the result display module is used for outputting and displaying the information consistency test result after the information consistency test result is stored.
9. An information consistency test apparatus, characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the information consistency testing method according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for consistency testing of information according to any one of claims 1 to 4.
CN202010980195.6A 2020-09-17 2020-09-17 Information consistency test method, device, equipment and computer readable storage medium Withdrawn CN112101000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010980195.6A CN112101000A (en) 2020-09-17 2020-09-17 Information consistency test method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010980195.6A CN112101000A (en) 2020-09-17 2020-09-17 Information consistency test method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112101000A true CN112101000A (en) 2020-12-18

Family

ID=73759398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010980195.6A Withdrawn CN112101000A (en) 2020-09-17 2020-09-17 Information consistency test method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112101000A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138347A (en) * 2021-11-10 2022-03-04 苏州浪潮智能科技有限公司 On-site replaceable unit information storage method and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130262934A1 (en) * 2012-03-27 2013-10-03 Ge Medical Systems Global Technology Company, Llc Method and apparatus for automatically generating a test script for a graphical user interface
CN105068920A (en) * 2015-07-17 2015-11-18 浪潮电子信息产业股份有限公司 Shell based method for testing stability of rack asset information
CN107943698A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of DMI information and FRU synchronizing informations automated testing method and system
CN108845909A (en) * 2018-06-20 2018-11-20 郑州云海信息技术有限公司 A kind of BMC method for testing pressure parallel based on Python
CN109710483A (en) * 2018-12-26 2019-05-03 郑州云海信息技术有限公司 A kind of smashclp function test method, device, terminal and storage medium
CN110673991A (en) * 2019-09-12 2020-01-10 苏州浪潮智能科技有限公司 Automatic testing method, device and medium for FRU information storage device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130262934A1 (en) * 2012-03-27 2013-10-03 Ge Medical Systems Global Technology Company, Llc Method and apparatus for automatically generating a test script for a graphical user interface
CN105068920A (en) * 2015-07-17 2015-11-18 浪潮电子信息产业股份有限公司 Shell based method for testing stability of rack asset information
CN107943698A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of DMI information and FRU synchronizing informations automated testing method and system
CN108845909A (en) * 2018-06-20 2018-11-20 郑州云海信息技术有限公司 A kind of BMC method for testing pressure parallel based on Python
CN109710483A (en) * 2018-12-26 2019-05-03 郑州云海信息技术有限公司 A kind of smashclp function test method, device, terminal and storage medium
CN110673991A (en) * 2019-09-12 2020-01-10 苏州浪潮智能科技有限公司 Automatic testing method, device and medium for FRU information storage device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王智立 等: "网络管理接口通用功能一致性测试", 《计算机应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138347A (en) * 2021-11-10 2022-03-04 苏州浪潮智能科技有限公司 On-site replaceable unit information storage method and computer-readable storage medium
CN114138347B (en) * 2021-11-10 2024-03-12 苏州浪潮智能科技有限公司 On-site replaceable unit information storage method and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110908890A (en) Automatic test method and device for interface
CN111597110B (en) Page test method and device, electronic equipment and storage medium
CN111124775A (en) Power-on time sequence abnormality detection method and device, MCU and storage medium
CN112181854A (en) Method, device, equipment and storage medium for generating flow automation script
CN111125008B (en) Dynamic repairing method and system of abnormal inode and related components
CN111639026A (en) Interface test method, device and system
CN110569230A (en) Method, system and equipment for interconversion between database design model and design document
CN112328631A (en) Production fault analysis method and device, electronic equipment and storage medium
CN112101000A (en) Information consistency test method, device, equipment and computer readable storage medium
CN107291612B (en) Test method and device
CN111127223A (en) Insurance product testing method and device and storage medium
CN112416746A (en) Test case generation method, device, equipment and medium
CN113448786A (en) PCIe equipment testing method, device, equipment and readable storage medium
CN114721638A (en) Query logic code generation method and device
CN111078574A (en) Method and device for generating influence analysis report
CN111008150A (en) Test report generation method, device and equipment
CN112307131B (en) Equipment inspection method, system, electronic equipment and storage medium
CN111722996B (en) Interactive standard compliance testing method and device
CN115129355B (en) Page repair method, system and computer equipment thereof
CN116719816A (en) Client information storage method and device, storage medium and electronic equipment
CN115391225A (en) Pressure measurement method and device
CN112486846A (en) Method, device, equipment and storage medium for automatically generating and executing test case
CN114897195A (en) Dynamic service interface construction method and device for relay protection operation and maintenance service
CN117056224A (en) Method, device, terminal equipment and storage medium for testing securities trade data
CN116737594A (en) Test case conversion method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201218