CN113238966A - Report platform front end testing method, device, equipment and storage medium - Google Patents

Report platform front end testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113238966A
CN113238966A CN202110694438.4A CN202110694438A CN113238966A CN 113238966 A CN113238966 A CN 113238966A CN 202110694438 A CN202110694438 A CN 202110694438A CN 113238966 A CN113238966 A CN 113238966A
Authority
CN
China
Prior art keywords
test
report
platform
report platform
execution result
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
CN202110694438.4A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202110694438.4A priority Critical patent/CN113238966A/en
Publication of CN113238966A publication Critical patent/CN113238966A/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

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 embodiment of the application provides a report platform front-end testing method, a report platform front-end testing device, report platform front-end testing equipment and a report platform front-end testing storage medium, wherein a testing file is obtained, and comprises a testing input parameter and a testing output parameter, the testing input parameter is used for positioning report data in a first report platform, and the testing output parameter is used for representing expected report data corresponding to the testing input parameter; according to the test input parameters, operating the first report platform, and capturing execution result information, wherein the execution result information is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters; and generating a test result according to the consistency of the test output parameters and the execution result information. Through testing the input parameters, the operation of the test platform can be realized, the execution result information can be automatically captured, and then through the comparison of the execution result information and the test output parameters in the test file, the automatic test of the front-end function of the report platform is realized.

Description

Report platform front end testing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing a report platform front end.
Background
This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
The report platform is a branch platform of the banking system, and is a comprehensive system for inquiring, managing and displaying related report data of banking. In the process of business operation and processing, various terminals need to access the report platform and obtain related report data from the report platform to complete related business processing procedures. The report platform is used as an important data source in the service operation and processing process, and the report platform is vital to ensure the functional stability of the report platform and the accuracy of the provided report data. Therefore, after the report platform is updated, upgraded or modified, the report platform must be tested by a testing means.
In the prior art, the traditional testing method completely depends on purely manual execution to verify whether the front-end function of the report platform is correct, however, the quantity of report data in the report platform is huge under normal conditions, and the manual testing adopts a sampling testing method to select part of the report data for verification, so that the problems of low testing efficiency, low report coverage rate and the like are caused.
Disclosure of Invention
The application provides a report platform front-end testing method, a report platform front-end testing device, a report platform front-end testing equipment and a report platform front-end testing storage medium, which are used for solving the problems of low report platform front-end testing efficiency, low report coverage rate and the like.
According to a first aspect of an embodiment of the present application, the present application provides a report platform front end testing method, including:
acquiring a test file, wherein the test file comprises a test input parameter and a test output parameter, the test input parameter is used for positioning report data in a first report platform, and the test output parameter is used for representing expected report data corresponding to the test input parameter; according to the test input parameters, operating a first report platform and capturing execution result information, wherein the execution result information is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters; and generating a test result according to the consistency of the test output parameter and the execution result information.
In a possible implementation manner, the test input parameters include at least one query parameter set, where the query parameter set is used to represent parameters for performing query operation on the first report platform; the operation is carried out on the first report platform according to the test input parameters, and the information of the execution result is captured, and the method comprises the following steps: and inquiring the first report platform according to the inquiry parameter set, and capturing an inquiry result displayed on a user interface of the first report platform.
In one possible implementation, the query parameter set includes at least one of: report identification, report date, and report size.
In a possible implementation manner, the test input parameters further include an account identifier, where the account identifier is used to characterize the operation authority of the first reporting platform, and the method further includes: and logging in the first report platform according to the account identifier.
In a possible implementation manner, querying a first report platform according to the query parameter set, and capturing a query result displayed on a user interface of the first report platform includes: and inquiring the first report platform according to the operation authority corresponding to the account identifier and the inquiry parameter set, and capturing an inquiry result displayed on a user interface of the first report platform.
In a possible implementation manner, the test output parameter includes comparison data, and the execution result information includes a first execution result, and the method further includes: logging in the first report platform; according to the test input parameters, operating the first report platform, and capturing execution result information, wherein the operation comprises the following steps: according to the test input parameter, operating the first report platform, and capturing a first execution result, wherein the first execution result is a result displayed on a user interface of the first report platform after the first report platform executes the platform operation corresponding to the test input parameter; generating a test result according to the consistency of the test output parameter and the execution result information, wherein the test result comprises: generating test data according to the first execution result; and comparing the consistency of the test data and the comparison data to generate a test result, wherein the comparison data is used for representing a corresponding second execution result after the second report platform is operated based on the test input parameters.
In one possible implementation, the method further includes: logging in the second report platform; according to the test input parameter, operating the second report platform, and capturing a second execution result, wherein the second execution result is a result displayed by a client of the second report platform after the second report platform executes the platform operation corresponding to the test input parameter; and generating the comparison data according to the second execution result.
In one possible implementation, comparing the consistency of the test data and the comparison data to generate a test result includes: calculating MD5 values for the test data and the comparison data; consistency of MD5 values according to the test data and the comparison data; and generating a test result.
In one possible implementation, the method further includes: and writing the test result into the test file, and/or displaying the test result.
According to a second aspect of the embodiments of the present application, there is provided a report platform front end testing apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a test file, the test file comprises a test input parameter and a test output parameter, the test input parameter is used for positioning report data in a first report platform, and the test output parameter is used for representing expected report data corresponding to the test input parameter;
the operation module is used for operating the first report platform according to the test input parameters and capturing execution result information, wherein the execution result information is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters;
and the generating module is used for generating a test result according to the consistency of the test output parameter and the execution result information.
In a possible implementation manner, the test input parameters include at least one query parameter set, where the query parameter set is used to represent parameters for performing query operation on the first report platform; the operation module is specifically configured to: and inquiring the first report platform according to the inquiry parameter set, and capturing an inquiry result displayed on a user interface of the first report platform.
In one possible implementation, the query parameter set includes at least one of: report identification, report date, and report size.
In a possible implementation manner, the test input parameters further include an account identifier, where the account identifier is used to represent an operation authority on the first reporting platform, and the operation module is further configured to: and logging in the first report platform according to the account identifier.
In a possible implementation manner, when querying the first report platform according to the query parameter set and capturing a query result displayed on a user interface of the first report platform, the operation module is specifically configured to: and inquiring the first report platform according to the operation authority corresponding to the account identifier and the inquiry parameter set, and capturing an inquiry result displayed on a user interface of the first report platform.
In a possible implementation manner, the test output parameter includes comparison data, the execution result information includes a first execution result, and the operation module is further configured to: logging in the first report platform; the operation module is specifically configured to, when operating the first report platform according to the test input parameter and capturing execution result information: according to the test input parameter, operating the first report platform, and capturing a first execution result, wherein the first execution result is a result displayed on a user interface of the first report platform after the first report platform executes the platform operation corresponding to the test input parameter; when the operation module generates a test result according to the consistency of the test output parameter and the execution result information, the operation module is specifically configured to: generating test data according to the first execution result; and comparing the consistency of the test data and the comparison data to generate a test result, wherein the comparison data is used for representing a corresponding second execution result after the second report platform is operated based on the test input parameters.
In a possible implementation manner, the operation module is further configured to: logging in the second report platform; according to the test input parameter, operating the second report platform, and capturing a second execution result, wherein the second execution result is a result displayed by a client of the second report platform after the second report platform executes the platform operation corresponding to the test input parameter; and generating the comparison data according to the second execution result.
In a possible implementation manner, when the operation module compares the consistency of the test data and the comparison data to generate a test result, the operation module is specifically configured to: calculating MD5 values for the test data and the comparison data; consistency of MD5 values according to the test data and the comparison data; and generating a test result.
In a possible implementation manner, the generating module is further configured to: and writing the test result into the test file, and/or displaying the test result.
According to a third aspect of embodiments of the present application, there is provided an electronic device, comprising: a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor according to any one of the first aspect of the embodiments of the present application.
According to a fourth aspect of the embodiments of the present application, there is provided a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the method for testing a report platform front end according to any one of the first aspect of the embodiments of the present application is implemented.
According to a fifth aspect of embodiments of the present application, there is provided a computer program product comprising a computer program that, when executed by a processor, implements the first aspect and various possible report platform front end testing methods of the first aspect as described above.
According to the report platform front-end testing method, the report platform front-end testing device, the report platform front-end testing equipment and the report platform front-end testing storage medium, the testing file is obtained and comprises the testing input parameter and the testing output parameter, wherein the testing input parameter is used for positioning report data in a first report platform, and the testing output parameter is used for representing expected report data corresponding to the testing input parameter; according to the test input parameters, operating a first report platform and capturing execution result information, wherein the execution result information is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters; and generating a test result according to the consistency of the test output parameter and the execution result information. Because the test input parameters in the test file can realize the operation of the test platform and automatically capture the execution result information, the automatic test of the front-end function of the report platform is realized by comparing the execution result information with the test output parameters in the test file, and the test efficiency of the report platform and the coverage rate of report data in the report platform are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of a system architecture of a reporting platform according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a report platform front-end testing method according to an embodiment of the present application;
fig. 3 is a flowchart of a report platform front-end testing method according to another embodiment of the present application;
FIG. 4 is a flowchart of a report platform front-end testing method according to yet another embodiment of the present application;
fig. 5 is a schematic structural diagram of a report platform front-end testing apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The following explains an application scenario of the embodiment of the present application:
fig. 1 is a schematic diagram of a system architecture of a reporting platform according to an embodiment of the present disclosure, and as shown in fig. 1, the reporting platform exemplarily operates in a cloud server, and the reporting platform includes reporting data related to various services. On one hand, the cloud server can be in communication connection with other servers to provide required report data for other business systems in the banking business system, and the cloud server and the other servers can be located in the same internal local area network and can also realize data interaction through a wide area network. On the other hand, the cloud server may also be directly connected to a terminal device used by a service person, i.e., the first terminal device, in a communication manner, such as a computer provided at a service counter in a bank. The bank staff can access the report platform by operating the first terminal device, and further check, modify, add, delete and the like the report data. In one aspect, the cloud server running the report platform is also in communication connection with a terminal device used by the developer, namely a second terminal device. By operating the first terminal device, a developer can modify and test the related functions, the framework and the like of the report platform, ensure that the related functions of the report platform can work normally, and provide report data service for other servers or terminals.
In the prior art, after a report platform is updated, upgraded or modified, the report platform must be tested by a testing means, however, the traditional testing method completely depends on purely manual execution to verify whether the front-end function of the report platform is correct. For example, the report platform is manually accessed and logged in through the second terminal device, and then the related report data under each function of the report platform is operated one by one, so that the validity of each function and the accuracy of the corresponding report data are determined. However, in general, the amount of report data in a report platform is huge, and manual testing can only adopt a sampling test method to select part of the report data for verification, which causes the problems of low testing efficiency, low report coverage rate and the like.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a report platform front-end testing method according to an embodiment of the present application, and the report platform front-end testing method is applied to a terminal device, and the terminal device is in communication connection with a cloud server running a first report platform. As shown in fig. 2, the first report platform front-end testing method provided in this embodiment includes the following steps:
step S101, a test file is obtained, wherein the test file comprises a test input parameter and a test output parameter, the test input parameter is used for positioning report data in the first report platform, and the test output parameter is used for representing expected report data corresponding to the test input parameter.
Illustratively, the terminal device may be a device for testing the first reporting platform, such as a computer. The terminal device accesses the first report platform through a client or a browser (CS architecture or BS architecture), so that the operation on the first report platform is realized, and response information returned by the first report platform is obtained.
Further, the test file may be a script file for defining a procedure for testing the first reporting platform. When the test file is executed on one side of the terminal device, the terminal device operates the first report platform according to the test input parameters in the test file, for example, executes the query or screening function of the first report platform. The first report platform responds to the operation on one side of the terminal equipment, and returns a corresponding operation result, namely report data corresponding to the operation. The test output parameters are expected report data which are contained in the test file and correspond to the test input parameters in a preset mode. The test file is equivalent to a test case for testing the front end of the test platform, the test input parameter and the test output parameter are information set in pairs, and the test of the related function and the report data of the first report platform can be realized by comparing the test output parameter with the operation result returned by the first report platform corresponding to the test input parameter.
And S102, operating the first report platform according to the test input parameters, and capturing execution result information, wherein the execution result information is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters.
After the terminal equipment obtains the test file, the first report platform can be operated through a preset automatic test tool according to the test input parameters in the test file, an operation result returned from a cloud server running the first report platform is obtained, and the operation result is displayed on a user interface of the first report platform of the terminal equipment. And acquiring execution result information describing the operation result corresponding to the test input parameter by capturing the operation result displayed on the user interface of the first report platform of the terminal equipment.
The automatic testing tool is, for example, Selenium, which is a tool for testing a Web application program, the Selenium testing can directly affect the browser to simulate the operation of a user and implement a testing process based on a user interface, and a specific using method of the Selenium is known to those skilled in the art and is not described herein again.
And step S103, generating a test result according to the consistency of the test output parameter and the execution result information.
Illustratively, the test output parameter is report data expected to be output after the first report platform is operated based on the test input parameter according to the preset data processing logic of the first report platform, and after the execution result information is obtained, because the execution result information is a response result obtained after the first report platform is subjected to the operation test according to the test input parameter, if the execution result information and the test output parameter are consistent according to the preset data processing logic of the first report platform, the output execution result information and the test output parameter should be consistent. Therefore, according to the consistency of the test output parameters and the execution result information, whether the data processing logic of the first report platform is in accordance with expectations or not can be judged, namely a test result is obtained. Specifically, if the test output parameters are consistent with the execution result information, it indicates that the data processing logic of the first report platform is in accordance with expectations, that is, the test of the first report platform passes; otherwise, if the test output parameter is inconsistent with the execution result information, it indicates that the data processing logic of the first reporting platform is not in accordance with the expectation, i.e. the test of the first reporting platform passes.
The method comprises the steps that a test file is obtained, wherein the test file comprises test input parameters and test output parameters, the test input parameters are used for positioning report data in a first report platform, and the test output parameters are used for representing expected report data corresponding to the test input parameters; according to the test input parameters, operating the first report platform, and capturing execution result information, wherein the execution result information is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters; and generating a test result according to the consistency of the test output parameters and the execution result information. Because the test input parameters in the test file can realize the operation of the test platform and automatically capture the execution result information, the automatic test of the front-end function of the report platform is realized by comparing the execution result information with the test output parameters in the test file, and the test efficiency of the report platform and the coverage rate of report data in the report platform are improved.
Fig. 3 is a flowchart of a report platform front end testing method according to another embodiment of the present application, and as shown in fig. 3, the report platform front end testing method according to the present embodiment further details step S102 on the basis of the report platform front end testing method according to the embodiment shown in fig. 2. The report platform front-end testing method provided by the embodiment includes the following steps:
step S201, a test file is obtained, where the test file includes a test input parameter and a test output parameter, where the test input parameter is used to locate report data in the first report platform, and the test output parameter is used to represent expected report data corresponding to the test input parameter.
Illustratively, the test input parameters comprise at least one query parameter set, and the query parameter set is used for representing parameters for performing query operation on the first report platform; the query parameter set is related parameters used in the query operation process, and the query parameter set may include a combination of a plurality of parameters. Parameters such as report identification, report date, report size.
Illustratively, the test input parameters further include an account identifier, and the account identifier is used for characterizing the operation authority of the first reporting platform. In the application scenario of the banking system, the report data of the report platform is not opened to all users in terms of security and compliance, that is, the account identifier has a corresponding operation authority, and only the report data in the access authority corresponding to the account identifier can be operated.
And step S202, logging in the first report platform according to the account identifier.
And step S203, inquiring the first report platform according to the operation authority and the inquiry parameter set corresponding to the account identifier, and capturing an inquiry result displayed on a user interface of the first report platform.
Illustratively, according to the account identifier in the test input parameter, after logging in the first reporting platform, the first reporting platform may determine the query authority corresponding to the account identifier, for example, view the range of the reporting data, and more specifically, for example, the account identifier a may only view the type a reporting data. Therefore, when the first report platform returns the query result corresponding to the test input parameter, only the query result corresponding to the operation authority of the first report platform is returned. The implementation manner of capturing the query result displayed on the user interface of the first report platform may be implemented by an automated testing program, which has been described in detail in the foregoing embodiments, and is not described here again.
And step S204, generating a test result according to the consistency of the test output parameter and the query result.
Further, when the first report platform returns an operation result, a query result displayed on the user interface is captured, wherein the query result is a returned result after query operation is performed based on the account identifier. The method is equivalent to testing the authority management function of the first report platform. And comparing the test output parameters with the query result, so that the query function of the first report platform based on authority management is tested, the test effect of the first report platform is improved, and the safety and the stability of the first report platform are further improved.
Step S205, writing the test result into the test file.
Illustratively, after the test result is generated, the test result is written into the test file, since the test result is generated by the test file corresponding to the test result, and the report data covered by the test file is limited, in the process of testing the test platform, a large number of test files need to be read in, and the high-coverage test of the report platform is realized. After the result is tested, the test result is contained in the test file, if the test result represents that the test corresponding to the test file passes, the test file can be skipped, and the next test file is tested, so that repeated tests are avoided, and the test efficiency is improved.
In this embodiment, the implementation manner of step S201 is the same as the implementation manner of step S101 in the embodiment shown in fig. 2 of this application, and is not described in detail here.
Fig. 4 is a flowchart of a report platform front-end testing method according to still another embodiment of the present application, and as shown in fig. 4, the report platform front-end testing method according to this embodiment adds a step of testing and comparing a second report platform on the basis of the report platform front-end testing method according to the embodiment shown in fig. 2, and the report platform front-end testing method according to this embodiment can be applied in an application scenario of report platform reconfiguration testing, and then the report platform front-end testing method according to this embodiment includes the following steps:
and step S301, logging in a second report platform.
Step S302, according to the test input parameters, operating the second report platform, and capturing a second execution result, wherein the second execution result is a result displayed by the client of the second report platform after the second report platform executes the platform operation corresponding to the test input parameters.
Step S303, generating comparison data according to the second execution result.
Illustratively, the second reporting platform is the reporting platform before reconstruction with the first reporting platform. Specifically, the report platform front-end testing method provided by this embodiment is applied to a regression testing scenario after the second report platform is reconstructed. The reconstruction means that on the premise of not changing the main functions of the report platform and the corresponding stored report data, some modules, algorithms, frameworks and the like in the report platform are modified and replaced so as to improve the performance of the report platform. Specifically, after the second report platform is reconstructed, a first report platform is generated, and the report data stored in the first report platform is consistent with the report data stored in the second report platform.
Illustratively, logging in the second report platform, and operating the second report platform according to the test input parameter, for example, querying report data corresponding to the test input parameter, capturing a second execution result returned by the second report platform, and generating comparison data from the second execution result for a subsequent comparison test with the reconstructed first report platform. The process of generating the second execution result is similar to the process of generating the first test result corresponding to the first test platform based on the test input parameter in the above embodiment, and is not repeated here, and may participate in the related description in the above embodiment.
For example, the comparison data may include one or more second execution results, and the comparison data may be generated by locally storing the second execution results. The specific data format and generation manner of the comparison data are not limited, and no specific example is given here.
Step S304, a test file is obtained, and the test file comprises test input parameters and comparison data.
Exemplarily, after the comparison data is obtained, the test input parameters in the above steps and the corresponding comparison data are preset, and a test file is generated for testing the reconstructed first report platform to verify whether the first report platform can achieve the same result.
Step S305, logging in a first report platform.
Step S306, according to the test input parameters, operating the first report platform, and capturing a first execution result, wherein the first execution result is a result displayed on a user interface of the first report platform after the first report platform executes the platform operation corresponding to the test input parameters.
Step S307, generating test data according to the first execution result.
For example, the test data may include one or more first execution results, and the corresponding data generated by locally storing the first execution results with the comparison data. Here, the specific data format and the generation manner of the comparison data are not limited, and are not described in detail by way of example.
And S308, comparing the consistency of the test data and the comparison data to generate a test result, wherein the comparison data is used for representing a corresponding second execution result after the second report platform is operated based on the test input parameters.
In one possible implementation, comparing the consistency of the test data and the comparison data to generate a test result includes: calculating MD5 values of the test data and the comparison data; consistency of MD5 values according to test data and comparative data; and generating a test result. Specifically, for example, the test data and the comparison data each include a plurality of report files, and the report files and the comparison files are subjected to preprocessing operations, such as decimation, file alignment, and the like. And then performing MD5 value calculation and comparison on the report file in each pair of test data and the report file in each pair of comparison data. Optionally, if the MD5 values are not equal, proceeding with the file content one-by-one comparison and marking the fields in the file where the data are inconsistent; and finally, writing the comparison result back to the file so as to facilitate manual intervention analysis.
Fig. 5 is a schematic structural diagram of a report platform front end testing apparatus according to an embodiment of the present application, which is applied to a terminal device, and as shown in fig. 5, the report platform front end testing apparatus 4 according to this embodiment includes:
the obtaining module 41 is configured to obtain a test file, where the test file includes a test input parameter and a test output parameter, where the test input parameter is used to locate report data in the first report platform, and the test output parameter is used to represent expected report data corresponding to the test input parameter.
And the operation module 42 is configured to operate the first reporting platform according to the test input parameter, and capture execution result information, where the execution result information is a result displayed on a user interface of the first reporting platform after the first reporting platform executes the platform operation corresponding to the test input parameter.
And the generating module 43 is configured to generate a test result according to the consistency of the test output parameter and the execution result information.
In a possible implementation manner, the test input parameters include at least one query parameter set, and the query parameter set is used for representing parameters for performing query operation on the first report platform; the operation module 42 is specifically configured to: and inquiring the first report platform according to the inquiry parameter set, and capturing an inquiry result displayed on a user interface of the first report platform.
In one possible implementation, the query parameter set includes at least one of: report identification, report date, and report size.
In a possible implementation manner, the test input parameters further include an account identifier, where the account identifier is used to represent an operation authority on the first reporting platform, and the operation module 42 is further configured to: and logging in the first report platform according to the account identifier.
In a possible implementation manner, when querying the first report platform according to the query parameter set and capturing a query result displayed on the user interface of the first report platform, the operation module 42 is specifically configured to: and inquiring the first report platform according to the operation authority and the inquiry parameter set corresponding to the account identifier, and capturing an inquiry result displayed on a user interface of the first report platform.
In a possible implementation manner, the test output parameter includes comparison data, the execution result information includes a first execution result, and the operation module 42 is further configured to: logging in a first report platform; the operation module 42 is specifically configured to, when operating the first report platform according to the test input parameter and capturing the execution result information: according to the test input parameters, operating the first report platform, and capturing a first execution result, wherein the first execution result is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters; when generating the test result according to the consistency of the test output parameter and the execution result information, the operation module 42 is specifically configured to: generating test data according to the first execution result; and comparing the consistency of the test data and the comparison data to generate a test result, wherein the comparison data is used for representing a corresponding second execution result after the second report platform is operated based on the test input parameters.
In a possible implementation, the operation module 42 is further configured to: logging in a second report platform; according to the test input parameters, operating the second report platform, and capturing a second execution result, wherein the second execution result is a result displayed by a client of the second report platform after the second report platform executes the platform operation corresponding to the test input parameters; and generating comparison data according to the second execution result.
In a possible implementation manner, the operation module 42, when comparing the consistency of the test data and the comparison data and generating the test result, is specifically configured to: calculating MD5 values of the test data and the comparison data; consistency of MD5 values according to test data and comparative data; and generating a test result.
In a possible implementation manner, the generating module 43 is further configured to: and writing the test result into a test file, and/or displaying the test result.
The obtaining module 41, the operating module 42 and the generating module 43 are connected in sequence. The report platform front end testing apparatus 4 provided in this embodiment may execute the technical solutions of the method embodiments shown in fig. 2 to 4, and the implementation principles and technical effects thereof are similar, and are not described herein again.
Fig. 6 is a schematic view of an electronic device according to an embodiment of the present application, and as shown in fig. 6, the electronic device according to the embodiment includes: a memory 51, a processor 52 and a computer program.
The computer program is stored in the memory 51 and configured to be executed by the processor 52 to implement the report platform front-end testing method provided in any embodiment corresponding to fig. 2 to 4 of the present application.
The memory 51 and the processor 52 are connected by a bus 53.
The relevant description may be understood by referring to the relevant description and effect corresponding to the steps in the embodiments corresponding to fig. 2 to fig. 4, and redundant description is not repeated here.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the report platform front-end testing method provided in any embodiment of the present application corresponding to fig. 2 to fig. 4.
The computer readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
An embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for testing a report platform front end according to any embodiment of the present application corresponding to fig. 2 to fig. 4 is implemented.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A report platform front end testing method is characterized by comprising the following steps:
acquiring a test file, wherein the test file comprises a test input parameter and a test output parameter, the test input parameter is used for positioning report data in a first report platform, and the test output parameter is used for representing expected report data corresponding to the test input parameter;
according to the test input parameters, operating a first report platform and capturing execution result information, wherein the execution result information is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters;
and generating a test result according to the consistency of the test output parameter and the execution result information.
2. The method according to claim 1, wherein the test input parameters include at least one query parameter set, and the query parameter set is used for characterizing parameters for performing query operations on the first reporting platform;
the operation is carried out on the first report platform according to the test input parameters, and the information of the execution result is captured, and the method comprises the following steps:
and inquiring the first report platform according to the inquiry parameter set, and capturing an inquiry result displayed on a user interface of the first report platform.
3. The method of claim 2, wherein the test input parameters further include an account identifier, the account identifier being used to characterize the operating authority of the first reporting platform, the method further comprising:
and logging in the first report platform according to the account identifier.
4. The method of claim 3, wherein querying the first reporting platform according to the set of query parameters and capturing the query result displayed on the user interface of the first reporting platform comprises:
and inquiring the first report platform according to the operation authority corresponding to the account identifier and the inquiry parameter set, and capturing an inquiry result displayed on a user interface of the first report platform.
5. The method of claim 1, wherein the test output parameters include comparison data, wherein the execution result information includes a first execution result, and wherein the method further comprises:
logging in the first report platform;
according to the test input parameters, operating the first report platform, and capturing execution result information, wherein the operation comprises the following steps:
according to the test input parameter, operating the first report platform, and capturing a first execution result, wherein the first execution result is a result displayed on a user interface of the first report platform after the first report platform executes the platform operation corresponding to the test input parameter;
generating a test result according to the consistency of the test output parameter and the execution result information, wherein the test result comprises:
generating test data according to the first execution result;
and comparing the consistency of the test data and the comparison data to generate a test result, wherein the comparison data is used for representing a corresponding second execution result after the second report platform is operated based on the test input parameters.
6. The method of claim 5, further comprising:
logging in the second report platform;
according to the test input parameter, operating the second report platform, and capturing a second execution result, wherein the second execution result is a result displayed by a client of the second report platform after the second report platform executes the platform operation corresponding to the test input parameter;
and generating the comparison data according to the second execution result.
7. The method of claim 5, wherein comparing the consistency of the test data and the comparison data to generate a test result comprises:
calculating MD5 values for the test data and the comparison data;
consistency of MD5 values according to the test data and the comparison data; and generating a test result.
8. The method according to any one of claims 1-7, further comprising:
writing the test result to the test file, and/or,
and displaying the test result.
9. A report platform front end testing arrangement which characterized in that includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a test file, the test file comprises a test input parameter and a test output parameter, the test input parameter is used for positioning report data in a first report platform, and the test output parameter is used for representing expected report data corresponding to the test input parameter;
the operation module is used for operating the first report platform according to the test input parameters and capturing execution result information, wherein the execution result information is a result displayed on a user interface of the first report platform after the first report platform executes platform operation corresponding to the test input parameters;
and the generating module is used for generating a test result according to the consistency of the test output parameter and the execution result information.
10. An electronic device, comprising: a memory, a processor, and a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the reporting platform front end testing method of any of claims 1 to 8.
11. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, implement the reporting platform front end testing method as recited in any one of claims 1 to 8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the reporting platform front end testing method of any of claims 1 to 8.
CN202110694438.4A 2021-06-22 2021-06-22 Report platform front end testing method, device, equipment and storage medium Pending CN113238966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110694438.4A CN113238966A (en) 2021-06-22 2021-06-22 Report platform front end testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110694438.4A CN113238966A (en) 2021-06-22 2021-06-22 Report platform front end testing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113238966A true CN113238966A (en) 2021-08-10

Family

ID=77140645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110694438.4A Pending CN113238966A (en) 2021-06-22 2021-06-22 Report platform front end testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113238966A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838672A (en) * 2014-03-04 2014-06-04 中国工商银行股份有限公司 Automated testing method and device for all-purpose financial statements
US9043759B1 (en) * 2011-01-27 2015-05-26 Trimble Navigation Limited System and method for generating software unit tests simultaneously with API documentation
CN110908909A (en) * 2019-11-21 2020-03-24 望海康信(北京)科技股份公司 Automatic testing method and device, storage medium and equipment
CN112668181A (en) * 2020-12-28 2021-04-16 上海科梁信息工程股份有限公司 Simulation test method, simulation test device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9043759B1 (en) * 2011-01-27 2015-05-26 Trimble Navigation Limited System and method for generating software unit tests simultaneously with API documentation
CN103838672A (en) * 2014-03-04 2014-06-04 中国工商银行股份有限公司 Automated testing method and device for all-purpose financial statements
CN110908909A (en) * 2019-11-21 2020-03-24 望海康信(北京)科技股份公司 Automatic testing method and device, storage medium and equipment
CN112668181A (en) * 2020-12-28 2021-04-16 上海科梁信息工程股份有限公司 Simulation test method, simulation test device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108415832B (en) Interface automation test method, device, equipment and storage medium
CN102122265B (en) System and method for verifying computer software test results
CN111290956B (en) Brain graph-based test method and device, electronic equipment and storage medium
CN109062780B (en) Development method of automatic test case and terminal equipment
CN108628748B (en) Automatic test management method and automatic test management system
CN111506511A (en) Test case generation method and device, electronic equipment and medium
CN108460068A (en) Method, apparatus, storage medium and the terminal that report imports and exports
CN109408361A (en) Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN117009208A (en) Dependency information processing method, device, equipment and storage medium
CN114185770A (en) Method and device for generating test data, computer equipment and storage medium
CN112202647B (en) Test method, device and test equipment in block chain network
CN115705190A (en) Method and device for determining dependence degree
CN109743233A (en) A kind of pair of strong identity authentication system carries out the method and computer equipment of data acquisition
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN111045935B (en) Automatic version auditing method, device, equipment and storage medium
CN111708712A (en) User behavior test case generation method, flow playback method and electronic equipment
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN111427796A (en) System testing method and device and electronic equipment
CN115022201B (en) Data processing function test method, device, equipment and storage medium
CN113238966A (en) Report platform front end testing method, device, equipment and storage medium
CN114564387A (en) Scene type automatic testing method and system for OpenStack cloud platform
CN106470132B (en) Horizontal permission test method and device
CN113051178A (en) Test data construction method, device, equipment and medium
CN113282496A (en) Automatic interface test method, device, equipment and storage medium
CN112787853A (en) Automatic generation method and device of network change scheme and related equipment

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