CN111209207B - Performance test method, device and system of passenger ticket system - Google Patents

Performance test method, device and system of passenger ticket system Download PDF

Info

Publication number
CN111209207B
CN111209207B CN202010032354.XA CN202010032354A CN111209207B CN 111209207 B CN111209207 B CN 111209207B CN 202010032354 A CN202010032354 A CN 202010032354A CN 111209207 B CN111209207 B CN 111209207B
Authority
CN
China
Prior art keywords
ticket
test
ticket buying
buying
generating
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
CN202010032354.XA
Other languages
Chinese (zh)
Other versions
CN111209207A (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 Railway Trip Science And Technology Co ltd
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology Co Ltd
Original Assignee
China Railway Trip Science And Technology Co ltd
Institute of Computing Technologies of CARS
Beijing Jingwei Information 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 Railway Trip Science And Technology Co ltd, Institute of Computing Technologies of CARS, Beijing Jingwei Information Technology Co Ltd filed Critical China Railway Trip Science And Technology Co ltd
Priority to CN202010032354.XA priority Critical patent/CN111209207B/en
Publication of CN111209207A publication Critical patent/CN111209207A/en
Application granted granted Critical
Publication of CN111209207B publication Critical patent/CN111209207B/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/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3696Methods or tools to render software testable
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Train Traffic Observation, Control, And Security (AREA)
  • Debugging And Monitoring (AREA)

Abstract

According to the technical scheme of the performance testing method, the device and the system of the passenger ticket system, according to input ticket purchasing track information and testing times, ticket purchasing test scripts are generated, the ticket purchasing test scripts and input ticket purchasing scene parameters are generated, parameterized files are sent to a plurality of presses, ticket purchasing test results fed back by the plurality of presses are received, performance index information corresponding to the ticket purchasing test results and sent by a monitoring server is received, a performance test report is generated according to the ticket purchasing test results and the performance index information, performance tests can be carried out on various ticket purchasing scenes of the passenger ticket system, and performance test reports are output, so that various performance test requirements of the passenger ticket system are met.

Description

Performance test method, device and system of passenger ticket system
[ field of technology ]
The invention relates to the technical field of performance testing, in particular to a performance testing method, device and system of a passenger ticket system.
[ background Art ]
The railway ticket system supports two major types of online and station ticket selling channels, and the passenger ticket system is required to be used for ticket booking before riding, especially before going out of peak in spring festival and eleven, the internet access volume is increased rapidly, the user request volume is large, and the ticket booking volume is large. Under the condition that a large number of users request the system can normally run or not, the ticket purchasing experience of passengers can be affected, and therefore performance test on the railway ticket system is necessary.
In the related art, the performance test may be performed by using an open source performance test tool, loadRunner business software, and the like. The open source tool has poor performance, operability, friendliness and interactivity and is single in application. The railway ticket system has various ticket selling channels including Internet, mobile phone APP, station window, automatic ticket vending machine, telephone ticket booking, etc. and the open source tool may not meet the requirement of ticket system. Therefore, a method and a system for testing the performance of a railway ticket system are needed, the performance of the railway ticket system is tested on line and off line, and the performance test result is output, so that the requirements of various performance tests of the ticket system are met.
[ invention ]
In view of the above, the invention provides a performance test method, device and system for a passenger ticket system, which can perform performance test on various ticket purchasing scenes of the passenger ticket system and output and obtain a performance test report, thereby meeting various performance test requirements of the passenger ticket system.
In one aspect, the embodiment of the invention provides a performance test method of a passenger ticket system, which is applied to a console;
the method comprises the following steps:
generating ticket buying test scripts according to the input ticket buying track information and the test times;
generating a parameterized file by the ticket buying test script and the input ticket buying scene parameters;
sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files;
receiving ticket buying test results fed back by the plurality of presses;
receiving performance index information corresponding to the ticket buying test result sent by a monitoring server;
and generating a performance test report according to the ticket buying test result and the performance index information.
Optionally, the generating a performance test report according to the ticket buying test result and the performance index information includes:
extracting appointed ticket buying test data from the ticket buying test result;
generating a dynamic chart corresponding to the designated ticket buying test parameters according to the designated ticket buying test data;
and generating a performance test report according to the dynamic chart and the performance index information.
Optionally, the ticket purchase test result includes one of ticket selling amount, ticket selling time, system utilization rate, time consumed for ticket purchase, execution number of ticket purchase test scripts, execution time of ticket purchase test scripts and running result of ticket purchase test scripts, or any combination thereof.
Optionally, the performance index information includes one of or any combination of an operating speed of a ticketing test script, a number of generated ticketing orders per second, a number of concurrent users, and an interval time of sampling.
On the other hand, the embodiment of the invention provides a performance testing device of a passenger ticket system, which is applied to a console;
the device comprises:
the first generation module is used for generating ticket buying test scripts according to the input ticket buying track information and the test times; generating a parameterized file by the ticket buying test script and the input ticket buying scene parameters;
the sending module is used for sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files;
the receiving module is used for receiving ticket buying test results fed back by the plurality of presses; receiving performance index information corresponding to the ticket buying test result sent by a monitoring server;
and the second generation module is also used for generating a performance test report according to the ticket buying test result and the performance index information.
Optionally, the generating module specifically includes:
the extraction sub-module is used for extracting appointed ticket buying test data from the ticket buying test result;
the generation sub-module is used for generating a dynamic chart corresponding to the designated ticket buying test parameters according to the designated ticket buying test data; and generating a performance test report according to the dynamic chart and the performance index information.
In another aspect, an embodiment of the present invention provides a performance test system for a ticket system, including: the control platform, a plurality of presses and a monitoring server;
the console is used for generating ticket buying test scripts according to the input ticket buying track information and the test times; generating a parameterized file by the ticket buying test script and the input ticket buying scene parameters; sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files; receiving ticket buying test results fed back by the plurality of presses; receiving performance index information corresponding to the ticket buying test result sent by a monitoring server; generating a performance test report according to the ticket buying test result and the performance index information;
the press is used for receiving the instruction for executing the parameterized file sent by the control console and executing the parameterized file to generate a ticket buying test result; sending the ticket buying test result to the console;
the monitoring server is used for monitoring performance index information generated in the process that the press executes the parameterized file, and sending the performance index information to the control console.
Optionally, the console comprises a script management module, a scene control module, an SVN management module, a client console management module, a press management module and a monitoring management module;
the script management module is used for storing information of the ticket buying test script; generating ticket buying test scripts according to the input ticket buying track information and the test times;
the scene control module is used for configuring the ticket buying scene parameters;
the SVN management module is used for storing information of the historical ticket buying test script;
the client console module is used for generating a parameterized file by the ticket purchase test script and the input ticket purchase scene parameters; sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files;
the press management module is used for receiving ticket buying test results fed back by the plurality of presses;
and the monitoring management module is used for receiving the performance index information which is sent by the monitoring server and corresponds to the ticket buying test result.
On the other hand, the embodiment of the invention provides a storage medium, which comprises a stored program, wherein the device where the storage medium is located is controlled to execute the performance test method of the passenger ticket system when the program runs.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is configured to store information including program instructions, and the processor is configured to control execution of the program instructions, where the program instructions are loaded by the processor and execute the steps of the performance test method of a passenger ticket system described above.
According to the technical scheme provided by the embodiment of the invention, a ticket buying test script is generated according to the input ticket buying track information and the test times, the ticket buying test script and the input ticket buying scene parameters are generated to generate a parameterized file, the parameterized file is sent to a plurality of presses, ticket buying test results fed back by the plurality of presses are received, performance index information corresponding to the ticket buying test results and sent by a monitoring server is received, a performance test report is generated according to the ticket buying test results and the performance index information, performance tests can be carried out on various ticket buying scenes of a ticket buying system, and the performance test report is output, so that various performance test requirements of the ticket buying system are met.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a system architecture diagram of a performance testing system for a ticket system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for testing performance of a ticket system according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for testing the performance of a ticket system according to yet another embodiment of the present invention;
FIG. 4 is a schematic diagram of a performance testing apparatus of a ticket system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
[ detailed description ] of the invention
For a better understanding of the technical solution of the present invention, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. 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 terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one way of describing an association of associated objects, meaning that there may be three relationships, e.g., a and/or b, which may represent: the first and second cases exist separately, and the first and second cases exist separately. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Fig. 1 is a system architecture diagram of a performance test system of a ticket system according to an embodiment of the present invention, as shown in fig. 1, the system includes: a console 11, a plurality of presses 12 and a monitoring server 13.
In the embodiment of the present invention, the console 11 is configured to generate a ticket purchase test script according to the input ticket purchase track information and the number of tests. The console 11 is further configured to generate a parameterized file from the ticket purchase test script and the input ticket purchase scene parameters. The console 11 is also used to send instructions to the plurality of presses to execute the parameterized file, the instructions carrying the parameterized file. The console 11 is also used for receiving ticket buying test results fed back by a plurality of presses. The console 11 is further configured to receive performance index information corresponding to the ticket purchase test result sent by the monitoring server. The console 11 is further configured to generate a performance test report according to the ticket purchase test result and the performance index information.
The press 12 is configured to receive an instruction for executing the parameterized file sent by the console, and execute the parameterized file to generate a ticket purchase test result. The press 12 is also used to send ticket purchase test results to the console.
The monitoring server 13 is used for monitoring performance index information generated in the process of executing the parameterized file by the press and sending the performance index information to the console.
In the embodiment of the present invention, the console 11 includes a script management module 111, a scene control module 112, an SVN management module 113, a client console management module 114, a press management module 115, and a monitoring management module 116.
The script management module 111 is used for storing information of ticket buying test scripts; and generating a ticket buying test script according to the input ticket buying track information and the test times. The scene control module 112 is used to configure ticket purchasing scene parameters. The SVN management module 113 is configured to store information of the historical ticketing test script. The client console module 114 is configured to generate a parameterized file from the ticket purchase test script and the input ticket purchase scene parameters; and sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files. The press management module 115 is configured to receive ticket purchase test results fed back by a plurality of presses. The monitoring management module 116 is configured to receive performance index information corresponding to the ticket purchase test result sent by the monitoring server.
In an embodiment of the present invention, the client console module 114 is also used to create different levels of user identity. Wherein the operable range of user identities at different levels is different. For example, different levels of user identity include an administrator and a general user, wherein the administrator can view the operating conditions of console 11; increasing or decreasing the number of presses 12 available; new, modified and deleted users. The general user can edit, modify and debug the ticket buying test script; inputting ticket purchasing scene parameters and the like.
According to the embodiment of the invention, the performance test system of the passenger ticket system can display the running performance test report and query and display of the historical performance test report in real time in test running. The system can be developed and realized by adopting a Spring framework mode, a database stores information such as user definition, scene definition and the like, a Mysql database is adopted, version management is carried out by adopting SVNkit, local debugging and uploading of script downloading are supported, and a FreeMaker writing template engine is used for realizing a presentation layer interface. The system can also adopt a Tomcat server to be deployed on a Linux operating system, and has lower configuration requirement on the system.
The performance test system of the passenger ticket system in the embodiment of the invention supports the Jython test script, and the test script of the HTTP protocol is easy to write and maintain by using a recording script tool, a plug-in and an HTTP protocol processing tool. The Jython is a complete reproduction of the Python interpreter in Java, inherits the Python grammar style, is simple to write, inherits a Java class library, and additionally, a test script supports to quote a third-party Java class library, so that the script function is greatly improved.
The performance test system of the passenger ticket system in the embodiment of the invention supports the test of the passenger ticket system proprietary protocol and the test of the database proprietary protocol, dynamically generates the performance test script by analyzing the protocol format and the business logic rule, and carries out parameterization configuration on the test data. The performance test scene can dynamically configure the number of concurrent users and receive test results in real time.
Fig. 2 is a flowchart of a performance testing method of a ticket system according to an embodiment of the present invention, as shown in fig. 2, the method includes:
and 101, generating a ticket buying test script according to the input ticket buying track information and the test times.
And 102, generating a parameterized file by the ticket purchase test script and the input ticket purchase scene parameters.
Step 103, sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files.
And 104, receiving ticket buying test results fed back by a plurality of presses.
And 105, receiving performance index information corresponding to the ticket buying test result sent by the monitoring server.
And 106, generating a performance test report according to the ticket buying test result and the performance index information.
According to the technical scheme provided by the embodiment of the invention, the ticket purchasing test script is generated according to the input ticket purchasing track information and the test times, the ticket purchasing test script and the input ticket purchasing scene parameters are generated to generate the parameterized file, the parameterized file is sent to a plurality of presses, ticket purchasing test results fed back by the plurality of presses are received, performance index information corresponding to the ticket purchasing test results and sent by a monitoring server is received, a performance test report is generated according to the ticket purchasing test results and the performance index information, performance tests can be carried out on various ticket purchasing scenes of the passenger ticket system, and the performance test report is output to be obtained, so that various performance test requirements of the passenger ticket system are met.
Fig. 3 is a flowchart of a performance testing method of a ticket system according to another embodiment of the present invention, as shown in fig. 3, the method includes:
and 201, generating a ticket buying test script according to the input ticket buying track information and the test times.
In the embodiment of the invention, the ticket purchasing track information comprises a plurality of parameters, wherein the parameters comprise an outbound station, an arrival station, a riding date, the quantity of remaining tickets, a seat type, the number of tickets of ticket purchasing vehicles and information of passengers.
For example, as shown in fig. 1, the user generates a ticket purchase test script through ticket purchase track information and test times input by the script management module 111 of the console 11, and after the ticket purchase test script is generated, editing, deleting and other operations may be performed, where the ticket purchase test script may be displayed in a list script, and the list script includes information such as a script name, additional information of the script, a script modification time, a version, a size and the like. The invention does not limit the display mode of the ticket buying test script. In the embodiment of the invention, the script management module 111 is arranged, so that online editing and debugging can be realized, the script built by a user can be run once, the user can conveniently check the correctness of the script, and simple editing and modification can be realized.
In the embodiment of the invention, the test times are used for indicating the test times of the ticket purchasing track information. When the number of the tests is greater than 1, the system can automatically adjust parameters in the ticket buying track information to generate a plurality of ticket buying track information, so that a plurality of ticket buying test scripts are generated.
And 202, generating a parameterized file by using the ticket purchase test script and the input ticket purchase scene parameters.
In the embodiment of the present invention, as shown in fig. 1, a user may input a ticket purchase scene parameter in the scene control module 112 of the console 11, and may also edit, delete, etc. the input ticket purchase scene parameter. Wherein, the ticket purchasing scene parameters include: running scene, test duration, test interval, number of concurrent users, etc. The operation scene comprises online Internet ticketing, online off-line station window, automatic ticketing machine ticketing and the like. The same ticket purchasing scene parameters or different ticket purchasing scene parameters can be configured according to each ticket purchasing test script, and a plurality of parameterized files are generated.
Step 203, sending instructions for executing the parameterized file to a plurality of presses, wherein the instructions carry the parameterized file.
In the embodiment of the invention, after the press 12 receives the instruction for executing the parameterized file sent by the console 11, the parameterized file is executed to generate the ticket buying test result.
And 204, receiving ticket buying test results fed back by a plurality of presses.
In the embodiment of the present invention, after the press 12 generates the ticket purchase test result, the ticket purchase test result is sent to the console. Wherein the press may employ a JVM virtual machine proxy mode, which may include proxy processes for interacting with the console 11 in real time. In the embodiment of the invention, the ticket buying test result comprises one or any combination of ticket selling amount, ticket selling time, system utilization rate, time consumed by ticket buying, execution times of ticket buying test scripts, execution time of ticket buying test scripts and running result of ticket buying test scripts. In other embodiments of the present invention, the ticket purchase test result may further include other information, which is not limited in this regard and may be set according to the requirements.
Step 205, receiving performance index information corresponding to the ticket buying test result sent by the monitoring server.
In the embodiment of the invention, the performance index information comprises information such as the speed of scripts processed per second, the number of concurrent users, sampling interval time and the like. When the plurality of presses execute the parameterized file, performance index information corresponding to the ticket buying test result is generated, the performance index information is sent to the monitoring server, and after the monitoring server receives the performance index information, the performance index information corresponding to the ticket buying test result is sent to the control console.
And 206, extracting designated ticket buying test data from the ticket buying test result.
In the embodiment of the invention, the designated ticket buying test data comprises execution times of ticket buying test scripts, execution time of the ticket buying test scripts and running results of the ticket buying test scripts.
Step 207, generating a dynamic chart corresponding to the designated ticket buying test parameters according to the designated ticket buying test data.
In the embodiment of the invention, the appointed ticket buying test result is sent to the console 11 for processing. The console 11 analyzes and processes the received appointed ticket buying test result according to the sampling interval time to generate a dynamic chart corresponding to the appointed ticket buying test parameter, wherein the dynamic chart comprises a table and a display mode of a dynamic chart, response time and TPS key data of the appointed ticket buying test result are displayed through the dynamic chart, a user can intuitively know an operating test scene, and the dynamic chart can be stored in a Mysql database of the platform, so that the user can conveniently check the historical test result.
And step 208, generating a performance test report according to the dynamic chart and the performance index information.
In the embodiment of the invention, the performance index information comprises one or any combination of running speed of ticket buying test scripts, number of ticket buying orders generated per second, number of concurrent users and sampling interval time. In other embodiments of the present invention, the performance index information may further include other information, which is not limited in this aspect of the present invention and may be set according to requirements.
And generating a performance test report according to the dynamic chart and the performance index information, so that a user can acquire the performance test information, and various performance test requirements of the passenger ticket system are met. According to the technical scheme provided by the embodiment of the invention, a ticket buying test script is generated according to the input ticket buying track information and the test times, the ticket buying test script and the input ticket buying scene parameters are generated to generate a parameterized file, the parameterized file is sent to a plurality of presses, ticket buying test results fed back by the presses are received, performance index information corresponding to the ticket buying test results and sent by a monitoring server is received, a performance test report is generated according to the ticket buying test results and the performance index information, performance tests can be carried out on various ticket buying scenes of a ticket buying system, and the performance test report is output to be obtained, so that various performance test requirements of the ticket buying system are met.
Fig. 4 is a schematic structural diagram of a performance testing apparatus of a ticket system according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes: a first generation module 21, a transmission module 22, a reception module 23, and a second generation module 24.
The first generation module 21 is configured to generate a ticket purchase test script according to the input ticket purchase track information and the number of tests.
The first generation module 21 is further configured to generate a parameterized file by using the ticket purchase test script and the input ticket purchase scene parameters.
The sending module 22 is configured to send instructions for executing the parameterized file to a plurality of presses, where the instructions carry the parameterized file.
The receiving module 23 is configured to receive ticket purchase test results fed back by the multiple presses.
The receiving module 23 is further configured to receive performance index information corresponding to the ticket purchase test result sent by the monitoring server.
The second generating module 24 is configured to generate a performance test report according to the ticket purchase test result and the performance index information.
In the embodiment of the present invention, the second generating module 24 of the apparatus specifically includes: an extraction sub-module 241 and a generation sub-module 242.
The extracting sub-module 241 is configured to extract specified ticket purchase test data from the ticket purchase test result.
The generating sub-module 242 is configured to generate a dynamic chart corresponding to the specified ticket purchase test parameter according to the specified ticket purchase test data.
The generating sub-module 242 is further configured to generate a performance test report according to the dynamic chart and the performance index information.
According to the technical scheme provided by the embodiment of the invention, a ticket buying test script is generated according to the input ticket buying track information and the test times, the ticket buying test script and the input ticket buying scene parameters are generated to generate a parameterized file, the parameterized file is sent to a plurality of presses, ticket buying test results fed back by the plurality of presses are received, performance index information corresponding to the ticket buying test results and sent by a monitoring server is received, a performance test report is generated according to the ticket buying test results and the performance index information, performance tests can be carried out on various ticket buying scenes of a ticket buying system, and the performance test report is output, so that various performance test requirements of the ticket buying system are met.
The embodiment of the invention provides a storage medium, which comprises a stored program, wherein the program is used for controlling equipment where the storage medium is located to execute the steps of the embodiment of the performance test method of the passenger ticket system when running, and specific description can be seen from the embodiment of the performance test method of the passenger ticket system.
The embodiment of the invention provides computer equipment, which comprises a memory and a processor, wherein the memory is used for storing information comprising program instructions, the processor is used for controlling the execution of the program instructions, and the program instructions are loaded and executed by the processor to realize the steps of the performance test method of the passenger ticket system. For specific description, reference may be made to the embodiments of the performance testing method of the ticket system described above.
Fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 5, the computer device 3 of this embodiment includes: the processor 31, the memory 32, and the computer program 33 stored in the memory 32 and capable of running on the processor 31, where the computer program 33 when executed by the processor 31 implements the performance test method applied to the ticket system in the embodiment, and is not described herein in detail to avoid repetition. Alternatively, the computer program when executed by the processor 31 implements the functions of each model/unit in the performance testing apparatus applied to the ticket system in the embodiment, and in order to avoid repetition, the description is omitted here.
The computer device 3 includes, but is not limited to, a processor 31, a memory 32. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the computer device 3 and is not meant to be limiting of the computer device 3, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the computer device 3 may also include input and output devices, network access devices, buses, etc.
The processor 31 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 32 may be an internal storage unit of the computer device 3, such as a hard disk or a memory of the computer device 3. The memory 32 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device 3. Further, the memory 32 may also include both internal storage units and external storage devices of the computer device 3. The memory 32 is used to store computer programs and other programs and data required by the computer device 3. The memory 32 may also be used to temporarily store data that has been output or is to be output.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer apparatus (which may be a personal computer, a computer device, or a network apparatus, etc.) or a Processor (Processor) to perform part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the invention.

Claims (9)

1. A performance test method of a passenger ticket system is characterized by being applied to a console;
the method comprises the following steps:
generating ticket buying test scripts according to the input ticket buying track information and the test times;
generating a parameterized file by the ticket buying test script and the input ticket buying scene parameters;
sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files;
receiving ticket buying test results fed back by the plurality of presses;
receiving performance index information corresponding to the ticket buying test result sent by a monitoring server;
generating a performance test report according to the ticket buying test result and the performance index information; the ticket purchasing track information comprises departure station, arrival station, riding date, quantity of remaining tickets, seat type, ticket purchasing quantity of ticket purchasing vehicles and riding person information; the test times are used for representing the test times of ticket purchasing track information;
generating a ticket buying test script according to the input ticket buying track information and the test times, and further comprising:
when the test times are greater than 1, automatically adjusting parameters in the ticket buying track information to generate a plurality of ticket buying track information;
generating a plurality of ticket buying test scripts according to the ticket buying track information;
the performance index information comprises one or any combination of running speed of ticket buying test scripts, number of ticket buying orders generated per second, number of concurrent users and sampling interval time.
2. The method of claim 1, wherein generating a performance test report based on the ticket purchase test result and the performance index information comprises:
extracting appointed ticket buying test data from the ticket buying test result;
generating a dynamic chart corresponding to the designated ticket buying test parameters according to the designated ticket buying test data;
and generating a performance test report according to the dynamic chart and the performance index information.
3. The method of claim 1, wherein the ticket purchase test result comprises one of a ticket amount, a ticket time, a system utilization, a time consumed for ticket purchase, a number of executions of a ticket purchase test script, an execution time of a ticket purchase test script, and a result of running a ticket purchase test script, or any combination thereof.
4. A performance testing device of a passenger ticket system, which is characterized by being applied to a console; the device comprises:
the first generation module is used for generating ticket buying test scripts according to the input ticket buying track information and the test times; generating a parameterized file by the ticket buying test script and the input ticket buying scene parameters;
the sending module is used for sending instructions for executing the parameterized files to the plurality of presses, wherein the instructions carry the parameterized files;
the receiving module is used for receiving ticket buying test results fed back by the plurality of presses; receiving performance index information corresponding to the ticket buying test result sent by a monitoring server;
the second generation module is also used for generating a performance test report according to the ticket buying test result and the performance index information; the ticket purchasing track information comprises departure station, arrival station, riding date, quantity of remaining tickets, seat type, ticket purchasing quantity of ticket purchasing vehicles and riding person information; the test times are used for representing the test times of ticket purchasing track information;
generating a ticket buying test script according to the input ticket buying track information and the test times, and further comprising:
when the test times are greater than 1, automatically adjusting parameters in the ticket buying track information to generate a plurality of ticket buying track information;
generating a plurality of ticket buying test scripts according to the ticket buying track information;
the performance index information comprises one or any combination of running speed of ticket buying test scripts, number of ticket buying orders generated per second, number of concurrent users and sampling interval time.
5. The apparatus of claim 4, wherein the second generating module specifically comprises:
the extraction sub-module is used for extracting appointed ticket buying test data from the ticket buying test result;
the generation sub-module is used for generating a dynamic chart corresponding to the designated ticket buying test parameters according to the designated ticket buying test data; and generating a performance test report according to the dynamic chart and the performance index information.
6. A performance testing system for a passenger ticket system, comprising: the control platform, a plurality of presses and a monitoring server;
the console is used for generating ticket buying test scripts according to the input ticket buying track information and the test times; generating a parameterized file by the ticket buying test script and the input ticket buying scene parameters; sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files; receiving ticket buying test results fed back by the plurality of presses; receiving performance index information corresponding to the ticket buying test result sent by a monitoring server; generating a performance test report according to the ticket buying test result and the performance index information; the ticket purchasing track information comprises departure station, arrival station, riding date, quantity of remaining tickets, seat type, ticket purchasing quantity of ticket purchasing vehicles and riding person information; the test times are used for representing the test times of ticket purchasing track information;
generating a ticket buying test script according to the input ticket buying track information and the test times, and further comprising:
when the test times are greater than 1, automatically adjusting parameters in the ticket buying track information to generate a plurality of ticket buying track information;
generating a plurality of ticket buying test scripts according to the ticket buying track information;
the performance index information comprises one or any combination of running speed of ticket buying test scripts, number of ticket buying orders generated per second, number of concurrent users and sampling interval time;
the press is used for receiving the instruction for executing the parameterized file sent by the control console, executing the parameterized file and generating a ticket buying test result; sending the ticket buying test result to the console;
the monitoring server is used for monitoring performance index information generated in the process that the press executes the parameterized file, and sending the performance index information to the control console.
7. The system of claim 6, wherein the console comprises a script management module, a scene control module, an SVN management module, a client console management module, a press management module, and a monitoring management module;
the script management module is used for storing information of the ticket buying test script; generating ticket buying test scripts according to the input ticket buying track information and the test times;
the scene control module is used for configuring the ticket buying scene parameters;
the SVN management module is used for storing information of the historical ticket buying test script;
the client console management module is used for generating a parameterized file by the ticket purchase test script and the input ticket purchase scene parameters; sending instructions for executing the parameterized files to a plurality of presses, wherein the instructions carry the parameterized files;
the press management module is used for receiving ticket buying test results fed back by the plurality of presses;
and the monitoring management module is used for receiving the performance index information which is sent by the monitoring server and corresponds to the ticket buying test result.
8. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the performance testing method of the passenger ticket system of any one of claims 1 to 3.
9. A computer device comprising a memory for storing information including program instructions and a processor for controlling the execution of the program instructions, characterized in that the program instructions, when loaded and executed by the processor, implement the steps of the performance testing method of a passenger ticket system as claimed in any one of claims 1 to 3.
CN202010032354.XA 2020-01-13 2020-01-13 Performance test method, device and system of passenger ticket system Active CN111209207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010032354.XA CN111209207B (en) 2020-01-13 2020-01-13 Performance test method, device and system of passenger ticket system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010032354.XA CN111209207B (en) 2020-01-13 2020-01-13 Performance test method, device and system of passenger ticket system

Publications (2)

Publication Number Publication Date
CN111209207A CN111209207A (en) 2020-05-29
CN111209207B true CN111209207B (en) 2023-07-18

Family

ID=70788158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010032354.XA Active CN111209207B (en) 2020-01-13 2020-01-13 Performance test method, device and system of passenger ticket system

Country Status (1)

Country Link
CN (1) CN111209207B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014423A (en) * 2021-02-09 2021-06-22 郭晓毅 Alarm system for preventing external invasion of railway
CN113836033A (en) * 2021-10-09 2021-12-24 中国电力科学研究院有限公司 Automatic performance testing system and method for information system
CN114298357A (en) * 2021-12-27 2022-04-08 中国民航信息网络股份有限公司 Data processing method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179986A (en) * 2016-03-10 2017-09-19 阿里巴巴集团控股有限公司 The method for testing pressure and device of operation system
CN107329870A (en) * 2017-06-07 2017-11-07 河南辉煌城轨科技有限公司 A kind of urban track traffic automatic machine performance test methods
CN110427313A (en) * 2019-07-30 2019-11-08 上海工程技术大学 A kind of test macro and method of automatic machine trading function
CN110502435A (en) * 2019-07-26 2019-11-26 广东睿江云计算股份有限公司 Automated performance testing method and its system based on Jmeter

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2001249451A1 (en) * 2000-03-27 2001-12-11 Accenture Llp System, method, and article of manufacture for an automated scripting solution for enterprise testing
US20170124497A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. System for automated capture and analysis of business information for reliable business venture outcome prediction
CN109726094A (en) * 2017-10-27 2019-05-07 北京京东尚科信息技术有限公司 The method and apparatus of pressure test
CN109359033A (en) * 2018-09-05 2019-02-19 广州神马移动信息科技有限公司 Method for testing pressure, testing service device, management server and system
CN109753438A (en) * 2019-01-14 2019-05-14 上海挚极信息科技有限公司 Testing Platform and method based on jmeter
CN109960619A (en) * 2019-02-12 2019-07-02 众安在线财产保险股份有限公司 A kind of Testing Platform and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179986A (en) * 2016-03-10 2017-09-19 阿里巴巴集团控股有限公司 The method for testing pressure and device of operation system
CN107329870A (en) * 2017-06-07 2017-11-07 河南辉煌城轨科技有限公司 A kind of urban track traffic automatic machine performance test methods
CN110502435A (en) * 2019-07-26 2019-11-26 广东睿江云计算股份有限公司 Automated performance testing method and its system based on Jmeter
CN110427313A (en) * 2019-07-30 2019-11-08 上海工程技术大学 A kind of test macro and method of automatic machine trading function

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Analysis of Electronic Ticketing System Acceptance Using an Extended Unified Theory of Acceptance and Use of Technology (UTAUT);Aries Susanto等;《2018 6th International Conference on Cyber and IT Service Management (CITSM)》;第1-5页 *
地铁TVM运营维护系统的设计与开发;朱亚波;《cnki优秀硕士学位论文全文库 工程科技Ⅱ辑》(第07期);第C033-34页 *

Also Published As

Publication number Publication date
CN111209207A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN111209207B (en) Performance test method, device and system of passenger ticket system
EP1264261B1 (en) Monitoring operation of and interaction with services provided over a network
CN110377462B (en) Interface testing method and device and terminal equipment
CN111897738B (en) Automatic testing method and device based on atomic service
CN110659870A (en) Business audit test method, device, equipment and storage medium
CN107273250B (en) Testing method and device of electronic insurance policy automatic underwriting system
CN111506311A (en) Internet rapid iterative development, integration and release method and middlebox enabling engine
CN110806922B (en) Script execution method, device, equipment and storage medium
CN106815150A (en) Service end interface test system and method
US9304891B1 (en) Load-test generator
CN111078527B (en) Auxiliary system and method for pressure testing of server
CN117707837A (en) Interface parameter verification method, device, equipment and readable storage medium
CN113516729A (en) Chart drawing method and device and computer readable storage medium
CN115328997B (en) Data synchronization method, system, device and storage medium
CN113032647B (en) Data analysis system
CN109510735A (en) A kind of method and device of message test
CN112769627B (en) Network environment simulation method, system and computer program product
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
CN116756043B (en) Software testing method, device and equipment of target equipment and storage medium
CN117528431B (en) Data monitoring method and device of communication platform and terminal equipment
CN114124992B (en) Method, device, equipment and system for monitoring running state of whole vehicle domain controller
CN112215587B (en) Method, device and system for automatically executing business process interaction tasks by multiple devices
CN109995607A (en) Test method, terminal, server and the computer storage medium of traffic overhead
CN117969114A (en) Uploading management method, system and device for vehicle driving test problem
CN116643825A (en) Virtual desktop configuration method, device, equipment and storage medium

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