CN112965904B - Seat map system testing method and device, storage medium and electronic equipment - Google Patents

Seat map system testing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112965904B
CN112965904B CN202110260543.7A CN202110260543A CN112965904B CN 112965904 B CN112965904 B CN 112965904B CN 202110260543 A CN202110260543 A CN 202110260543A CN 112965904 B CN112965904 B CN 112965904B
Authority
CN
China
Prior art keywords
seat
information
flight
row
information corresponding
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.)
Active
Application number
CN202110260543.7A
Other languages
Chinese (zh)
Other versions
CN112965904A (en
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.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202110260543.7A priority Critical patent/CN112965904B/en
Publication of CN112965904A publication Critical patent/CN112965904A/en
Application granted granted Critical
Publication of CN112965904B publication Critical patent/CN112965904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a test method and a device of a seat map system, a storage medium and electronic equipment, wherein first flight information, second flight information, first aviation section information and second aviation section information corresponding to a flight and first cabin information, second cabin information, first seat information and second seat information corresponding to each aviation section of the flight are determined through message information of a flight seat map before and after system upgrading and a preset information processing strategy. And comparing the first flight information and the first navigation section information with the second flight information and the second navigation section information respectively, and comparing the first cabin information and the first seat information corresponding to each navigation section with the second cabin information and the second seat information corresponding to each navigation section respectively. And determining a test result of the system according to each comparison result. Based on the method provided by the invention, in the testing process of the system, the information comparison is not needed to be manually carried out, the time consumption is less, and the testing efficiency and accuracy are higher.

Description

Seat map system testing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and apparatus for testing a seat map system, a storage medium, and an electronic device.
Background
In the management and control system of flights, a seat diagram system of flights is one of important components. The seat diagram system of the flight not only comprises a graphical display interface facing passengers and flight control personnel, but also carries the processing work of various aviation businesses.
With the development of aviation services, the functions to be implemented by the seat diagram system are increasing, and the system is often required to be upgraded so that the system can implement new service functions. In order to ensure the normal operation of the system, the upgraded system is usually required to be tested.
In the existing test process of the seat map system, usually, staff compares the data of the updated flight seat map with the data of the original flight seat map to test whether the system can realize the basic service function of the original system. The manual comparison method for testing generally requires a lot of time, and the accuracy of the test is low.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a testing method of a seat diagram system, so as to solve the problems that a lot of time is required to be consumed in a mode of manually comparing data to realize testing and the accuracy of testing is low.
The embodiment of the invention also provides a testing device of the seat diagram system, which is used for ensuring the practical implementation and application of the method.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
the first aspect of the invention discloses a method for testing a seat diagram system, which comprises the following steps:
under the condition that a seat map system completes a current upgrading process, determining first seat map information and second seat map information corresponding to flights, wherein the first seat map information is message information of a seat map corresponding to the flights before the current upgrading process, and the second seat map information is message information of the seat map corresponding to the flights after the current upgrading process;
determining first flight information and first aviation section information corresponding to the flights, and first cabin information and first seat information corresponding to each aviation section of the flights according to a preset information processing strategy and the first seat diagram information;
determining second flight information and second aviation section information corresponding to the flights, and second cabin information and second seat information corresponding to each aviation section of the flights according to the information processing strategy and the second seat diagram information;
Comparing the first flight information with the second flight information to obtain a first comparison result;
comparing the first navigation section information with the second navigation section information to obtain a second comparison result;
comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to each aviation section to obtain a third comparison result, and comparing the first seat information corresponding to each aviation section with the second seat information corresponding to each aviation section to obtain a fourth comparison result;
and determining a test result corresponding to the current upgrading process of the seat map system according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
In a second aspect, the invention discloses a test device for a seat diagram system, comprising:
the first determining unit is used for determining first seat map information and second seat map information corresponding to flights under the condition that the seat map system completes the current upgrading process, wherein the first seat map information is message information of the seat map corresponding to the flights before the current upgrading process, and the second seat map information is message information of the seat map corresponding to the flights after the current upgrading process;
The second determining unit is used for determining first flight information and first aviation section information corresponding to the flights and first cabin information and first seat information corresponding to each aviation section of the flights according to a preset information processing strategy and the first seat diagram information;
a third determining unit, configured to determine second flight information and second aviation node information corresponding to the flights, and second cabin information and second seat information corresponding to each aviation node of the flights according to the information processing policy and the second seat map information;
the first comparison unit is used for comparing the first flight information with the second flight information to obtain a first comparison result;
the second comparison unit is used for comparing the first navigation section information with the second navigation section information to obtain a second comparison result;
the third comparison unit is used for comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to the aviation section to obtain a third comparison result, and comparing the first seat information corresponding to the aviation section with the second seat information corresponding to the aviation section to obtain a fourth comparison result;
And the fourth determining unit is used for determining a test result corresponding to the current upgrading process of the seat map system according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
A third aspect of the present invention discloses a storage medium, which includes stored instructions, where the instructions, when executed, control a device in which the storage medium is located to perform a method for testing a seat diagram system as described above.
In a fourth aspect, the invention discloses an electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the above-described method of testing a seat diagram system.
Compared with the prior art, the invention has the following advantages:
the invention provides a seat diagram system testing method and device, a storage medium and electronic equipment, wherein the method comprises the following steps: under the condition that the system finishes the current upgrading process, determining the message information of the flight seat map corresponding to the flight before the system is upgraded and the message information of the flight seat map corresponding to the flight after the system is upgraded, and taking the message information as the first seat map information and the second seat map information respectively. And determining first flight information, second flight information, first navigation section information and second navigation section information corresponding to the flight, and first cabin information, second cabin information, first seat information and second seat information corresponding to each navigation section of the flight according to the first seat diagram information, the second seat diagram information and a preset information processing strategy. Comparing the first flight information with the second flight information, comparing the first aviation section information with the second aviation section information, comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to each aviation section, comparing the first seat information corresponding to each aviation section with the second seat information corresponding to each aviation section, and determining a test result corresponding to the current upgrading process of the seat map system according to each comparison result. Based on the scheme provided by the invention, under the condition that the system is upgraded, the information to be compared is determined based on the message information of the flight seat maps before and after the upgrade and the preset information processing strategy, and the information to be compared is respectively compared to determine the test result, so that the comparison by manpower is not needed, the time consumption is less, the test efficiency is high, the manual erroneous judgment can be avoided, and the test accuracy is higher.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for testing a seat diagram system according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for testing a seat diagram system according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for testing a seat diagram system according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a testing device of a seat diagram system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like herein are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by such devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those skilled in the art will appreciate that "one or more" is intended to be construed as "one or more" unless the context clearly indicates otherwise.
The flight seat map refers to the seat layout situation for representing flights, including cabin seats, seat rows, aisles, various on-board devices and the like, and is a graphical display tool, and a corresponding seat map system realizes flight service functions based on the flight seat map. As known from the background art, the seat map system is subject to continuous upgrading and reformation of functions, for example, various seat booking upgrading services are added, the interface design is changed after the system is upgraded, the interface messages corresponding to the new and old flight seat maps are required to be compared, so that whether the original basic functions can be realized by the test system or not is required, the actual flight seat maps relate to various information, the comparison is very time-consuming by manpower, logic judgment work exists in the comparison process, and if logic understanding deviation exists for staff, the comparison result is possibly inaccurate, and then the test result is inaccurate.
Accordingly, an embodiment of the present invention provides a method for testing a seat map system, where the method may be applied to a seat map system testing system, and an execution subject of the method may be a processor running on a computer, and a flowchart of the seat map system testing method is shown in fig. 1, where the method includes:
s101: under the condition that a seat map system completes a current upgrading process, determining first seat map information and second seat map information corresponding to flights, wherein the first seat map information is message information of a seat map corresponding to the flights before the current upgrading process, and the second seat map information is message information of the seat map corresponding to the flights after the current upgrading process;
in the method provided by the embodiment of the invention, after a user upgrades the seat map system according to service requirements, a test request can be sent through the front end of the test system, and after the processor of the test system receives the test request, the test request can be analyzed to obtain the message information of the flight seat map, which is imported by the user through the front end, before the current upgrade process of the seat map system and after the upgrade, wherein the message information is an interface message of the flight seat map.
S102: determining first flight information and first aviation section information corresponding to the flights, and first cabin information and first seat information corresponding to each aviation section of the flights according to a preset information processing strategy and the first seat diagram information;
in the method provided by the embodiment of the invention, the user can preset the information processing strategy in advance according to the interface message design before and after the upgrade of the seat diagram system. And carrying out information analysis processing on the first seat map information according to a preset information processing strategy, and determining first flight information, first aviation section information, first cabin information and first seat information corresponding to each aviation section corresponding to the flight. The flight information is basic information of the flight, such as a flight number, a flight date, and the like. The aviation section information is basic information of each aviation section of the flight, and the aviation section of the flight refers to an actual flight interval from a departure point to a corresponding drop point, namely a flight aviation section, of an aircraft executing the flight. The cabin information corresponding to each aviation section is basic information of each cabin level of the cabin in the aviation section, and the seat information is basic information about seat layout in the cabin in the aviation section.
It should be noted that in the actual processing process, there may be multiple airlines or only one airline, and the number of airlines does not affect the implementation function of the method provided by the embodiment of the present invention.
S103: determining second flight information and second aviation section information corresponding to the flights, and second cabin information and second seat information corresponding to each aviation section of the flights according to the information processing strategy and the second seat diagram information;
in the method provided by the embodiment of the present invention, the information analysis processing may be performed on the second flight seat map information according to the preset information processing policy mentioned in step S102, so as to determine the second flight information, the second navigation section information, the second cabin information and the second seat information corresponding to each navigation section corresponding to the flight. The specific meaning of each type of information is the same as that of each type of information corresponding to step S102, and reference is made to the above description, and details are not repeated here.
S104: comparing the first flight information with the second flight information to obtain a first comparison result;
in the method provided by the embodiment of the invention, the content with the same attribute corresponding to the first flight information and the second flight information can be respectively compared, for example, the information such as the flight number, the suffix of the flight number and the flight date in the first flight information is respectively compared with the information such as the flight number, the suffix of the flight number and the flight date in the second flight information. The flight number suffix is a character that characterizes the nature of the flight, and if the flight is an airline flight, there will be a special character that characterizes it as an airline flight.
After comparison, determining comparison results of the two pieces of flight information, outputting specific data information of comparison failure if different data items exist in the comparison process of the data items, and outputting a comparison success result if all the information is the same.
S105: comparing the first navigation section information with the second navigation section information to obtain a second comparison result;
in the method provided by the embodiment of the invention, the content of the first navigation section information and the content of the second navigation section information, which correspond to the same attribute, can be respectively compared, for example, the data item of the navigation section number representing the flight in the first navigation section information and the data item of the navigation section number representing the flight in the second navigation section information are compared, and the data item of the flight information representing the first navigation section of the flight in the first navigation section information and the data item of the flight information representing the first navigation section of the flight in the second navigation section information are compared. The process of determining the comparison result is the same as the principle of determining the comparison result in step S104, and reference may be made to the description in step S104, which is not repeated herein.
S106: comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to each aviation section to obtain a third comparison result, and comparing the first seat information corresponding to each aviation section with the second seat information corresponding to each aviation section to obtain a fourth comparison result;
In the method provided by the embodiment of the invention, the two cabin information corresponding to each aviation section can be compared, and the two seat information corresponding to each aviation section can be compared, wherein the compared information corresponds to the same type of information of the same aviation section. In the comparison process of the first and second cabin information corresponding to each aviation node, the content corresponding to the same attribute in the two information is respectively compared, for example, the data items representing the number of cabin bits in the two information are compared, and the cabin code representing the same cabin bit is compared and the like.
In the method provided by the embodiment of the invention, the seat information comprises the information corresponding to each seat row in the cabin and the information of each seat, and the data contents of the same attribute in the two seat information can be compared, for example, the row number and the row attribute of the same seat row in the two seat information are compared, the seat number and the seat attribute of the same seat are compared, and the like.
S107: and determining a test result corresponding to the current upgrading process of the seat map system according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
In the method provided by the embodiment of the invention, the corresponding test result can be determined according to the comparison result of various information, and the test result is fed back to the user. If all the comparison results represent that the information of the comparison pair is consistent, determining that the test result corresponding to the seat map system in the current upgrading process is test passing, if inconsistent data items exist in the information of the comparison pair represented by the comparison result, determining that the test result is test failing, integrating all inconsistent specific data contents in the information of the comparison pair, and sending all inconsistent specific data contents and the test result to a user.
Based on the method provided by the embodiment of the invention, under the condition that the seat map system finishes the current upgrading process, various information corresponding to the flight is respectively determined according to the message information of the seat map of the flight before and after the system is upgraded and the preset information processing strategy, the information of the same type of data corresponding to the flight is compared to obtain various comparison results, and the test result is determined based on the various comparison results. By applying the method provided by the embodiment of the invention, the information representing the same meaning in the message information of the flight seat bitmap before and after the system is upgraded can be compared to test whether the corresponding function can be realized after the system is upgraded, the comparison and judgment of the data are not needed to be manually carried out in the process, the time consumption is less, the test efficiency is high, the manual misjudgment can be avoided, and the test accuracy is effectively improved. In addition, under the condition of inconsistent information comparison, inconsistent information can be fed back to a user, so that the user can conveniently position the system function defects according to the information, and the system function design is perfected.
In the method provided by the embodiment of the invention, the principle of determining various types of information corresponding to a flight according to the preset information processing strategy and the first seat diagram information in the step S102 is the same as the principle of determining various types of information corresponding to the flight according to the strategy and the second seat diagram information in the step S103, and mainly, the data representing the same attribute in the first seat diagram information and the second seat diagram information are processed into a unified data structure through a unified information processing mode so as to be compared. In order to better explain the information processing procedure provided by the embodiments of the present invention, the procedure of determining various kinds of information from the first seat map information mentioned in step S102 will be described next by the respective embodiments. The manner of determining the various types of information according to the second seat diagram information mentioned in step S103 may be the manner mentioned in each embodiment of determining the various types of information according to the first seat diagram information, which is not described herein.
On the basis of the method shown in fig. 1, an embodiment of the present invention provides a method for testing a seat diagram system, where the determining process of the first flight information corresponding to the flight mentioned in step S102 includes:
acquiring flight basic information corresponding to the flight from the first seat diagram information;
in the method provided by the embodiment of the invention, the first seat diagram information can be analyzed, and the basic information of the flight, such as the flight number, the flight date and the like, can be extracted from the first seat diagram information.
Determining the first digital character of the flight number in the flight basic information, and judging whether the first digital character is zero or not;
in the method provided by the embodiment of the invention, whether the first digit character of the flight number is zero is judged. In the data processing process of a service system in the civil aviation field, zero is sometimes filled in the high position of the flight number when the characters of the flight number of the flight are less than three. For example, the flight number is CA11, which may be defined as CA011 in a field of the message, or may be defined as CA11.
If the first digital character is zero, deleting the first digital character of the flight number in the flight basic information to obtain processed flight basic information;
In the method provided by the embodiment of the invention, if the first digit character of the flight number is zero, the first character of the flight number in the flight basic information is deleted, and the processed flight basic information is obtained. For example, the analyzed flight basic information is "CA011, 2021.1.1", and the processed flight basic information is "CA11, 2021.1.1".
Judging whether a preset flight attribute character exists in the first seat diagram information;
in the method provided by the embodiment of the invention, whether the field for representing the preset flight attribute character exists in the first seat diagram information or not can be analyzed through the preset flight attribute character information, wherein the flight attribute character refers to a character for representing the special attribute of the flight, for example, the character A is used for representing the flight as the temporary flight. Typically, the character will exist in the form of a flight suffix in its flight number, and in the message design, it may exist in the form of a flight number suffix or in a separate field.
If the preset flight attribute characters exist in the first seat diagram information, acquiring the flight attribute characters contained in the first seat diagram information;
in the method provided by the embodiment of the invention, if the field for representing the flight attribute character exists in the first seat diagram information through analysis, the flight attribute character is acquired from the field.
And generating first flight information corresponding to the flight based on the processed flight basic information and the flight attribute characters contained in the first seat diagram information.
In the method provided by the embodiment of the invention, the flight attribute character can be used as the postfix of the flight number in the processed flight basic information. For example, based on the flight attribute character a and the processed flight basic information "CA11, 2021.1.1", the "CA11A,2021.1.1" is obtained as the first flight information corresponding to the flight.
Based on the method provided by the embodiment of the invention, the definition mode of the flight information can be designed based on different messages, the flight number and the flight number suffix in the flight information are processed, the formats of the data items expressing the same attribute content in the flight information are unified, the flight information is convenient to compare, and the comparison efficiency is improved.
Further, on the basis of the method shown in fig. 1, the embodiment of the present invention provides a method for testing a seat map system, where the determining process of the first navigation node information corresponding to the flight mentioned in step S102 includes:
determining the number of the airlines corresponding to the flights and the aviation section information corresponding to each aviation section based on the first seat diagram information, wherein the aviation section information corresponding to each aviation section comprises a take-off airport identifier, an arrival airport identifier, an airplane model, sales layout information and departure system version information corresponding to the aviation section;
And integrating the number of the navigation sections and the navigation section information of each navigation section in sequence to obtain first navigation section information corresponding to the flight.
In the method provided by the embodiment of the invention, the first seat diagram information can be analyzed, the number of the airlines corresponding to the flights is determined, the information of all the airlines in the first seat diagram information is traversed, the corresponding airlines of each airline are obtained, the data items representing the number of the airlines and the airlines of each airline are spliced and integrated in sequence according to a preset data splicing sequence to form a preset data structure, such as an ' number of the airlines ', a take-off airport identifier of the first airline, an arrival airport identifier, an airplane model … …, a take-off airport identifier of the second airlines, an arrival airport identifier and an airplane model … … '. And taking the spliced and integrated data as first navigation node information corresponding to the flight.
Based on the method provided by the embodiment of the invention, the information corresponding to each navigation node in the first flight seat map can be spliced and integrated to obtain the information expressed according to the preset data structure, thereby facilitating the comparison of the navigation node information and improving the comparison efficiency.
Further, on the basis of the method shown in fig. 1, the embodiment of the present invention provides another method for testing a seat diagram system, where the determining process of the first cabin information corresponding to each of the airlines of the flight mentioned in step S102 includes:
For each aeroplane section of the flight, determining the number of cabin cabins corresponding to the aeroplane section and the basic cabin information corresponding to each cabin according to the first seat diagram information;
in the method provided by the embodiment of the invention, in the process of analyzing the first seat diagram information and traversing the information of all the navigation nodes, the operation of each step in the embodiment of the invention is executed for the information of each navigation node. Specifically, the number of cabin bunkers corresponding to each aviation node is determined, and basic information of the bunkers corresponding to each cabin bunkers corresponding to the aviation node is obtained, wherein the basic information of the bunkers comprises a bunkers name, a bunkers code, a bunkers sequence and a row number range corresponding to the bunkers, namely, which rows of seats the bunkers comprise. The class of the cabin is usually provided with names such as first class cabin, business cabin or economy cabin, each class of cabin is also provided with a letter as a cabin code, for example, F is used for representing the first class cabin, J is used for representing the business cabin, Y is used for representing the economy cabin, and the like, each class of cabin also comprises seats with different cabin grades, the cabin grades are also identified by responsive codes, and the cabin sequence corresponding to each cabin is a sequence comprising all cabin grade codes of the cabin.
Determining a seat map type corresponding to the first seat map information, and judging whether the seat map type corresponding to the first seat map information is a seat map of a seat booking system;
in the method provided by the embodiment of the invention, the identification of the seat map type in the first seat map information can be obtained, and the seat map type of the seat map corresponding to the imported first seat map information of the user is determined according to the identification, such as the seat map of the seat booking system or the seat map of the departure system. Judging whether the seat map type is a seat map of the seat booking system, namely judging whether a message corresponding to the first seat map information is a message corresponding to a flight seat map applied to the seat booking system.
If the seat diagram type corresponding to the first seat diagram information is a seat booking system seat diagram, acquiring cabin column sign information corresponding to each cabin;
in the method provided by the embodiment of the invention, if the seat diagram type is a seat ordering system seat diagram, the cabin column label information corresponding to each cabin is obtained, wherein the information comprises label identification of each column in the cabin layout of the cabin, for example, the cabin column label information can be 'A, C, _B, E, D, _J, K', wherein capital letters represent actual seats in the column, the characters are column identifications of the seats in the column, and underlines represent aisles.
Judging whether a preset cabin level attribute exists in the cabin level for each cabin level corresponding to the aviation section, if so, determining an attribute parameter corresponding to the preset cabin level attribute, and integrating the attribute parameter corresponding to the preset cabin level attribute, the basic cabin level information corresponding to the cabin level and the cabin level label information to obtain cabin level information corresponding to the cabin level;
in the method provided by the embodiment of the invention, whether the attribute parameter representing the preset cabin level attribute exists in the related information of each cabin level corresponding to the navigation node in the first seat map information can be judged, so that whether the preset cabin level attribute exists or not is judged, the preset cabin level attribute is usually referred to as an upper deck cabin level, when the attribute parameter exists, the attribute parameter can be obtained, and the attribute parameter and other information corresponding to the cabin level are integrated according to a preset sequence, so that the cabin level information represented by a preset data structure is obtained.
In the actual business process, the upper deck bunk and other special bunk attributes are usually marked by letters, for example, the letter U is used for representing the upper deck bunk attribute, in the message design, the attribute can be an independent field, or can be directly integrated with a bunk code into one field, for example, the bunk code of one bunk is J, and meanwhile, the bunk is the upper deck bunk, and the field corresponding to the bunk code is UJ. If the field in the message is an independent field, it needs to be integrated.
And integrating the cabin level information corresponding to each cabin level corresponding to the aviation section in sequence to obtain first cabin level information corresponding to the aviation section.
In the method provided by the embodiment of the invention, the cabin information of each cabin is spliced and integrated according to the preset sequence to obtain the first cabin information corresponding to the aviation section.
Based on the method provided by the embodiment of the invention, the cabin information of each cabin can be spliced and integrated to obtain the information expressed according to the preset data structure, so that the comparison of the cabin information of each aviation section is facilitated, the comparison efficiency is improved, and in the process, the format unification processing is carried out on the information possibly with different message designs, so that the comparison accuracy is further ensured.
In order to better illustrate the method provided by the embodiment of the present invention, in conjunction with fig. 2, on the basis of the method shown in fig. 1, the embodiment of the present invention provides a further method for testing a seat map system, where the determining, in step S102, the process of determining the first seat information corresponding to each section of the flight includes:
s201: for each aviation section of the flight, determining basic information of each seat row corresponding to the aviation section according to the first seat diagram information;
In the method provided by the embodiment of the invention, each aviation node corresponding to the flight is subjected to data processing by adopting each step provided by the embodiment of the invention. Specifically, the basic information of each seat row of the navigation node is obtained from the first seat diagram information, wherein the basic information comprises row numbers, row attributes, front-back row information and the like of the seat row. A seat row is understood to mean a row of seats in the seat arrangement, i.e. a row. The row attribute refers to an attribute identifier that characterizes the row seat correspondence, such as BBR for baby major, QER for quiet rows, and WCR for seat rows near the toilet. The fore-aft information refers to the fact that there are several empty rows, i.e. row space without seats, in front of and behind the row of seats, in the seat map, the space layout in the cabin is represented by rows and columns.
S202: judging whether the first seat diagram information accords with a preset line attribute processing condition or not;
in the method provided by the embodiment of the invention, the test request sent by the user can be analyzed, and whether the test request contains the preset line attribute processing parameters or not is judged, wherein the parameters represent that the line attribute data in the seat diagram information need to be correspondingly processed. When the user passes the test request and enters the parameter, the seat diagram information is determined to accord with the preset row attribute processing condition.
S203: if the first seat diagram information accords with a preset line attribute processing condition, determining a seat diagram type corresponding to the first seat diagram information and a line attribute processing rule corresponding to the seat diagram type corresponding to the first seat diagram information;
in the method provided by the embodiment of the invention, in the actual business processing process, the corresponding attributes of the flight seat maps applied to different businesses are different, for example, in the messages of the seat booking map and the departure seat map, some attribute data about seat rows are different, and some row attribute data possibly existing in the messages of the seat booking map are not existing in the messages of the departure seat map. If the compared seat diagram information is the seat diagram information of two different service fields, the compared data attributes are unified according to the preset processing rules. If the first seat map information does not meet the line attribute processing condition, the process proceeds to step S205.
S204: processing the basic information of each seat row based on the row attribute processing rule, and taking the processed basic information of each seat row as first basic information corresponding to the seat row;
In the method provided by the embodiment of the invention, the basic information of each seat row is processed according to the preset row attribute processing rule, for example, some attribute data are removed. The line attribute processing rules are specifically determined according to the requirements of the service. For example, some sales-related line attributes are not present in the messages of the departure seat bitmap, and these attribute data need to be removed for the information of the seat reservation bitmap.
S205: judging whether the first seat diagram information accords with a preset data conversion condition or not;
in the method provided by the embodiment of the invention, whether the preset data conversion condition is met can be judged by determining the data expression mode in the first seat diagram information. For example, the information is compared in the form of character strings, and if the data in the first seat diagram information is expressed in a digital manner, the data is determined to meet the preset data conversion condition.
S206: if the first seat diagram information accords with a preset data conversion condition, carrying out data conversion on the first basic information corresponding to each seat row according to a preset data conversion rule, and taking the first basic information corresponding to the seat row after data conversion as seat row information corresponding to the seat row;
In the method provided by the embodiment of the invention, the expression mode of the first basic information corresponding to each seat row can be converted from numbers into character strings through the preset corresponding relation, and the converted information is used as seat row information corresponding to the seat row. If the first seat map information does not meet the line attribute processing condition, in this step, data conversion is performed on the basic information corresponding to each seat line.
S207: sequentially integrating the seat row information corresponding to each seat row corresponding to the navigation section to obtain the seat row total information corresponding to the navigation section;
in the method provided by the embodiment of the invention, the seat row information corresponding to each seat row is spliced and integrated in sequence according to the preset sequence.
S208: determining seat information corresponding to each seat row corresponding to the navigation section;
in the method provided by the embodiment of the invention, the seat information corresponding to each seat row can be further determined, wherein the seat information comprises the information of all seats in the row.
S209: and determining the total seat row information corresponding to the aviation section and the seat information corresponding to all the seat rows as first seat information corresponding to the aviation section of the flight.
In the method provided by the embodiment of the invention, the total seat row information and the seat information corresponding to all seat rows are used as the first seat information corresponding to the navigation section.
Based on the method provided by the embodiment of the invention, the seat row information corresponding to each seat row can be integrated to obtain the information expressed by the preset data structure, so that the comparison of the first seat information is facilitated, the seat row information and the seat information of the seat row are respectively determined, the content with larger data size is split, and the subsequent comparison efficiency is further improved.
Based on the method shown in fig. 2, in conjunction with fig. 3, another method for testing a seat map system is provided according to an embodiment of the present invention, where the determining, in step S208, the seat information corresponding to each seat row corresponding to the navigation node includes:
s301: for each seat row corresponding to the navigation section, determining basic information of each seat corresponding to the seat row according to the first seat diagram information;
in the method provided by the embodiment of the invention, for each seat row in each aviation section, each step provided by the embodiment of the invention is adopted for data processing. Specifically, basic information of each seat corresponding to the seat row is obtained from the first seat diagram information, and the basic information comprises a seat number, a seat attribute, a seat value identifier, a seat value priority identifier and the like. The seat number is an identifier characterized by a row number and a column identifier corresponding to the seat, such as "12A". The seat attributes are three-letter codes that characterize the particular attributes to which the seat corresponds, e.g., IRS indicates important passenger reserved seats, UMA indicates unattended child seats, etc. The seat value identifiers are uppercase letters, different letters characterize different seat values, and the seat value priority labels are represented by numbers, with priorities from low to high being represented by small to large.
S302: judging whether the first seat diagram information accords with preset seat attribute processing conditions or not;
in the method provided by the embodiment of the invention, whether the test request contains the predetermined seat attribute processing parameter can be judged, and the parameter represents that the seat attribute data in the seat map information needs to be correspondingly processed. If the parameter exists in the test request, determining that the first seat diagram information accords with the preset seat attribute processing condition. If the condition is not satisfied, the process proceeds to step S305.
S303: if the first seat map information accords with preset seat attribute processing conditions, determining a seat attribute processing rule corresponding to a seat map type corresponding to the first seat map information;
in the method provided by the embodiment of the invention, different seat attribute processing rules are preset for different types of seat diagrams, and the rules are also determined according to actual service requirements and mainly used for processing repulsive seat attributes. For example, in the seat attribute data of the departure seat map, if certain attribute data exists, the other attribute data needs to be ignored, and the seat attribute data is rejected in the processing process.
S304: processing the basic information of each seat based on the seat attribute processing rule, and taking the processed basic information of each seat as first basic information corresponding to the seat;
In the method provided by the embodiment of the invention, the corresponding attribute data in the basic information of each seat is processed according to the preset seat attribute processing rule.
S305: judging whether the first seat diagram information accords with preset seat data conversion conditions or not;
in the method provided by the embodiment of the present invention, the implementation principle of the step is the same as that of step S205 in the above embodiment, and reference may be made to the above description, which is not repeated here.
S306: if the first seat diagram information accords with a preset seat data conversion condition, carrying out data conversion on the first basic information corresponding to each seat according to the data conversion rule, and taking the first basic information corresponding to each seat after the data conversion as seat information corresponding to the seat;
in the method provided by the embodiment of the present invention, the implementation principle of the step is the same as that of step S206 in the above embodiment, and reference may be made to the above description, which is not repeated here. If the seat map information step does not meet the preset seat attribute processing conditions, the data conversion is performed on the basic information of each seat in the step.
S307: and integrating the seat information corresponding to each seat corresponding to the seat row in sequence to obtain the seat information corresponding to the seat row.
In the method provided by the embodiment of the invention, the seat information corresponding to each seat row can be spliced and integrated sequentially according to the preset sequence.
Based on the method provided by the embodiment of the invention, the seat information corresponding to each seat can be integrated to obtain the information expressed by the preset data structure, so that the comparison of the first seat information is facilitated, and the comparison efficiency is improved.
Further, on the basis of the above method, the embodiment of the present invention provides a testing method of a seat map system, where the comparing, in step S106, the first seat information corresponding to the navigation node with the second seat information corresponding to the navigation node includes:
determining first row information and second row information, wherein the first row information is seat row total information corresponding to the navigation section in the first seat information, the second row information is seat row total information corresponding to the navigation section in the second seat information, and comparing the first row information with the second row information to obtain a fifth comparison result;
In the method provided by the embodiment of the invention, each step in the method provided by the embodiment of the invention is adopted for each aviation section of the flight, and the corresponding information is compared. Specifically, the total seat row information corresponding to the navigation node in the first seat information is compared with the total seat row information corresponding to the navigation node in the second seat information, and the two pieces of information with the unified data structure are compared.
For each seat row of the navigation festival, determining seat information corresponding to the seat row in the first seat information, taking the seat information corresponding to the seat row in the first seat information as first seat information corresponding to the seat row, determining seat information corresponding to the seat row in the second seat information, taking the seat information corresponding to the seat row in the second seat information as second seat information corresponding to the seat row, and comparing the first seat information corresponding to each seat row with the second seat information corresponding to the seat row to obtain a comparison result corresponding to each seat row;
in the method provided by the embodiment of the invention, the seat information corresponding to the navigation node in the first seat information is compared with the seat information corresponding to the navigation node in the second seat information. Specifically, it may be determined whether the data sets characterizing the two information are identical, which have been unified in the data structure by the above determination method.
And determining the fourth comparison result according to the fifth comparison result and the comparison results corresponding to all the seat rows.
In the method provided by the embodiment of the invention, the comparison result of the total seat row information and the comparison results corresponding to all seat rows are used as fourth comparison results.
Based on the method provided by the embodiment of the invention, the two types of information represented by the same data structure in the first seat information and the second seat information can be respectively compared, so that the comparison efficiency can be improved, and the test efficiency can be further improved.
Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
Corresponding to the testing method of the seat diagram system shown in fig. 1, the embodiment of the invention further provides a testing device of the seat diagram system, which is used for implementing the method shown in fig. 1, and the testing device of the seat diagram system provided by the embodiment of the invention can be applied to a computer terminal or various mobile devices, and the structural schematic diagram of the testing device is shown in fig. 4, and includes:
A first determining unit 401, configured to determine, when the seat map system completes a current upgrade process, first seat map information and second seat map information corresponding to a flight, where the first seat map information is message information of a seat map corresponding to the flight before the current upgrade process, and the second seat map information is message information of a seat map corresponding to the flight after the current upgrade process;
a second determining unit 402, configured to determine, according to a preset information processing policy and the first seat map information, first flight information and first section information corresponding to the flight, and first cabin information and first seat information corresponding to each section of the flight;
a third determining unit 403, configured to determine, according to the information processing policy and the second seat map information, second flight information and second aviation section information corresponding to the flight, and second cabin information and second seat information corresponding to each of the aviation sections of the flight;
a first comparing unit 404, configured to compare the first flight information with the second flight information to obtain a first comparison result;
a second comparing unit 405, configured to compare the first section information with the second section information to obtain a second comparison result;
A third comparing unit 406, configured to compare, for each of the avionics nodes, the first cabin information corresponding to the avionics node with the second cabin information corresponding to the avionics node to obtain a third comparison result, and compare the first seat information corresponding to the avionics node with the second seat information corresponding to the avionics node to obtain a fourth comparison result;
the fourth determining unit 407 is configured to determine a test result corresponding to the current upgrade process of the seat map system according to the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result.
By applying the device provided by the embodiment of the invention, the information representing the same meaning in the message information of the flight seat bitmap before and after the system is upgraded can be compared to test whether the corresponding function can be realized after the system is upgraded, the comparison and judgment of the data are not needed to be manually carried out in the process, the time consumption is less, the test efficiency is high, the manual misjudgment can be avoided, and the test accuracy is effectively improved. In addition, under the condition of inconsistent information comparison, inconsistent information can be fed back to a user, so that the user can conveniently position the system function defects according to the information, and the system function design is perfected.
On the basis of the above apparatus, in the apparatus provided by the embodiment of the present invention, the second determining unit 402 includes:
the first acquisition subunit is used for acquiring flight basic information corresponding to the flight from the first seat diagram information;
the first judging subunit is used for determining the first digital character of the flight number in the flight basic information and judging whether the first digital character is zero or not;
the deleting subunit is used for deleting the first digital character of the flight number in the flight basic information if the first digital character is zero, so as to obtain the processed flight basic information;
the second judging subunit is used for judging whether the first seat diagram information contains preset flight attribute characters or not;
the second acquisition subunit is used for acquiring the flight attribute characters contained in the first seat diagram information if the preset flight attribute characters exist in the first seat diagram information;
and the generation subunit is used for generating first flight information corresponding to the flight based on the processed flight basic information and the flight attribute characters contained in the first seat diagram information.
On the basis of the above apparatus, in the apparatus provided by the embodiment of the present invention, the second determining unit 402 includes:
The first determining subunit is configured to determine, based on the first seat map information, the number of airlines corresponding to the flights and the airlines information corresponding to each airline, where the airlines information corresponding to each airline includes a departure airport identifier, an arrival airport identifier, an aircraft model, sales layout information, and departure system version information corresponding to the airlines;
and the first integration subunit is used for sequentially integrating the number of the navigation sections and the navigation section information of each navigation section to obtain first navigation section information corresponding to the flight.
On the basis of the above apparatus, in the apparatus provided by the embodiment of the present invention, the second determining unit 402 includes:
the second determining subunit is used for determining the number of cabin cabins corresponding to the airlines and the basic cabin information corresponding to each cabin according to the first seat diagram information for each airline of the flights;
a third judging subunit, configured to determine a seat map type corresponding to the first seat map information, and judge whether the seat map type corresponding to the first seat map information is a seat map of a seat booking system;
the third acquisition subunit is used for acquiring the cabin rank label information corresponding to each cabin if the seat diagram type corresponding to the first seat diagram information is a seat booking system seat diagram;
A third determining subunit, configured to determine, for each cabin space corresponding to the aeronautical node, whether a preset cabin space attribute exists in the cabin space, if the preset cabin space attribute exists in the cabin space, determine an attribute parameter corresponding to the preset cabin space attribute, and integrate the attribute parameter corresponding to the preset cabin space attribute, the cabin space basic information corresponding to the cabin space, and the cabin space label information, to obtain cabin space information corresponding to the cabin space;
and the second integration subunit is used for sequentially integrating the cabin level information corresponding to each cabin level corresponding to the aviation section to obtain the first cabin level information corresponding to the aviation section.
On the basis of the above apparatus, in the apparatus provided by the embodiment of the present invention, the second determining unit 402 includes:
a fourth determining subunit, configured to determine, for each of the airlines of the flight, basic information of each seat row corresponding to the airlines according to the first seat map information;
a fourth judging subunit, configured to judge whether the first seat map information meets a preset line attribute processing condition;
a fifth determining subunit, configured to determine a seat map type corresponding to the first seat map information and a row attribute processing rule corresponding to the seat map type corresponding to the first seat map information if the first seat map information meets a preset row attribute processing condition;
A sixth determining subunit, configured to process the basic information of each seat row based on the row attribute processing rule, and use the processed basic information of each seat row as first basic information corresponding to the seat row;
a fifth judging subunit, configured to judge whether the first seat map information meets a preset data conversion condition;
the first conversion subunit is configured to perform data conversion on the first basic information corresponding to each seat row according to a preset data conversion rule if the first seat diagram information meets a preset data conversion condition, and use the first basic information corresponding to the seat row after the data conversion as seat row information corresponding to the seat row;
the third integration subunit is used for sequentially integrating the seat row information corresponding to each seat row corresponding to the navigation section to obtain the total seat row information corresponding to the navigation section;
a seventh determining subunit, configured to determine seat information corresponding to each seat row corresponding to the aeronautical node;
and an eighth determining subunit, configured to determine total seat row information corresponding to the air section and seat information corresponding to all the seat rows as first seat information corresponding to the air section of the flight.
On the basis of the above device, in the device provided by the embodiment of the present invention, the seventh determining subunit includes:
a ninth determining subunit, configured to determine, for each seat row corresponding to the aeronautical node, basic information of each seat corresponding to the seat row according to the first seat map information;
a sixth judging subunit, configured to judge whether the first seat map information meets a preset seat attribute processing condition;
a tenth determining subunit, configured to determine a seat attribute processing rule corresponding to a seat map type corresponding to the first seat map information if the first seat map information meets a preset seat attribute processing condition;
an eleventh determination subunit, configured to process the basic information of each seat based on the seat attribute processing rule, and use the processed basic information of each seat as the first basic information corresponding to the seat;
a seventh judging subunit, configured to judge whether the first seat map information meets a preset seat data conversion condition;
the second conversion subunit is configured to perform data conversion on the first basic information corresponding to each seat according to the data conversion rule if the first seat map information meets a preset seat data conversion condition, and use the first basic information corresponding to each seat after the data conversion as seat information corresponding to the seat;
And the fourth integration subunit is used for sequentially integrating the seat information corresponding to each seat corresponding to the seat row to obtain the seat information corresponding to the seat row.
On the basis of the above device, in the device provided by the embodiment of the present invention, the third comparing unit 406 includes:
a twelfth determining subunit, configured to determine first row information and second row information, where the first row information is total seat row information corresponding to the avionics in the first seat information, and the second row information is total seat row information corresponding to the avionics in the second seat information;
the first comparison subunit is used for comparing the first row of information with the second row of information to obtain a fifth comparison result;
a thirteenth determination subunit, configured to determine, for each of the seat rows of the air-section, seat information corresponding to the seat row in the first seat information, take the seat information corresponding to the seat row in the first seat information as first seat information corresponding to the seat row, determine seat information corresponding to the seat row in the second seat information, and take the seat information corresponding to the seat row in the second seat information as second seat information corresponding to the seat row;
The second comparison subunit is used for comparing the first seat information corresponding to each seat row with the second seat information corresponding to the seat row to obtain a comparison result corresponding to each seat row;
and a fourteenth determination subunit, configured to determine the fourth comparison result according to the fifth comparison result and the comparison results corresponding to all the seat rows.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The embodiment of the invention also provides an electronic device of the seat diagram system testing method, the structural schematic diagram of which is shown in fig. 5, and the electronic device shown in fig. 5 is only an example and should not bring any limitation to the functions and the application range of the embodiment of the invention.
As shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 506 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
The embodiment of the invention also provides a storage medium, which comprises stored instructions, wherein the equipment where the storage medium is located is controlled to execute the test method of the seat diagram system when the instructions run.
The storage medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: under the condition that a seat map system completes a current upgrading process, determining first seat map information and second seat map information corresponding to flights, wherein the first seat map information is message information of a seat map corresponding to the flights before the current upgrading process, and the second seat map information is message information of the seat map corresponding to the flights after the current upgrading process; determining first flight information and first aviation section information corresponding to the flights, and first cabin information and first seat information corresponding to each aviation section of the flights according to a preset information processing strategy and the first seat diagram information; determining second flight information and second aviation section information corresponding to the flights, and second cabin information and second seat information corresponding to each aviation section of the flights according to the information processing strategy and the second seat diagram information; comparing the first flight information with the second flight information to obtain a first comparison result; comparing the first navigation section information with the second navigation section information to obtain a second comparison result; comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to each aviation section to obtain a third comparison result, and comparing the first seat information corresponding to each aviation section with the second seat information corresponding to each aviation section to obtain a fourth comparison result; and determining a test result corresponding to the current upgrading process of the seat map system according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the invention. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The above description is only illustrative of the preferred embodiments of the present invention and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in the present invention is not limited to the specific combinations of technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the spirit of the disclosure. Such as the above-mentioned features and the technical features disclosed in the present invention (but not limited to) having similar functions are replaced with each other.
In the detailed description, this application will repeat itself in the form of the claims, where:
in accordance with one or more embodiments disclosed herein, fig. 1 provides a method of testing a seat diagram system, comprising: under the condition that a seat map system completes a current upgrading process, determining first seat map information and second seat map information corresponding to flights, wherein the first seat map information is message information of a seat map corresponding to the flights before the current upgrading process, and the second seat map information is message information of the seat map corresponding to the flights after the current upgrading process; determining first flight information and first aviation section information corresponding to the flights, and first cabin information and first seat information corresponding to each aviation section of the flights according to a preset information processing strategy and the first seat diagram information; determining second flight information and second aviation section information corresponding to the flights, and second cabin information and second seat information corresponding to each aviation section of the flights according to the information processing strategy and the second seat diagram information; comparing the first flight information with the second flight information to obtain a first comparison result; comparing the first navigation section information with the second navigation section information to obtain a second comparison result; comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to each aviation section to obtain a third comparison result, and comparing the first seat information corresponding to each aviation section with the second seat information corresponding to each aviation section to obtain a fourth comparison result; and determining a test result corresponding to the current upgrading process of the seat map system according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
Acquiring flight basic information corresponding to the flight from the first seat diagram information; determining the first digital character of the flight number in the flight basic information, and judging whether the first digital character is zero or not; if the first digital character is zero, deleting the first digital character of the flight number in the flight basic information to obtain processed flight basic information; judging whether a preset flight attribute character exists in the first seat diagram information; if the preset flight attribute characters exist in the first seat diagram information, acquiring the flight attribute characters contained in the first seat diagram information; and generating first flight information corresponding to the flight based on the processed flight basic information and the flight attribute characters contained in the first seat diagram information.
Determining the number of the airlines corresponding to the flights and the aviation section information corresponding to each aviation section based on the first seat diagram information, wherein the aviation section information corresponding to each aviation section comprises a take-off airport identifier, an arrival airport identifier, an airplane model, sales layout information and departure system version information corresponding to the aviation section; and integrating the number of the navigation sections and the navigation section information of each navigation section in sequence to obtain first navigation section information corresponding to the flight.
For each aeroplane section of the flight, determining the number of cabin cabins corresponding to the aeroplane section and the basic cabin information corresponding to each cabin according to the first seat diagram information; determining a seat map type corresponding to the first seat map information, and judging whether the seat map type corresponding to the first seat map information is a seat map of a seat booking system; if the seat diagram type corresponding to the first seat diagram information is a seat booking system seat diagram, acquiring cabin column sign information corresponding to each cabin; judging whether a preset cabin level attribute exists in the cabin level for each cabin level corresponding to the aviation section, if so, determining an attribute parameter corresponding to the preset cabin level attribute, and integrating the attribute parameter corresponding to the preset cabin level attribute, the basic cabin level information corresponding to the cabin level and the cabin level label information to obtain cabin level information corresponding to the cabin level; and integrating the cabin level information corresponding to each cabin level corresponding to the aviation section in sequence to obtain first cabin level information corresponding to the aviation section.
In accordance with one or more embodiments disclosed herein, fig. 2 provides a method of testing a seat diagram system, comprising: for each aviation section of the flight, determining basic information of each seat row corresponding to the aviation section according to the first seat diagram information; judging whether the first seat diagram information accords with a preset line attribute processing condition or not; if the first seat diagram information accords with a preset line attribute processing condition, determining a seat diagram type corresponding to the first seat diagram information and a line attribute processing rule corresponding to the seat diagram type corresponding to the first seat diagram information; processing the basic information of each seat row based on the row attribute processing rule, and taking the processed basic information of each seat row as first basic information corresponding to the seat row; judging whether the first seat diagram information accords with a preset data conversion condition or not; if the first seat diagram information accords with a preset data conversion condition, carrying out data conversion on the first basic information corresponding to each seat row according to a preset data conversion rule, and taking the first basic information corresponding to the seat row after data conversion as seat row information corresponding to the seat row; sequentially integrating the seat row information corresponding to each seat row corresponding to the navigation section to obtain the seat row total information corresponding to the navigation section; determining seat information corresponding to each seat row corresponding to the navigation section; and determining the total seat row information corresponding to the aviation section and the seat information corresponding to all the seat rows as first seat information corresponding to the aviation section of the flight.
FIG. 3 provides another method of testing a seat diagram system, according to one or more embodiments disclosed herein, comprising: for each seat row corresponding to the navigation section, determining basic information of each seat corresponding to the seat row according to the first seat diagram information; judging whether the first seat diagram information accords with preset seat attribute processing conditions or not; if the first seat map information accords with preset seat attribute processing conditions, determining a seat attribute processing rule corresponding to a seat map type corresponding to the first seat map information; processing the basic information of each seat based on the seat attribute processing rule, and taking the processed basic information of each seat as first basic information corresponding to the seat; judging whether the first seat diagram information accords with preset seat data conversion conditions or not; if the first seat diagram information accords with a preset seat data conversion condition, carrying out data conversion on the first basic information corresponding to each seat according to the data conversion rule, and taking the first basic information corresponding to each seat after the data conversion as seat information corresponding to the seat; and integrating the seat information corresponding to each seat corresponding to the seat row in sequence to obtain the seat information corresponding to the seat row.
Determining first row information and second row information, wherein the first row information is seat row total information corresponding to the navigation section in the first seat information, and the second row information is seat row total information corresponding to the navigation section in the second seat information; comparing the first line information with the second line information to obtain a fifth comparison result; for each seat row of the navigation festival, determining seat information corresponding to the seat row in the first seat information, taking the seat information corresponding to the seat row in the first seat information as first seat information corresponding to the seat row, determining seat information corresponding to the seat row in the second seat information, and taking the seat information corresponding to the seat row in the second seat information as second seat information corresponding to the seat row; comparing the first seat information corresponding to each seat row with the second seat information corresponding to the first seat row to obtain a comparison result corresponding to each seat row; and determining the fourth comparison result according to the fifth comparison result and the comparison results corresponding to all the seat rows.
In accordance with one or more embodiments disclosed herein, fig. 4 provides a test apparatus for a seat diagram system, comprising: the first determining unit is used for determining first seat map information and second seat map information corresponding to flights under the condition that the seat map system completes the current upgrading process, wherein the first seat map information is message information of the seat map corresponding to the flights before the current upgrading process, and the second seat map information is message information of the seat map corresponding to the flights after the current upgrading process; the second determining unit is used for determining first flight information and first aviation section information corresponding to the flights and first cabin information and first seat information corresponding to each aviation section of the flights according to a preset information processing strategy and the first seat diagram information; a third determining unit, configured to determine second flight information and second aviation node information corresponding to the flights, and second cabin information and second seat information corresponding to each aviation node of the flights according to the information processing policy and the second seat map information; the first comparison unit is used for comparing the first flight information with the second flight information to obtain a first comparison result; the second comparison unit is used for comparing the first navigation section information with the second navigation section information to obtain a second comparison result; the third comparison unit is used for comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to the aviation section to obtain a third comparison result, and comparing the first seat information corresponding to the aviation section with the second seat information corresponding to the aviation section to obtain a fourth comparison result; and the fourth determining unit is used for determining a test result corresponding to the current upgrading process of the seat map system according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result.
According to one or more embodiments disclosed herein, there is provided a storage medium comprising stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform a method of testing a seat diagram system as described above.
In accordance with one or more embodiments of the present disclosure, fig. 5 provides an electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to perform the above-described seat diagram system testing method by the one or more processors.

Claims (9)

1. A method of testing a seat diagram system, comprising:
under the condition that a seat map system completes a current upgrading process, determining first seat map information and second seat map information corresponding to flights, wherein the first seat map information is message information of a seat map corresponding to the flights before the current upgrading process, and the second seat map information is message information of the seat map corresponding to the flights after the current upgrading process;
determining first flight information and first aviation section information corresponding to the flights, and first cabin information and first seat information corresponding to each aviation section of the flights according to a preset information processing strategy and the first seat diagram information;
Determining second flight information and second aviation section information corresponding to the flights, and second cabin information and second seat information corresponding to each aviation section of the flights according to the information processing strategy and the second seat diagram information;
comparing the first flight information with the second flight information to obtain a first comparison result;
comparing the first navigation section information with the second navigation section information to obtain a second comparison result;
comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to each aviation section to obtain a third comparison result, and comparing the first seat information corresponding to each aviation section with the second seat information corresponding to each aviation section to obtain a fourth comparison result;
determining a test result corresponding to the current upgrading process of the seat map system according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result;
the process of determining the first seat information corresponding to each section of the flight includes:
for each aviation section of the flight, determining basic information of each seat row corresponding to the aviation section according to the first seat diagram information;
Judging whether the first seat diagram information accords with a preset line attribute processing condition or not;
if the first seat diagram information accords with a preset line attribute processing condition, determining a seat diagram type corresponding to the first seat diagram information and a line attribute processing rule corresponding to the seat diagram type corresponding to the first seat diagram information;
processing the basic information of each seat row based on the row attribute processing rule, and taking the processed basic information of each seat row as first basic information corresponding to the seat row;
judging whether the first seat diagram information accords with a preset data conversion condition or not;
if the first seat diagram information accords with a preset data conversion condition, carrying out data conversion on the first basic information corresponding to each seat row according to a preset data conversion rule, and taking the first basic information corresponding to the seat row after data conversion as seat row information corresponding to the seat row;
sequentially integrating the seat row information corresponding to each seat row corresponding to the navigation section to obtain the seat row total information corresponding to the navigation section;
determining seat information corresponding to each seat row corresponding to the navigation section;
And determining the total seat row information corresponding to the aviation section and the seat information corresponding to all the seat rows as first seat information corresponding to the aviation section of the flight.
2. The method of claim 1, wherein the determining the first flight information corresponding to the flight comprises:
acquiring flight basic information corresponding to the flight from the first seat diagram information;
determining the first digital character of the flight number in the flight basic information, and judging whether the first digital character is zero or not;
if the first digital character is zero, deleting the first digital character of the flight number in the flight basic information to obtain processed flight basic information;
judging whether a preset flight attribute character exists in the first seat diagram information;
if the preset flight attribute characters exist in the first seat diagram information, acquiring the flight attribute characters contained in the first seat diagram information;
and generating first flight information corresponding to the flight based on the processed flight basic information and the flight attribute characters contained in the first seat diagram information.
3. The method of claim 1, wherein the determining the first section information corresponding to the flight comprises:
determining the number of the airlines corresponding to the flights and the aviation section information corresponding to each aviation section based on the first seat diagram information, wherein the aviation section information corresponding to each aviation section comprises a take-off airport identifier, an arrival airport identifier, an airplane model, sales layout information and departure system version information corresponding to the aviation section;
and integrating the number of the navigation sections and the navigation section information of each navigation section in sequence to obtain first navigation section information corresponding to the flight.
4. The method of claim 1, wherein the determining the first cabin information for each leg of the flight comprises:
for each aeroplane section of the flight, determining the number of cabin cabins corresponding to the aeroplane section and the basic cabin information corresponding to each cabin according to the first seat diagram information;
determining a seat map type corresponding to the first seat map information, and judging whether the seat map type corresponding to the first seat map information is a seat map of a seat booking system;
If the seat diagram type corresponding to the first seat diagram information is a seat booking system seat diagram, acquiring cabin column sign information corresponding to each cabin;
judging whether a preset cabin level attribute exists in the cabin level for each cabin level corresponding to the aviation section, if so, determining an attribute parameter corresponding to the preset cabin level attribute, and integrating the attribute parameter corresponding to the preset cabin level attribute, the basic cabin level information corresponding to the cabin level and the cabin level label information to obtain cabin level information corresponding to the cabin level;
and integrating the cabin level information corresponding to each cabin level corresponding to the aviation section in sequence to obtain first cabin level information corresponding to the aviation section.
5. The method of claim 1, wherein the determining the seat information for each of the rows of seats for the avionics comprises:
for each seat row corresponding to the navigation section, determining basic information of each seat corresponding to the seat row according to the first seat diagram information;
judging whether the first seat diagram information accords with preset seat attribute processing conditions or not;
If the first seat map information accords with preset seat attribute processing conditions, determining a seat attribute processing rule corresponding to a seat map type corresponding to the first seat map information;
processing the basic information of each seat based on the seat attribute processing rule, and taking the processed basic information of each seat as first basic information corresponding to the seat;
judging whether the first seat diagram information accords with preset seat data conversion conditions or not;
if the first seat diagram information accords with a preset seat data conversion condition, carrying out data conversion on the first basic information corresponding to each seat according to the data conversion rule, and taking the first basic information corresponding to each seat after the data conversion as seat information corresponding to the seat;
and integrating the seat information corresponding to each seat corresponding to the seat row in sequence to obtain the seat information corresponding to the seat row.
6. The method of claim 5, wherein the comparing the first seat information corresponding to the navigation node with the second seat information corresponding to the navigation node comprises:
Determining first row information and second row information, wherein the first row information is seat row total information corresponding to the navigation section in the first seat information, and the second row information is seat row total information corresponding to the navigation section in the second seat information;
comparing the first line information with the second line information to obtain a fifth comparison result;
for each seat row of the navigation festival, determining seat information corresponding to the seat row in the first seat information, taking the seat information corresponding to the seat row in the first seat information as first seat information corresponding to the seat row, determining seat information corresponding to the seat row in the second seat information, and taking the seat information corresponding to the seat row in the second seat information as second seat information corresponding to the seat row;
comparing the first seat information corresponding to each seat row with the second seat information corresponding to the first seat row to obtain a comparison result corresponding to each seat row;
and determining the fourth comparison result according to the fifth comparison result and the comparison results corresponding to all the seat rows.
7. A seat diagram system testing apparatus, comprising:
The first determining unit is used for determining first seat map information and second seat map information corresponding to flights under the condition that the seat map system completes the current upgrading process, wherein the first seat map information is message information of the seat map corresponding to the flights before the current upgrading process, and the second seat map information is message information of the seat map corresponding to the flights after the current upgrading process;
the second determining unit is used for determining first flight information and first aviation section information corresponding to the flights and first cabin information and first seat information corresponding to each aviation section of the flights according to a preset information processing strategy and the first seat diagram information;
a third determining unit, configured to determine second flight information and second aviation node information corresponding to the flights, and second cabin information and second seat information corresponding to each aviation node of the flights according to the information processing policy and the second seat map information;
the first comparison unit is used for comparing the first flight information with the second flight information to obtain a first comparison result;
the second comparison unit is used for comparing the first navigation section information with the second navigation section information to obtain a second comparison result;
The third comparison unit is used for comparing the first cabin information corresponding to each aviation section with the second cabin information corresponding to the aviation section to obtain a third comparison result, and comparing the first seat information corresponding to the aviation section with the second seat information corresponding to the aviation section to obtain a fourth comparison result;
the fourth determining unit is used for determining a test result corresponding to the current upgrading process of the seat map system according to the first comparison result, the second comparison result, the third comparison result and the fourth comparison result;
the second determination unit includes: a fourth determination subunit, a fifth determination subunit, a sixth determination subunit, a fifth determination subunit, a first conversion subunit, a third integration subunit, a seventh determination subunit, and an eighth determination subunit;
the fourth determining subunit is configured to determine, for each of the airlines of the flight, basic information of each seat row corresponding to the airlines according to the first seat map information;
the fourth judging subunit is configured to judge whether the first seat map information meets a preset line attribute processing condition;
The fifth determining subunit is configured to determine a seat map type corresponding to the first seat map information and a row attribute processing rule corresponding to the seat map type corresponding to the first seat map information if the first seat map information meets a preset row attribute processing condition;
the sixth determining subunit is configured to process the basic information of each seat row based on the row attribute processing rule, and use the processed basic information of each seat row as first basic information corresponding to the seat row;
the fifth judging subunit is configured to judge whether the first seat map information meets a preset data conversion condition;
the first conversion subunit is configured to perform data conversion on the first basic information corresponding to each seat row according to a preset data conversion rule if the first seat diagram information meets a preset data conversion condition, and use the first basic information corresponding to the seat row after data conversion as seat row information corresponding to the seat row;
the third integration subunit is configured to sequentially integrate seat row information corresponding to each seat row corresponding to the aeronautical node, so as to obtain total seat row information corresponding to the aeronautical node;
The seventh determining subunit is configured to determine seat information corresponding to each seat row corresponding to the aeronautical node;
the eighth determining subunit is configured to determine total seat row information corresponding to the aerosection and seat information corresponding to all the seat rows as first seat information corresponding to the aerosection of the flight.
8. A storage medium comprising stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform a method of testing a seat diagram system according to any one of claims 1 to 6.
9. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the method of testing the seat diagram system of any of claims 1-6.
CN202110260543.7A 2021-03-10 2021-03-10 Seat map system testing method and device, storage medium and electronic equipment Active CN112965904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110260543.7A CN112965904B (en) 2021-03-10 2021-03-10 Seat map system testing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110260543.7A CN112965904B (en) 2021-03-10 2021-03-10 Seat map system testing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112965904A CN112965904A (en) 2021-06-15
CN112965904B true CN112965904B (en) 2024-04-05

Family

ID=76277250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110260543.7A Active CN112965904B (en) 2021-03-10 2021-03-10 Seat map system testing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112965904B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765669A (en) * 2015-04-24 2015-07-08 昆明船舶设备集团有限公司 New airport information system parallel testing method for copying AFTN messages synchronously
CN111192090A (en) * 2019-12-31 2020-05-22 广州优策科技有限公司 Seat allocation method and device for flight, storage medium and electronic equipment
CN112214693A (en) * 2020-10-12 2021-01-12 中国民航信息网络股份有限公司 Seating chart display method and device, storage medium and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080167909A1 (en) * 2007-01-05 2008-07-10 De Marcken Carl Updating a database of travel information
US10146671B2 (en) * 2015-09-25 2018-12-04 International Business Machines Corporation Testing of software upgrade
US10228932B2 (en) * 2015-12-31 2019-03-12 Oracle International Corporation Upgrade verification tool

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765669A (en) * 2015-04-24 2015-07-08 昆明船舶设备集团有限公司 New airport information system parallel testing method for copying AFTN messages synchronously
CN111192090A (en) * 2019-12-31 2020-05-22 广州优策科技有限公司 Seat allocation method and device for flight, storage medium and electronic equipment
CN112214693A (en) * 2020-10-12 2021-01-12 中国民航信息网络股份有限公司 Seating chart display method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112965904A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
US9019128B1 (en) Augmented reality aircraft management system
CN113486031B (en) Method for updating departure flight data and related equipment
CN111506614B (en) Method and device for identifying civil aviation transfer baggage and storage medium
CN112184117B (en) Method and device for determining luggage consignment destination, storage medium and electronic equipment
CN110717616A (en) Civil aviation unit human resource prediction method, electronic equipment and storage medium
CN112651671A (en) Flight space adjusting method and related equipment
CN112990683A (en) Early warning method for flight guarantee flow node and related equipment
US8930068B1 (en) System and method for managing instances of damage within a transportation system
CN112965904B (en) Seat map system testing method and device, storage medium and electronic equipment
CN113297178B (en) Aviation product data processing method and related equipment
CN112232653A (en) Method, device, server and computer storage medium for processing reserve landing flight
CN112231327B (en) Flight information updating method, device, server and storage medium
CN113312420B (en) Flight data processing method, device, equipment and storage medium
CN112967030A (en) Flight passenger transfer method, flight passenger transfer device, electronic equipment and computer storage medium
Ateş Electronic flight bag in the operation of airline companies: Application in Turkey
CN112184030A (en) Method, device and equipment for scoring online flights and computer storage medium
Frazza et al. MBSA in Aeronautics: A Way to Support Safety Activities
CN113313391B (en) Flight space resource allocation method, device and server
CN115062022B (en) Aircraft manual splitting method, device, electronic equipment and computer readable medium
US11881114B2 (en) Method and system for visualizing aircraft communications
CN114937317B (en) Mobile-end-oriented QAR data management method, system and storage medium
CN114372070B (en) Data consistency checking method and device
CN112732985A (en) Method and device for processing boarding information of flight segment
CN117408437B (en) Civil aviation cabin service method, system and equipment
CN112307774B (en) Dialogue understanding method and device, readable medium and electronic 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
GR01 Patent grant
GR01 Patent grant