CN106648945B - Interface data testing method and device and electronic equipment - Google Patents

Interface data testing method and device and electronic equipment Download PDF

Info

Publication number
CN106648945B
CN106648945B CN201610873345.7A CN201610873345A CN106648945B CN 106648945 B CN106648945 B CN 106648945B CN 201610873345 A CN201610873345 A CN 201610873345A CN 106648945 B CN106648945 B CN 106648945B
Authority
CN
China
Prior art keywords
file
interface data
nonbinary
test
formatted file
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
CN201610873345.7A
Other languages
Chinese (zh)
Other versions
CN106648945A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610873345.7A priority Critical patent/CN106648945B/en
Publication of CN106648945A publication Critical patent/CN106648945A/en
Application granted granted Critical
Publication of CN106648945B publication Critical patent/CN106648945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses an interface data testing method, an interface data testing device and electronic equipment, relates to an interface testing technology, and can improve the function testing efficiency. The interface data testing method comprises the following steps: constructing a simulation server for interface data testing; setting interface data test parameters in a simulation server and storing the interface data test parameters as a non-binary format file; calling a pre-written file conversion script in the simulation server, and storing a target protocol format file in a binary format of a non-binary format file; and acquiring the target protocol format file according to the data exception test flow so as to carry out data exception test. The invention is suitable for carrying out function test on the interface.

Description

A kind of interface data test method, device and electronic equipment
Technical field
The present invention relates to interface testing technology more particularly to a kind of interface data test methods, device and electronic equipment.
Background technique
With computer communication and the continuous development of Internet technology, the application program of exploitation is also more and more, respectively answers Also more and more with the interface developed in program, each application program is carried out data transmission by corresponding interface, for example, an application The Y interface that the X interface of program needs to call another application program obtains data to interact.Two interfaces are mutually passing data Before, both sides can arrange mutually a kind of data exchange format.
Google's caching protocol (Protobuf, Google Protocol Buffer) is what (google) company, Google provided Structured data sequence can be used for the fields such as data storage, communication protocol by a kind of data description language, be a kind of and language Unrelated, unrelated with platform, expansible serializing structured data formats.Its maximum feature is to store number based on binary system According to accordingly, with respect to traditional extensible markup language (XML, Extensible Markup Language) data storage lattice Formula or lightweight data interchange format (JSON, JavaScript Object Notation), have data volume it is small (for example, Protobuf message size only needs the 1/10~1/3 of XML), resolution speed fast (fast 20~100 times of resolution speed ratio XML), to Lower or upward compatibility is good, and using the compiler of Protobuf, the more easily data access used in programming can be generated Code is a kind of structural data storage format of portable and effective, be widely used in data storage or remote procedure call (RPC, Remote Procedure Call) data exchange, for example, the data exchange between interface.
But for interface newly developed, needs to carry out normal functional test and abnormal functional test is surveyed with collecting function Data are tried, so that whether the interface for verifying exploitation is correct, whether stable and interface is to the processor of abnormal data for interface operation The interface functions such as system, in order to the interface function of Optimal Development.And use Protobuf file as the data transmission between interface Format can not directly acquire its particular content since the test data in Protobuf file node is binary data, because And when the test data for needing to modify node is to carry out abnormality test, it can not know the string of binary characters within the scope of which For the test data of destination node to be modified, so that functional test is inefficient.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of interface data test method, device and electronic equipment, it is able to ascend Functional test efficiency, it is different to carry out in the test data for needing to modify node to solve in existing interface data test method Often when test, since the test data in Protobuf file node is binary data, two within the scope of which can not be known System character string is the inefficient problem of functional test caused by the test data of destination node to be modified.
In a first aspect, the embodiment of the present invention provides a kind of interface data test method, comprising:
Emulating server of the building one for interface data test;
Interface data test parameter is set in emulating server and is stored as nonbinary formatted file;
The file write in advance in the emulating server is called to convert script, by the nonbinary formatted file two of storage The target protocol formatted file of system format;
According to data exception testing process, the target protocol formatted file is obtained to carry out data exception test.
With reference to first aspect, it in the first embodiment of first aspect, calls and is compiled in advance in the emulating server Write file conversion script, by the nonbinary formatted file of storage be converted to binary format target protocol formatted file it Before, the method also includes:
According to data exception test target, the interface data test ginseng of the nonbinary formatted file interior joint is modified Number.
The first embodiment with reference to first aspect, in second of embodiment of first aspect, the modification institute State the interface data test parameter of nonbinary formatted file interior joint, comprising:
Delete the specific node data in the nonbinary formatted file;Or
Modify the corresponding attribute value of specific node in the nonbinary formatted file.
With reference to first aspect or the first embodiment of first aspect, in the third embodiment of first aspect, The nonbinary formatted file is lightweight data interchange format file or extensible markup language document.
With reference to first aspect or the first embodiment of first aspect, in the 4th kind of embodiment of first aspect, The file converts script as object-oriented, explanation type computer programming language script.
Second aspect, the embodiment of the present invention provide a kind of interface data test device, comprising: emulating server constructs mould Block, parameter setting module, file conversion module and test module, wherein
Emulating server constructs module, for constructing an emulating server for interface data test;
Parameter setting module, for interface data test parameter to be arranged in emulating server and is stored as nonbinary lattice Formula file;
File conversion module, for calling the file write in advance in the emulating server to convert script, by storage The target protocol formatted file of nonbinary formatted file binary format;
Test module, for obtaining the target protocol formatted file to carry out data according to data exception testing process Abnormality test.
In conjunction with second aspect, in the first embodiment of second aspect, described device further include:
Parameter editor module, for modifying the nonbinary formatted file interior joint according to data exception test target Interface data test parameter.
In conjunction with the first embodiment of second aspect, in second of embodiment of second aspect, the modification The interface data test parameter of the nonbinary formatted file interior joint, comprising:
Delete the specific node data in the nonbinary formatted file;Or
Modify the corresponding attribute value of specific node in the nonbinary formatted file.
In conjunction with the first of second aspect or second aspect embodiment, in the third embodiment of second aspect, The nonbinary formatted file is lightweight data interchange format file or extensible markup language document.
In conjunction with the first of second aspect or second aspect embodiment, in the 4th kind of embodiment of second aspect, The file converts script as object-oriented, explanation type computer programming language script.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing and can hold Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory The program answered, for executing aforementioned any interface data test method.
A kind of interface data test method, device and electronic equipment provided in an embodiment of the present invention are used for by building one The emulating server of interface data test;Interface data test parameter is set in emulating server and is stored as nonbinary lattice Formula file;The file write in advance in the emulating server is called to convert script, by the nonbinary formatted file two of storage The target protocol formatted file of system format;According to data exception testing process, obtain the target protocol formatted file with into Row data abnormality test, is able to ascend functional test efficiency, to solve in existing interface data test method, is needing to modify When the test data of node is to carry out abnormality test, since the test data in Protobuf file node is binary data, It can not know that the string of binary characters within the scope of which is that functional test caused by the test data of destination node to be modified is imitated The not high problem of rate.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is one interface data test method flow diagram of the embodiment of the present invention;
Fig. 2 is two interface data schematic structural diagram of testing device of the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
Fig. 1 is one interface data test method flow diagram of the embodiment of the present invention, as shown in Figure 1, the present embodiment Method may include:
Step 101, emulating server of the building one for interface data test;
In the present embodiment, the emulating server (mock server) of building is applied as upstream, upstream apply with as survey It is Protobuf format that the downstream application of examination, which negotiates the test data format used, and shares a structure description file (.proto File).
In the present embodiment, emulating server be a respond request, for example, data test request, and to send test data Interface returning response server, get different result return values for simulating.
In the present embodiment, as an alternative embodiment, the emulating server of building has following function:
A, the Protobuf file defined using interface generate corresponding object-oriented, explanation type computer program design language Say the file of (Python) format.
In the present embodiment, as an alternative embodiment, the file of Python format is py file.Python be it is a kind of not by Limitation, cross-platform open source programming language.In the present embodiment, the order line for generating py file is as follows:
Protoc--proto_path=ufs_proto/ufs_proto/user_profile.prot o--python_ Out=.
Wherein,
Ufs_proto/ufs_proto/user_profile.proto is the Protobuf file that interface defines.
B calls the file conversion script write in advance, i.e. python script, by nonbinary formatted file, for example, JSON file is converted into the Protobuf file of binary format.
C returns to the form of test result in a binary format.
In the present embodiment, as an alternative embodiment, object-oriented, explanation type computer programming language webpage are utilized Framework establishment emulating server.
In the present embodiment, object-oriented, explanation type computer programming language web page frame (Webpy) are a lightweight Open source python web frame, can fast implement webpage (web) page, convenient for setting interface data test parameter.
Step 102, interface data test parameter is set in emulating server and is stored as nonbinary formatted file;
In the present embodiment, by constructing the virtual test data for interface function test in emulating server, so The test data of building is saved as into JSON file afterwards.
In the present embodiment, as an alternative embodiment, nonbinary formatted file is lightweight data interchange format file (JSON file) or extensible markup language document (XML file) etc., the present embodiment is not construed as limiting this.
Step 103, the file write in advance in the emulating server is called to convert script, by the nonbinary lattice of storage The target protocol formatted file of formula file binary format;
In the present embodiment, as an alternative embodiment, file converts script as python script.
Step 104, according to data exception testing process, the target protocol formatted file is obtained to carry out data exception survey Examination.
In the present embodiment, as an alternative embodiment, downstream interface can be assigned in emulating server and obtain upstream Data.
In the present embodiment, as an alternative embodiment, the file write in advance in the emulating server is called to convert foot This, before the target protocol formatted file that the nonbinary formatted file of storage is converted to binary format, this method is also wrapped It includes:
According to data exception test target, the interface data test ginseng of the nonbinary formatted file interior joint is modified Number.
In the present embodiment, as an alternative embodiment, the interface data of the nonbinary formatted file interior joint is modified Test parameter, comprising:
Delete the specific node data in the nonbinary formatted file;Or
Modify the corresponding attribute value of specific node in the nonbinary formatted file.
In the present embodiment, if necessary to construct abnormal case, it need to only be modified according to test result in corresponding JSON file Related content.Certainly, in practical application, the correlation in nonbinary formatted file (JSON file) can also directly be modified Then content is confirmed whether to reach expected abnormality test purpose according to test result, for example, connecing if necessary to verifying upstream Mouthful, when lacking a certain preset necessary node in the test result content of return, when whether downstream interface can give up to fall dirty data, It can be by modifying JSON file, by the preset necessary node, (the total interface data test of the preset necessary node is joined Number) it deletes, then, python script is called, the JSON file of modification is converted to corresponding Protobuf format, finally with two The output of system format, downstream interface initiate the related content that request is achieved in the test result file of binary format.Again For example, in the test result content of return, node attribute values are illegal, and whether downstream interface if necessary to verifying Upstream Interface It, can (the default node be corresponding by presetting the corresponding attribute value of node in modification JSON file when can give up to fall dirty data Attribute data test parameter), then, python script is called, the JSON file for modifying attribute value is converted to corresponding Protobuf format, finally exports in a binary format, and downstream interface initiates the test knot that request is achieved with binary format Related content in fruit file.
The interface data test method of the present embodiment, the emulating server by building one for interface data test;? Interface data test parameter is set in emulating server and is stored as nonbinary formatted file;It calls in the emulating server The file conversion script write in advance, by the target protocol format text of the nonbinary formatted file content binary format of storage Part content;Finally export in a binary format.In this way, can be known within the scope of which by parsing nonbinary formatted file String of binary characters be destination node to be modified test data, then by the target protocol of the file binary format of modification Formatted file is tested, and carries out abnormality test so as to the interface to Protobuf storage format, to reduce precognition risk, Effective enhanced feature testing efficiency;Further, by modifying test data in web interface, so that upstream and downstream interface is without repairing Changing code can be carried out testing, and can be effectively reduced functional test required time and cost.
Fig. 2 is two interface data schematic structural diagram of testing device of the embodiment of the present invention, as shown in Fig. 2, the present embodiment Device may include: emulating server building module 21, parameter setting module 22, file conversion module 23 and test module 24, wherein
Emulating server constructs module 21, for constructing an emulating server for interface data test;
In the present embodiment, the emulating server (mock server) of building is applied as upstream, upstream apply with as survey It is Protobuf format that the downstream application of examination, which negotiates the test data format used, and shares a structure description file (.proto File).
In the present embodiment, as an alternative embodiment, object-oriented, explanation type computer programming language webpage are utilized Framework establishment emulating server.
Parameter setting module 22, for interface data test parameter to be arranged in emulating server and is stored as nonbinary Formatted file;
In the present embodiment, by constructing the virtual test data for interface function test in emulating server, so The test data of building is saved as into JSON file afterwards.
In the present embodiment, as an alternative embodiment, nonbinary formatted file is lightweight data interchange format file Or extensible markup language document.
File conversion module 23 will be stored for calling the file write in advance in the emulating server to convert script Nonbinary formatted file binary format target protocol formatted file;
In the present embodiment, as an alternative embodiment, downstream interface can be assigned in emulating server and obtain upstream Data.
In the present embodiment, as an alternative embodiment, file is converted script and is set into object-oriented, explanation type computer program Count language scripts.
Test module 24, for obtaining the target protocol formatted file to be counted according to data exception testing process According to abnormality test.
In the present embodiment, as an alternative embodiment, the device further include:
Parameter editor module (not shown), for modifying the nonbinary lattice according to data exception test target The interface data test parameter of formula file interior joint.
In the present embodiment, as an alternative embodiment, the interface data of the nonbinary formatted file interior joint is modified Test parameter, comprising:
Delete the specific node data in the nonbinary formatted file;Or
Modify the corresponding attribute value of specific node in the nonbinary formatted file.
In the present embodiment, if necessary to construct abnormal case, it need to only be modified according to test result in corresponding JSON file Related content.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill Art effect is similar, and details are not described herein again.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
For Installation practice, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.
In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution The software or firmware that system executes are realized.For example, in another embodiment, can be used if realized with hardware Any one of following technology well known in the art or their combination are realized: being had for realizing logic function to data-signal The discrete logic of the logic gates of energy, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate Array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes dress described in aforementioned any embodiment It sets.
Fig. 3 is the structural schematic diagram of electronic equipment one embodiment of the present invention, may be implemented to implement shown in Fig. 1-2 of the present invention The process of example, as shown in figure 3, above-mentioned electronic equipment may include: shell 31, processor 32, memory 33, circuit board 34 and electricity Source circuit 35, wherein circuit board 34 is placed in the space interior that shell 31 surrounds, and processor 32 and memory 33 are arranged in circuit On plate 34;Power circuit 35, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 33 is for storing and can hold Line program code;Processor 32 is run and executable program generation by reading the executable program code stored in memory 33 The corresponding program of code, for executing interface data test method described in aforementioned any embodiment.
Processor 32 to the specific implementation procedures of above-mentioned steps and processor 32 by operation executable program code come The step of further executing may refer to the description of Fig. 1-2 illustrated embodiment of the present invention, and details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist Implement to realize each unit/module function in the same or multiple software and or hardware when the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention Method described in part.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (11)

1. a kind of interface data test method characterized by comprising
Emulating server of the building one for interface data test;
Interface data test parameter is set in emulating server and is stored as nonbinary formatted file;
It calls the file write in advance in the emulating server to convert script, the nonbinary formatted file of storage is converted to The target protocol formatted file of binary format;
According to data exception testing process, the target protocol formatted file is obtained to carry out data exception test.
2. interface data test method according to claim 1, which is characterized in that call in the emulating server in advance The nonbinary formatted file of storage, is converted to the target protocol formatted file of binary format by the file conversion script write Before, the method also includes:
According to data exception test target, the interface data test parameter of the nonbinary formatted file interior joint is modified.
3. interface data test method according to claim 2, which is characterized in that the modification nonbinary format The interface data test parameter of file interior joint, comprising:
Delete the specific node data in the nonbinary formatted file;Or
Modify the corresponding attribute value of specific node in the nonbinary formatted file.
4. interface data test method according to claim 1 or 2, which is characterized in that the nonbinary formatted file For lightweight data interchange format file or extensible markup language document.
5. interface data test method according to claim 1 or 2, which is characterized in that the file converts script as face To object, explanation type computer programming language script.
6. a kind of interface data test device characterized by comprising emulating server constructs module, parameter setting module, text Part conversion module and test module, wherein
Emulating server constructs module, for constructing an emulating server for interface data test;
Parameter setting module, for interface data test parameter to be arranged in emulating server and is stored as nonbinary format text Part;
File conversion module, for calling the file write in advance in the emulating server to convert script, by non-the two of storage System formatted file is converted to the target protocol formatted file of binary format;
Test module, for obtaining the target protocol formatted file to carry out data exception according to data exception testing process Test.
7. interface data test device according to claim 6, which is characterized in that described device further include:
Parameter editor module, for modifying connecing for the nonbinary formatted file interior joint according to data exception test target Mouth data test parameter.
8. interface data test device according to claim 7, which is characterized in that the modification nonbinary format The interface data test parameter of file interior joint, comprising:
Delete the specific node data in the nonbinary formatted file;Or
Modify the corresponding attribute value of specific node in the nonbinary formatted file.
9. interface data test device according to claim 6 or 7, which is characterized in that the nonbinary formatted file For lightweight data interchange format file or extensible markup language document.
10. interface data test device according to claim 6 or 7, which is characterized in that the file converts script as face To object, explanation type computer programming language script.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes: shell, processor, memory, circuit board and electricity Source circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply Circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing executable program code;Processing Device runs program corresponding with executable program code by reading the executable program code stored in memory, for holding Interface data test method described in the aforementioned any claim 1-5 of row.
CN201610873345.7A 2016-09-30 2016-09-30 Interface data testing method and device and electronic equipment Active CN106648945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610873345.7A CN106648945B (en) 2016-09-30 2016-09-30 Interface data testing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610873345.7A CN106648945B (en) 2016-09-30 2016-09-30 Interface data testing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106648945A CN106648945A (en) 2017-05-10
CN106648945B true CN106648945B (en) 2019-10-15

Family

ID=58853632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610873345.7A Active CN106648945B (en) 2016-09-30 2016-09-30 Interface data testing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106648945B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329890A (en) * 2017-06-06 2017-11-07 北京金山安全软件有限公司 Test method and device based on Mock and server
CN109815107B (en) * 2017-11-22 2022-06-07 北京京东尚科信息技术有限公司 Method and device for automatic testing
CN110532305B (en) * 2018-05-23 2022-11-08 中国移动通信集团浙江有限公司 Service data cutting-over method and system
CN108804271A (en) * 2018-06-28 2018-11-13 北京潘达互娱科技有限公司 Interface tolerating measure method and device
CN108897691B (en) * 2018-06-29 2022-02-15 百度在线网络技术(北京)有限公司 Data processing method, device, server and medium based on interface simulation service
CN110750409A (en) * 2018-07-23 2020-02-04 北京奇虎科技有限公司 Method, device and system for realizing test
CN109656791B (en) * 2018-11-01 2022-07-12 奇安信科技集团股份有限公司 gPC performance test method and device based on Jmeter
CN111324526B (en) * 2018-12-14 2024-04-26 北京金山云网络技术有限公司 Interface test system, method and server
CN111629014B (en) * 2019-02-27 2023-03-24 北京嘀嘀无限科技发展有限公司 Request agent implementation method, implementation device, server and storage medium
CN110781082B (en) * 2019-10-14 2022-05-20 腾讯科技(深圳)有限公司 Method, device, medium and equipment for generating test case of interface
CN112783753B (en) * 2019-11-07 2024-04-12 北京沃东天骏信息技术有限公司 Testing method and device for stream data processing system
CN111078571B (en) * 2019-12-20 2024-02-02 广州品唯软件有限公司 Test method for analog response, terminal equipment and computer readable storage medium
CN111177003A (en) * 2019-12-30 2020-05-19 北京同邦卓益科技有限公司 Test method, device, system, electronic equipment and storage medium
CN111581097B (en) * 2020-05-09 2024-05-17 深圳市卡数科技有限公司 Performance test method, system, equipment and storage medium for parameterized data
CN113704079A (en) * 2020-05-22 2021-11-26 北京沃东天骏信息技术有限公司 Interface testing method and device based on Protobuf
CN111651349B (en) * 2020-05-26 2023-07-14 泰康保险集团股份有限公司 Test method and device
CN112486811A (en) * 2020-11-26 2021-03-12 杭州安恒信息技术股份有限公司 Interface test method, device, equipment and medium
CN112491659B (en) * 2020-12-02 2022-07-01 广州品唯软件有限公司 Flow playback test method and device, computer equipment and storage medium
CN112612563A (en) * 2020-12-16 2021-04-06 上海哔哩哔哩科技有限公司 Page test data generation method and device and computer equipment
CN113742408B (en) * 2021-09-03 2024-02-02 唯品会(广州)软件有限公司 Protobuf protocol dynamic analysis-based data interaction method
CN116257398B (en) * 2023-05-11 2023-10-03 中星联华科技(北京)有限公司 Serial port testing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185734A (en) * 2011-04-18 2011-09-14 华为软件技术有限公司 Automatic interface testing method and server
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN103970737A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Data constitution method and device
CN105897497A (en) * 2015-07-20 2016-08-24 广州华多网络科技有限公司 Interface test method, application device and service device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108589A1 (en) * 2012-10-11 2014-04-17 Sanjeev Dhanda Testing an executable binary file using an injection proxy

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185734A (en) * 2011-04-18 2011-09-14 华为软件技术有限公司 Automatic interface testing method and server
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN103970737A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Data constitution method and device
CN105897497A (en) * 2015-07-20 2016-08-24 广州华多网络科技有限公司 Interface test method, application device and service device

Also Published As

Publication number Publication date
CN106648945A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106648945B (en) Interface data testing method and device and electronic equipment
CN104484216B (en) Service interface document and on-line testing instrument generation method, device
CN108897691A (en) Data processing method, device, server and medium based on interface analog service
CN105159928B (en) A kind of JSON data conversion at model data method and system
CN103309660B (en) Mobile solution cross-platform development method
CN106919509A (en) A kind of client generation method, device and electronic equipment
CN106293743A (en) A kind of mobile modeling and build Mobile solution the method realizing cross-platform issue
CN102819766A (en) Method, device and enterprise system for checking forms
CN102012954B (en) Subsystem integration method and subsystem integration system for integration design of system-on-chip
CN105791178B (en) Message assemble method and device
CN109814866A (en) Page application is converted into the treating method and apparatus of native applications
CN109634751A (en) A method of application layer and bottom communication are realized using electron frame
CN107608801A (en) The primary page and HTML5 page communication methods, device, medium and equipment
CN102710460A (en) Frame-based automatic generating method for Web service test data
CN110287429A (en) Data analysis method, device, equipment and storage medium
CN106326088A (en) Test object constructing method and device, and service configuration testing device
CN110289997A (en) A kind of log message checking method, apparatus and system
Le‐Huy et al. Real‐time electromagnetic transient and transient stability co‐simulation based on hybrid line modelling
CN105893235B (en) A kind of emulation test method, device and server
CN109783752A (en) Page loading method and device, electronic equipment and computer readable storage medium
Nayak et al. Computer Network simulation using NS2
CN107766307A (en) A kind of method and apparatus of Form Element linkage
CN103593188B (en) System and method for managing what-you-see-is-what-you-get menus of instrument
CN110134380A (en) A kind of code generating method based on template engine, device and electronic equipment
CN106980550A (en) Expansion interface call method and device

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