CN114153722A - System and method for testing functions based on data components - Google Patents

System and method for testing functions based on data components Download PDF

Info

Publication number
CN114153722A
CN114153722A CN202111371654.1A CN202111371654A CN114153722A CN 114153722 A CN114153722 A CN 114153722A CN 202111371654 A CN202111371654 A CN 202111371654A CN 114153722 A CN114153722 A CN 114153722A
Authority
CN
China
Prior art keywords
test
module
case
scheme
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.)
Pending
Application number
CN202111371654.1A
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.)
Southern Power Grid Digital Grid Research Institute Co Ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute 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 Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202111371654.1A priority Critical patent/CN114153722A/en
Publication of CN114153722A publication Critical patent/CN114153722A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a system and a test method based on data component function test, which comprises a test environment management unit, a case classification management unit, a test case configuration unit, a function test scheme unit and a function test report unit, wherein the test environment management unit is electrically connected with the case classification management unit, the case classification management unit is electrically connected with the test case configuration unit, the test case configuration unit is electrically connected with the function test scheme unit, and the function test scheme unit is electrically connected with the function test report unit; the invention can record the test execution log through the report list module, the report management module, the report general module, the case list module, the case test detail module and the execution log module, which comprise the request head, the request parameter, the return parameter and the assertion rule of each case, thereby facilitating the subsequent inquiry of people.

Description

System and method for testing functions based on data components
Technical Field
The invention relates to the technical field of data component function test, in particular to a system and a method based on data component function test.
Background
In recent years, the fourth industrial revolution of the integration of digital technologies such as cloud computing, big data, internet of things, artificial intelligence and the like and industry is emerging, and the social and economic big environment and the traditional operation mode of enterprises are deeply impacted. Huge energy hidden in data resources is continuously released, a digital technology is being changed from an auxiliary tool for assisting economic development to a core engine for leading economic development, a component is a simple package for data and a method, one component is a specific object derived from TComponent in a C + + Builder, the component can have own attribute and method, the attribute is a simple visitor of component data, the method is some simple and visible functions of the component, drag-and-drop programming, rapid attribute processing and real object-oriented design can be realized by using the component, a VCL component and a CLX component are the core of the C + + Builder system, the system needs to be tested in the construction of a data-based system, at present, log results are not recorded in the execution process when function testing is carried out, and meanwhile, manual intervention modification and manual use case verification cannot be carried out.
Disclosure of Invention
The present invention is directed to a system and a method for testing a function of a data component, so as to solve the problems of the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a system based on data component function test comprises a test environment management unit, a case classification management unit, a test case configuration unit, a function test scheme unit and a function test report unit, wherein the test environment management unit is electrically connected with the case classification management unit;
the test environment management unit is used for displaying test environment information and performing addition, deletion, modification and maintenance on the test environment;
the case classification management unit is used for maintaining and managing case classification;
the test case configuration unit is used for configuring case information;
the function test scheme unit is used for maintaining a function test scheme and executing the function test scheme;
the function test report unit is used for generating a function test report.
Preferably, the test environment management unit includes an environment list module and an environment maintenance module, wherein,
the environment list module is used for generating list display test environment information, supporting paging and searching according to environment names;
and the environment maintenance module is used for performing addition, deletion, modification, management and maintenance on the test environment.
Preferably, the content managed and maintained by the environment maintenance module includes a name, an address URL of the target deployment, and remark information.
Preferably, the case classification management unit comprises a classification tree module, a directory maintenance module, a classification sorting module, a test case list module and a test case management module, wherein,
the classification tree module is used for infinite multi-level tree display and can arbitrarily contract and expand tree directories;
the directory maintenance module is used for performing maintenance management such as addition, deletion, modification and the like on case classification, and can create subdirectories at any directory node;
the classification and sorting module is used for adjusting the sequence of the nodes in the same level;
the test case list module is used for displaying a case list through a list;
the test case management module is used for performing addition, deletion, modification, maintenance and management on the test cases.
Preferably, the test case configuration unit includes an information configuration module, an interface module and a manual verification module, wherein,
the information configuration module is used for configuring interface test case information;
the interface module is used for generating a corresponding interface test case aiming at an interface configured and developed by the system and supporting manual intervention and modification;
the manual verification module is used for manually verifying the use case and returning the result of the use case execution, so that the use case can be corrected in time.
Preferably, the interface test case information configured by the information configuration module includes a header configuration, a request parameter configuration, a return parameter configuration, and an assertion rule configuration.
Preferably, the functional test scenario unit includes a scenario list module, a scenario management module, a scenario configuration module, a scenario execution module, and a scenario detail module, wherein,
the scheme list module is used for displaying the created scheme list;
the scheme management module is used for performing addition, deletion, modification, maintenance and management on the function test scheme;
the scheme configuration module is used for configuring a functional test scheme of the data component interface;
the scheme execution module is used for executing by taking a scheme as a unit and executing all use cases in the scheme;
the scheme detail module is used for comprehensively displaying the overview information of the scheme.
Preferably, the test scheme configured by the scheme configuration module includes a scheme name, a test environment, a test URL address, response time, remarks, and corresponding interface use cases, and the overview information of the scheme detail module presentation scheme includes execution times, use case number, interface number, recent execution pass rate, and recent execution time.
Preferably, the functional test report unit comprises a report list module, a report management module, a report profile module, a use case list module, a use case test detail module and an execution log module, wherein,
the report list module is used for displaying a test report list in a list mode;
the report management module is used for managing reports and checking specific report contents;
the report general outline module is used for integrating statistical data of a statistical scheme execution report, and the statistical data comprises the number of use cases, the coverage of the use cases, the passing data quantity, the non-passing quantity and the test passing rate;
the case list module is used for carrying out classified statistics on corresponding case lists according to test results;
the case test detail module is used for viewing a detailed test report of the interface, and the detailed test report comprises a request address, a request mode, a state code, overtime time, total time and a test result;
the execution log module is used for collecting and recording each round of test execution logs of the test scheme, and comprises a request head, request parameters, return parameters and assertion rules of each use case.
A test method of a system based on data component function test comprises the following steps:
s1, the test environment management unit performs addition, deletion, modification and management on the test environment and configures the required test environment;
s2, the case classification management unit maintains and manages case classification, and a case list is displayed;
s3, configuring the use case by the test case configuration unit, and configuring proper use case information;
s4, the function test scheme unit maintains the function test scheme, executes the function test scheme and performs the function test;
and S5, generating a functional test report according to the test result by the functional test report unit.
Compared with the prior art, the invention has the beneficial effects that: the invention can record the test execution log through the set report list module, report management module, report general module, case list module, case test detail module and execution log module, including the request head, request parameter, return parameter and assertion rule of each case, which is convenient for people to inquire subsequently, and can modify the interface of system configuration development by manual intervention through the set information configuration module, interface module and manual verification module, and can verify cases manually and return the result of case execution, which is convenient for correcting cases in time.
Drawings
FIG. 1 is a block diagram of the system of the present invention;
FIG. 2 is a flow chart of the method of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Referring to fig. 1-2, the present invention provides a technical solution: a system and a test method based on data component function test comprise a test environment management unit, a case classification management unit, a test case configuration unit, a function test scheme unit and a function test report unit, wherein the test environment management unit is electrically connected with the case classification management unit, the case classification management unit is electrically connected with the test case configuration unit, the test case configuration unit is electrically connected with the function test scheme unit, and the function test scheme unit is electrically connected with the function test report unit;
the test environment management unit is used for displaying test environment information and performing addition, deletion, modification and maintenance on the test environment;
the case classification management unit is used for maintaining and managing case classification;
the test case configuration unit is used for configuring case information;
the function test scheme unit is used for maintaining a function test scheme and executing the function test scheme;
the function test report unit is used for generating a function test report.
Further, the test environment management unit includes an environment list module and an environment maintenance module, wherein,
the environment list module is used for generating list display test environment information, supporting paging and searching according to environment names;
and the environment maintenance module is used for performing addition, deletion, modification, management and maintenance on the test environment.
Further, the content of the management and maintenance performed by the environment maintenance module includes a name, an address URL of the target deployment, and remark information.
Furthermore, the case classification management unit comprises a classification tree module, a directory maintenance module, a classification sorting module, a test case list module and a test case management module, wherein,
the classification tree module is used for infinite multi-level tree display and can arbitrarily contract and expand tree directories;
the directory maintenance module is used for performing maintenance management such as addition, deletion, modification and the like on case classification, and can create subdirectories at any directory node;
the classification and sorting module is used for adjusting the sequence of the nodes in the same level;
the test case list module is used for displaying a case list through a list;
the test case management module is used for performing addition, deletion, modification, maintenance and management on the test cases.
Further, the test case configuration unit comprises an information configuration module, an interface module and a manual verification module, wherein,
the information configuration module is used for configuring interface test case information;
the interface module is used for generating a corresponding interface test case aiming at an interface configured and developed by the system and supporting manual intervention and modification;
the manual verification module is used for manually verifying the use case and returning the result of the use case execution, so that the use case can be corrected in time.
Further, the interface test case information configured by the information configuration module includes a header configuration, a request parameter configuration, a return parameter configuration, and an assertion rule configuration.
Further, the functional test scenario unit includes a scenario list module, a scenario management module, a scenario configuration module, a scenario execution module, and a scenario detail module, wherein,
the scheme list module is used for displaying the created scheme list;
the scheme management module is used for performing addition, deletion, modification, maintenance and management on the function test scheme;
the scheme configuration module is used for configuring a functional test scheme of the data component interface;
the scheme execution module is used for executing by taking a scheme as a unit and executing all use cases in the scheme;
the scheme detail module is used for comprehensively displaying the overview information of the scheme.
Furthermore, the test scheme configured by the scheme configuration module includes a scheme name, a test environment, a test URL address, response time, remarks and corresponding interface cases, and the overview information of the scheme detail module display scheme includes execution times, number of cases, number of interfaces, recent execution pass rate and recent execution time.
Further, the functional test report unit comprises a report list module, a report management module, a report profile module, a use case list module, a use case test detail module and an execution log module, wherein,
the report list module is used for displaying a test report list in a list mode;
the report management module is used for managing reports and checking specific report contents;
the report general outline module is used for integrating statistical data of a statistical scheme execution report, and the statistical data comprises the number of use cases, the coverage of the use cases, the passing data quantity, the non-passing quantity and the test passing rate;
the case list module is used for carrying out classified statistics on corresponding case lists according to test results;
the case test detail module is used for viewing a detailed test report of the interface, and the detailed test report comprises a request address, a request mode, a state code, overtime time, total time and a test result;
the execution log module is used for collecting and recording each round of test execution logs of the test scheme, and comprises a request head, request parameters, return parameters and assertion rules of each use case.
A test method of a system based on data component function test comprises the following steps:
s1, the test environment management unit performs addition, deletion, modification and management on the test environment and configures the required test environment;
s2, the case classification management unit maintains and manages case classification, and a case list is displayed;
s3, configuring the use case by the test case configuration unit, and configuring proper use case information;
s4, the function test scheme unit maintains the function test scheme, executes the function test scheme and performs the function test;
and S5, generating a functional test report according to the test result by the functional test report unit.
Specifically, the test environment management unit performs addition, deletion, modification and management on the test environment, configures the required test environment, the case classification management unit performs maintenance and management on case classification, displays a case list, the test case configuration unit configures a case, configures proper case information, the function test scheme unit maintains a function test scheme, executes the function test scheme, performs function test, and the function test report unit generates a function test report according to a test result.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A system based on data component function test is characterized by comprising a test environment management unit, a case classification management unit, a test case configuration unit, a function test scheme unit and a function test report unit, wherein the test environment management unit is electrically connected with the case classification management unit, the case classification management unit is electrically connected with the test case configuration unit, the test case configuration unit is electrically connected with the function test scheme unit, and the function test scheme unit is electrically connected with the function test report unit;
the test environment management unit is used for displaying test environment information and performing addition, deletion, modification and maintenance on the test environment;
the case classification management unit is used for maintaining and managing case classification;
the test case configuration unit is used for configuring case information;
the function test scheme unit is used for maintaining a function test scheme and executing the function test scheme;
the function test report unit is used for generating a function test report.
2. The system for functional testing of data components according to claim 1, wherein: the test environment management unit includes an environment list module and an environment maintenance module, wherein,
the environment list module is used for generating list display test environment information, supporting paging and searching according to environment names;
and the environment maintenance module is used for performing addition, deletion, modification, management and maintenance on the test environment.
3. The system for functional testing of data components according to claim 2, wherein: the content of the management and maintenance performed by the environment maintenance module comprises a name, an address URL of target deployment and remark information.
4. The system for functional testing of data components according to claim 1, wherein: the case classification management unit comprises a classification tree module, a directory maintenance module, a classification sorting module, a test case list module and a test case management module,
the classification tree module is used for infinite multi-level tree display and can arbitrarily contract and expand tree directories;
the directory maintenance module is used for performing maintenance management such as addition, deletion, modification and the like on case classification, and can create subdirectories at any directory node;
the classification and sorting module is used for adjusting the sequence of the nodes in the same level;
the test case list module is used for displaying a case list through a list;
the test case management module is used for performing addition, deletion, modification, maintenance and management on the test cases.
5. The system for functional testing of data components according to claim 1, wherein: the test case configuration unit comprises an information configuration module, an interface module and a manual verification module, wherein,
the information configuration module is used for configuring interface test case information;
the interface module is used for generating a corresponding interface test case aiming at an interface configured and developed by the system and supporting manual intervention and modification;
the manual verification module is used for manually verifying the use case and returning the result of the use case execution, so that the use case can be corrected in time.
6. The system for functional testing of data components according to claim 5, wherein: the interface test case information configured by the information configuration module comprises a header configuration, a request parameter configuration, a return parameter configuration and an assertion rule configuration.
7. The system for functional testing of data components according to claim 1, wherein: the function test solution unit comprises a solution list module, a solution management module, a solution configuration module, a solution execution module and a solution detail module, wherein,
the scheme list module is used for displaying the created scheme list;
the scheme management module is used for performing addition, deletion, modification, maintenance and management on the function test scheme;
the scheme configuration module is used for configuring a functional test scheme of the data component interface;
the scheme execution module is used for executing by taking a scheme as a unit and executing all use cases in the scheme;
the scheme detail module is used for comprehensively displaying the overview information of the scheme.
8. The system for functional testing of data components according to claim 7, wherein: the test scheme configured by the scheme configuration module comprises a scheme name, a test environment, a test URL address, response time, remarks and corresponding interface use cases, and the overview information of the scheme display module comprises execution times, use case number, interface number, recent execution passing rate and recent execution time.
9. The system for functional testing of data components according to claim 1, wherein: the functional test report unit comprises a report list module, a report management module, a report outline module, a use case list module, a use case test detail module and an execution log module, wherein,
the report list module is used for displaying a test report list in a list mode;
the report management module is used for managing reports and checking specific report contents;
the report general outline module is used for integrating statistical data of a statistical scheme execution report, and the statistical data comprises the number of use cases, the coverage of the use cases, the passing data quantity, the non-passing quantity and the test passing rate;
the case list module is used for carrying out classified statistics on corresponding case lists according to test results;
the case test detail module is used for viewing a detailed test report of the interface, and the detailed test report comprises a request address, a request mode, a state code, overtime time, total time and a test result;
the execution log module is used for collecting and recording each round of test execution logs of the test scheme, and comprises a request head, request parameters, return parameters and assertion rules of each use case.
10. A test method of a system based on data component function test is characterized by comprising the following steps:
s1, the test environment management unit performs addition, deletion, modification and management on the test environment and configures the required test environment;
s2, the case classification management unit maintains and manages case classification, and a case list is displayed;
s3, configuring the use case by the test case configuration unit, and configuring proper use case information;
s4, the function test scheme unit maintains the function test scheme, executes the function test scheme and performs the function test;
and S5, generating a functional test report according to the test result by the functional test report unit.
CN202111371654.1A 2021-11-18 2021-11-18 System and method for testing functions based on data components Pending CN114153722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111371654.1A CN114153722A (en) 2021-11-18 2021-11-18 System and method for testing functions based on data components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111371654.1A CN114153722A (en) 2021-11-18 2021-11-18 System and method for testing functions based on data components

Publications (1)

Publication Number Publication Date
CN114153722A true CN114153722A (en) 2022-03-08

Family

ID=80456896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111371654.1A Pending CN114153722A (en) 2021-11-18 2021-11-18 System and method for testing functions based on data components

Country Status (1)

Country Link
CN (1) CN114153722A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093491A (en) * 2023-08-24 2023-11-21 鱼快创领智能科技(南京)有限公司 Automatic test method for simple programming of vehicle-mounted T-BOX

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093491A (en) * 2023-08-24 2023-11-21 鱼快创领智能科技(南京)有限公司 Automatic test method for simple programming of vehicle-mounted T-BOX
CN117093491B (en) * 2023-08-24 2024-04-16 鱼快创领智能科技(南京)有限公司 Automatic test method for simple programming of vehicle-mounted T-BOX

Similar Documents

Publication Publication Date Title
CN109460349B (en) Test case generation method and device based on log
CN110309071B (en) Test code generation method and module, and test method and system
US10339038B1 (en) Method and system for generating production data pattern driven test data
CN109635276B (en) Information matching method and terminal
CN102495832A (en) System for automatically generating document in software development process
CN106528828A (en) Multi-dimensional checking rule-based data quality detection method
CN114428822B (en) Data processing method and device, electronic equipment and storage medium
CN114880240B (en) Automatic test system and method for equipment of Internet of things, storage medium and equipment
CN114153722A (en) System and method for testing functions based on data components
CN115757626A (en) Data quality detection method and device, electronic equipment and storage medium
CN115576834A (en) Software test multiplexing method, system, terminal and medium for supporting fault recovery
CN111639016A (en) Big data log analysis method and device and computer storage medium
CN114338423A (en) Continuous iterative automatic network target construction technology
CN113010208A (en) Version information generation method, version information generation device, version information generation equipment and storage medium
WO2023016187A1 (en) Update system for forest resource one-map progress, cloud platform, and method
CN116860311A (en) Script analysis method, script analysis device, computer equipment and storage medium
CN106257457A (en) A kind of public sentiment compiles method
Li et al. Performance test and bottle analysis based on scientific research management platform
CN111563085B (en) Multidimensional grouping and business data binding system and method of BIM model
CN115062023A (en) Wide table optimization method and device, electronic equipment and computer readable storage medium
CN114281845A (en) Index generation method and device, electronic equipment and readable storage medium
CN110472125B (en) Multistage page cascading crawling method and equipment based on web crawler
CN114049036A (en) Data computing platform, method, device and storage medium
WO2021077251A1 (en) Method and system for online management of charging pile information, and electronic apparatus and storage medium
Luo et al. [Retracted] Design of Data Classification and Classification Management System for Big Data of Hydropower Enterprises Based on Data Standards

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