CN111447120A - Pressure testing method and system based on Tuxedo - Google Patents
Pressure testing method and system based on Tuxedo Download PDFInfo
- Publication number
- CN111447120A CN111447120A CN202010235356.9A CN202010235356A CN111447120A CN 111447120 A CN111447120 A CN 111447120A CN 202010235356 A CN202010235356 A CN 202010235356A CN 111447120 A CN111447120 A CN 111447120A
- Authority
- CN
- China
- Prior art keywords
- tuxedo
- airspace
- server
- address
- port
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/147—Network analysis or design for predicting network behaviour
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Abstract
The invention provides a pressure testing method and system based on Tuxedo, wherein the method comprises the steps of establishing domain connection between a Tuxedo airspace service end and a Tuxedo tested service end according to a Tuxedo service on an airspace host and a tested system server, a first domain connection configuration file on the airspace host and a second domain connection configuration file on the tested system server, establishing WS L connection between the Tuxedo airspace service end and the Tuxedo client according to the Tuxedo service on the airspace host and an L oadRunner Tuxedo protocol pressure initiating script, and starting a L oadRunner tool and a L oadRunner Tuxedo protocol pressure initiating script to carry out pressure testing on the tested system server, so that discovery and prevention of hidden performance defects of a production system can be facilitated, the performance testing is closer to the production reality, and the safe and stable operation of the system is guaranteed.
Description
Technical Field
The invention relates to the technical field of application testing, in particular to a pressure testing method and system based on Tuxedo.
Background
Tuxedo is a powerful tool for developing and managing three-tier structured client/server type mission critical application systems in a distributed computing environment such as enterprise, Internet, etc. The TUXEDO is widely applied to core business systems of various industries such as finance, telecommunication, manufacturing and the like because the TUXEDO has all bottom layer functions necessary for enterprise-level application, extremely strong dynamic deployment and self-adaptive adjustment capabilities, and the like and supports the remarkable advantages of almost all hosts and database manufacturers in the industry; and research shows that: tuxedo is no longer the world's first trade class middleware product, regardless of market share, technology system, product history, success case.
The method is widely applied to Tuxedo, so that during performance test of application systems in the financial field, a production scene that the systems communicate through a Tuxedo domain connection mode is often encountered, L oadRunner performance test tools are used for simulating that an application system initiates load pressure to a tested service system under the scene, in order to effectively simulate the production scene, the test press and the tested system need to be connected in the Tuxedo domain mode, however, the bottom environment variable setting function lrt _ set _ env _ list () of L oadRunner limits that the L oadR unner test press can only communicate with the application system in a client-server WS L connection mode, and limits performance test pressure initiation under the scene in a technical level, and under the traditional performance test method that the TUXEDO WS L is used for connecting the simulation domain connection to conduct performance test, a performance test result cannot reflect the performance status of a real production system, and can possibly hide performance defects of the production system and bury hidden dangers for system operation.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a pressure testing method and system based on Tuxedo, so that performance testing is closer to actual production, and safe and stable operation of the system is guaranteed.
In order to achieve the above object, an embodiment of the present invention provides a Tuxedo-based pressure testing method, including:
establishing a domain connection between a Tuxedo airspace service terminal and a Tuxedo tested service terminal according to a Tuxedo service started on an airspace host and a tested system server in advance, a first domain connection configuration file created on the airspace host in advance and a second domain connection configuration file created on the tested system server in advance, wherein the Tuxedo airspace service terminal is installed on the airspace host which is an airspace forwarding server or an L oadRunner test press;
establishing a WS L connection between a Tuxedo airspace service end and a Tuxedo client according to a Tuxedo service started on an airspace host and a pre-created L oadRunner Tuxedo protocol pressure initiating script, wherein the Tuxedo client is installed on a L oadRunner test press;
the L oadRunner tool and L oadRunner Tuxedo protocol pressure initiation scripts were launched to stress test the system under test server.
The embodiment of the invention also provides a pressure testing system based on Tuxedo, which comprises:
the system comprises a domain connection establishing unit, a Tuxedo domain server and a Tuxedo tested server, wherein the domain connection establishing unit is used for establishing domain connection between the Tuxedo domain server and the Tuxedo tested server according to a Tuxedo service started on an airspace host and the tested system server in advance, a first domain connection configuration file established on the airspace host in advance and a second domain connection configuration file established on the tested system server in advance;
the WS L establishing unit is used for establishing a WS L connection between a Tuxedo airspace service end and a Tuxedo client according to a Tuxedo service started on an airspace host and a pre-created L oadRunner Tuxedo protocol pressure initiating script, wherein the Tuxedo client is installed on a L oadRunner test press;
and the pressure testing unit is used for starting L oadRunner tools and L oadRunner Tuxedo protocol pressure initiating scripts to perform pressure testing on the tested system server.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the Tuxedo-based pressure testing method when executing the computer program.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the Tuxedo-based pressure testing method.
According to the pressure testing method and system based on the Tuxedo, the domain connection is established between the Tuxedo airspace service end and the Tuxedo tested service end according to the started Tuxedo service and the domain connection configuration file, then the WS L connection is established between the Tuxedo airspace service end and the Tuxedo client according to the Tuxedo service and the L oadRunner Tuxedo protocol pressure initiating script, finally the L oadRunner tool and the L oadRunner Tuxedo protocol pressure initiating script are started to carry out the pressure test on the tested system server, the domain connection between the L oadRunner test press and the tested system can be realized, the technical problem that a L oadRunner bottom function cannot be realized is solved, the discovery and prevention of hidden performance defects of the production system are facilitated, the performance test is closer to the production practice, and the safe and stable operation of the system is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for Tuxedo-based pressure testing in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of a method for Tuxedo-based pressure testing in accordance with another embodiment of the present invention;
FIG. 3 is a schematic diagram of a domain connection configuration of an airspace master L oadRunner test press according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a domain connection configuration in which the airspace host is an airspace forwarding server according to an embodiment of the present invention;
FIG. 5 is a block diagram of a Tuxedo-based pressure testing system according to an embodiment of the present invention;
fig. 6 is a block diagram of a computer device in an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
In view of the fact that the prior art cannot reflect the performance status of a real production system and bury hidden dangers for system operation, the embodiment of the invention provides a pressure testing method based on Tuxedo, so that the performance testing is closer to the actual production, and the safe and stable operation of the system is guaranteed. The present invention will be described in detail below with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method for Tuxedo-based pressure testing in accordance with an embodiment of the present invention. As shown in fig. 1, the Tuxedo-based pressure test method includes:
s101: and establishing a domain connection between the Tuxedo airspace service terminal and the Tuxedo tested service terminal according to the Tuxedo service started on the airspace host and the tested system server in advance, the first domain connection configuration file created on the airspace host in advance and the second domain connection configuration file created on the tested system server in advance.
Tuxedo organizes applications using domains (domains). When Tuxedo service calls exist among a plurality of domains, normal calls can be realized only through domain connection.
The Tuxedo airspace server is installed on an airspace host, the airspace host is an airspace forwarding server or an L oadRunner test press, and the Tuxedo tested server is installed on a tested system server.
L oadRunner is a stress testing tool that predicts system behavior and performance, and can identify and locate problems by simulating tens of millions of users to perform concurrent stress and real-time performance monitoring.
Tuxedo is a client/server "middleware" product that mediates between clients and servers to ensure that transactions are processed correctly. The middleware is an interlayer between the client and the server, breaks through the traditional C/S architecture, provides basic services of communication, things, safety, fault tolerance and the like for constructing large-scale, high-performance and distributed C/S application programs, shields bottom application details, and replaces the development simplicity of the application programs with the complexity of the middleware.
And S102, establishing WS L connection between a Tuxedo airspace service end and a Tuxedo client according to a Tuxedo service started on the airspace host and a pre-created L oadRunner Tuxedo protocol pressure initiating script.
When a Tuxedo transaction starts, the remote client will firstly establish connection with the monitoring process WS L of the Tuxedo airspace server, and after the security verification is passed, the Tuxedo airspace server allocates an idle process to process the client request, i.e., establishes WS L connection.
Before executing S102, the method further comprises a L oadRunner Tuxedo protocol pressure initiating script which is pre-created according to the address and port configuration of the Tuxedo airspace service end, wherein the Tuxedo client is installed on an L oadRunner test press, and the Tuxedo directory of the L oadRunner test press is appointed when the environment variable is loaded by the L oadRunner Tuxedo protocol pressure initiating script.
S103, starting L oadRunner tool and L oadRunner Tuxedo protocol pressure initiating script to carry out pressure test on the tested system server.
It can be known from the flow shown in fig. 1 that, in the Tuxedo-based pressure testing method according to the embodiment of the present invention, a domain connection is established between the Tuxedo airspace service end and the Tuxedo tested service end according to the started Tuxedo service and domain connection configuration file, then a WS L connection is established between the Tuxedo airspace service end and the Tuxedo client according to the Tuxedo service and the L oadnner Tuxedo protocol pressure initiation script, and finally, the L oadanner tool and the L oadanner Tuxedo protocol pressure initiation script are started to perform pressure testing on the tested system server, so that the domain connection between the L oadanner test press and the tested system can be realized, the technical problem that the L oadanner bottom function cannot be realized is solved, the discovery and prevention of hidden performance defects of the production system are facilitated, the performance test is enabled to be safer to run, and the production system is ensured.
FIG. 2 is a flow chart of a method for Tuxedo-based pressure testing in another embodiment of the present invention. As shown in fig. 2, before performing S101, the Tuxedo-based pressure testing method further includes:
s201: and taking the address and the port of the Tuxedo airspace server as the address and the port of a first local gateway, and taking the address and the port of the Tuxedo tested server as the address and the port of a first remote gateway.
S202: a first domain connection profile is created based on the address and port of the first local gateway and the address and port of the first remote gateway.
Wherein, the first domain connection configuration file is a Dmconfig information file.
S203: and taking the address and the port of the Tuxedo tested server as the address and the port of a second local gateway, and taking the address and the port of the Tuxedo airspace server as the address and the port of a second remote gateway.
S204: and creating a second domain connection configuration file according to the address and the port of the second local gateway and the address and the port of the second remote gateway.
And the second domain connection configuration file is a Dmconfig information file.
In one embodiment, before executing S201, the method further includes: installing a Tuxedo tested server on a tested system server;
establishing a tested system application under a Tuxedo tested server;
and creating a first local domain configuration file on the tested system server, wherein the first local domain configuration file comprises the address and the port of the Tuxedo tested server.
The first local domain configuration file is an Ubbconfig information file, and can provide service to the outside after being compiled.
In one embodiment, before executing S201, the method further includes: installing a Tuxedo airspace server on the airspace host;
establishing a virtual application under a Tuxedo airspace server, namely establishing an application directory, wherein a bin directory is empty;
and creating a second local domain configuration file on the airspace host, wherein the second local domain configuration file comprises the address and the port of the Tuxedo airspace server.
And the second local domain configuration file is an Ubbconfig information file, and can provide service for the outside after being compiled.
Fig. 3 is a schematic diagram of a domain connection configuration mode of an airspace host machine which is an L oadRunner test press according to an embodiment of the present invention, as shown in fig. 3, when the airspace host machine is a L oadRunner test press, a Tuxedo airspace service end and a Tuxedo client are installed on a L oadRunner test press, so that the Tuxedo service end (virtual application) and the Tuxedo tested service end (tested system application) on the L oadRunner test press become a peer-to-server relationship between the Tuxedo service end and the airspace server and communicate in a domain mode, a L oadRunner pressure initiation of the L oadRunner test press is a virtual application simulating the Tuxedo client to call the local Tuxedo service airspace end, and the virtual application calls a remote available service airspace through domain connection to complete a transaction.
As shown in fig. 3, when the null host is an L oadRunner test press, the flow of the embodiment of the present invention is as follows:
1. and (3) building an L oadRunner test press to simulate a production system A, building a tested system server to simulate a production system B, and opening a network access relation.
2. And installing a Tuxedo tested server on the tested system server, and establishing a tested system application under the Tuxedo tested server.
3. And creating a first local domain configuration file on the tested system server, wherein the first local domain configuration file comprises the address and the port of the Tuxedo tested server.
4. And installing a Tuxedo airspace service terminal and a Tuxedo client on an L oadRunner test press.
5. And establishing virtual application under a Tuxedo airspace server.
6. A second local domain configuration file is created on the L oadRunner test press, the second local domain configuration file including the address and port of the Tuxedo airspace server.
7. And taking the address and the port of the Tuxedo airspace server as the address and the port of a first local gateway, and taking the address and the port of the Tuxedo tested server as the address and the port of a first remote gateway.
8. A first domain connection profile is created based on the address and port of the first local gateway and the address and port of the first remote gateway.
9. And taking the address and the port of the Tuxedo tested server as the address and the port of a second local gateway, and taking the address and the port of the Tuxedo airspace server as the address and the port of a second remote gateway.
10. And creating a second domain connection configuration file according to the address and the port of the second local gateway and the address and the port of the second remote gateway.
11. And according to the address and port configuration of the Tuxedo airspace service end, pre-created L oadRunner Tuxedo protocol pressure initiation script.
12. And establishing domain connection between the Tuxedo airspace server and the Tuxedo tested server according to the Tuxedo service, the first domain connection configuration file and the second domain connection configuration file which are started on the airspace host and the tested system server in advance.
13. And establishing a WS L connection between the Tuxedo airspace service end and the Tuxedo client according to the Tuxedo service started on the airspace host and the L oadRunner Tuxedo protocol pressure initiating script.
14. The L oadRunner tool and L oadRunner Tuxedo protocol pressure initiation scripts were launched to stress test the system under test server.
The pressure test path is L oadRunner test press (Tuxedo client) → L oadRunner test press (Tuxedo airspace server) → tested system server (Tuxedo tested server).
When the airspace host is an L oadRunner test press, a Tuxedo airspace service end on the L oadRunner test press and a Tuxedo tested service end form an equivalent relation, in this case, the validity of the test result may be influenced by the resource consumption of airspace forwarding on the L oadRunner test press, and therefore, a airspace forwarding server is newly introduced between the L oadRunner test press and the tested system server and is specially used for airspace forwarding.
As shown in figure 4, when the airspace host is an airspace forwarding server, only a Tuxedo client is installed on an L oadRunner test press, a Tuxedo airspace service terminal is installed on the airspace forwarding server, and an application configured by the Tuxedo airspace service terminal is a virtual application. L oadRunner test press is connected with the airspace forwarding server in a mode of 'client-server' through WS L.
As shown in fig. 4, when the airspace host is an airspace forwarding server, the flow of the embodiment of the present invention is as follows:
1. and (3) building an L oadRunner test press to simulate a production system A, building an airspace forwarding server, building a tested system server to simulate a production system B, and opening a network access relation.
2. And installing a Tuxedo tested server on the tested system server, and establishing a tested system application under the Tuxedo tested server.
3. And creating a first local domain configuration file on the tested system server, wherein the first local domain configuration file comprises the address and the port of the Tuxedo tested server.
4. The Tuxedo client was installed on the L oadRunner test press.
5. And installing a Tuxedo airspace server on the airspace forwarding server, and establishing virtual application under the Tuxedo airspace server.
6. A second local domain configuration file is created on the L oadRunner test press, the second local domain configuration file including the address and port of the Tuxedo airspace server.
7. And taking the address and the port of the Tuxedo airspace server as the address and the port of a first local gateway, and taking the address and the port of the Tuxedo tested server as the address and the port of a first remote gateway.
8. A first domain connection profile is created based on the address and port of the first local gateway and the address and port of the first remote gateway.
9. And taking the address and the port of the Tuxedo tested server as the address and the port of a second local gateway, and taking the address and the port of the Tuxedo airspace server as the address and the port of a second remote gateway.
10. And creating a second domain connection configuration file according to the address and the port of the second local gateway and the address and the port of the second remote gateway.
11. And according to the address and port configuration of the Tuxedo airspace service end, pre-created L oadRunner Tuxedo protocol pressure initiation script.
12. And establishing domain connection between the Tuxedo airspace server and the Tuxedo tested server according to the Tuxedo service, the first domain connection configuration file and the second domain connection configuration file which are started on the airspace host and the tested system server in advance.
13. And establishing a WS L connection between the Tuxedo airspace service end and the Tuxedo client according to the Tuxedo service started on the airspace host and the L oadRunner Tuxedo protocol pressure initiating script.
14. The L oadRunner tool and L oadRunner Tuxedo protocol pressure initiation scripts were launched to stress test the system under test server.
The pressure test path is L oadRunner test press (Tuxedo client) → airspace forwarding server (Tuxedo airspace server) → tested system server (Tuxedo tested server).
To sum up, according to the Tuxedo-based pressure testing method in the embodiment of the present invention, a domain connection is established between a Tuxedo airspace service end and a Tuxedo tested service end according to a started Tuxedo service and domain connection configuration file, then a WS L connection is established between the Tuxedo airspace service end and the Tuxedo client according to a Tuxedo service and L oadRunner Tuxedo protocol pressure initiation script, and finally a L oadRunner tool and a L oadRunner Tuxedo protocol pressure initiation script are started to perform a pressure test on the tested system server, so that a domain connection between a L oadRunner test press and a tested system can be implemented, a technical problem that a L oadRunner bottom function cannot be implemented is solved, discovery and prevention of hidden performance defects of a production system are facilitated, a performance test is more close to production practice, and the system is guaranteed to operate safely and stably.
Based on the same inventive concept, the embodiment of the invention also provides a Tuxedo-based pressure testing system, and as the principle of solving the problems of the system is similar to that of the Tuxedo-based pressure testing method, the implementation of the system can refer to the implementation of the method, and repeated parts are not described again.
FIG. 5 is a block diagram of a Tuxedo-based pressure testing system according to an embodiment of the present invention. As shown in fig. 5, the Tuxedo-based pressure testing system includes:
the system comprises a domain connection establishing unit, a Tuxedo domain server and a Tuxedo tested server, wherein the domain connection establishing unit is used for establishing domain connection between the Tuxedo domain server and the Tuxedo tested server according to a Tuxedo service started on an airspace host and the tested system server in advance, a first domain connection configuration file established on the airspace host in advance and a second domain connection configuration file established on the tested system server in advance;
the WS L establishing unit is used for establishing a WS L connection between a Tuxedo airspace service end and a Tuxedo client according to a Tuxedo service started on an airspace host and a pre-created L oadRunner Tuxedo protocol pressure initiating script, wherein the Tuxedo client is installed on a L oadRunner test press;
and the pressure testing unit is used for starting L oadRunner tools and L oadRunner Tuxedo protocol pressure initiating scripts to perform pressure testing on the tested system server.
In one embodiment, the method further comprises the following steps:
the first port address setting unit is used for taking the address and the port of the Tuxedo airspace service end as the address and the port of a first local gateway and taking the address and the port of the Tuxedo tested service end as the address and the port of a first remote gateway;
the first domain connection configuration unit is used for creating a first domain connection configuration file according to the address and the port of the first local gateway and the address and the port of the first remote gateway;
the second port address setting unit is used for taking the address and the port of the Tuxedo tested server as the address and the port of a second local gateway and taking the address and the port of the Tuxedo airspace server as the address and the port of a second remote gateway;
and the second domain connection configuration unit is used for creating a second domain connection configuration file according to the address and the port of the second local gateway and the address and the port of the second remote gateway.
In one embodiment, the method further comprises the following steps:
and the script creating unit is used for initiating a script according to the L oadRunner Tuxedo protocol pressure created in advance by the address and port configuration of the Tuxedo airspace service terminal.
In one embodiment, the method further comprises the following steps:
the first service end installation unit is used for installing a Tuxedo tested service end on a tested system server;
the tested system application establishing unit is used for establishing the tested system application under the Tuxedo tested server;
the first configuration file creating unit is used for creating a first local domain configuration file on the tested system server, wherein the first local domain configuration file comprises the address and the port of the Tuxedo tested server.
In one embodiment, the method further comprises the following steps:
the second server installation unit is used for installing the Tuxedo airspace server on the airspace host;
the virtual application establishing unit is used for establishing virtual application under a Tuxedo airspace server;
and the second configuration file creating unit is used for creating a second local domain configuration file on the airspace host, wherein the second local domain configuration file comprises the address and the port of the Tuxedo airspace server.
To sum up, the Tuxedo-based pressure testing system according to the embodiment of the present invention first establishes a domain connection between the Tuxedo airspace service end and the Tuxedo tested service end according to the started Tuxedo service and domain connection configuration file, then establishes a WS L connection between the Tuxedo airspace service end and the Tuxedo client according to the Tuxedo service and the L oadRunner Tuxedo protocol pressure initiation script, and finally starts the L oadRunner tool and the L oadRunner Tuxedo protocol pressure initiation script to perform a pressure test on the tested system server, so as to implement the domain connection between the L oadRunner testing press and the tested system, solve the technical problem that the L oadRunner bottom function cannot be implemented, facilitate the discovery and prevention of hidden performance defects of the production system, make the performance test closer to the production practice, and ensure the safe and stable operation of the system.
The embodiment of the invention also provides a specific implementation manner of computer equipment capable of realizing all the steps in the Tuxedo-based pressure testing method in the embodiment. Fig. 6 is a block diagram of a computer device according to an embodiment of the present invention, and referring to fig. 6, the computer device specifically includes the following components:
a processor (processor)601 and a memory (memory) 602.
The processor 601 is configured to call a computer program in the memory 602, and the processor executes the computer program to implement all the steps of the Tuxedo-based pressure testing method in the above embodiment, for example, the processor executes the computer program to implement the following steps:
establishing a domain connection between a Tuxedo airspace service terminal and a Tuxedo tested service terminal according to a Tuxedo service started on an airspace host and a tested system server in advance, a first domain connection configuration file created on the airspace host in advance and a second domain connection configuration file created on the tested system server in advance, wherein the Tuxedo airspace service terminal is installed on the airspace host which is an airspace forwarding server or an L oadRunner test press;
establishing a WS L connection between a Tuxedo airspace service end and a Tuxedo client according to a Tuxedo service started on an airspace host and a pre-created L oadRunner Tuxedo protocol pressure initiating script, wherein the Tuxedo client is installed on a L oadRunner test press;
the L oadRunner tool and L oadRunner Tuxedo protocol pressure initiation scripts were launched to stress test the system under test server.
To sum up, the computer device according to the embodiment of the present invention establishes a domain connection between a Tuxedo airspace service end and a Tuxedo measured service end according to a Tuxedo service and a domain connection configuration file that are started, then establishes a WS L connection between the Tuxedo airspace service end and a Tuxedo client according to the Tuxedo service and an L oadRunnerTuxedo protocol pressure initiation script, and finally starts a L oadRunner tool and a L oadRunner Tuxedo protocol pressure initiation script to perform a pressure test on a measured system server, so that the domain connection between a L oadRunner test press and a measured system can be realized, the technical problem that a L oadRunner bottom function cannot be realized is solved, discovery and prevention of hidden performance defects of a production system are facilitated, a performance test is closer to a production practice, and a system is ensured to operate safely and stably.
Embodiments of the present invention further provide a computer-readable storage medium capable of implementing all steps in the Tuxedo-based pressure testing method in the foregoing embodiments, where the computer-readable storage medium stores thereon a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the Tuxedo-based pressure testing method in the foregoing embodiments, for example, when the processor executes the computer program, the processor implements the following steps:
establishing a domain connection between a Tuxedo airspace service terminal and a Tuxedo tested service terminal according to a Tuxedo service started on an airspace host and a tested system server in advance, a first domain connection configuration file created on the airspace host in advance and a second domain connection configuration file created on the tested system server in advance, wherein the Tuxedo airspace service terminal is installed on the airspace host which is an airspace forwarding server or an L oadRunner test press;
establishing a WS L connection between a Tuxedo airspace service end and a Tuxedo client according to a Tuxedo service started on an airspace host and a pre-created L oadRunner Tuxedo protocol pressure initiating script, wherein the Tuxedo client is installed on a L oadRunner test press;
the L oadRunner tool and L oadRunner Tuxedo protocol pressure initiation scripts were launched to stress test the system under test server.
To sum up, the computer-readable storage medium according to the embodiment of the present invention establishes a domain connection between a Tuxedo airspace service end and a Tuxedo tested service end according to a Tuxedo service and a domain connection configuration file that are started, then establishes a WS L connection between the Tuxedo airspace service end and the Tuxedo client according to a Tuxedo service and an L oadRunner Tuxedo protocol pressure initiation script, and finally starts a L oadRunner tool and a L oadRunner protocol pressure initiation script to perform a pressure test on the tested system server, so that the domain connection between a L oadRunner test press and a tested system can be implemented, a technical problem that a L oadRunner bottom function cannot be implemented is solved, discovery and prevention of hidden performance defects of a production system are facilitated, a performance test is more proximate to production practice, and a system is ensured to operate safely and stably.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Those of skill in the art will further appreciate that the various illustrative logical blocks, units, and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate the interchangeability of hardware and software, various illustrative components, elements, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The various illustrative logical blocks, or elements, or devices described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may be located in a user terminal. In the alternative, the processor and the storage medium may reside in different components in a user terminal.
In one or more exemplary designs, the functions described in the embodiments of this invention may be implemented in hardware, software, firmware, or any combination thereof, if implemented in software, these functions may be stored on a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium including a computer storage medium and a communications medium that facilitates transfer of a computer program from one place to another.
Claims (12)
1. A pressure testing method based on Tuxedo is characterized by comprising the following steps:
establishing domain connection between a Tuxedo airspace service terminal and a Tuxedo tested service terminal according to a Tuxedo service started on an airspace host and a tested system server in advance, a first domain connection configuration file created on the airspace host in advance and a second domain connection configuration file created on the tested system server in advance, wherein the Tuxedo airspace service terminal is installed on the airspace host which is an airspace forwarding server or an L oadRunner test press;
establishing WS L connection between a Tuxedo airspace service end and a Tuxedo client according to a Tuxedo service started on the airspace host and a pre-created L oadRunner Tuxedo protocol pressure initiating script, wherein the Tuxedo client is installed on the L oadRunner test press;
initiating L oadRunner tool and the L oadRunner Tuxedo protocol pressure initiation script to stress test the system under test server.
2. The Tuxedo-based pressure testing method of claim 1, further comprising:
taking the address and the port of the Tuxedo airspace server as the address and the port of a first local gateway, and taking the address and the port of the Tuxedo tested server as the address and the port of a first remote gateway;
creating a first domain connection configuration file according to the address and the port of the first local gateway and the address and the port of the first remote gateway;
taking the address and the port of the Tuxedo airspace server as the address and the port of a second remote gateway;
and creating a second domain connection configuration file according to the address and the port of the second local gateway and the address and the port of the second remote gateway.
3. The Tuxedo-based pressure testing method of claim 2, further comprising:
and according to the address and port configuration of the Tuxedo airspace service end, a pre-created L oadRunner Tuxedo protocol pressure initiating script is configured.
4. The Tuxedo-based pressure testing method of claim 2, further comprising:
installing the Tuxedo tested server on the tested system server;
establishing a tested system application under the Tuxedo tested server;
and creating a first local domain configuration file on the tested system server, wherein the first local domain configuration file comprises the address and the port of the Tuxedo tested server.
5. The Tuxedo-based pressure testing method of claim 2, further comprising:
installing the Tuxedo airspace server on the airspace host;
establishing virtual application under the Tuxedo airspace server;
and creating a second local domain configuration file on the airspace host, wherein the second local domain configuration file comprises the address and the port of the Tuxedo airspace server.
6. A Tuxedo-based pressure testing system, comprising:
the system comprises a domain connection establishing unit, a domain connection establishing unit and a domain connection establishing unit, wherein the domain connection establishing unit is used for establishing domain connection between a Tuxedo airspace service terminal and a Tuxedo tested service terminal according to a Tuxedo service started on an airspace host and the tested system server in advance, a first domain connection configuration file established on the airspace host in advance and a second domain connection configuration file established on the tested system server in advance, the Tuxedo airspace service terminal is installed on the airspace host, the airspace host is an airspace forwarding server or an L oadRunner testing press, and the Tuxedo tested service terminal is installed on the tested system server;
the WS L establishing unit is used for establishing a WS L connection between the Tuxedo airspace service end and the Tuxedo client according to the Tuxedo service started on the airspace host and a pre-created L oadRunner Tuxedo protocol pressure initiating script, wherein the Tuxedo client is installed on the L oadRunner test press;
a pressure testing unit for starting L oadRunner tool and L oadRunner Tuxedo protocol pressure initiating script to perform pressure test on the tested system server.
7. The Tuxedo-based pressure testing system of claim 6, further comprising:
the first port address setting unit is used for taking the address and the port of the Tuxedo airspace service end as the address and the port of a first local gateway and taking the address and the port of the Tuxedo tested service end as the address and the port of a first remote gateway;
a first domain connection configuration unit, configured to create a first domain connection configuration file according to the address and the port of the first local gateway and the address and the port of the first remote gateway;
the second port address setting unit is used for taking the address and the port of the Tuxedo airspace server as the address and the port of a second local gateway and taking the address and the port of the Tuxedo airspace server as the address and the port of a second remote gateway;
and the second domain connection configuration unit is used for creating a second domain connection configuration file according to the address and the port of the second local gateway and the address and the port of the second remote gateway.
8. The Tuxedo-based pressure testing system of claim 7, further comprising:
and the script creating unit is used for initiating a script according to the L oadRunner Tuxedo protocol pressure created in advance by the address and port configuration of the Tuxedo airspace service terminal.
9. The Tuxedo-based pressure testing system of claim 7, further comprising:
the first service end installation unit is used for installing the Tuxedo tested service end on the tested system server;
the tested system application establishing unit is used for establishing a tested system application under the Tuxedo tested server;
the first configuration file creating unit is used for creating a first local domain configuration file on the tested system server, wherein the first local domain configuration file comprises the address and the port of the Tuxedo tested server.
10. The Tuxedo-based pressure testing system of claim 7, further comprising:
the second server installation unit is used for installing the Tuxedo airspace server on the airspace host;
the virtual application establishing unit is used for establishing virtual application under the Tuxedo airspace server;
and the second configuration file creating unit is used for creating a second local domain configuration file on the airspace host, wherein the second local domain configuration file comprises the address and the port of the Tuxedo airspace server.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the steps of the Tuxedo-based pressure testing method according to any one of claims 1 to 5 are implemented when the computer program is executed by the processor.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the Tuxedo-based pressure testing method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010235356.9A CN111447120B (en) | 2020-03-30 | 2020-03-30 | Pressure testing method and system based on Tuxedo |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010235356.9A CN111447120B (en) | 2020-03-30 | 2020-03-30 | Pressure testing method and system based on Tuxedo |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111447120A true CN111447120A (en) | 2020-07-24 |
CN111447120B CN111447120B (en) | 2021-08-20 |
Family
ID=71652607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010235356.9A Active CN111447120B (en) | 2020-03-30 | 2020-03-30 | Pressure testing method and system based on Tuxedo |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111447120B (en) |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060168169A1 (en) * | 2004-05-18 | 2006-07-27 | Bea Systems, Inc. | Dynamic domain administration utility |
CN101119392A (en) * | 2007-08-21 | 2008-02-06 | 南京联创科技股份有限公司 | SOCKET united access method |
CN101556683A (en) * | 2009-05-21 | 2009-10-14 | 中国建设银行股份有限公司 | Financial service system and implementation method |
CN102073969A (en) * | 2011-01-31 | 2011-05-25 | 中国光大银行股份有限公司 | Method for realizing debit and credit integrated card |
US20110154379A1 (en) * | 2009-12-23 | 2011-06-23 | Oracle International Corporation | System and method for providing transaction monitor integration with service component architecture (sca) runtime |
CN102496124A (en) * | 2011-12-01 | 2012-06-13 | 中国建设银行股份有限公司 | Additional service processing method and system |
CN102710458A (en) * | 2012-05-08 | 2012-10-03 | 华为技术有限公司 | Monitoring method of testing process, test management server and test server |
WO2013188691A1 (en) * | 2012-06-13 | 2013-12-19 | Oracle International Corporation | System and method for supporting implicit versioning in a transactional middleware machine environment |
CN104090824A (en) * | 2014-06-09 | 2014-10-08 | 中国建设银行股份有限公司 | Method, device and system for communication dispatching based on Tuxedo middleware |
CN104363184A (en) * | 2014-10-31 | 2015-02-18 | 北京思特奇信息技术股份有限公司 | JSON message processing method and system based on tuxedo communication mode |
CN104539478A (en) * | 2014-12-15 | 2015-04-22 | 微梦创科网络科技(中国)有限公司 | Pressure test device and method for instant communication system |
CN104572372A (en) * | 2014-12-26 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | System and method for building server performance testing environment |
CN105025103A (en) * | 2015-07-23 | 2015-11-04 | 北京南天软件有限公司 | Cloud routing method and device for application service system based on TUXEDO middleware |
CN106201854A (en) * | 2015-05-04 | 2016-12-07 | 北京畅游天下网络技术有限公司 | A kind of server load method of testing based on socket and system |
CN107943626A (en) * | 2017-11-08 | 2018-04-20 | 中国银联股份有限公司 | The performance test methods and associated server of a kind of transaction system |
CN110413594A (en) * | 2019-06-25 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of more example method for testing pressure of Redis and device |
-
2020
- 2020-03-30 CN CN202010235356.9A patent/CN111447120B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060168169A1 (en) * | 2004-05-18 | 2006-07-27 | Bea Systems, Inc. | Dynamic domain administration utility |
CN101119392A (en) * | 2007-08-21 | 2008-02-06 | 南京联创科技股份有限公司 | SOCKET united access method |
CN101556683A (en) * | 2009-05-21 | 2009-10-14 | 中国建设银行股份有限公司 | Financial service system and implementation method |
US20110154379A1 (en) * | 2009-12-23 | 2011-06-23 | Oracle International Corporation | System and method for providing transaction monitor integration with service component architecture (sca) runtime |
CN102073969A (en) * | 2011-01-31 | 2011-05-25 | 中国光大银行股份有限公司 | Method for realizing debit and credit integrated card |
CN102496124A (en) * | 2011-12-01 | 2012-06-13 | 中国建设银行股份有限公司 | Additional service processing method and system |
CN102710458A (en) * | 2012-05-08 | 2012-10-03 | 华为技术有限公司 | Monitoring method of testing process, test management server and test server |
WO2013188691A1 (en) * | 2012-06-13 | 2013-12-19 | Oracle International Corporation | System and method for supporting implicit versioning in a transactional middleware machine environment |
CN104090824A (en) * | 2014-06-09 | 2014-10-08 | 中国建设银行股份有限公司 | Method, device and system for communication dispatching based on Tuxedo middleware |
CN104363184A (en) * | 2014-10-31 | 2015-02-18 | 北京思特奇信息技术股份有限公司 | JSON message processing method and system based on tuxedo communication mode |
CN104539478A (en) * | 2014-12-15 | 2015-04-22 | 微梦创科网络科技(中国)有限公司 | Pressure test device and method for instant communication system |
CN104572372A (en) * | 2014-12-26 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | System and method for building server performance testing environment |
CN106201854A (en) * | 2015-05-04 | 2016-12-07 | 北京畅游天下网络技术有限公司 | A kind of server load method of testing based on socket and system |
CN105025103A (en) * | 2015-07-23 | 2015-11-04 | 北京南天软件有限公司 | Cloud routing method and device for application service system based on TUXEDO middleware |
CN107943626A (en) * | 2017-11-08 | 2018-04-20 | 中国银联股份有限公司 | The performance test methods and associated server of a kind of transaction system |
CN110413594A (en) * | 2019-06-25 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of more example method for testing pressure of Redis and device |
Non-Patent Citations (4)
Title |
---|
YIN WEN: "The application of Tuxedo middleware in the banking system", 《2011 IEEE 3RD INTERNATIONAL CONFERENCE ON COMMUNICATION SOFTWARE AND NETWORKS》 * |
林磊明等: "自主可控 敢为人先――国产高端容错计算机金融行业应用示范项目", 《金融电子化》 * |
王于: "Web服务性能测试模型的研究", 《电脑知识与技术》 * |
王琼: "基于交易中间件Tuxedo代收费系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN111447120B (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108829581B (en) | Application program testing method and device, computer equipment and storage medium | |
WO2017185952A1 (en) | Hardware device access management method and system | |
EP3575975B1 (en) | Method and apparatus for operating smart network interface card | |
US20190386956A1 (en) | Dynamically opening ports for trusted application processes hosted in containers | |
CN110289983B (en) | Load balancing application creation method and device, computer equipment and storage medium | |
CN112835782B (en) | Interface access test method and system | |
CN109831351B (en) | Link tracking method, device, terminal and storage medium | |
CN115599665A (en) | Disaster recovery system testing method and device, electronic equipment and storage medium | |
CN112235300A (en) | Cloud virtual network vulnerability detection method, system and device and electronic equipment | |
CN115665265B (en) | Request processing method, device, equipment, storage medium and system | |
CN109656791B (en) | gPC performance test method and device based on Jmeter | |
CN111447120A (en) | Pressure testing method and system based on Tuxedo | |
CN111447273A (en) | Cloud processing system and data processing method based on cloud processing system | |
CN115941766A (en) | Operation and maintenance data processing method and device | |
CN113934604A (en) | Service state monitoring method, device, equipment and storage medium | |
CN114238927A (en) | Business system login method, system, device, computer equipment and storage medium | |
CN113590352A (en) | Data calling method, device, equipment and readable storage medium | |
CN111722946A (en) | Distributed transaction processing method and device, computer equipment and readable storage medium | |
CN116361771B (en) | Method and device for accessing and managing equipment, electronic equipment and storage medium | |
CN115328778A (en) | http request processing method, http request processing device, computer device, and storage medium | |
CN111526043B (en) | Embedded equipment, embedded system and maintenance method thereof | |
CN114915651B (en) | WebSocket management method and device, electronic equipment and storage medium | |
CN113326513B (en) | Application testing method and device, system, electronic equipment and computer readable medium | |
CN116489204A (en) | Equipment calling method, first terminal, server, second terminal and electronic equipment | |
CN117195236A (en) | Vulnerability detection method and device for target service, electronic 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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221008 Address after: 12 / F, 15 / F, 99 Yincheng Road, Pudong New Area pilot Free Trade Zone, Shanghai, 200120 Patentee after: Jianxin Financial Science and Technology Co.,Ltd. Address before: 25 Financial Street, Xicheng District, Beijing 100033 Patentee before: CHINA CONSTRUCTION BANK Corp. Patentee before: Jianxin Financial Science and Technology Co.,Ltd. |
|
TR01 | Transfer of patent right |