[go: up one dir, main page]

CN106027315A - Data processing system access simulation method - Google Patents

Data processing system access simulation method Download PDF

Info

Publication number
CN106027315A
CN106027315A CN201610543601.6A CN201610543601A CN106027315A CN 106027315 A CN106027315 A CN 106027315A CN 201610543601 A CN201610543601 A CN 201610543601A CN 106027315 A CN106027315 A CN 106027315A
Authority
CN
China
Prior art keywords
data
message
isomery
configuration file
handling system
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
Application number
CN201610543601.6A
Other languages
Chinese (zh)
Other versions
CN106027315B (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 Unionpay Co Ltd
Original Assignee
China Unionpay 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 Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201610543601.6A priority Critical patent/CN106027315B/en
Publication of CN106027315A publication Critical patent/CN106027315A/en
Application granted granted Critical
Publication of CN106027315B publication Critical patent/CN106027315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides an access simulation method. The method includes the steps of reading a preset configuration file, and acquiring a to-be-monitored port list according to the configuration file; enabling one or more network monitor ports according to the acquired to-be-monitored port list; and when a port being monitored receives a data packet, determining a type of the data packet according to a number of the port receiving the data packet, analyzing and verifying, based on the configuration file, the data packet, constructing, based on the configuration file, a reply packet for the data packet, and returning the reply packet by using the port receiving the data packet. The access simulation method disclosed in the present invention has a simple structure, is easy to expand and maintain, and has low cost.

Description

Data handling system accesses emulation mode
Technical field
The present invention relates to data handling system and access emulation mode, more particularly, to the access emulation mode of the data handling system for being made up of the subsystem of isomery.
Background technology
At present, along with the becoming increasingly abundant of class of business of the increasingly extensive of network application and different field (such as financial field), the access of specific data handling system (such as the data handling system of specific transactions content) is accessed and carries out emulation and be beneficial to exploitation and test becomes more and more important.
In existing technical scheme, it is generally directed to the single access for the data handling system of specific transactions and emulates, i.e. access emulation interface for the exploitation of each specific data handling system, effectively test verification environment in order to provide.
But, there are the following problems for above-mentioned existing technical scheme: structure and the type of service of the data message used due to each specific data handling system may often be such that different, therefore when data handling system to be tested be include multiple isomery for the data process subsystem of different specific transactions time, it is required for the exploitation of each data process subsystem and designs independent access emulation testing interface, thus cause structure complicated, relatively costly and be difficult to flexible expansion and maintenance.
Accordingly, there exist following demand: a kind of simple in construction is provided, is prone to extension and safeguards and the access emulation mode of the lower-cost data handling system for being made up of the data process subsystem of isomery.
Summary of the invention
In order to solve the problem existing for above-mentioned prior art, the present invention proposes a kind of simple in construction, is prone to extension and safeguards and the access emulation mode of the lower-cost data handling system for being made up of the data process subsystem of isomery.
It is an object of the invention to be achieved through the following technical solutions:
The access emulation mode of a kind of data handling system for being made up of the data process subsystem of isomery, the access emulation mode of the described data handling system for being made up of the data process subsystem of isomery comprises the following steps:
(A1) resident and run on simulation subsystem on the access server of described data handling system and read the configuration file pre-set, and obtain port list to be monitored according to described configuration file;
(A2) described simulation subsystem opens one or more network monitoring ports according to acquired port list to be monitored;
(A3) when the port monitored receives data message, described simulation subsystem judges the type of described data message according to the numbering of the port receiving this data message, and resolve based on described configuration file, verify described data message therewith, and build the response message for described data message based on described configuration file, and send back described response message to realize accessing emulation via the port receiving this data message.
In scheme disclosed above, it is preferable that use different ports to receive the data message for the different data process subsystem in the data process subsystem of described isomery.
In scheme disclosed above, preferably, described step (A3) farther includes: after receiving described data message, described simulation subsystem to obtain the message characteristic code extracting mode of data message for the type, and uses described message characteristic code extracting mode resolve this data message and extract the condition code of this data message according to configuration file described in the type queries of described data message therewith.
In scheme disclosed above, preferably, described step (A3) farther includes: after extracting the condition code of data message, and described simulation subsystem determines the emulation use-case corresponding to this feature code according to the condition code comprised in described configuration file-emulation use-case mapping relations.
In scheme disclosed above, it is preferable that described emulation use-case includes at least message check system and the definition of message response generating mode.
In scheme disclosed above, it is preferable that determine corresponding to described condition code emulation use-case definition message check system after, described simulation subsystem according to determined by message check system verify the data message corresponding to this feature code.
In scheme disclosed above, preferably, after the message response generating mode of the emulation use-case definition determined corresponding to described condition code, described simulation subsystem according to determined by message response generating mode build response message, and send back described response message via the port of the data message received corresponding to described condition code.
In scheme disclosed above, preferably, described configuration file is positioned in root directory and is made up of many sub-configuration files of the data process subsystem being respectively directed to each isomery, and in each independent subfile catalogue being each located in described root directory in the plurality of sub-configuration file.
In scheme disclosed above, it is preferable that any sub-configuration file in described configuration file all can be added, deletes and/or revise.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention have the advantage that due to can neatly for the data process subsystem configuration parameter of multiple isomeries, therefore simple in construction, be prone to extension and safeguard and cost relatively low.
Accompanying drawing explanation
Will be more fully understood that by those skilled in the art, wherein in conjunction with accompanying drawing, the technical characteristic of the present invention and advantage:
Fig. 1 is the flow chart of the access emulation mode of data handling system for being made up of the data process subsystem of isomery according to an embodiment of the invention.
Detailed description of the invention
Fig. 1 is the flow chart of the access emulation mode of data handling system for being made up of the data process subsystem of isomery according to an embodiment of the invention.As shown in Figure 1, the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention comprises the following steps: that (A1) simulation subsystem that is resident and that run on the access server of described data handling system reads the configuration file pre-set, and obtains port list to be monitored according to described configuration file;(A2) described simulation subsystem opens one or more network monitoring ports according to acquired port list to be monitored;(A3) when the port monitored receives data message, described simulation subsystem judges the type of described data message according to the numbering of the port receiving this data message, and resolve based on described configuration file, verify described data message therewith, and build the response message for described data message based on described configuration file, and send back described response message to realize accessing emulation via the port receiving this data message.
Preferably, in the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention, different ports is used to receive the data message (i.e. using different ports to receive the data message of dissimilar (the most different practical business contents)) for the different data process subsystem in the data process subsystem of described isomery.
Preferably, in the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention, described step (A3) farther includes: after receiving described data message, described simulation subsystem according to configuration file described in the type queries of described data message with obtain for the type data message message characteristic code extracting mode (such as, respectively from data message skew 100 take at 150 bytes 4 with the value of 6 bytes the condition code that is combined into this data message), and use described message characteristic code extracting mode resolve this data message and extract the condition code of this data message therewith.
Preferably, in the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention, described step (A3) farther includes: after extracting the condition code of data message, and described simulation subsystem determines the emulation use-case (which defining message check system and the message response generating mode of simulation actual services case) corresponding to this feature code according to the condition code comprised in described configuration file-emulation use-case mapping relations.
Preferably, in the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention, described emulation use-case is including at least message check system (such as, message check system can be defined as " extract the intermediate value of XML tag and test it ") and the definition of message response generating mode (such as, message response generating mode can be defined as " directly by the configured response message response read from source file ").
Preferably, in the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention, determine corresponding to described condition code emulation use-case definition message check system after, described simulation subsystem according to determined by message check system verify the data message corresponding to this feature code.
Preferably, in the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention, after the message response generating mode of the emulation use-case definition determined corresponding to described condition code, described simulation subsystem according to determined by message response generating mode build response message, and send back described response message via the port of the data message received corresponding to described condition code.
Preferably, in the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention, described configuration file is positioned in root directory and is made up of many sub-configuration files of the data process subsystem being respectively directed to each isomery, and in each independent subfile catalogue being each located in described root directory in the plurality of sub-configuration file (thus, different types of service is isolated from each other).
Preferably, in the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention, any sub-configuration file in described configuration file all can be added, deletes and/or revise.
Therefore, the access emulation mode of the data handling system for being made up of the data process subsystem of isomery disclosed in this invention have the advantage that due to can neatly for the data process subsystem configuration parameter of multiple isomeries, therefore simple in construction, be prone to extension and safeguard and cost relatively low.
Although the present invention is to be described by above-mentioned preferred implementation, but its way of realization is not limited to above-mentioned embodiment.It will be appreciated that in the case of without departing from spirit and scope of the present invention, the present invention can be made different changing and modifications by those skilled in the art.

Claims (9)

1. an access emulation mode for the data handling system for being made up of the data process subsystem of isomery, the access emulation mode of the described data handling system for being made up of the data process subsystem of isomery comprises the following steps:
(A1) resident and run on simulation subsystem on the access server of described data handling system and read the configuration file pre-set, and obtain port list to be monitored according to described configuration file;
(A2) described simulation subsystem opens one or more network monitoring ports according to acquired port list to be monitored;
(A3) when the port monitored receives data message, described simulation subsystem judges the type of described data message according to the numbering of the port receiving this data message, and resolve based on described configuration file, verify described data message therewith, and build the response message for described data message based on described configuration file, and send back described response message to realize accessing emulation via the port receiving this data message.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery the most according to claim 1, it is characterized in that, use different ports to receive the data message for the different data process subsystem in the data process subsystem of described isomery.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery the most according to claim 2, it is characterized in that, described step (A3) farther includes: after receiving described data message, described simulation subsystem to obtain the message characteristic code extracting mode of data message for the type, and uses described message characteristic code extracting mode resolve this data message and extract the condition code of this data message according to configuration file described in the type queries of described data message therewith.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery the most according to claim 3, it is characterized in that, described step (A3) farther includes: after extracting the condition code of data message, and described simulation subsystem determines the emulation use-case corresponding to this feature code according to the condition code comprised in described configuration file-emulation use-case mapping relations.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery the most according to claim 4, it is characterised in that described emulation use-case includes at least message check system and the definition of message response generating mode.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery the most according to claim 5, it is characterized in that, determine corresponding to described condition code emulation use-case definition message check system after, described simulation subsystem according to determined by message check system verify the data message corresponding to this feature code.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery the most according to claim 6, it is characterized in that, after the message response generating mode of the emulation use-case definition determined corresponding to described condition code, described simulation subsystem according to determined by message response generating mode build response message, and send back described response message via the port of the data message received corresponding to described condition code.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery the most according to claim 7, it is characterized in that, described configuration file is positioned in root directory and is made up of many sub-configuration files of the data process subsystem being respectively directed to each isomery, and in each independent subfile catalogue being each located in described root directory in the plurality of sub-configuration file.
The access emulation mode of the data handling system for being made up of the data process subsystem of isomery the most according to claim 8, it is characterised in that any sub-configuration file in described configuration file all can be added, deletes and/or revise.
CN201610543601.6A 2016-07-12 2016-07-12 Data processing system accesses emulation mode Active CN106027315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610543601.6A CN106027315B (en) 2016-07-12 2016-07-12 Data processing system accesses emulation mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610543601.6A CN106027315B (en) 2016-07-12 2016-07-12 Data processing system accesses emulation mode

Publications (2)

Publication Number Publication Date
CN106027315A true CN106027315A (en) 2016-10-12
CN106027315B CN106027315B (en) 2019-09-27

Family

ID=57109291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610543601.6A Active CN106027315B (en) 2016-07-12 2016-07-12 Data processing system accesses emulation mode

Country Status (1)

Country Link
CN (1) CN106027315B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343181A (en) * 2020-02-26 2020-06-26 中国邮政储蓄银行股份有限公司 Message processing method and system, data pool and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471018A (en) * 2002-07-24 2004-01-28 深圳市中兴通讯股份有限公司 Universal interface machine system and method for realising same
CN1845513A (en) * 2006-05-23 2006-10-11 烽火通信科技股份有限公司 Method for multi service access node access device sharing public network IP address
CN101119392A (en) * 2007-08-21 2008-02-06 南京联创科技股份有限公司 SOCKET united access method
CN101420437A (en) * 2008-11-14 2009-04-29 北京航空航天大学 Interface device for prototype system and HLA simulation system
CN101917312A (en) * 2010-09-01 2010-12-15 中国建设银行股份有限公司 Performance test stimulator, and message package module, message packaging and sending method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471018A (en) * 2002-07-24 2004-01-28 深圳市中兴通讯股份有限公司 Universal interface machine system and method for realising same
CN1845513A (en) * 2006-05-23 2006-10-11 烽火通信科技股份有限公司 Method for multi service access node access device sharing public network IP address
CN101119392A (en) * 2007-08-21 2008-02-06 南京联创科技股份有限公司 SOCKET united access method
CN101420437A (en) * 2008-11-14 2009-04-29 北京航空航天大学 Interface device for prototype system and HLA simulation system
CN101917312A (en) * 2010-09-01 2010-12-15 中国建设银行股份有限公司 Performance test stimulator, and message package module, message packaging and sending method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343181A (en) * 2020-02-26 2020-06-26 中国邮政储蓄银行股份有限公司 Message processing method and system, data pool and computer readable storage medium
CN111343181B (en) * 2020-02-26 2022-08-09 中国邮政储蓄银行股份有限公司 Message processing method and system, data pool and computer readable storage medium

Also Published As

Publication number Publication date
CN106027315B (en) 2019-09-27

Similar Documents

Publication Publication Date Title
US10769228B2 (en) Systems and methods for web analytics testing and web development
CN109614262B (en) Service checking method, device and computer readable storage medium
CN108628748B (en) Automatic test management method and automatic test management system
CN106354634A (en) Interface testing method and device
CN111181800B (en) Test data processing method and device, electronic equipment and storage medium
JPWO2013140608A1 (en) Method and system for supporting analysis of root cause of event
CN107231337B (en) Verification method and device applied to financial messages
CN109768970A (en) It is a kind of based on configurable puppy parc generation method
CN103716174A (en) Test log acquisition system and method for the same
US11341842B2 (en) Metering data management system and computer readable recording medium
US10823782B2 (en) Ensuring completeness of interface signal checking in functional verification
CN107026773A (en) Automatic correlation method for interface automatic test
US11977642B2 (en) Information processing device, information processing method and computer readable medium
CN114756868A (en) Network asset and vulnerability association method and device based on fingerprint
CN104298675A (en) Method and device for cache management
CN103984633B (en) A kind of bank main passes down the automatization test system of operation
US10121150B2 (en) Compliance as a service for an organization
CN107357721B (en) Method and device for testing system
CN118051426A (en) Test method, test device and related equipment
CN101510172B (en) Test system and method
CN118802520A (en) A Nginx configuration detection method and device for network range system
CN106027315A (en) Data processing system access simulation method
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN113238940A (en) Interface test result comparison method, device, equipment and storage medium
CN115168848B (en) Interception feedback processing method based on big data analysis interception

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant