CN105847071B - Utilize the long method and apparatus for connecting progress operational trials - Google Patents

Utilize the long method and apparatus for connecting progress operational trials Download PDF

Info

Publication number
CN105847071B
CN105847071B CN201510017554.7A CN201510017554A CN105847071B CN 105847071 B CN105847071 B CN 105847071B CN 201510017554 A CN201510017554 A CN 201510017554A CN 105847071 B CN105847071 B CN 105847071B
Authority
CN
China
Prior art keywords
long connection
service
established
business
service server
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
CN201510017554.7A
Other languages
Chinese (zh)
Other versions
CN105847071A (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 Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and 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 Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201510017554.7A priority Critical patent/CN105847071B/en
Publication of CN105847071A publication Critical patent/CN105847071A/en
Application granted granted Critical
Publication of CN105847071B publication Critical patent/CN105847071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The long method and apparatus for connecting progress operational trials is utilized embodiment of the invention discloses a kind of.This method comprises: determining the quantity of long connection to be established between testing service device and service server;Start the process of the quantity;And long connection is established between testing service device and service server by above-mentioned process, to test the business in service server, wherein each process corresponds to a long connection.The embodiment of the present invention can carry out operational trials in testing service device, avoid carrying out between user equipment and service server across end operational trials, so that operational trials quality be effectively ensured.

Description

Utilize the long method and apparatus for connecting progress operational trials
Technical field
The embodiment of the present invention is related to operational trials field, and in particular to a kind of to utilize the long side for connecting progress operational trials Method and equipment.
Background technique
User equipment can run various applications, these applications can extend existing equipment ability and add new energy Power.Currently, there are number of different types for these applications, such as the application of acquisition of information, for the application of communication and for giving pleasure to Happy application.These applications can be created by consumer equipment makers and/or third party's (such as application developer), and can To be installed in advance by manufacturer, or it can be downloaded and be installed by user equipment user.
Currently, various applications require to carry out business operation, the business operation between user equipment and service server Login, submission order, payment, cancellation etc. including usually being initiated by user equipment operate, and including usually being taken by business The push operation that business device is initiated.In order to realize these business operations, it usually needs between user equipment and service server Long connection is established, and is based on the long corresponding interface data of call connected.So-called long connection, refers to and utilizes a user equipment Connection between service server can continuously transmit multiple data packets, during connecting holding, if sent out without data packet It send, then needs the transmission link detection packet between the user equipment and the service server.
However, between a large number of users equipment (such as 1,000,000 user equipmenies) and service server business into It will be there arises a problem that first when row operational trials, it is difficult to obtain so-called 1,000,000 user equipmenies to carry out business survey Examination;Second, a large amount of long connections will occupy the vast resources of service server, resource bottleneck occurs so as to cause service server.
Summary of the invention
The embodiment of the present invention is intended to provide a kind of method for carrying out operational trials using long connection, is able to solve related skill The problem of art.
According to an aspect of the invention, there is provided a kind of utilize the long method for connecting and carrying out operational trials.This method packet It includes: determining the quantity of long connection to be established between testing service device and service server;Start the process of the quantity;And Long connection is established between testing service device and service server by the process, with the business tested in the service server, The wherein corresponding long connection of each process.
According to another aspect of the present invention, a kind of equipment for utilizing long connection to carry out operational trials, the equipment are provided It include: the first determining device, for determining the quantity of long connection to be established between testing service device and service server;It opens Dynamic device, for starting the process of the quantity;And device is established, for passing through the process in testing service device and business service Long connection is established between device, with the business tested in the service server, wherein each process corresponds to a long connection.
The embodiment of the present invention can be avoided by carrying out operational trials in testing service device and carry out user equipment and business Between server across end operational trials, so that operational trials quality be effectively ensured.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is to illustrate the embodiment of the present invention to realize in the figure of system 100 therein;
Fig. 2 is the flow chart using the long method 200 for connecting progress operational trials of embodiment according to the present invention;
Fig. 3 is the schematic diagram using the long system 300 for connecting progress operational trials of embodiment according to the present invention;And
Fig. 4 is the structural block diagram using the long equipment 400 for connecting progress operational trials of embodiment according to the present invention.
Specific embodiment
Several illustrative embodiments shown in below with reference to the accompanying drawings describe the principle and spirit of the invention.It should Understand, describe these embodiments just for the sake of make those skilled in the art can better understand that in turn realize the present invention, It is not intended to limit the scope of the invention in any way.
Fig. 1 is to illustrate the embodiment of the present invention to realize in the figure of system 100 therein.The system 100 includes user Equipment 102A to 102F, user equipment 102A to 102F are communicated each by network 106 with server system 104.It should Network 106 may include the large-scale meter for connecting any number of mobile subscriber equipment, fixed user equipment and service server 104 Calculation machine network, such as local area network (LAN), wide area network (WAN), internet, cellular network or a combination thereof.The service server 104 include one or more calculating equipment 110 and one or more machine-readable storage libraries or database 112.This field skill Art personnel, which are appreciated that the service server 104 both, can represent single user's equipment of such as computer server, can also be with Representative is worked together to execute multiple user equipmenies (such as Cloud Server hadoop) of function.
Within system 100, user equipment 102A to 102D is illustrated as mobile subscriber equipment, and user equipment 102E is illustrated For desktop computer and user equipment 102F is illustrated as notebook computer.It will be appreciated, however, that user equipment 102A is extremely 102F can respectively include any kind of user equipment, such as handheld computer, personal digital assistant (PDA), honeycomb electricity Words, network home appliance, camera, smart phone, Enhanced GPRS (EGPRS) mobile phone, computation sheet equipment, Media player, navigation equipment, electronic mail equipment, game machine or these data processing equipments or other data processing equipments In any two or multiple combinations.
User equipment 102A to 102F enables corresponding user 108A to 108F to interact with service server 104.It should Example services in service server 104 include taxi services and special train business.In some implementations, which can be with It is configured as (such as executing on user equipment 102A to 102F) and from one or more servers (such as industry in user equipment Business server 104) obtain business datum.
In addition, system 100 further includes testing service device 120, for the business tested in service server 104.
It should be appreciated that system 100 is merely illustrative purpose, it is not intended that limit the scope of embodiments of the invention.? In some cases, certain components can increase or reduce according to specific need.
Fig. 2 is the flow chart using the long method 200 for connecting progress operational trials of embodiment according to the present invention.Ability Field technique personnel are appreciated that this method 200 can be by holding with reference to the calculating equipment in testing service device 120 shown in FIG. 1 Row.It is convenient to discuss, this method 200 is described hereinafter with reference to network structure 100 shown in FIG. 1.
After the beginning of method 200, in step S202, determination is to be established between testing service device and service server The quantity of long connection.Wherein, how much this quantity can will test access according to the business to be tested in the service server User equipment and determine, such as this quantity can be equal to 1,000,000.
Next, this method 200 proceeds to step S204, start the process of above-mentioned quantity, the process is to the business of testing Business in server.
This method 200 then proceeds to step S206, through above-mentioned process between testing service device and service server Long connection is established, to test the business in service server, wherein each process corresponds to a long connection.Specifically, this Step may be implemented as follows:
First, long connection is established between testing service device and service server by a process in above-mentioned process. For establishing the operation of long connection by this process, can by starting simulation Push Service (mock push sdk) come It realizes.
Second, above-mentioned simulation Push Service is called in repetition, so as to repeat to establish long connection, to reach step S202 In identified quantity.
According to an embodiment of the invention, if the long successful connection is established, can initiate to test after step S206 The test of server pair hypertext transfer protocol (HTTP) interface relevant to length connection.
It will be appreciated by those skilled in the art that using by 200 described embodiment of method, it can be in testing service device Carry out operational trials, avoid carrying out between user equipment and service server across end operational trials, so that business be effectively ensured Test quality.
It will be understood by those skilled in the art that 200 described embodiment of method both can be by testing service device inside Processing equipment executes, and can also be executed by the processing equipment inside service server, can also by except testing service device with The processing equipment of any other server internal except service server executes, however by the processing inside testing service device Equipment is easily to be that optionally, this can reduce volume of transmitted data in a network to execute.
According to an embodiment of the invention, length connection is the long connection according to transmission control protocol (TCP).
Fig. 3 is the schematic diagram using the long system 300 for connecting progress operational trials of embodiment according to the present invention.Its In, system 300 includes testing service device 32 and service server 34, which includes simulation originating end (mock Client) 322, simulation Push Service (mock push sdk) 324 and HTTP API 326, and the service server 34 wraps Include Push Service (push sdk) 342 and HTTP service 344.The system 300 is able to carry out step described in the above method 200 Suddenly, it is described in detail below.
1, starting simulation originating end 322 controls starting TCP long connection by order and determines the number of the TCP long connection Amount.
2, starting simulation Push Service 324, establishes above-mentioned TCP long connection with Push Service 342 and communicates to realize.Its In, simulation Push Service 324 can be carried out by fork process passing ginseng calling, to establish the TCP long connection of above-mentioned quantity.
3, HTTP API 326 knows that the TCP long connection is successfully established, this is for example by receiving return value success come real It is existing.
4, HTTP API 326 requests HTTP service 346, makes it possible to test HTTP interface.
By actual verification, the embodiment of the present invention is able to solve under TCP long connection, the measurability of HTTP interface Problem, thus avoid carrying out between user equipment and service server across end operational trials, operational trials matter is effectively ensured Amount.
Fig. 4 is the structural block diagram using the long equipment 400 for connecting progress operational trials of embodiment according to the present invention.Such as Shown in Fig. 4, which includes: the first determining device 402, for determine between testing service device and service server to The quantity of the long connection of foundation;Starter 404, for starting the process of the quantity;And device 406 is established, for passing through The process establishes long connection between the testing service device and the service server, with the business tested in the service server, The wherein corresponding long connection of each process.
According to an embodiment of the invention, length connection is the long connection according to TCP.
According to an embodiment of the invention, it includes: start unit that this, which establishes device 406, for starting simulation Push Service, with Long connection is established between the testing service device and the service server by a process in the process;And it calls single Member calls the simulation Push Service for repeating.
According to an embodiment of the invention, further include: the second determining device, for determining that length connection is successfully established;And Originating device connects the test of relevant HTTP interface for initiating the testing service device pair to the length.
In conclusion providing a kind of side for utilizing long connection to carry out operational trials according to embodiments of the invention described above Method and equipment.This method comprises: determining the quantity of long connection to be established between testing service device and service server;Starting The process of the quantity;And long connection is established between testing service device and service server by above-mentioned process, to test industry The business being engaged in server, wherein each process corresponds to a long connection.The embodiment of the present invention can testing service device into Row operational trials, avoid carrying out between user equipment and service server across end operational trials, so that business survey be effectively ensured Try quality.
The realization of present disclosure and all feature operations provided herein with Fundamental Digital Circuit or can use tricks Calculation machine software, firmware or hardware, including disclosed in this specification and its structural equivalents structure or one of those Or multiple combination is realized.The realization of present disclosure can be implemented as one or more computer program products, that is, count One or more modules of the computer program instructions encoded on calculation machine readable medium, these instructions are held by data processing equipment The capable or operation to control data processing equipment.The computer-readable medium can be machine readable storage device, machine Readable storage substrate, memory devices, the composition or one or more group for influencing machine readable transmitting signal It closes.Term " data processing equipment " covers all devices, equipment and the machine for handling data, including for example programmable processing Device, computer or multiple processors or computer.In addition to hardware, the apparatus may include the computer journeys to be discussed Sequence create performing environment code, such as constitute processor firmware, protocol stack, data base management system, operating system or its One or more of combined code.
Computer program (also referred to as program, software, software application, script or code) can use any type of programming language (including compiler language or interpretative code) is sayed to write, and computer program can be disposed with any form, including conduct Stand-alone program as module, component, subroutine or is suitble to other units for using in a computing environment.Computer program Not necessarily correspond to the file in file system.Program, which can store, is keeping other programs or data (such as markup language The one or more scripts stored in document) file part in, be stored in the single text for being exclusively used in discussed program In part, either it is stored in multiple coordinated files and (such as stores the text of the part of one or more modules, subprogram or code Part) in.Computer program can be deployed on a computer to execute, or be located at a website or be distributed in At multiple websites and pass through interconnection of telecommunication network multiple computers on execute.
Process described in present disclosure and logic flow can be by one of the one or more computer programs of execution Or multiple programmable processors are executed to pass through operation input data and generate output and execute function.The process and logic Stream can also be executed by dedicated logic circuit, and device also can be implemented as the dedicated logic circuit, special logic electricity Road is, for example, FPGA (field programmable gate array) or ASIC (specific integrated circuit).
The processor for being suitably executed computer program includes both for example general and special microprocessors and any type Digital computer any one or more processors.In general, processor is from read-only memory or random access memory Or the two receives instruction and data.The element of computer may include processor for executing instruction and refer to for storing Enable one or more memory devices with data.In general, computer will also include one or more mass memory units so as to Storing data or the computer are operationally coupled to receive from mass memory unit or transmit data to mass memory unit Perhaps the two mass memory unit is, for example, disk, magneto-optic disk or CD.However, computer is not needed with such Equipment.In addition, computer can be embedded in another equipment, which is, for example, mobile phone, personal digital assistant (PDA), Mobile audio player, global positioning system (GPS) receiver etc..It is suitble to storage computer program instructions and data Computer-readable medium includes the nonvolatile memory, medium and memory devices of form of ownership, including for example: semiconductor is deposited Storage device, such as EPROM, EEPROM and flash memory device;Disk, such as built-in hard disk or removable disk;Magneto-optic disk;And CD ROM With DVD-ROM disk.The processor and memory can be supplemented or are incorporated in the dedicated logic circuit with dedicated logic circuit.
In order to provide the interaction with user, realizing for present disclosure can have for showing the aobvious of information to user Show equipment (such as CRT (cathode-ray tube) or LCD (liquid crystal display) monitor) and keyboard and pointing device (such as mouse Or tracking ball, input can be provided to computer by its user) computer on realize.Also it can be used other kinds of Equipment provides the interaction with user;For example, the feedback provided a user may be any type of sense feedback, such as vision Feedback, audio feedback or touch feedback;And input from the user can receive in any form, including the sense of hearing, language Sound or tactile input.
Although present disclosure includes some details, these details should not be interpreted as to present disclosure or The limitation of the range of claimed content, but should be understood as retouching to the feature of the example implementation of present disclosure It states.Certain features described in the situation being implemented separately can also be combined with single realization to provide in present disclosure.Phase Instead, each feature described in the situation individually realized can also provide in multiple realizations or in any conjunction respectively It is provided in suitable sub-portfolio.Although in addition, can describe feature as executing and even initial in some combination above It requires to protect in this way, however can remove from combination in some cases from claimed combined one or more Feature, and claimed combination can be related to the variation of sub-portfolio or sub-portfolio.
Similarly, although describing operation according to particular order in the accompanying drawings, this is understood not to require this The operation of sample particular order shown in perhaps executes or requires all illustrated operations all to be held according to sequential order Row, to realize desired result.In some circumstances, multitask and parallel processing may be advantageous.In addition, described above The separation of various system units in realization is understood not to require such separation in all realizations, and should Understanding, described program element and system usually can integrate or be packaged into single software product multiple Software product.
Therefore, it has been described that the specific implementation of present disclosure.Other are realized in the range of following claims.Example Such as, the movement recorded in claim can execute in a different order, and these movements still may be implemented it is expected Result.A large amount of realizations have been described.It will be appreciated, however, that can be in the spirit and scope without departing from present disclosure In the case of make various modifications.It is, for example, possible to use each forms of process illustrated above, and wherein step can be arranged again Sequence, addition or removal.Therefore, other are realized in the range of following claims.

Claims (6)

1. a kind of utilize the long method for connecting and carrying out operational trials, comprising:
Determine the quantity of long connection to be established between testing service device and service server, wherein the quantity is according to industry Business to be tested in business server will test access how many user equipment and determine;
Start the process of the quantity;And
Long connection is established, between the testing service device and the service server by the process to test the business Business in server, wherein the corresponding long connection of each process;
Wherein establishing long connection between the testing service device and the service server by the process includes:
Starting simulation Push Service, with by a process in the process in the testing service device and the business service Long connection is established between device;And
The quantity simulating Push Service and connecting with the long connection of repetition foundation until reaching the identified length is called in repetition.
2. according to the method described in claim 1, wherein the long connection is the long connection according to transmission control protocol.
3. according to the method described in claim 1, further include:
Determine that the long connection is successfully established;And
Initiate the test of the testing service device pair hypertext transfer protocol interface relevant to the length connection.
4. a kind of utilize the long equipment for connecting and carrying out operational trials, comprising:
First determining device, for determining the quantity of long connection to be established between testing service device and service server, In, the quantity will test access how many user equipment according to the business to be tested in service server and determine;
Starter, for starting the process of the quantity;And
Device is established, for long connection to be established between the testing service device and the service server by the process, With the business tested in the service server, wherein the corresponding long connection of each process;
Wherein the device of establishing includes:
Start unit, for start simulation Push Service with by a process in the process in the testing service device and Long connection is established between the service server;And
Call unit calls the simulation Push Service for repetition to repeat to establish long connection until reaching identified described The quantity of long connection.
5. equipment according to claim 4, wherein the long connection is the long connection according to transmission control protocol.
6. equipment according to claim 4, further includes:
Second determining device, for determining that the long connection is successfully established;And
Originating device, for initiating the survey of the testing service device pair hypertext transfer protocol interface relevant to the length connection Examination.
CN201510017554.7A 2015-01-14 2015-01-14 Utilize the long method and apparatus for connecting progress operational trials Active CN105847071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510017554.7A CN105847071B (en) 2015-01-14 2015-01-14 Utilize the long method and apparatus for connecting progress operational trials

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510017554.7A CN105847071B (en) 2015-01-14 2015-01-14 Utilize the long method and apparatus for connecting progress operational trials

Publications (2)

Publication Number Publication Date
CN105847071A CN105847071A (en) 2016-08-10
CN105847071B true CN105847071B (en) 2019-09-20

Family

ID=56579820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510017554.7A Active CN105847071B (en) 2015-01-14 2015-01-14 Utilize the long method and apparatus for connecting progress operational trials

Country Status (1)

Country Link
CN (1) CN105847071B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070752B (en) * 2017-04-25 2020-07-24 深圳市世纪福科技有限公司 Testing method and testing system for long connection capacity
CN118301221A (en) * 2024-04-01 2024-07-05 上海乐响网络科技发展有限公司 Protocol debugging method, equipment and storage medium based on long connection service

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576844A (en) * 2008-05-09 2009-11-11 北京世纪拓远软件科技发展有限公司 Method and system for testing software system performances
CN103138995A (en) * 2011-11-24 2013-06-05 中兴通讯股份有限公司 Method and device for server performance test

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004201121A (en) * 2002-12-19 2004-07-15 Ntt Docomo Inc Protocol testing system and protocol testing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576844A (en) * 2008-05-09 2009-11-11 北京世纪拓远软件科技发展有限公司 Method and system for testing software system performances
CN103138995A (en) * 2011-11-24 2013-06-05 中兴通讯股份有限公司 Method and device for server performance test

Also Published As

Publication number Publication date
CN105847071A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
US8843646B2 (en) Multi-desktop interaction using nested remote desktop sessions
CN109639782B (en) Message sending platform and method
US10860398B2 (en) Adapting legacy endpoints to modern APIs
CN108494860B (en) WEB access system, WEB access method and device for client
CN110378743B (en) Application invitation method, terminal device, server and medium
KR101520056B1 (en) Cloud-based mobile/online game server load test automation service method
CN111078539B (en) Test method, device, system and computer readable storage medium
WO2016188181A1 (en) Test method, mobile terminal, server and computer storage medium
CN103580937A (en) Web service simulating method and system and service agent system thereof
CN113190464A (en) mock testing method, mock testing device, electronic equipment and mock testing medium
CN110430292B (en) Method and device for inviting login of network platform, electronic equipment and readable medium
JP6758139B2 (en) Systems and methods for efficient call processing
CN105847071B (en) Utilize the long method and apparatus for connecting progress operational trials
CN104599092B (en) For monitoring the method and apparatus of order business
CN202799166U (en) Mobile application network testing system
CN110764983A (en) Test method, device, medium and electronic equipment
CN112084102A (en) Interface pressure testing method and device
CN112015383A (en) Login method and device
CN109951487A (en) A kind of portal authentication method and device
CN107395663B (en) Data acquisition method and device
CN103152216B (en) The method of testing of system and device in a kind of the Internet
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN104539450B (en) Run active process system, method and apparatus in website
JP6199844B2 (en) Suspicious part estimation device and suspected part estimation method
CN112769627B (en) Network environment simulation method, system and computer program product

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