CN113051169A - Method and system for testing functions and interfaces of cloud computing big data platform - Google Patents

Method and system for testing functions and interfaces of cloud computing big data platform Download PDF

Info

Publication number
CN113051169A
CN113051169A CN202110352580.0A CN202110352580A CN113051169A CN 113051169 A CN113051169 A CN 113051169A CN 202110352580 A CN202110352580 A CN 202110352580A CN 113051169 A CN113051169 A CN 113051169A
Authority
CN
China
Prior art keywords
detection
components
cloud computing
big data
data platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110352580.0A
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.)
Third Research Institute of the Ministry of Public Security
Original Assignee
Third Research Institute of the Ministry of Public Security
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 Third Research Institute of the Ministry of Public Security filed Critical Third Research Institute of the Ministry of Public Security
Priority to CN202110352580.0A priority Critical patent/CN113051169A/en
Publication of CN113051169A publication Critical patent/CN113051169A/en
Priority to PCT/CN2021/108003 priority patent/WO2022205696A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides a method and a system for testing functions and interfaces of a cloud computing big data platform, which relate to the field of automatic testing and comprise the following steps: step S1, inputting basic information of a plurality of components of a plurality of cloud computing big data platforms; step S2, selecting the recorded basic information of a plurality of components, reading the detection rules and the detection parameters which are configured in advance, and further generating a detection task; step S3, starting a detection task and a corresponding cloud computing big data platform, and detecting the functions and interfaces of all components of the cloud computing big data platform; in step S4, a detection result and an execution log are generated and saved. According to the technical scheme, automatic detection of the interfaces and functions of the components of the cloud computing big data platform is achieved, manual intervention is not needed, the labor cost is effectively reduced, the detection efficiency is improved, and popularization is facilitated.

Description

Method and system for testing functions and interfaces of cloud computing big data platform
Technical Field
The invention relates to the field of automatic testing, in particular to a testing method for functions and interfaces of a cloud computing big data platform.
Background
Automated testing is a process that translates human-driven test behavior into machine execution. Typically, after a test case is designed and passes review, the test is performed step by a tester according to the procedures described in the test case, resulting in a comparison of the actual results with the expected results. In the process, in order to save manpower, time or hardware resources and improve the testing efficiency, the concept of automatic testing is introduced.
At present, automated testing technologies in different fields are mainly implemented based on toolkits such as Pyunit, Pytest, TestNG and the like, but in the existing technical scheme, a technical scheme for automated testing of interfaces and functions of a plurality of components of a cloud computing platform and a big data platform does not exist. Therefore, a technical solution is needed to implement an automated test for functions and interfaces of a cloud computing big data platform.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method for testing functions and interfaces of a cloud computing big data platform, which comprises the following steps:
step S1, inputting basic information of a plurality of components of the cloud computing big data platform;
step S2, selecting the recorded basic information of the plurality of components, reading the pre-configured detection rules and detection parameters, and further generating a detection task;
step S3, starting the detection task and the corresponding cloud computing big data platform, and detecting the functions and interfaces of all components of the cloud computing big data platform;
in step S4, a detection result and an execution log are generated and saved.
Preferably, the assembly comprises:
distributed block storage components, and/or object storage components, and/or virtual private cloud VPC components, and/or distributed columnar storage components, and/or offline computing components.
Preferably, the step S1 and the step S2 include:
step S1A, performing validity check on the basic information of the plurality of components, and determining whether the basic information of the plurality of components satisfies validity:
if not, returning to the step S1A;
if yes, the process goes to step S2.
Preferably, the detection rules and the detection parameters are stored in a detection database.
Preferably, the step S3 includes:
step S31, starting the detection task and the corresponding cloud computing big data platform;
step S32, connecting the detection task with a corresponding component of the cloud computing big data platform;
and step S33, the detection task detects the functions and interface response conditions of the corresponding components of the cloud computing big data platform according to the detection rules and the detection parameters.
Preferably, the step S32 includes:
step S321, the detection task initiates an interaction request to a corresponding component of the cloud computing big data platform;
step S322, the corresponding components of the cloud computing big data platform receive the interaction request, and connection with the detection task is achieved.
Preferably, the method further comprises the following steps:
step S5, reading the execution log, and manually determining whether the detection result is correct:
if yes, quitting;
and if not, manually correcting the detection result and storing.
A test system for functions and interfaces of a cloud computing big data platform is applied to the test method and comprises the following steps:
the detection module is used for detecting the functions and interfaces of all components of the corresponding cloud computing big data platform according to a detection task and generating a detection result and an execution log;
the first storage module is used for storing the detection rules and the detection parameters which are configured in advance;
and the control module is respectively connected with the detection module and the first storage module and is used for selecting the recorded basic information of the components, reading the pre-configured detection rules and the detection parameters and further generating the detection task.
Preferably, the system further comprises a second storage module, connected to the control module, and configured to store the storage result and the execution log.
Preferably, the cloud computing big data platform further comprises an entry module which is connected with the control module and used for entering basic information of a plurality of components of the cloud computing big data platform.
The technical scheme has the following advantages or beneficial effects:
according to the technical scheme, automatic detection of the interfaces and functions of the components of the cloud computing big data platform is achieved, manual intervention is not needed, the labor cost is effectively reduced, the detection efficiency is improved, and popularization is facilitated.
Drawings
FIG. 1 is a flow chart of a testing method according to a preferred embodiment of the present invention;
FIG. 2 is a sub-flow chart of a testing method according to a preferred embodiment of the present invention;
FIG. 3 is a sub-flowchart of a testing method according to a preferred embodiment of the present invention;
FIG. 4 is a sub-flowchart of a testing method according to a preferred embodiment of the present invention;
FIG. 5 is a schematic diagram of a test system according to a preferred embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present invention is not limited to the embodiment, and other embodiments may be included in the scope of the present invention as long as the gist of the present invention is satisfied.
In a preferred embodiment of the present invention, based on the above problems in the prior art, a method for testing functions and interfaces of a cloud computing big data platform is provided, as shown in fig. 1, including:
step S1, inputting basic information of a plurality of components of the cloud computing big data platform;
step S2, selecting the recorded basic information of a plurality of components, reading the detection rules and the detection parameters which are configured in advance, and further generating a detection task;
step S3, starting a detection task and a corresponding cloud computing big data platform, and detecting the functions and interfaces of all components of the cloud computing big data platform;
in step S4, a detection result and an execution log are generated and saved.
Specifically, in this embodiment, the cloud computing big data platform includes, but is not limited to: IaaS and PaaS. Further, basic information of a plurality of components of the cloud computing big data platform can be input in the form of Excel files. The basic information of the plurality of components may include parameters such as interface service addresses and authentication information. Further, batch entry of information of a plurality of components of a plurality of cloud computing big data platforms can be achieved when a plurality of Excel files are entered. Further, the assembly comprises: distributed block storage components, and/or object storage components, and/or virtual private cloud VPC components, and/or distributed columnar storage components, and/or offline computing components.
And when the basic information of the component is input, starting to establish a detection task: firstly, selecting the recorded basic information of a plurality of components, then reading the pre-defined detection rules and detection parameters, and further creating a detection task according to the basic information, the detection rules and the detection parameters of the plurality of components. The detection rule is used for verifying processing logic aiming at component function verification, and the detection parameter is used for specifying the verification processing logic aiming at the component interface.
Further, the detection rules and detection parameters are stored in a detection database.
Further, the interfaces and functions of the components defined by the detection rule may be in one-to-one correspondence, or multiple interfaces may correspond to one function, or multiple functions may correspond to one component.
After the detection task is established, the detection task and corresponding components of the cloud computing big data platform are respectively started, and the interfaces and functions of the components are detected by using detection rules and detection parameters aiming at the components.
And when the automatic detection of the detection task on the component is completed, generating and storing a corresponding detection result and an execution log for query and calling.
According to the technical scheme, automatic detection of the interfaces and functions of the components of the cloud computing big data platform is achieved, manual intervention is not needed, the labor cost is effectively reduced, the detection efficiency is improved, and popularization is facilitated.
In a preferred embodiment, the technical scheme is applied to detect the function and the interface of a storage class component in a big data platform, the starting point of the life cycle of the storage class component is to create a database service connection, and the ending point of the life cycle is to close the database service connection.
Further, the detection rule defines an automatic detection process of the function and the interface of the storage class component, and the automatic detection process comprises the following steps:
and the storage component initiates a table creation request to the detection task, and after the table creation request passes, the storage component starts to create a table and sequentially executes judgment on whether the table exists, table information query, table list acquisition and table modification so as to verify the table creation function. After the verification of the function of the created table is passed, inserting the detection parameters into the storage assembly, calling an inquiry interface of the storage assembly to sequentially perform data inquiry, key value-based data inquiry and range inquiry on the storage assembly, and judging the function of data insertion according to the result obtained by inquiry; and then, respectively modifying and deleting data of the storage assembly, calling an inquiry interface of the storage assembly to sequentially query the storage assembly with data, key value-based data and range, and judging the functions of respectively modifying and deleting the data according to the result obtained by the inquiry.
And further verifying the function of deleting the table of the storage type component: if the storage type component closes the database connection, the storage type component has a table deleting function; if the storage class component does not close the database connection, the storage class component does not have the function of deleting the table.
The detection of the interface of the storage class component is verified by comparing the response conditions of the creation class interface, the modification class interface, the enumeration class interface and the query class interface with the detection parameters.
In a preferred embodiment of the present invention, as shown in fig. 2, the step S1 and the step S2 include:
step S1A, performing validity check on the basic information of the plurality of components, and determining whether the basic information of the plurality of components satisfies validity:
if not, returning to the step S1A;
if yes, the process goes to step S2.
Specifically, in the embodiment, by performing validity check on the basic information of the component, the illegal basic information is prevented from being called, and the stability of the technical scheme is effectively improved.
In a preferred embodiment of the present invention, as shown in fig. 3, step S3 includes:
step S31, starting a detection task and a corresponding cloud computing big data platform;
step S32, detecting a corresponding component of the task connection cloud computing big data platform;
and step S33, the detection task detects the functions of the corresponding components of the cloud computing big data platform and the interface response condition according to the detection rules and the detection parameters respectively.
In a preferred embodiment of the present invention, as shown in fig. 4, step S32 includes:
step S321, initiating an interaction request to a corresponding component of the cloud computing big data platform by a detection task;
step S322, the corresponding components of the cloud computing big data platform receive the interaction request, and connection with the detection task is achieved.
In a preferred embodiment of the present invention, the method further comprises:
step S5, reading the execution log, and manually determining whether the detection result is correct:
if yes, quitting;
and if not, manually correcting the detection result and storing.
Specifically, in this embodiment, the execution log may be read, the correctness of the detection result in the execution log may be determined manually, and if the detection result is incorrect, the detection result may be corrected manually, so that the accuracy of the detection result in the technical scheme is further improved.
A test system for functions and interfaces of a cloud computing big data platform, which is applied to the test method described above, as shown in fig. 5, includes:
the detection module 2 is used for detecting the functions and interfaces of the components of the corresponding cloud computing big data platform according to a detection task and generating a detection result and an execution log;
the first storage module 3 is used for storing the detection rules and the detection parameters which are configured in advance;
and the control module 4 is respectively connected with the detection module 2 and the first storage module 3, and is used for selecting the recorded basic information of the plurality of components, reading the pre-configured detection rules and the detection parameters, and further generating the detection task.
In the preferred embodiment of the present invention, the present invention further comprises a second storage module 5 connected to the control module 4 for storing the storage result and executing the log.
In a preferred embodiment of the present invention, the cloud computing platform further includes an entry module 1, connected to the control module 4, for entering basic information of a plurality of components of the cloud computing platform.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. A testing method for functions and interfaces of a cloud computing big data platform is characterized by comprising the following steps:
step S1, inputting basic information of a plurality of components of the cloud computing big data platform;
step S2, selecting the recorded basic information of the plurality of components, reading the pre-configured detection rules and detection parameters, and further generating a detection task;
step S3, starting the detection task and the corresponding cloud computing big data platform, and detecting the functions and interfaces of all components of the cloud computing big data platform;
in step S4, a detection result and an execution log are generated and saved.
2. The testing method of claim 1, wherein the assembly comprises:
distributed block storage components, and/or object storage components, and/or virtual private cloud VPC components, and/or distributed columnar storage components, and/or offline computing components.
3. The testing method of claim 1, wherein between the step S1 and the step S2 comprises:
step S1A, performing validity check on the basic information of the plurality of components, and determining whether the basic information of the plurality of components satisfies validity:
if not, returning to the step S1A;
if yes, the process goes to step S2.
4. The test method of claim 1, wherein the detection rules and the detection parameters are stored in a detection database.
5. The testing method according to claim 1, wherein the step S3 includes:
step S31, starting the detection task and the corresponding cloud computing big data platform;
step S32, connecting the detection task with a corresponding component of the cloud computing big data platform;
and step S33, the detection task detects the functions and interface response conditions of the corresponding components of the cloud computing big data platform according to the detection rules and the detection parameters.
6. The testing method according to claim 5, wherein the step S32 includes:
step S321, the detection task initiates an interaction request to a corresponding component of the cloud computing big data platform;
step S322, the corresponding components of the cloud computing big data platform receive the interaction request, and connection with the detection task is achieved.
7. The test method of claim 1, further comprising:
step S5, reading the execution log, and manually determining whether the detection result is correct:
if yes, quitting;
and if not, manually correcting the detection result and storing.
8. A test system for functions and interfaces of a cloud computing big data platform is applied to the test method of claims 1-7, and comprises the following steps:
the detection module is used for detecting the functions and interfaces of all components of the corresponding cloud computing big data platform according to a detection task and generating a detection result and an execution log;
the first storage module is used for storing the detection rules and the detection parameters which are configured in advance;
and the control module is respectively connected with the detection module and the first storage module and is used for selecting the recorded basic information of the components, reading the pre-configured detection rules and the detection parameters and further generating the detection task.
9. The test system of claim 8, further comprising a second storage module coupled to the control module for storing the stored results and the execution log.
10. The test system according to claim 8, further comprising a logging module connected to the control module for logging basic information of the plurality of components of the cloud computing big data platform.
CN202110352580.0A 2021-03-31 2021-03-31 Method and system for testing functions and interfaces of cloud computing big data platform Pending CN113051169A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110352580.0A CN113051169A (en) 2021-03-31 2021-03-31 Method and system for testing functions and interfaces of cloud computing big data platform
PCT/CN2021/108003 WO2022205696A1 (en) 2021-03-31 2021-07-22 Cloud computing big data platform function and interface testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110352580.0A CN113051169A (en) 2021-03-31 2021-03-31 Method and system for testing functions and interfaces of cloud computing big data platform

Publications (1)

Publication Number Publication Date
CN113051169A true CN113051169A (en) 2021-06-29

Family

ID=76517307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110352580.0A Pending CN113051169A (en) 2021-03-31 2021-03-31 Method and system for testing functions and interfaces of cloud computing big data platform

Country Status (2)

Country Link
CN (1) CN113051169A (en)
WO (1) WO2022205696A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022205696A1 (en) * 2021-03-31 2022-10-06 公安部第三研究所 Cloud computing big data platform function and interface testing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN104796304A (en) * 2015-04-28 2015-07-22 广州杰赛科技股份有限公司 Cloud platform test method and system
CN105357067A (en) * 2015-10-14 2016-02-24 广州杰赛科技股份有限公司 Test method and system for cloud platform
CN108683559A (en) * 2018-05-11 2018-10-19 中国电子技术标准化研究院 A kind of cloud computing platform test method
WO2021036618A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Cloud test configuration method and apparatus, computer device, and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544895A (en) * 2016-06-28 2018-01-05 中兴通讯股份有限公司 Hadoop big datas platform testing system and method
CN109189675A (en) * 2018-08-20 2019-01-11 中国平安人寿保险股份有限公司 Big data Framework Software test method, device, computer equipment and storage medium
CN113051169A (en) * 2021-03-31 2021-06-29 公安部第三研究所 Method and system for testing functions and interfaces of cloud computing big data platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN104796304A (en) * 2015-04-28 2015-07-22 广州杰赛科技股份有限公司 Cloud platform test method and system
CN105357067A (en) * 2015-10-14 2016-02-24 广州杰赛科技股份有限公司 Test method and system for cloud platform
CN108683559A (en) * 2018-05-11 2018-10-19 中国电子技术标准化研究院 A kind of cloud computing platform test method
WO2021036618A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Cloud test configuration method and apparatus, computer device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022205696A1 (en) * 2021-03-31 2022-10-06 公安部第三研究所 Cloud computing big data platform function and interface testing method and system

Also Published As

Publication number Publication date
WO2022205696A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
CN109375945B (en) Firmware version detection method and vulnerability repair rate evaluation method for Internet of things equipment
CN112256558B (en) Test case generation method and device, computer equipment and storage medium
CN112306855B (en) Interface automation test method, device, terminal and storage medium
CN108459954B (en) Application program vulnerability detection method and device
CN105117644A (en) Method and system for acquiring Android plug-in program
CN103198260A (en) Automation positioning method for binary system program vulnerabilities
CN116627848B (en) Automatic test method and system for application program
CN113051169A (en) Method and system for testing functions and interfaces of cloud computing big data platform
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
CN110780904A (en) Application updating method and device
CN106886446A (en) The verification method and device of software source code
CN111737349B (en) Data consistency verification method and device
WO2023051073A1 (en) Database test method, distributed database, and storage medium
CN111159482A (en) Data verification method and system
CN113326046B (en) Method and device for acquiring compiling time length
CN115391230A (en) Test script generation method, test script penetration method, test script generation device, test penetration device, test equipment and test medium
CN113037521B (en) Method for identifying state of communication equipment, communication system and storage medium
CN110633204B (en) Program defect detection method and device
CN111813665A (en) Big data platform interface data testing method and system based on python
CN110609790A (en) Analytic program test method, device, medium and computer equipment
CN113961464A (en) Test case demand coverage inspection method and device
CN114860549B (en) Buried data verification method, buried data verification device, buried data verification equipment and storage medium
CN110109809B (en) Method and equipment for testing log auditing function according to syslog
CN114154162A (en) Penetration test path planning method and device and computer readable storage medium
CN113343246A (en) Method and terminal for detecting database bugs

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