CN108108295A - Data receiver programmed pressure test method - Google Patents

Data receiver programmed pressure test method Download PDF

Info

Publication number
CN108108295A
CN108108295A CN201810007006.XA CN201810007006A CN108108295A CN 108108295 A CN108108295 A CN 108108295A CN 201810007006 A CN201810007006 A CN 201810007006A CN 108108295 A CN108108295 A CN 108108295A
Authority
CN
China
Prior art keywords
data
data receiver
equipment
pressure test
test method
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.)
Pending
Application number
CN201810007006.XA
Other languages
Chinese (zh)
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.)
TIANJIN TONGYANG SCIENCE &TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
TIANJIN TONGYANG SCIENCE &TECHNOLOGY DEVELOPMENT 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 TIANJIN TONGYANG SCIENCE &TECHNOLOGY DEVELOPMENT Co Ltd filed Critical TIANJIN TONGYANG SCIENCE &TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201810007006.XA priority Critical patent/CN108108295A/en
Publication of CN108108295A publication Critical patent/CN108108295A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a kind of data receiver programmed pressure test method, including:Step A:The equipment unique mark to be matched according to the equipment prefix of user setting and website quantity, generation with website quantity;Step B:According to equipment unique mark analog machine, every equipment unique mark corresponds to one equipment of simulation;Step C:It communicates with the foundation of data receiver program, more analog machines send data to data receiver program simultaneously, and test data receives processing condition data of the program under concurrent data pressure;Step D:Data receiver program is parsed after receiving data, and is write in real time data table;Step E:According to the error rate of data in the real time data table, evaluating data receives the pressure test situation of program.Data are sent in real time by simulating physical device, and simulate multiple devices simultaneously, realize the pressure test to data receiver program, save space and cost.

Description

Data receiver programmed pressure test method
Technical field
This disclosure relates to software pressure test technical field more particularly to a kind of data receiver programmed pressure test method.
Background technology
Pressure test (Stress Test), also referred to as strength test, load testing.Pressure test is simulation practical application Hardware environment and user use the system loading of process, for a long time or super large load ground testing results software, to test quilt Survey performance, reliability, stability of software etc..
Pressure test is in test process, input-output ratio in contrast bigger work, the number based on certain agreement According to the pressure test for the pressure test Web plateform systems different from the past for receiving program, the industry in system architecture is primarily upon Business logical layer, so it is primarily upon not lying on UI operations or user's sense organ, the parsing of more focused data, Socket communications are closed System.
However, during the disclosure is realized, applicants have discovered that, pressure test instrument currently on the market is various, But mostly both for the concurrent test of user volume, it is unfavorable for the concurrent test of protocol data bag data amount, during the test Test request can not be met, and if connection multiple devices, which are tested, does not meet reality yet.
The content of the invention
(1) technical problems to be solved
In view of above-mentioned technical problem, the disclosure provides a kind of data receiver programmed pressure test method, to alleviate existing pressure Power testing tool is unfavorable for the technology of the concurrent test of protocol data bag data amount mostly both for the concurrent test of user volume Problem.
(2) technical solution
According to the one side that the disclosure provides, the disclosure provides a kind of data receiver programmed pressure test method, including: Step A:The equipment unique mark to be matched according to the equipment prefix of user setting and website quantity, generation with website quantity; Step B:According to equipment unique mark analog machine, every equipment unique mark corresponds to one equipment of simulation;Step C:With data It receives program and establishes communication, more analog machines send data to data receiver program simultaneously, and test data receives program simultaneously Send out the processing condition data under data pressure;Step D:Data receiver program is parsed after receiving data, and writes number in real time According in table;Step E:According to the error rate of data in real time data table, evaluating data receives the pressure test situation of program.
In the disclosure, wherein, the step C and step D Xun Huans carry out.
In the disclosure, the equipment unique mark includes:Equipment prefix, by Arabic numerals and/or English alphabet group Into digit is formed by 10;And equipment suffix, it is incremented by successively according to the website quantity between 0001 and 9999.
In the disclosure, in the step C, one group of data of every equipment simulation generation per minute.
In the disclosure, every group of data include at least a kind of parameter.
In the disclosure, in the step D, the real time data table includes:INID often writes one group of data and automatically generates One corresponding INID;DID records equipment unique mark;Time, the time of record data write-in;Parameter codes, per a kind of ginseng The corresponding parameter codes of number;And parameter value, in one group of data, the concrete numerical value corresponding to the parameter codes.
In the disclosure, further include:Step F:Site table is generated according to equipment unique mark.
In the disclosure, the site table includes:SID, often write a station data automatically generate one it is corresponding SID;DID records equipment unique mark;Date, the date of record website generation;Site name, user are voluntarily set, with simulation Equipment correspond;Parameter codes correspond to a parameter codes per one kind parameter;And parameter name, user is according to described Parameter codes correspondence is write.
In the disclosure, in the step C, according to IP address and port numbers that user provides, built with data receiver program Vertical communication.
In the disclosure, in the step C, the mode for establishing communication is Socket connections.
(3) advantageous effect
It can be seen from the above technical proposal that the data receiver programmed pressure test method that the disclosure provides has with following One of beneficial effect or a portion:
(1) physical device can be simulated and send data in real time, and multiple devices can be simulated simultaneously, realized to data receiver journey Space and cost are saved in the pressure test of sequence;
(2) user voluntarily sets equipment prefix, makes operation humanized, and test result is checked convenient for user, automatic raw Into website suffix, mark flow can be simplified, save manpower;
(3) one group of data of generation per minute, the reliability of continuance test data receiver program;
(4) the processed program of data receiver program is write into real time data table, convenient for checking;
(5) by generating site table, convenient for being compareed with real time data table.
Description of the drawings
Fig. 1 is the flow chart of data receiver programmed pressure test method provided in this embodiment.
Fig. 2 is the composition signal of website unique mark in data receiver programmed pressure test method provided in this embodiment Figure.
Specific embodiment
In the disclosure, data are sent to data receiver program parallelization by simulating multiple devices, are realized to data receiver journey The test of data-handling capacity of the sequence under parallel data pressure.
Purpose, technical scheme and advantage to make the disclosure are more clearly understood, below in conjunction with specific embodiment, and reference The disclosure is further described in attached drawing.
Fig. 1 is the flow chart of data receiver programmed pressure test method provided in this embodiment.
In an exemplary embodiment of the disclosure, as shown in Figure 1, providing a kind of data receiver programmed pressure test Method, including:Step A:The equipment to be matched according to the equipment prefix of user setting and website quantity, generation with website quantity Unique mark;Step B:According to equipment unique mark analog machine, every equipment unique mark corresponds to one equipment of simulation;Step C:Program foundation is received with measured data to communicate, more analog machines send data to tested program simultaneously, and test data receives Processing condition data of the program under concurrent data pressure;Step D:It receives measured data and receives program treated data, and It writes in real time data table;Step E:According to the error rate of data in the real time data table, evaluating data receives the pressure of program Power test case.
Data receiver programmed pressure test method provided in this embodiment sends data in real time by simulating multiple devices, So as to fulfill the test of the processing condition data to data receiver program under concurrent data pressure, space and cost have been saved.
In the disclosure, wherein, step C and step D Xun Huans carry out, i.e., at interval of regular time, more analog machines Will one group of data be sent to data receiver program simultaneously, and program is write in real time data table by treated, use is such It sets, increases test dynamics, and data receiver program can be tested for a long time, improve the reliable of test result Property.
Fig. 2 is the composition signal of website unique mark in data receiver programmed pressure test method provided in this embodiment Figure.
In the present embodiment, as shown in Fig. 2, equipment unique mark includes:Equipment prefix, by Arabic numerals and/or English The female composition of word, digit are 10;And equipment suffix, between 0001 and 9999, passed successively according to the website quantity Increase.Such as:User setting equipment prefix is TY20171111, and website quantity is 500, then actual equipment unique mark is TY20171111-0001, TY20171111-0002, TY20171111-0003 ..., TY20171111-0500, pass through user Equipment prefix is voluntarily set, operation can be made humanized, and also allows for user and checks test result, and is automatically generated Website suffix can simplify mark flow, save manpower.
In the present embodiment, in step C, every analog machine one group of data of simulation generation per minute, so as to be connect to data It receives program and reserves the time of data processing, and can also ensure the continuity of data generation, so as to continuance test data receiver The reliability of program.
In the present embodiment, every group of data include at least a kind of parameter, such as:It can be included in one group of data of generation CO2, the multiclass parameter such as PM2.5, PM10.
In the present embodiment, in step D, real time data table includes:INID, often write one group of data automatically generate one it is right The INID answered, each INID is different, for distinguishing every group of data;DID records equipment unique mark;Time records data The time of write-in;Parameter codes, per one parameter codes of one kind parameter correspondence (such as:User need test gas concentration lwevel, PM2.5 concentration, then corresponding parameter codes are CO2And PM2.5);And parameter value, in one group of data, parameter codes institute is right The processed program of data receiver program is write real time data table, is checked convenient for user by the concrete numerical value answered, and can be at any time Understand the pressure testing results of data receiver program.
In the present embodiment, further include:Step F:Site table, in practical application, website are generated according to equipment unique mark Table can voluntarily be compareed the typing one by one of the parameters such as equipment unique mark by user, also can be automatic according to parameters such as equipment unique marks Generation.
In the present embodiment, site table includes:SID often writes a station data and automatically generates a corresponding SID, Each SID is different;DID, the DID recorded in equipment unique mark, with real time data table are corresponded;Date, recording station The date of point generation;Site name, user are voluntarily set, with the equipment of simulation correspond (such as:The equipment of simulation can be ordered Entitled Tianjin observation station, Hebei observation station etc.);Parameter codes, per one parameter codes of one kind parameter correspondence (such as:User It needs to test gas concentration lwevel, PM2.5 concentration, then corresponding parameter codes are CO2And PM2.5);And parameter name, it uses Family (such as CO is write according to parameter codes correspondence2It is corresponding:Gas concentration lwevel, PM2.5 are corresponded to:PM2.5 concentration), for ginseng Number code plays the role of annotation, understands the corresponding meaning of parameters code convenient for user.
In the present embodiment, in step C, according to IP address and port numbers that user provides, established with data receiver program Communication.
In the present embodiment, in step C, the mode for establishing communication is Socket connections.
So far, attached drawing is had been combined the embodiment of the present disclosure is described in detail.It should be noted that it in attached drawing or says In bright book text, the realization method that does not illustrate or describe is form known to a person of ordinary skill in the art in technical field, and It is not described in detail.In addition, the above-mentioned definition to each element and method be not limited in mentioning in embodiment it is various specific Structure, shape or mode, those of ordinary skill in the art simply can be changed or replaced to it.
According to above description, those skilled in the art should be to the data receiver programmed pressure test method of disclosure offer There is clear understanding.
In conclusion the data receiver programmed pressure test method that the disclosure provides, by simulating multiple devices to data It receives program parallelization and sends data, realize the test of the data-handling capacity to data receiver program under parallel data pressure.
It should be appreciated that in order to simplify the disclosure and help to understand one or more of each open aspect, it is right above In the description of the exemplary embodiment of the disclosure, each feature of the disclosure be grouped together into sometimes single embodiment, figure or In person's descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:That is claimed public affairs Open requirement features more more than the feature being expressly recited in each claim.More precisely, as following right will It asks as book reflects, open aspect is all features less than single embodiment disclosed above.Therefore, it then follows specific Thus claims of embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself as this Disclosed separate embodiments.
Particular embodiments described above has carried out the purpose, technical solution and advantageous effect of the disclosure further in detail It describes in detail bright, it should be understood that the foregoing is merely the specific embodiments of the disclosure, is not limited to the disclosure, it is all Within the spirit and principle of the disclosure, any modification, equivalent substitution, improvement and etc. done should be included in the guarantor of the disclosure Within the scope of shield.

Claims (10)

1. a kind of data receiver programmed pressure test method, including:
Step A:According to the equipment prefix of user setting and website quantity, generate the equipment to match with website quantity and uniquely mark Know;
Step B:According to equipment unique mark analog machine, every equipment unique mark corresponds to one equipment of simulation;
Step C:It communicates with the foundation of data receiver program, more analog machines send data, test to data receiver program simultaneously Processing condition data of the data receiver program under concurrent data pressure;
Step D:Data receiver program is parsed after receiving data, and is write in real time data table;
Step E:According to the error rate of data in real time data table, evaluating data receives the pressure test situation of program.
2. data receiver programmed pressure test method according to claim 1, wherein, the step C and the step D are followed Ring carries out.
3. data receiver programmed pressure test method according to claim 1, the equipment unique mark includes:
Equipment prefix, is made of Arabic numerals and/or English alphabet, and digit is formed by 10;And
Equipment suffix, it is incremented by successively according to the website quantity between 0001 and 9999.
4. data receiver programmed pressure test method according to claim 1, in the step C, every equipment is every Minute simulation one group of data of generation.
5. data receiver programmed pressure test method according to claim 4, every group of data include at least a kind of parameter.
6. data receiver programmed pressure test method according to claim 5, in the step D, the real time data table Including:
INID often writes one group of data and automatically generates a corresponding INID;
DID records equipment unique mark;
Time, the time of record data write-in;
Parameter codes correspond to a parameter codes per one kind parameter;And
Parameter value, in one group of data, the concrete numerical value corresponding to the parameter codes.
7. data receiver programmed pressure test method according to claim 6, further includes:
Step F:Site table is generated according to equipment unique mark.
8. data receiver programmed pressure test method according to claim 7, the site table include:
SID often writes a station data and automatically generates a corresponding SID;
DID records equipment unique mark;
Date, the date of record website generation;
Site name, user are voluntarily set, and are corresponded with the equipment of simulation;
Parameter codes correspond to a parameter codes per one kind parameter;And
Parameter name, user write according to parameter codes correspondence.
9. data receiver programmed pressure test method according to claim 1, in the step C, provided according to user IP address and port numbers communicate with the foundation of data receiver program.
It is described to establish communication in the step C 10. data receiver programmed pressure test method according to claim 1 Mode is Socket connections.
CN201810007006.XA 2018-01-02 2018-01-02 Data receiver programmed pressure test method Pending CN108108295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810007006.XA CN108108295A (en) 2018-01-02 2018-01-02 Data receiver programmed pressure test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810007006.XA CN108108295A (en) 2018-01-02 2018-01-02 Data receiver programmed pressure test method

Publications (1)

Publication Number Publication Date
CN108108295A true CN108108295A (en) 2018-06-01

Family

ID=62218893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810007006.XA Pending CN108108295A (en) 2018-01-02 2018-01-02 Data receiver programmed pressure test method

Country Status (1)

Country Link
CN (1) CN108108295A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360182A (en) * 2021-06-04 2021-09-07 建信金融科技有限责任公司 Method and apparatus for system performance diagnostics

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102539953A (en) * 2011-11-04 2012-07-04 广东电网公司电力科学研究院 Method for testing data concurrent receiving capability of electric energy measurement automation system
CN103544103A (en) * 2013-09-02 2014-01-29 烟台中科网络技术研究所 Method and system for test, simulation and concurrence of software performance
US20150212914A1 (en) * 2014-01-24 2015-07-30 Ixia Methods, systems, and computer readable media for testing network devices using simulated application traffic
CN106649057A (en) * 2015-10-28 2017-05-10 北京国双科技有限公司 Method and device for testing server pressure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102539953A (en) * 2011-11-04 2012-07-04 广东电网公司电力科学研究院 Method for testing data concurrent receiving capability of electric energy measurement automation system
CN103544103A (en) * 2013-09-02 2014-01-29 烟台中科网络技术研究所 Method and system for test, simulation and concurrence of software performance
US20150212914A1 (en) * 2014-01-24 2015-07-30 Ixia Methods, systems, and computer readable media for testing network devices using simulated application traffic
CN106649057A (en) * 2015-10-28 2017-05-10 北京国双科技有限公司 Method and device for testing server pressure

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360182A (en) * 2021-06-04 2021-09-07 建信金融科技有限责任公司 Method and apparatus for system performance diagnostics
CN113360182B (en) * 2021-06-04 2022-12-09 建信金融科技有限责任公司 Method and apparatus for system performance diagnostics

Similar Documents

Publication Publication Date Title
CN106133537B (en) A kind of FPGA function module emulation verification method and its system
CN101902367A (en) Method and device for producing test case
CN101867501B (en) Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model
CN102169846B (en) Method for writing multi-dimensional variable password in parallel in process of testing integrated circuit wafer
CN106095673A (en) Automated testing method based on WEB interface and system
CN102695187B (en) Distributed Web-based device and method for testing 6LoWPAN protocol consistency
CN101145993B (en) A multi-point access interface test method and its test system
CN105068909B (en) A kind of simulation test development platform of embedded memory
CN106354634A (en) Interface testing method and device
CN104268079B (en) A kind of method and system of POS Application testings
CN104618919B (en) Sensor network sensing node identifier resolution conformance test method
CN108183838B (en) Method and device for testing source NAT function
CN109933535A (en) Generation method, device and the server of test case
JP2010531588A (en) Method for testing a mobile radio device
US7957951B2 (en) Address translation system for use in a simulation environment
CN107908538A (en) A kind of automated testing method and system of server system performance
CN101777023A (en) Method and device for generating test cases
CN113821440B (en) VxWorks application software testing method, system and simulator
US20080229165A1 (en) Address translation system for use in a simulation environment
CN108108295A (en) Data receiver programmed pressure test method
CN103913672A (en) Satellite low-frequency interface automatic testing system
CN109491854A (en) A kind of SoC prototype verification method based on FPGA
CN102111495B (en) Method for testing short messages
CN110825617B (en) Method and device for simulating communication interaction between devices
CN103812730A (en) Multiple cell TTCN (Tree and Tabular Combined Notation) protocol conformance test platform system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180601