Test method and device of freight rate publishing system, storage medium and electronic equipment

Through the comparison of the freight release system and the historical system by automated testing tools, the problem of low regression testing of the freight release system is solved, efficient automatic regression testing is realized, the testing process is simplified and the testing of the freight release system is improved. efficiency.

CN119127717APending Publication Date: 2024-12-13TRAVELSKY TECHNOLOGY LIMITED
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411363493.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the prior art, the regression testing of the updated freight rate release system is low in efficiency and lacks effective automation solutions.

Method used

Through automated testing tools, the freight release system to be tested and the historical freight release system are dispatched, and the target aviation business data is imported and published, the first and second release results are obtained, and the target query comparison algorithm is compared. Verify the consistency of the new and old versions to complete automated regression testing.

Benefits of technology

It realizes uninterrupted testing, improves the regression testing efficiency of the freight release system, and the testing method is flexible and efficient, and can quickly judge the functional consistency of the new and old versions, simplifies the test scenarios, and improves the testing efficiency of the freight release system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127717A_ABST
    Figure CN119127717A_ABST
Patent Text Reader

Abstract

The invention discloses a test method and device of a freight rate publishing system, a storage medium and electronic equipment. Relates to the technical field of data processing, the field of electronic information and other related technical fields, and comprises the following steps: publishing target aviation business data according to a to-be-tested freight rate publishing system to obtain a first publishing result; acquiring a second publishing result of the target aviation business data published by the historical freight rate publishing system; and obtaining a target test result of the to-be-tested freight rate release system according to the first release result and the second release result. Through the method and the device, the problem of relatively low regression test efficiency of the freight rate publishing system caused by performing regression test on the updated freight rate publishing system in a manual mode in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of data processing technology, electronic information and other related technical fields, and in particular to a testing method and device, a storage medium and an electronic device for a freight rate publishing system. Background Art

[0002] The fare publishing system is responsible for the collection, processing and storage of relevant data such as fares and applicable rules, and provides them to the fare search and calculation system to participate in ticket sales. In order to improve the level of fare management and publishing efficiency, airlines usually use the internal fare management system to connect with the air information system and publish fare data in batches. For batch fare data, the fare publishing system undertakes a variety of tasks such as format checking, logic verification, and storage in the warehouse. However, due to the complex business processing and numerous functional points, the testing workload of system version upgrades is huge. In particular, for regression testing of existing functions in the old version, because the system itself is data import processing and has no externally exposed interfaces, conventional automated testing tools based on interfaces are not applicable. Manual testing is even more time-consuming and labor-intensive. It is almost impossible to implement regression testing for such a large-scale data volume and numerous functional points through manual operation. The fare publishing system has a new version released almost every month or even every week, and it is urgent to improve the automated regression testing capabilities for the batch data publishing function.

[0003] With regard to the problem in the related art that regression testing of an updated freight rate publishing system is performed manually, resulting in relatively low efficiency of regression testing of the freight rate publishing system, no effective solution has been proposed so far. Summary of the invention

[0004] The main purpose of the present application is to provide a testing method and device, storage medium and electronic device for a freight rate publishing system, so as to solve the problem in the related art that regression testing of an updated freight rate publishing system is performed manually, resulting in low efficiency of regression testing of the freight rate publishing system.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for testing a fare publishing system is provided. The method comprises: publishing target air business data according to the fare publishing system to be tested to obtain a first publishing result; obtaining a second publishing result of the target air business data published by the historical fare publishing system; and obtaining a target test result of the fare publishing system to be tested according to the first publishing result and the second publishing result.

[0006] Further, obtaining a target test result of the freight rate publishing system to be tested based on the first publishing result and the second publishing result includes: determining whether the first publishing result and the second publishing result are the same through a target query comparison algorithm to obtain a target judgment result; if the target judgment result indicates that the first publishing result and the second publishing result are the same, determining that the target test result of the freight rate publishing system to be tested is a test pass; if the target judgment result indicates that the first publishing result and the second publishing result are different, determining that the target test result of the freight rate publishing system to be tested is a test fail.

[0007] Furthermore, a target query comparison algorithm is used to determine whether the first publication result and the second publication result are the same, and the target judgment result includes: establishing a mapping between the first publication result and the second publication result to obtain a mapping relationship; calculating the first publication result and the second publication result based on the mapping relationship through the target query comparison algorithm to obtain a target calculation result; and obtaining the target judgment result based on the target calculation result.

[0008] Further, based on the target calculation result, obtaining the target judgment result includes: judging whether the target calculation result and a preset value are equal to obtain an initial judgment result; if the initial judgment result indicates that the target calculation result and the preset value are equal, determining that the target judgment result is that the first publication result and the second publication result are the same; if the initial judgment result indicates that the target calculation result and the preset value are not equal, determining that the target judgment result is that the first publication result and the second publication result are different.

[0009] Furthermore, after determining that the target test result of the freight rate publishing system to be tested is a test failure, the method further includes: determining difference information between the freight rate publishing system to be tested and the historical freight rate publishing system based on the first publishing result and the second publishing result; and optimizing the freight rate publishing system to be tested based on the difference information.

[0010] Furthermore, before publishing the target aviation business data according to the fare publishing system to be tested and obtaining the first publishing result, the method also includes: obtaining initial aviation business data corresponding to multiple airlines; classifying the initial aviation business data according to the time batches of the aviation business data to obtain the classified initial aviation business data; classifying the classified initial aviation business data according to the data format of the aviation business data to obtain the target aviation business data.

[0011] Furthermore, the target air business data is published according to the fare publishing system to be tested to obtain a first publishing result, including: scheduling the target air business data according to the scheduling cluster in the fare publishing system to be tested to obtain first air business data; verifying the first air business data according to the verification processing cluster in the fare publishing system to be tested to obtain second air business data; publishing the second air business data according to the data submission cluster in the fare publishing system to be tested to obtain the first publishing result.

[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a test device for a fare publishing system is provided. The device comprises: a publishing unit, used to publish target air business data according to the fare publishing system to be tested, and obtain a first publishing result; a first obtaining unit, used to obtain a second publishing result of the target air business data published by the historical fare publishing system; and a first determining unit, used to obtain a target test result of the fare publishing system to be tested according to the first publishing result and the second publishing result.

[0013] Further, the first determination unit includes: a judgment module, which is used to judge whether the first publishing result and the second publishing result are the same through a target query comparison algorithm to obtain a target judgment result; a first determination module, which is used to determine that the target test result of the freight rate publishing system to be tested is a test pass if the target judgment result indicates that the first publishing result and the second publishing result are the same; and a second determination module, which is used to determine that the target test result of the freight rate publishing system to be tested is a test fail if the target judgment result indicates that the first publishing result and the second publishing result are not the same.

[0014] Furthermore, the judgment module includes: a mapping sub-module, used to establish a mapping between the first publishing result and the second publishing result to obtain a mapping relationship; a calculation sub-module, used to calculate the first publishing result and the second publishing result based on the mapping relationship through the target query comparison algorithm to obtain a target calculation result; a determination sub-module, used to obtain the target judgment result based on the target calculation result.

[0015] Furthermore, the determination submodule includes: a judgment submodule, used to judge whether the target calculation result and the preset value are equal to obtain an initial judgment result; a first determination submodule, used to determine that the target judgment result is the same as the first publication result and the second publication result if the initial judgment result indicates that the target calculation result and the preset value are equal; and a second determination submodule, used to determine that the target judgment result is the same as the first publication result and the second publication result if the initial judgment result indicates that the target calculation result and the preset value are not equal.

[0016] Furthermore, the device also includes: a second determination unit, which is used to determine the difference information between the freight rate publishing system to be tested and the historical freight rate publishing system based on the first publishing result and the second publishing result after determining that the target test result of the freight rate publishing system to be tested is test failure; and an optimization unit, which is used to optimize the freight rate publishing system to be tested based on the difference information.

[0017] Furthermore, the device also includes: a second acquisition unit, used to obtain initial aviation business data corresponding to multiple airlines before publishing the target aviation business data according to the fare publishing system to be tested and obtaining a first publishing result; a first classification unit, used to classify the initial aviation business data according to the time batch of the aviation business data to obtain the classified initial aviation business data; a second classification unit, used to classify the classified initial aviation business data according to the data format of the aviation business data to obtain the target aviation business data.

[0018] Furthermore, the publishing unit includes: a scheduling module, used to perform scheduling operations on the target aviation business data according to the scheduling cluster in the fare publishing system to be tested, so as to obtain first aviation business data; a verification module, used to perform verification processing on the first aviation business data according to the verification processing cluster in the fare publishing system to be tested, so as to obtain second aviation business data; and a publishing module, used to publish the second aviation business data according to the data submission cluster in the fare publishing system to be tested, so as to obtain the first publishing result.

[0019] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the above-mentioned testing methods for the freight rate publishing system.

[0020] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is also provided, the electronic device includes one or more processors and a memory, and the memory is used to store a test method of the freight rate publishing system implemented by one or more processors as described above.

[0021] Through this application, the following steps are adopted: according to the fare publishing system to be tested, the target air business data is published to obtain the first publishing result; the second publishing result of the historical fare publishing system publishing the target air business data; according to the first publishing result and the second publishing result, the target test result of the fare publishing system to be tested is obtained. Through this application, the problem that the regression test efficiency of the fare publishing system is relatively low due to the manual regression test of the updated fare publishing system in the related technology is solved. In this scheme, the fare publishing system to be tested and the historical fare publishing system are scheduled by the automated testing tool, and the target air business data are imported and published at the same time to obtain the first publishing result and the second publishing result. Then, by comparing the first publishing result and the second publishing result, the consistency of the functions of the new and old versions is verified, thereby completing the automated regression test of the fare publishing system to be tested. By comparing the first publishing result and the second publishing result, the complicated test scenario itself is jumped out to achieve the goal of regression testing. At the same time, the test can be performed continuously. As long as a new version of the freight rate publishing system is developed, it can be compared with the historical version of the freight rate publishing system. The testing method is flexible and efficient, which effectively improves the regression testing efficiency of the freight rate publishing system. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0023] Figure 1 It is a flow chart of a testing method of a freight rate publishing system provided in an embodiment of the present application;

[0024] Figure 2 is a schematic diagram of a freight rate data collection process provided according to an embodiment of the present application;

[0025] Figure 3 is a schematic diagram of classifying initial aviation business data according to an embodiment of the present application;

[0026] Figure 4 It is a schematic diagram of a test method of a freight rate publishing system provided in an embodiment of the present application;

[0027] Figure 5It is a schematic diagram of the time consumption of full comparison and incremental comparison provided in an embodiment of the present application;

[0028] Figure 6 is a schematic diagram of a test device for a freight rate publishing system provided in an embodiment of the present application;

[0029] Figure 7 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0034] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a testing method for a freight rate publishing system provided in an embodiment of the present application. Figure 1As shown, the method comprises the following steps:

[0035] Step S101, publishing target aviation business data according to the freight rate publishing system to be tested, and obtaining a first publishing result.

[0036] Optionally, Figure 2 Schematic diagram of the freight rate data collection process provided by the embodiment of the present application. Figure 2 As shown, the fare publishing system to be tested generally collects data through two channels: one is the fare front end, where airline business personnel enter fare data from the front end; the other is to connect to the fare management system within the airline and import fare files in batches to achieve efficient and automatic fare data collection. After the fare data (i.e., target airline business data) is successfully collected, it is processed and published through multiple clusters in the fare publishing system to be tested to obtain the first publishing result.

[0037] It should be noted that the fare publishing system is responsible for the collection, processing and storage of relevant data such as fares and applicable rules, and provides it to the fare search and calculation system to participate in air ticket sales.

[0038] Step S102, obtaining a second publishing result of the historical freight rate publishing system publishing the target aviation business data.

[0039] Optionally, a second publishing result of the historical freight rate publishing system processing and publishing the target aviation business data is obtained in the database.

[0040] Step S103, obtaining a target test result of the freight rate publishing system to be tested according to the first publishing result and the second publishing result.

[0041] Optionally, the first publishing result of the freight rate publishing system to be tested is compared with the second publishing result of the historical freight rate publishing system to obtain a target test result, which includes two cases: the freight rate publishing system to be tested passes the test and the freight rate publishing system to be tested fails the test.

[0042] In summary, the fare publishing system to be tested and the historical fare publishing system are scheduled through the automated testing tool, and the target aviation business data is imported and published to obtain the first publishing result and the second publishing result. Then, by comparing the first publishing result and the second publishing result, the consistency of the functions of the new and old versions is verified, thereby completing the automated regression test of the fare publishing system to be tested. By comparing the first publishing result and the second publishing result, the complicated test scenario itself is avoided to achieve the goal of regression testing. At the same time, the test can be performed uninterruptedly. As long as a new version of the fare publishing system is developed, it can be compared with the historical version of the fare publishing system. The testing method is flexible and efficient, which effectively improves the regression testing efficiency of the fare publishing system.

[0043] Optionally, in the testing method for the freight rate publishing system provided in the embodiment of the present application, obtaining a target test result of the freight rate publishing system to be tested based on the first publishing result and the second publishing result includes: determining whether the first publishing result and the second publishing result are the same through a target query comparison algorithm to obtain a target judgment result; if the target judgment result indicates that the first publishing result and the second publishing result are the same, determining that the target test result of the freight rate publishing system to be tested is a test pass; if the target judgment result indicates that the first publishing result and the second publishing result are different, determining that the target test result of the freight rate publishing system to be tested is a test fail.

[0044] In an optional embodiment, the contents of the two databases (i.e., the first published result and the second published result) are directly compared by an automated testing tool (i.e., a target query comparison algorithm), and a comparison result (i.e., a target judgment result) is generated. If the comparison results are consistent, it means that the functions of the freight rate publishing system to be tested and the historical freight rate publishing system are consistent, and the regression test of the freight rate publishing system to be tested passes; if the comparison results are deviated, it means that the functions of the freight rate publishing system to be tested and the historical freight rate publishing system are deviated, and the regression test of the freight rate publishing system to be tested fails.

[0045] By comparing the first publishing result with the second publishing result, it is possible to quickly determine whether the functions of the new and old versions of the freight rate publishing system are consistent, thereby accurately determining the target test result of the freight rate publishing system to be tested.

[0046] Optionally, in the testing method of the freight rate publishing system provided in the embodiment of the present application, a target query comparison algorithm is used to determine whether the first publishing result and the second publishing result are the same, and obtaining the target judgment result includes: establishing a mapping between the first publishing result and the second publishing result to obtain a mapping relationship; calculating the first publishing result and the second publishing result based on the mapping relationship through a target query comparison algorithm to obtain a target calculation result; and obtaining a target judgment result based on the target calculation result.

[0047] In an optional embodiment, both the first published result and the second published result databases are ORACLE databases, involving multiple airlines, with a total table number of more than 3,000, a data volume of several billion, and a table capacity of several terabytes. To compare in real time whether there are differences between the two databases (i.e., the first published result and the second published result) of the same data source file of the same airline after being imported into the two versions of the system, the traditional solution cannot compare. Therefore, the embodiment of the present application makes full use of the database's own capabilities to perform data comparison on the server side, and establishes a connection between different databases (i.e., the first published result and the second published result) based on the DBLINK technology. Then, the data of another database instance is accessed in one database instance based on the mapping relationship through SQL statements. And the first calculation result obtained by subtracting the first published result and the second published result, as well as the second calculation result obtained by subtracting the second published result from the first published result, are calculated respectively through SQL statements, and the target calculation result is obtained through comprehensive analysis of the first calculation result and the second calculation result, and then the target judgment result is obtained.

[0048] The first published result and the second published result in the ORACLE database are compared through the target query comparison algorithm, avoiding the problem of excessive resource consumption caused by comparison on the client.

[0049] Optionally, in the testing method of the freight rate publishing system provided in the embodiment of the present application, obtaining the target judgment result based on the target calculation result includes: judging whether the target calculation result and a preset value are equal to obtain an initial judgment result; if the initial judgment result indicates that the target calculation result and the preset value are equal, then determining that the target judgment result is the same as the first publishing result and the second publishing result; if the initial judgment result indicates that the target calculation result and the preset value are not equal, then determining that the target judgment result is the same as the first publishing result and the second publishing result.

[0050] In an optional embodiment, it is determined whether a first calculation result obtained by subtracting the first publication result from the second publication result is 0 (i.e., a preset value): if the first calculation result is not 0, it is characterized that the target judgment result is that the first publication result and the second publication result are different; if the first calculation result is 0, it is further determined whether a second calculation result obtained by subtracting the second publication result from the first publication result is 0: if the second calculation result is 0, it is characterized that the target judgment result is that the first publication result and the second publication result are the same; if the second calculation result is not 0, it is characterized that the target judgment result is that the first publication result and the second publication result are different.

[0051] Through the relationship between the preset numerical value and the target calculation result, it is possible to accurately and quickly determine whether the first published result and the second published result are the same.

[0052] Optionally, in the testing method for the freight rate publishing system provided in the embodiment of the present application, after determining that the target test result of the freight rate publishing system to be tested is that the test fails, the method further includes: determining difference information between the freight rate publishing system to be tested and the historical freight rate publishing system based on the first publishing result and the second publishing result; and optimizing the freight rate publishing system to be tested based on the difference information.

[0053] In an optional embodiment, if the target test result of the freight rate publishing system to be tested is that the test fails, the SQL statement merges the difference results based on the first calculation result obtained by subtracting the first publishing result from the second publishing result, and the second calculation result obtained by subtracting the second publishing result from the first publishing result, to obtain difference information, and feeds back the difference information to the developer to optimize the freight rate publishing system to be tested.

[0054] By analyzing the difference information, developers can accurately and quickly optimize the freight rate publishing system to be tested, thereby improving the working efficiency and accuracy of the freight rate publishing system.

[0055] Optionally, in the testing method of the fare publishing system provided in the embodiment of the present application, before publishing the target aviation business data according to the fare publishing system to be tested to obtain a first publishing result, the method also includes: obtaining initial aviation business data corresponding to multiple airlines; classifying the initial aviation business data according to time batches of the aviation business data to obtain classified initial aviation business data; and classifying the classified initial aviation business data according to the data format of the aviation business data to obtain target aviation business data.

[0056] In an optional embodiment, Figure 3 FIG. 1 is a schematic diagram of classifying initial aviation business data according to an embodiment of the present application. Figure 3 As shown, before formally executing the regression test, the test data needs to be classified and processed first. Since the test data of the embodiment of the present application is an airline source file (i.e., initial aviation business data) produced synchronously in real time, it has the characteristics of many files, large data volume, and high frequency. If the file is simply placed in the airline's own folder, the business consistency of the freight rate data is difficult to ensure, so a new data partitioning method needs to be considered. The source files of each airline are divided according to time batches (for example: 202312312359001, 202312312359001, etc.) to obtain the classified initial aviation business data, and the classified initial aviation business data is classified according to the data format (for example: xml format, json format, etc.) to obtain the target aviation business data. The data files released by each airline in each batch are gathered together, and the import process is performed once later.

[0057] By combining the freight rate business and performing multi-level classification of airline and freight rate data types, the business consistency of freight rate data is efficiently ensured.

[0058] Optionally, in the testing method for the fare publishing system provided in the embodiment of the present application, publishing the target air business data according to the fare publishing system to be tested to obtain a first publishing result includes: performing a scheduling operation on the target air business data according to the scheduling cluster in the fare publishing system to be tested to obtain first air business data; performing verification processing on the first air business data according to the verification processing cluster in the fare publishing system to be tested to obtain second air business data; publishing the second air business data according to the data submission cluster in the fare publishing system to be tested to obtain the first publishing result.

[0059] In an optional embodiment, there are multiple working clusters in the freight rate publishing system to be tested, including but not limited to: a scheduling cluster, a verification cluster and a submission cluster. The scheduling cluster is a component within the system, responsible for scheduling the target aviation business data (for example: data sorting, priority allocation, etc.). The verification processing cluster is responsible for verifying the first aviation business data (for example: checking the accuracy, completeness and consistency of the verification data, etc.). The data submission cluster is responsible for the final release of the verified data.

[0060] Through multiple functional modules such as the scheduling cluster, verification cluster and submission cluster, the freight rate publishing system to be tested can quickly publish the target aviation business data and accurately obtain the first publishing result.

[0061] It should be noted that Figure 4 Schematic diagram of a test method for a freight rate publishing system according to an embodiment of the present application. Figure 4As shown, the freight rate publishing system processes data files in XML or JSON format. For regression testing, the embodiment of the present application selects real production data as test data, which can effectively solve the problem that manually constructed test data cannot cover various complex combination scenarios of the production system, and can also liberate testers from the heavy work of constructing test data. Since data is constantly imported and processed in the production system at all times, the embodiment of the present application needs to classify the test data before formally executing the regression test. By combining the freight rate business, multi-level classification is performed on airlines and freight rate data types to ensure the business consistency of freight rate data. In the embodiment of the present application, the automated testing tool is a core component responsible for scheduling data source files to arrive at the designated folders of the new and old versions of the system to perform import processing. Then, the contents of the two databases are directly compared to generate comparison results. If the comparison results are consistent, it means that the functions of the new and old versions are consistent and the regression test passes; if the comparison results are biased, the testing tool will record the specific differences in detail for developers to analyze and debug.

[0062] It should be noted that Figure 5 Schematic diagram of the time consumption of full comparison and incremental comparison according to the embodiment of the present application. Figure 5 As shown, for relatively stable and less changing data sets, full comparison has problems of data redundancy and repeated comparison. When only part of the data changes, full comparison still needs to compare all the data, wasting computing resources and time. In order to further reduce the amount of data transmission and improve test efficiency, an incremental comparison strategy is introduced for some large data tables to quickly capture and compare the latest data changes and achieve real-time data synchronization. Incremental comparison only processes newly added or modified data, and can complete the comparison task faster than full comparison. In an embodiment of the present application, a full comparison and incremental comparison are used in parallel to process large data volumes and frequently updated data sets.

[0063] The test method of the fare publishing system provided in the embodiment of the present application is to publish the target aviation business data according to the fare publishing system to be tested, and obtain the first publishing result; obtain the second publishing result of the historical fare publishing system publishing the target aviation business data; obtain the target test result of the fare publishing system to be tested according to the first publishing result and the second publishing result, which solves the problem that the regression test efficiency of the fare publishing system is relatively low due to the manual regression test of the updated fare publishing system in the related technology. In summary, in this scheme, the fare publishing system to be tested and the historical fare publishing system are scheduled by the automated testing tool, and the target aviation business data are imported and published at the same time to obtain the first publishing result and the second publishing result. Then, by comparing the first publishing result and the second publishing result, the consistency of the functions of the new and old versions is verified, thereby completing the automated regression test of the fare publishing system to be tested. By comparing the first publishing result and the second publishing result, the complicated test scenario itself is jumped out to achieve the goal of regression testing. At the same time, the test can be performed continuously. As long as a new version of the freight rate publishing system is developed, it can be compared with the historical version of the freight rate publishing system. The testing method is flexible and efficient, which effectively improves the regression testing efficiency of the freight rate publishing system.

[0064] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0065] The embodiment of the present application also provides a test device for the freight rate publishing system. It should be noted that the test device for the freight rate publishing system of the embodiment of the present application can be used to execute the test method for the freight rate publishing system provided by the embodiment of the present application. The test device for the freight rate publishing system provided by the embodiment of the present application is introduced below.

[0066] Figure 6 Schematic diagram of a test device for a freight rate publishing system according to an embodiment of the present application. Figure 6 As shown, the device includes: a publishing unit 601, a first acquiring unit 602, and a first determining unit 603.

[0067] A publishing unit 601 is used to publish target aviation business data according to the freight rate publishing system to be tested to obtain a first publishing result;

[0068] The first acquisition unit 602 is used to acquire a second publishing result of the historical freight rate publishing system publishing the target aviation business data;

[0069] The first determining unit 603 is used to obtain a target test result of the freight rate publishing system to be tested according to the first publishing result and the second publishing result.

[0070] The test device of the fare publishing system provided in the embodiment of the present application includes a publishing unit 601, which is used to publish the target air business data according to the fare publishing system to be tested, and obtain a first publishing result; a first obtaining unit 602, which is used to obtain the second publishing result of the historical fare publishing system publishing the target air business data; and a first determining unit 603, which is used to obtain the target test result of the fare publishing system to be tested according to the first publishing result and the second publishing result, so as to solve the problem that the regression test efficiency of the fare publishing system is relatively low due to the manual regression test of the updated fare publishing system in the related art. In this scheme, the fare publishing system to be tested and the historical fare publishing system are scheduled by an automated testing tool, and the target air business data are imported and published at the same time to obtain the first publishing result and the second publishing result. Then, by comparing the first publishing result and the second publishing result, the consistency of the functions of the new and old versions is verified, so as to complete the automated regression test of the fare publishing system to be tested. By comparing the first publishing result and the second publishing result, the complicated test scenario itself is jumped out to achieve the goal of regression testing. At the same time, the test can be performed continuously. As long as a new version of the freight rate publishing system is developed, it can be compared with the historical version of the freight rate publishing system. The testing method is flexible and efficient, which effectively improves the regression testing efficiency of the freight rate publishing system.

[0071] Optionally, in the test device of the freight rate publishing system provided in the embodiment of the present application, the first determination unit includes: a judgment module, used to determine whether the first publishing result and the second publishing result are the same through a target query comparison algorithm to obtain a target judgment result; a first determination module, used to determine that the target test result of the freight rate publishing system to be tested is a test pass if the target judgment result indicates that the first publishing result and the second publishing result are the same; and a second determination module, used to determine that the target test result of the freight rate publishing system to be tested is a test fail if the target judgment result indicates that the first publishing result and the second publishing result are different.

[0072] Optionally, in the test device of the freight rate publishing system provided in the embodiment of the present application, the judgment module includes: a mapping submodule, used to establish a mapping between the first publishing result and the second publishing result to obtain a mapping relationship; a calculation submodule, used to calculate the first publishing result and the second publishing result based on the mapping relationship through a target query comparison algorithm to obtain a target calculation result; a determination submodule, used to obtain a target judgment result based on the target calculation result.

[0073] Optionally, in the test device of the freight rate publishing system provided in the embodiment of the present application, the determination submodule includes: a judgment submodule, used to judge whether the target calculation result and the preset value are equal to obtain an initial judgment result; a first determination submodule, used to determine that the target judgment result is the same as the first publishing result and the second publishing result if the initial judgment result indicates that the target calculation result and the preset value are equal; and a second determination submodule, used to determine that the target judgment result is different from the first publishing result and the second publishing result if the initial judgment result indicates that the target calculation result and the preset value are not equal.

[0074] Optionally, in the testing device for the freight rate publishing system provided in the embodiment of the present application, the device further includes: a second determination unit, for determining, after determining that the target test result of the freight rate publishing system to be tested is a test failure, difference information between the freight rate publishing system to be tested and the historical freight rate publishing system based on the first publishing result and the second publishing result; and an optimization unit, for optimizing the freight rate publishing system to be tested based on the difference information.

[0075] Optionally, in the test device of the fare publishing system provided in the embodiment of the present application, the device also includes: a second acquisition unit, used to obtain initial aviation business data corresponding to multiple airlines before publishing the target aviation business data according to the fare publishing system to be tested and obtaining a first publishing result; a first classification unit, used to classify the initial aviation business data according to time batches of the aviation business data to obtain classified initial aviation business data; and a second classification unit, used to classify the classified initial aviation business data according to the data format of the aviation business data to obtain target aviation business data.

[0076] Optionally, in the test device of the fare publishing system provided in the embodiment of the present application, the publishing unit includes: a scheduling module, used to perform scheduling operations on the target aviation business data according to the scheduling cluster in the fare publishing system to be tested, so as to obtain first aviation business data; a verification module, used to perform verification processing on the first aviation business data according to the verification processing cluster in the fare publishing system to be tested, so as to obtain second aviation business data; and a publishing module, used to publish the second aviation business data according to the data submission cluster in the fare publishing system to be tested, so as to obtain a first publishing result.

[0077] The testing device of the freight rate publishing system includes a processor and a memory. The above-mentioned publishing unit 601, the first acquisition unit 602, the first determination unit 603, etc. are all stored in the memory as program units. The processor executes the above-mentioned program units stored in the memory to realize efficient testing of the freight rate publishing system.

[0078] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and efficient testing of the application theme can be achieved by adjusting kernel parameters.

[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0080] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a test method for a freight rate publishing system is implemented.

[0081] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a test method of a freight rate publishing system when the program is running.

[0082] like Figure 7 As shown, an embodiment of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: publishing target air business data according to the fare publishing system to be tested to obtain a first publishing result; obtaining a second publishing result of the target air business data published by the historical fare publishing system; and obtaining a target test result of the fare publishing system to be tested according to the first publishing result and the second publishing result.

[0083] Optionally, obtaining a target test result of the freight rate publishing system to be tested based on the first publishing result and the second publishing result includes: determining whether the first publishing result and the second publishing result are the same through a target query comparison algorithm to obtain a target judgment result; if the target judgment result indicates that the first publishing result and the second publishing result are the same, determining that the target test result of the freight rate publishing system to be tested is a test pass; if the target judgment result indicates that the first publishing result and the second publishing result are different, determining that the target test result of the freight rate publishing system to be tested is a test fail.

[0084] Optionally, a target query comparison algorithm is used to determine whether the first published result and the second published result are the same, and the target judgment result includes: establishing a mapping between the first published result and the second published result to obtain a mapping relationship; calculating the first published result and the second published result based on the mapping relationship through a target query comparison algorithm to obtain a target calculation result; and obtaining a target judgment result based on the target calculation result.

[0085] Optionally, based on the target calculation result, obtaining the target judgment result includes: judging whether the target calculation result and a preset value are equal to obtain an initial judgment result; if the initial judgment result indicates that the target calculation result and the preset value are equal, then determining that the target judgment result is the same as the first publication result and the second publication result; if the initial judgment result indicates that the target calculation result and the preset value are not equal, then determining that the target judgment result is the same as the first publication result and the second publication result.

[0086] Optionally, after determining that the target test result of the freight rate publishing system to be tested is test failure, the method further includes: determining difference information between the freight rate publishing system to be tested and the historical freight rate publishing system based on the first publishing result and the second publishing result; and optimizing the freight rate publishing system to be tested based on the difference information.

[0087] Optionally, before publishing the target aviation business data according to the fare publishing system to be tested and obtaining the first publishing result, the method also includes: obtaining initial aviation business data corresponding to multiple airlines; classifying the initial aviation business data according to time batches of the aviation business data to obtain classified initial aviation business data; classifying the classified initial aviation business data according to the data format of the aviation business data to obtain target aviation business data.

[0088] Optionally, publishing the target air business data according to the fare publishing system to be tested to obtain a first publishing result includes: performing a scheduling operation on the target air business data according to a scheduling cluster in the fare publishing system to be tested to obtain first air business data; performing verification processing on the first air business data according to a verification processing cluster in the fare publishing system to be tested to obtain second air business data; publishing the second air business data according to a data submission cluster in the fare publishing system to be tested to obtain the first publishing result.

[0089] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0090] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: publishing target aviation business data according to the fare publishing system to be tested to obtain a first publishing result; obtaining a second publishing result of the target aviation business data published by a historical fare publishing system; and obtaining a target test result of the fare publishing system to be tested based on the first publishing result and the second publishing result.

[0091] Optionally, obtaining a target test result of the freight rate publishing system to be tested based on the first publishing result and the second publishing result includes: determining whether the first publishing result and the second publishing result are the same through a target query comparison algorithm to obtain a target judgment result; if the target judgment result indicates that the first publishing result and the second publishing result are the same, determining that the target test result of the freight rate publishing system to be tested is a test pass; if the target judgment result indicates that the first publishing result and the second publishing result are different, determining that the target test result of the freight rate publishing system to be tested is a test fail.

[0092] Optionally, a target query comparison algorithm is used to determine whether the first published result and the second published result are the same, and the target judgment result includes: establishing a mapping between the first published result and the second published result to obtain a mapping relationship; calculating the first published result and the second published result based on the mapping relationship through a target query comparison algorithm to obtain a target calculation result; and obtaining a target judgment result based on the target calculation result.

[0093] Optionally, based on the target calculation result, obtaining the target judgment result includes: judging whether the target calculation result and a preset value are equal to obtain an initial judgment result; if the initial judgment result indicates that the target calculation result and the preset value are equal, then determining that the target judgment result is the same as the first publication result and the second publication result; if the initial judgment result indicates that the target calculation result and the preset value are not equal, then determining that the target judgment result is the same as the first publication result and the second publication result.

[0094] Optionally, after determining that the target test result of the freight rate publishing system to be tested is test failure, the method further includes: determining difference information between the freight rate publishing system to be tested and the historical freight rate publishing system based on the first publishing result and the second publishing result; and optimizing the freight rate publishing system to be tested based on the difference information.

[0095] Optionally, before publishing the target aviation business data according to the fare publishing system to be tested and obtaining the first publishing result, the method also includes: obtaining initial aviation business data corresponding to multiple airlines; classifying the initial aviation business data according to time batches of the aviation business data to obtain classified initial aviation business data; classifying the classified initial aviation business data according to the data format of the aviation business data to obtain target aviation business data.

[0096] Optionally, publishing the target air business data according to the fare publishing system to be tested to obtain a first publishing result includes: performing a scheduling operation on the target air business data according to a scheduling cluster in the fare publishing system to be tested to obtain first air business data; performing verification processing on the first air business data according to a verification processing cluster in the fare publishing system to be tested to obtain second air business data; publishing the second air business data according to a data submission cluster in the fare publishing system to be tested to obtain the first publishing result.

[0097] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0098] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0099] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0101] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0102] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0103] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0104] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0106] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A testing method for a freight rate publishing system, characterized in that: include: Publish the target aviation business data according to the freight rate publishing system to be tested, and obtain the first publishing result; Obtaining a second publishing result of the target aviation business data published by the historical freight rate publishing system; According to the first publishing result and the second publishing result, a target test result of the freight rate publishing system to be tested is obtained.

2. The method according to claim 1, characterized in that Obtaining target test results of the freight rate publishing system to be tested based on the first publishing result and the second publishing result includes: Determine whether the first published result and the second published result are the same by a target query comparison algorithm, and obtain a target determination result; If the target judgment result indicates that the first publishing result and the second publishing result are the same, determining that the target test result of the freight rate publishing system to be tested is a test pass; If the target judgment result indicates that the first publishing result and the second publishing result are different, it is determined that the target test result of the freight rate publishing system to be tested is a test failure.

3. The method according to claim 2, characterized in that Determining whether the first published result and the second published result are the same by using a target query comparison algorithm, and obtaining a target determination result includes: Establishing a mapping between the first publishing result and the second publishing result to obtain a mapping relationship; Calculate the first published result and the second published result based on the mapping relationship by using the target query comparison algorithm to obtain a target calculation result; The target judgment result is obtained according to the target calculation result.

4. The method according to claim 3, characterized in that Obtaining the target judgment result according to the target calculation result includes: Determine whether the target calculation result is equal to a preset value, and obtain an initial determination result; If the initial judgment result indicates that the target calculation result is equal to the preset value, determining that the target judgment result is that the first publishing result is the same as the second publishing result; If the initial judgment result indicates that the target calculation result is not equal to the preset value, then the target judgment result is determined to be that the first publishing result is different from the second publishing result.

5. The method according to claim 2, characterized in that: After determining that the target test result of the freight rate publishing system to be tested is a test failure, the method further includes: Determining difference information between the freight rate publishing system to be tested and the historical freight rate publishing system according to the first publishing result and the second publishing result; The freight rate publishing system to be tested is optimized according to the difference information.

6. The method according to claim 1, characterized in that Before publishing the target aviation business data according to the freight rate publishing system to be tested and obtaining the first publishing result, the method further includes: Obtain initial aviation business data corresponding to multiple airlines; Classifying the initial aviation business data according to the time batches of the aviation business data to obtain classified initial aviation business data; The classified initial aviation business data is classified according to the data format of the aviation business data to obtain the target aviation business data.

7. The method according to claim 1, characterized in that The target aviation business data is published according to the freight rate publishing system to be tested, and the first publishing result includes: Performing a scheduling operation on the target aviation business data according to the scheduling cluster in the freight rate publishing system to be tested to obtain first aviation business data; Performing verification processing on the first aviation business data according to the verification processing cluster in the freight rate publishing system to be tested to obtain second aviation business data; The second aviation business data is published according to the data submission cluster in the freight rate publishing system to be tested to obtain the first publishing result.

8. A testing device for a freight rate publishing system, characterized in that: include: A publishing unit, used for publishing target aviation business data according to the freight rate publishing system to be tested, and obtaining a first publishing result; A first acquisition unit is used to acquire a second publishing result of the target aviation business data published by the historical freight rate publishing system; The first determining unit is used to obtain a target test result of the freight rate publishing system to be tested according to the first publishing result and the second publishing result.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the storage medium is controlled to execute the testing method of the freight rate publishing system according to any one of claims 1 to 7 on the device.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the testing method of the freight rate publishing system according to any one of claims 1 to 7.

Citation Information

Cited By

  • Storage system testing method and device for storage equipment

    CN119883770A