[go: up one dir, main page]

CN106027315B - Data processing system accesses emulation mode - Google Patents

Data processing system accesses emulation mode Download PDF

Info

Publication number
CN106027315B
CN106027315B CN201610543601.6A CN201610543601A CN106027315B CN 106027315 B CN106027315 B CN 106027315B CN 201610543601 A CN201610543601 A CN 201610543601A CN 106027315 B CN106027315 B CN 106027315B
Authority
CN
China
Prior art keywords
message
data
subsystem
configuration file
processing 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.)
Active
Application number
CN201610543601.6A
Other languages
Chinese (zh)
Other versions
CN106027315A (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 invention proposes access emulation modes, which comprises reads pre-set configuration file, and obtains port list to be monitored according to configuration file;One or more network monitorings port is opened according to acquired port list to be monitored;When the port monitored receives data message, the type of the data message is judged according to the number for the port for receiving the data message, and it parsed therewith based on configuration file, verify the data message, and the response message of data message is directed to based on configuration file building, and send back response message via the port for receiving the data message.Access emulation mode structure disclosed in this invention is simple, be easy to extend and safeguard and cost is relatively low.

Description

Data processing system accesses emulation mode
Technical field
The present invention relates to data processing systems to access emulation mode, more particularly, to for the subsystem structure by isomery At data processing system access emulation mode.
Background technique
Currently, the type of business of the increasingly extensive and different field (such as financial field) with network-based application Become increasingly abundant, the access of specific data processing system (such as data processing system for specific transactions content) is accessed It is emulated in favor of developing and test becomes more and more important.
In existing technical solution, generally directed to the access of the single data processing system for specific transactions It is emulated, i.e., for each specific data processing system exploitation access emulation interface, to provide effective test verifying Environment.
However, there are the following problems for above-mentioned existing technical solution: since each specific data processing system is used Data message structure and type of service be usually different, therefore when data processing system to be tested be include multiple different Structure for different specific transactions data process subsystem when, need for each data process subsystem develop and design Independent access emulation testing interface, thus leads to that structure is complicated, higher cost and is difficult to flexible expansion and maintenance.
Accordingly, there exist following demands: provide a kind of structure is simple, be easy to extend and safeguard and it is lower-cost for by The access emulation mode for the data processing system that the data process subsystem of isomery is constituted.
Summary of the invention
In order to solve the problems existing in the prior art scheme, the invention proposes a kind of structures simply, is easy to expand Exhibition and maintenance and the access of the lower-cost data processing system for being made of the data process subsystem of isomery emulation Method.
The purpose of the present invention is what is be achieved through the following technical solutions:
A kind of access emulation mode of the data processing system for being made of the data process subsystem of isomery, the use Include the following steps: in the access emulation mode for the data processing system being made of the data process subsystem of isomery
(A1) it is resident and the simulation subsystem reading run on the access server of the data processing system is set in advance The configuration file set, and port list to be monitored is obtained according to the configuration file;
(A2) simulation subsystem opens one or more network monitorings according to acquired port list to be monitored Port;
(A3) when the port monitored receives data message, the simulation subsystem is according to the reception data message The number of port judge the type of the data message, and therewith based on configuration file parsing, verify the datagram Text, and be directed to based on the configuration file building response message of the data message, and via receiving the data message Port sends back the response message to realize access emulation.
In scheme disclosed above, it is preferable that receive the data processing for being directed to the isomery using different ports The data message of different data process subsystems in subsystem.
In scheme disclosed above, it is preferable that the step (A3) further comprises: receiving the datagram Wen Hou, simulation subsystem configuration file according to the type queries of the data message are directed to the number of the type to obtain According to the message characteristic code extracting mode of message, and the data message is parsed using the message characteristic code extracting mode therewith and is mentioned Take the condition code of the data message.
In scheme disclosed above, it is preferable that the step (A3) further comprises: extracting data message After condition code, the simulation subsystem is determined according to the condition code for including in the configuration file-emulation use-case mapping relations Emulation use-case corresponding to this feature code.
In scheme disclosed above, it is preferable that the emulation use-case includes at least message check system and message is answered Answer the definition of generating mode.
In scheme disclosed above, it is preferable that be determined what emulation use-case corresponding to described document information defined After message check system, the simulation subsystem verifies data corresponding to this feature code according to identified message check system Message.
In scheme disclosed above, it is preferable that be determined what emulation use-case corresponding to described document information defined After message response generating mode, the simulation subsystem constructs response message according to identified message response generating mode, and The response message is sent back via the port for receiving data message corresponding to described document information.
In scheme disclosed above, it is preferable that the configuration file is located in root directory and by being directed to respectively Multiple sub- configuration files of the data process subsystem of each isomery are constituted, and each of the multiple sub- configuration file is each From in the independent subfile catalogue being located in the root directory.
In scheme disclosed above, it is preferable that any sub- configuration file in the configuration file can be added Add, delete and/or modifies.
The access of data processing system disclosed in this invention for being made of the data process subsystem of isomery emulates Method has the advantages that the data process subsystem configuration parameter due to can neatly be directed to multiple isomeries, therefore structure is simple Singly, it is easy to extend and safeguard and cost is relatively low.
Detailed description of the invention
In conjunction with attached drawing, technical characteristic of the invention and advantage will be more fully understood by those skilled in the art, in which:
Fig. 1 is the data processing system for being made of the data process subsystem of isomery of embodiment according to the present invention Access emulation mode flow chart.
Specific embodiment
Fig. 1 is the data processing system for being made of the data process subsystem of isomery of embodiment according to the present invention Access emulation mode flow chart.As shown in Figure 1, disclosed in this invention for being made of the data process subsystem of isomery The access emulation mode of data processing system include the following steps: that (A1) is resident and run on connecing for the data processing system The simulation subsystem entered on server reads pre-set configuration file, and end to be monitored is obtained according to the configuration file Mouth list;(A2) simulation subsystem opens one or more network monitorings end according to acquired port list to be monitored Mouthful;(A3) when the port monitored receives data message, the simulation subsystem is according to the end for receiving the data message The number of mouth judges the type of the data message, and is parsed therewith based on the configuration file, verifies the data message, with And the response message of the data message is directed to based on configuration file building, and pass via the port for receiving the data message The response message is sent back to realize access emulation.
Preferably, in the data processing system disclosed in this invention for being made of the data process subsystem of isomery It accesses in emulation mode, is received using different ports at the different data in the data process subsystem for the isomery The data message for managing subsystem (receives the data of different type (such as different practical business contents) using different ports Message).
Preferably, in the data processing system disclosed in this invention for being made of the data process subsystem of isomery It accesses in emulation mode, the step (A3) further comprises: after receiving the data message, the simulation subsystem root Configuration file described in type queries according to the data message is mentioned with the message characteristic code for obtaining the data message for being directed to the type Take mode (for example, taking the value of 4 and 6 bytes from deviating 100 and 150 bytes from data message respectively and being combined into the number According to the condition code of message), and parse the data message using the message characteristic code extracting mode therewith and extract the datagram The condition code of text.
Preferably, in the data processing system disclosed in this invention for being made of the data process subsystem of isomery It accesses in emulation mode, the step (A3) further comprises: after extracting the condition code of data message, the emulation subsystem System determines that emulation corresponding to this feature code is used according to the condition code for including in the configuration file-emulation use-case mapping relations Example (its message check system and message response generating mode that define simulation actual services case).
Preferably, in the data processing system disclosed in this invention for being made of the data process subsystem of isomery It accesses in emulation mode, the emulation use-case includes at least message check system (for example, message check system can be defined as " extract XML tag intermediate value simultaneously test to it ") and message response generating mode (for example, message response generating mode can To be defined as " directly by read from source file configured response message response ") definition.
Preferably, in the data processing system disclosed in this invention for being made of the data process subsystem of isomery It accesses in emulation mode, it is described imitative after the message check system that emulation use-case defines corresponding to described document information has been determined True subsystem verifies data message corresponding to this feature code according to identified message check system.
Preferably, in the data processing system disclosed in this invention for being made of the data process subsystem of isomery It accesses in emulation mode, after the message response generating mode that emulation use-case defines corresponding to described document information has been determined, institute It states simulation subsystem and response message is constructed according to identified message response generating mode, and is right via described document information institute is received The port for the data message answered sends back the response message.
Preferably, in the data processing system disclosed in this invention for being made of the data process subsystem of isomery It accesses in emulation mode, the configuration file is located in root directory and the data processing subsystem by being directed to each isomery respectively Multiple sub- configuration files of system are constituted, and each of the multiple sub- configuration file is each located in the root directory Independent subfile catalogue in (different types of service is isolated from each other as a result).
Preferably, in the data processing system disclosed in this invention for being made of the data process subsystem of isomery It accesses in emulation mode, any sub- configuration file in the configuration file can be added, deletes and/or modify.
Therefore the data processing system disclosed in this invention for being made of the data process subsystem of isomery Access emulation mode has the advantage that the data process subsystem configuration parameter due to can neatly be directed to multiple isomeries, Therefore structure is simple, be easy to extend and safeguard and cost is relatively low.
Although the present invention is described by above-mentioned preferred embodiment, way of realization is not limited to Above-mentioned embodiment.It will be appreciated that in the case where not departing from spirit and scope of the present invention, those skilled in the art can be with Different change and modification are made to the present invention.

Claims (8)

1. a kind of access emulation mode of the data processing system for being made of the data process subsystem of isomery, described to be used for The access emulation mode for the data processing system being made of the data process subsystem of isomery includes the following steps:
(A1) be resident and run on the simulation subsystem on the access server of the data processing system read it is pre-set Configuration file, and port list to be monitored is obtained according to the configuration file;
(A2) simulation subsystem opens one or more network monitorings port according to acquired port list to be monitored;
(A3) when the port monitored receives data message, the simulation subsystem is according to the end for receiving the data message The number of mouth judges the type of the data message, and is parsed therewith based on the configuration file, verifies the data message, with And the response message of the data message is directed to based on configuration file building, and pass via the port for receiving the data message Send the response message back to realize access emulation,
Wherein, the step (A3) further comprises: after receiving the data message, the simulation subsystem is according to Configuration file described in the type queries of data message with obtain be directed to the type data message message characteristic code extracting mode, And the data message is parsed using the message characteristic code extracting mode therewith and extracts the condition code of the data message.
2. the access of the data processing system according to claim 1 for being made of the data process subsystem of isomery is imitated True method, which is characterized in that the different numbers in the data process subsystem for the isomery are received using different ports According to the data message of processing subsystem.
3. the access of the data processing system according to claim 1 for being made of the data process subsystem of isomery is imitated True method, which is characterized in that the step (A3) further comprises: after extracting the condition code of data message, the emulation Subsystem is determined according to the condition code for including in the configuration file-emulation use-case mapping relations and is imitated corresponding to this feature code True use-case.
4. the access of the data processing system according to claim 3 for being made of the data process subsystem of isomery is imitated True method, which is characterized in that the emulation use-case includes at least the definition of message check system and message response generating mode.
5. the access of the data processing system according to claim 4 for being made of the data process subsystem of isomery is imitated True method, which is characterized in that described after the message check system that emulation use-case defines corresponding to described document information has been determined Simulation subsystem verifies data message corresponding to this feature code according to identified message check system.
6. the access of the data processing system according to claim 5 for being made of the data process subsystem of isomery is imitated True method, which is characterized in that after the message response generating mode that emulation use-case defines corresponding to described document information has been determined, The simulation subsystem constructs response message according to identified message response generating mode, and via reception described document information institute The port of corresponding data message sends back the response message.
7. the access of the data processing system according to claim 6 for being made of the data process subsystem of isomery is imitated True method, which is characterized in that the configuration file is located in root directory and the data processing by being directed to each isomery respectively Multiple sub- configuration files of subsystem are constituted, and each of the multiple sub- configuration file is each located on described file mesh In independent subfile catalogue in record.
8. the access of the data processing system according to claim 7 for being made of the data process subsystem of isomery is imitated True method, which is characterized in that any sub- configuration file in the configuration file can be added, deletes and/or modify.
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 CN106027315A (en) 2016-10-12
CN106027315B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343181B (en) * 2020-02-26 2022-08-09 中国邮政储蓄银行股份有限公司 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

Also Published As

Publication number Publication date
CN106027315A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
US10467321B2 (en) Systems and methods for dynamic C# serialization
CN108897691A (en) Data processing method, device, server and medium based on interface analog service
EP1791296A1 (en) Automated QS interface testing framework
CN108133007A (en) A kind of method of data synchronization and system
US10452522B1 (en) Synthetic data generation from a service description language model
CN104158692A (en) Method of implementing configuration and management of data of home gateway based on XML (Extensible Markup Language)
CN107992346A (en) Interface display method, the interface display system of application program
CN113326165B (en) Data processing method and device based on block chain and computer readable storage medium
CN113852610B (en) Message processing method, device, computer equipment and storage medium
CN104899134B (en) Domain name registration service device automatization test system and method
CN111163149B (en) Intelligent contract platform method based on block chain
CN104866422A (en) Web Service automatic test system and method
CN114500481B (en) Service request processing method, system and device
CN104168250A (en) CGI frame-based service flow control method and apparatus
CN113792008B (en) Method and device for acquiring network topology structure, electronic equipment and storage medium
CN109783752A (en) Page loading method and device, electronic equipment and computer readable storage medium
CN109255611A (en) Data processing method, device, system, service terminal device and client terminal device
CN101876990A (en) Method for transmitting tree-structure object
CN109284322A (en) A kind of data center
CN103581040A (en) Server distributing device and server distributing method
CN106027315B (en) Data processing system accesses emulation mode
CN106875184A (en) Abnormal scene analogy method, device and equipment
CN118051426A (en) Test method, test device and related equipment
CN103944779A (en) WAP service performance monitoring method and system
CN107015831A (en) A kind of client updating management method upgraded based on server end and system

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