Movatterモバイル変換


[0]ホーム

URL:


CN108574604A - test method and device - Google Patents

test method and device
Download PDF

Info

Publication number
CN108574604A
CN108574604ACN201710130628.7ACN201710130628ACN108574604ACN 108574604 ACN108574604 ACN 108574604ACN 201710130628 ACN201710130628 ACN 201710130628ACN 108574604 ACN108574604 ACN 108574604A
Authority
CN
China
Prior art keywords
information
destination server
server
test
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710130628.7A
Other languages
Chinese (zh)
Other versions
CN108574604B (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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co LtdfiledCriticalBeijing Jingdong Century Trading Co Ltd
Priority to CN201710130628.7ApriorityCriticalpatent/CN108574604B/en
Publication of CN108574604ApublicationCriticalpatent/CN108574604A/en
Application grantedgrantedCritical
Publication of CN108574604BpublicationCriticalpatent/CN108574604B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

This application discloses test methods and device.One specific implementation mode of this method includes:The internet protocol address that user terminal is sent is received, and the IP address is matched with the domain name of each server to be tested in server cluster to be tested;, as destination server, the port information of the destination server is obtained using with the server to be tested indicated by the matched domain name of the IP address;Domain name and port information based on the destination server generate test information, and the test information is sent to destination server;Feedback information based on the destination server generates test result, and the test result is returned to user terminal, wherein feedback information is and the test relevant information of information.This embodiment improves testing efficiencies.

Description

Test method and device
Technical field
This application involves field of computer technology, and in particular to Internet technical field more particularly to test method and dressIt sets.
Background technology
Interface testing is typically a kind of test of test system components interface.Mainly for detection of external system and systemBetween and internal subsystems between interaction point.The interaction exploitation especially between multisystem, or possess multiple subsystemsApplication system development test in, interface testing be commonly available to for other systems provide service first floor system and in it is genuinely convincedBusiness system mainly tests the interface of these system external portions offer, verifies its correctness and stability.
Currently, before being tested, tester usually requires to write test according to the call format of service to be testedData.Since the call format of different services is usually different, so when increasing new service to be tested, tester needsIncrease new test data or the existing test data of modification, influences testing efficiency.
Invention content
The purpose of the application is to propose a kind of improved test method and device, is carried to solve background section aboveTo the technical issues of.
In a first aspect, the embodiment of the present application provides a kind of test method, this method includes:Receive what user terminal was sentInternet protocol address, and the domain name of each server to be tested in IP address and server cluster to be tested is carried outMatch;, as destination server, the end of destination server is obtained using with the server to be tested indicated by the matched domain name of IP addressMessage ceases;Domain name and port information based on destination server generate test information, and test information is sent to destination serviceDevice;Feedback information based on destination server generates test result, returns to test result to user terminal, wherein feedback informationFor with test the relevant information of information.
In some embodiments, the domain name based on destination server and port information generate test information, and test is believedBreath is sent to destination server, including:Domain name and port information based on destination server generate uniform resource position mark URL;It is sent to destination server using URL as test information.
In some embodiments, the feedback information based on destination server generates test result, returns and surveys to user terminalTest result, including:If the feedback information of destination server is the corresponding content of pages of URL, using content of pages as test result,And it is back to user terminal.
In some embodiments, the feedback information based on destination server generates test result, returns and surveys to user terminalTest result, including:If the feedback information of destination server is the corresponding content of pages of URL, by the domain name of destination server and endMessage breath is used as test result, and is back to user terminal.
In some embodiments, the domain name based on destination server and port information generate test information, including:Determine meshWhether the quantity for marking the port indicated by the port information of server is more than the first preset value;If so, from the end of destination serverMessage breath selects predetermined number port in indicated port, the port of domain name and selected taking-up based on destination serverPort information generate predetermined number test information.
Second aspect, the embodiment of the present application provide a kind of test device, which includes:Receiving unit is configured toReceive the internet protocol address that user terminal is sent, and by each clothes to be tested in IP address and server cluster to be testedThe domain name of business device is matched;Acquiring unit, be configured to by with the server to be tested indicated by the matched domain name of IP addressAs destination server, the port information of destination server is obtained;Generation unit is configured to the domain name based on destination serverTest information is generated with port information, and test information is sent to destination server;Feedback unit is configured to be based on targetThe feedback information of server generates test result, and test result is returned to user terminal, wherein feedback information is and test informationRelevant information.
In some embodiments, generation unit further includes:Subelement is generated, the domain name based on destination server is configured toUniform resource position mark URL is generated with port information;Transmission sub-unit is configured to be sent to mesh using URL as test informationMark server.
In some embodiments, feedback unit is further configured to:If the feedback information of destination server corresponds to for URLContent of pages, using content of pages as test result, and be back to user terminal.
In some embodiments, feedback unit is further configured to:If the feedback information of destination server corresponds to for URLContent of pages, using the domain name of destination server and port information as test result, and be back to user terminal.
In some embodiments, generation unit is further configured to:It determines indicated by the port information of destination serverPort quantity whether be more than the first preset value;If so, being chosen in port indicated by port information from destination serverGo out predetermined number port, the port information of the port of domain name and selected taking-up based on destination server generates predetermined numberTest information.
The third aspect, the embodiment of the present application provide a kind of server, which includes:One or more processors;Storage device, for storing one or more programs, when one or more programs are executed by one or more processors so that oneA or multiple processors realize the test method as described in any realization method in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journeySequence realizes the test method as described in any realization method in first aspect when computer program is executed by processor.
Test method provided by the embodiments of the present application and device pass through IP address and the clothes to be tested for sending user terminalThe domain name of each server to be tested in business device cluster is matched, using the server to be tested indicated by matched domain name asDestination server;Then obtain the port information of destination server;The domain name based on destination server and port information generate againInformation is tested, and is sent to destination server;Feedback information based on destination server generates test result, to return to user's endEnd.In this way, even if increasing new server to be tested in server cluster to be tested, the domain name based on new server to be testedAnd port information, corresponding test information can also be generated.So as to reduce the modification to test data, test effect is improvedRate.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is otherFeature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the test method of the application;
Fig. 3 is the flow chart according to another embodiment of the test method of the application;
Fig. 4 is the schematic diagram of an application scenarios of the test method in Fig. 3 embodiments;
Fig. 5 is the structural schematic diagram according to one embodiment of the test device of the application;
Fig. 6 is adapted for the structural schematic diagram of the computer system of the server for realizing the embodiment of the present application.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order toConvenient for description, is illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phaseMutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the exemplary system architecture that can apply the test method of the application or the embodiment of test device100。
As shown in Figure 1, system architecture 100 may include user terminal 101,102,103, and network 104,106, server105 and server to be tested 107,108.Network 104 between user terminal 101,102,103 and server 105 providingThe medium of communication link.Network 106 is to the offer communication link between server 105 and server to be tested 107,108Medium.Network 104,106 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted by network 104 with server 105 using user terminal 101,102,103, to receive or send outSend message etc..Various telecommunication customer end applications can be installed, such as web browser is answered on user terminal 101,102,103With, application service testing tool, the application of shopping class, searching class application, instant messaging tools, mailbox client etc..
User terminal 101,102,103 can be the various electronic equipments for having display screen, including but not limited to intelligent handMachine, tablet computer, E-book reader, pocket computer on knee and desktop computer etc..
Server 107,108 to be tested can be to provide the server of various services, for example, to user terminal 101,102,Various applications on 103 provide the background application server supported.
Server 105 can be to provide the server of various services, such as the packet to the transmission of user terminal 101,102,103The background process server that test request containing IP (Internet Protocol, Internet protocol) address is handled.From the backgroundProcessing server can carry out the data such as the domain name of the IP address and server to be tested 107,108 received and port informationAnalyzing processing, and handling result (such as test result) is fed back into user terminal.
It should be noted that the test method that the embodiment of the present application is provided generally is executed by server 105, correspondingly,Test device is generally positioned in server 105.
It should be understood that the number of the user terminal, network, server and server to be tested in Fig. 1 is only schematic's.According to needs are realized, can have any number of terminal device, network, server and server to be tested.It needs to illustrate, server 105 and server to be tested 107,108 can be the child servers in same server, different to realizeService function.
With continued reference to Fig. 2, the flow 200 of one embodiment of the test method according to the application is shown.The test sideMethod includes the following steps:
Step 201, the internet protocol address that user terminal is sent is received, and by IP address and server set to be testedThe domain name of each server to be tested in group is matched.
In the present embodiment, test method operation electronic equipment (such as server 105 shown in FIG. 1) thereon can be withBy wired connection mode or radio connection IP address is received from user terminal.And by IP address and service to be testedThe domain name of each server to be tested in device cluster is matched.Wherein, in above-mentioned electronic equipment and server cluster to be testedEach server communication to be tested connection.
In the present embodiment, user profit can send IP address in various manners on the subscriber terminal.Such as user can be withIP address etc. is inputted in the input field of browser or test platform on the subscriber terminal.Test platform can utilize webpageWeb framing tools structure.Such as the Web application frames based on object-oriented, literal translation formula computer programming language pythonFrame, such as:The Web application frameworks such as Django, Tornado, Bottle or web.py.In addition, user can also send simultaneously it is moreA IP address can be separated between each IP address with comma (but not limiting) to distinguish.
In the present embodiment, the IP version of IP address is not limited.The IP version of IP address can be IPv4, can alsoIt is IPv6.And the IP address that user terminal is sent can be IP address corresponding with the domain name of server to be tested, it can alsoIt is IP address corresponding with the domain name of other servers.In this way before being tested, can first it be set to operating in above-mentioned electronicsStandby upper test method makes a preliminary test verification.
In the present embodiment, since the domain name of a server to be tested would generally correspond to an IP address, so above-mentionedElectronic equipment is after receiving the IP address that user terminal is sent, IP address that can be corresponding to the domain name with each server to be testedIt is matched.Above-mentioned electronic equipment can prestore each clothes to be tested in the server cluster to be tested for communicating with connectionThe domain name and IP address of business device.If in the IP address corresponding to the domain name of each server to be tested, existing and being sent out with user terminalThe identical IP address of IP address sent can then be determined in the presence of the matched server to be tested of IP address sent with user terminalDomain name.It, then can be to user if there is no the domain name of the matched server to be tested of IP address sent with user terminalTerminal sends prompt message (such as IP address is not present or it fails to match).It is understood that the application is to each clothes to be testedThe domain name of device of being engaged in and the storage location of IP address do not limit, and above-mentioned electronic equipment can also be obtained from each server to be testedCorresponding information.
Step 202, as destination server, mesh is obtained using with the server to be tested indicated by the matched domain name of IP addressMark the port information of server.
In the present embodiment, the IP address received based on step 201, above-mentioned electronic equipment can first by with IP addressServer to be tested indicated by matched domain name is determined as destination server, then obtains the port letter of the destination serverBreath.
In the present embodiment, can both there be physical port (such as serial port, parallel port) on destination server, also might be usedTo there is virtual port (such as protocol port).Above-mentioned electronic equipment mainly obtain port that destination server externally provided (such as80 ports of WWW (World Wide Web, WWW) services are distributed to, or distribute to FTP (File TransferProtocol, file transmission) service 21 ports etc.) port information.Wherein, port information may include but not limit communicationAgreement, port address, port name etc..Communication protocol may include HTTP (Hypertext Transfer Protocol,Hyper text transfer) agreement, File Transfer Protocol and SMTP (Simple Mail Transfer Protocol, simple mail transmission) agreementDeng.
In the present embodiment, above-mentioned electronic equipment can obtain the port information of destination server by various modes.ExampleSuch as, the port information of each server to be tested can be prestored in above-mentioned electronic equipment, and finds mesh in these informationMark the port information of server.As an example, above-mentioned electronic equipment can also utilize service-oriented architecture technology Web serviceTo obtain the port information of each server to be tested.Because would generally include SOAP in existing Web service services(Simple Object Access Protocol, Simple Object Access Protocol) and WSDL (Web ServicesDescription Language, web services definition language).These port informations are with XML (Extensible MarkupLanguage, extensible markup language) document form transmission, so as to transmit and be read between different server.
Step 203, the domain name based on destination server and port information generate test information, and test information is sent toDestination server.
In the present embodiment, the domain name and port information of the destination server obtained based on step 202, above-mentioned electronic equipmentThe identifiable test information of destination server can be generated.And test information is sent to destination server.
In the present embodiment, above-mentioned electronic equipment can service function described in the port information according to destination serverDifference, and generate different test information.Such as:The port address of destination server is 21, usually FTP service.At this point,Above-mentioned electronic equipment can send Passive Mode PASV orders (testing information) and arrive destination server.When control link is created asAfter work(, destination server will send out a port number to above-mentioned electronic equipment.If above-mentioned electronic equipment receives destination serviceThe port numbers (i.e. feedback information) that device is sent, can primarily determine that test passes through.Further, above-mentioned electronic equipment can be to targetServer initiates data link request, and upon success to destination server transmission data (as test information).Work as targetAfter server feedback conditional code, above-mentioned electronic equipment can be to further determine that test according to conditional code (as feedback information)It is no to pass through.Such as:2xx indicates current operation success, it may be determined that test passes through.Again for example:The port of destination serverLocation is 25, and usually SMTP is serviced.At this point, above-mentioned electronic equipment is with destination server after establishing the link, if receiving targetWhen server returns to 220 conditional code, it can primarily determine that test passes through.Further, above-mentioned electronic equipment can take to targetBusiness device sends out HELO EHLO orders (testing information).Wherein, HELO orders refer to acquiescence SMTP service, EHLO refer in addition toExpansion service is also supported except the service of acquiescence.HELO orders and EHLO orders are common journeys in prior art SMTP servicesSequence language, these programs are commercially available.Conditional code (the i.e. feedback letter that above-mentioned electronic equipment can be fed back according to destination serverBreath) it tests whether to pass through to further determine that.
In some optional realization methods of the present embodiment, following steps may be used to be based on mesh in above-mentioned electronic equipmentIt marks the domain name of server and port information generates test information:Determine the number of the port indicated by the port information of destination serverWhether amount is more than the first preset value;If so, selecting predetermined number in port indicated by port information from destination serverA port, the port information of the port of domain name and selected taking-up based on destination server generate predetermined number and test information.It should be noted that the method for choosing predetermined number port does not limit in the present embodiment, can randomly select, also may be usedTo be to be chosen according to presetting method, for example chosen according to the ascending sequence of port address.
Step 204, the feedback information based on destination server generates test result, and test result is returned to user terminal.
In the present embodiment, above-mentioned electronic equipment can generate test result based on the feedback information of destination server.AndAnd above-mentioned electronic equipment can return to test result by way of wired connection or wireless connection to user terminal.Wherein, insteadFeedforward information can be and test the relevant information of information (embodiment as shown in step 203).Test result may include but notIt is limited to test to pass through or test not passing through.As an example, above-mentioned electronic equipment can also be by the domain name of destination server and portInformation and whether by the information such as testing test report is generated, using as test result.The masterplate of test report can be advanceIt is stored in above-mentioned electronic equipment.In this way be convenient for management service, and convenient in time find and solve test not by targetServer and port.
In the present embodiment, user terminal can by various modes to user show test result, such as browser orTest platform etc..
The test method that above-described embodiment of the application provides passes through the IP address for sending user terminal and clothes to be testedThe domain name of each server to be tested in business device cluster is matched, using the server to be tested indicated by matched domain name asDestination server;Then obtain the port information of destination server;The domain name based on destination server and port information generate againInformation is tested, and is sent to destination server;The feedback information for being finally based on destination server generates test result, to return to useFamily terminal.In this way, even if increasing new server to be tested in server cluster to be tested, based on new server to be testedDomain name and port information can also generate corresponding test information.So as to reduce the modification to test data, survey is improvedTry efficiency.
With further reference to Fig. 3, it illustrates the flows 300 of another embodiment of the test method of the application.The testThe flow 300 of method, includes the following steps:
Step 301, the IP address that user terminal is sent is received, and IP address is respectively waited for server cluster to be testedThe domain name of test server is matched.
In the present embodiment, test method operation electronic equipment (such as server 105 shown in FIG. 1) thereon can be withThe IP address of user terminal transmission is received by way of wired connection or wireless connection.And above-mentioned electronic equipment can be by IPAddress is matched with the domain name of each server to be tested in server cluster to be tested.For details, reference can be made to implement shown in Fig. 2Step 201 in example, details are not described herein again.
Step 302, as destination server, mesh is obtained using with the server to be tested indicated by the matched domain name of IP addressMark the port information of server.
In the present embodiment, above-mentioned electronic equipment can by with the server to be tested indicated by the matched domain name of IP addressAs destination server, the port information of destination server is obtained.Wherein, port information can include but is not limited to communication protocolsView, port address, port name etc..For details, reference can be made to the steps 202 in embodiment illustrated in fig. 2, and details are not described herein again.
Step 303, the domain name based on destination server and port information generate uniform resource position mark URL, using URL asTest information is sent to destination server.
In the present embodiment, the domain name and port information that above-mentioned electronic equipment can be based on destination server generate URL.ExampleSuch as:The domain name of destination server is * * * .com, and port information includes http protocol, port numbers 80, can generate URL and behttp://www.***.com:80 or http://www.***.com.And above-mentioned electronic equipment can be using URL as testInformation, to send the test request for including URL to destination server.In addition, above-mentioned electronic equipment can also utilize in PythonHttplib modules in Get methods obtain content or Post methods from destination server and submit information to destination server.It needsIt is noted that Python and httplib modules are the known technologies studied and applied extensively at present, details are not described herein.
Step 304, if the feedback information of destination server is the corresponding content of pages of URL, using content of pages as testAs a result, and being back to user terminal.
In the present embodiment, letter of the above-mentioned electronic equipment in the corresponding content of pages of URL for receiving destination server feedbackAfter breath, user terminal can be back to by way of wired connection or wireless connection using content of pages as test result.
In the present embodiment, user terminal can be shown to user in the corresponding pages of URL in browser or test platformHold.Test platform can choose HTML (Hypertext Markup appropriate according to the data structure of content of pagesLanguage, hypertext markup language) masterplate, with displayed page content.
In some optional realization methods of the present embodiment, if the feedback information of destination server is the corresponding pages of URLFace content, above-mentioned electronic equipment can be using the domain name of destination server and port information as test result, and is back to userTerminal.
From figure 3, it can be seen that compared with the corresponding embodiments of Fig. 2, the flow 300 of the test method in the present embodiment is prominentThe generation step to testing information and test result is gone out.The scheme of the present embodiment description can introduce more to be measured as a result,The application service for trying server more fully tests information and more rich test result to realize.
It is a schematic diagram of the application scenarios of the test method of embodiment according to Fig.3, with continued reference to Fig. 4, Fig. 4.In the application scenarios of Fig. 4, user can input the IP address of 172.###.## in the input field on test platform first, click" test " button (as shown in label 401).Hereafter, which can be sent to server by user terminal.Server is firstCan by the domain name of each server to be tested in the IP address of the 172.###.## received and server cluster to be tested intoRow matching.Then can be www.A** by domain name after the determining and matched domain names of 172.###.## are www.A**.com.com server to be tested obtains the port information of the destination server as destination server.Then generate http://The test information of www.A**.com, and send it to destination server.The page that last server returns to destination serverContent is back to user terminal as test result.User terminal can be according to the data structure of content of pages, in test platformOn result 1 at its (such as Email Accounts login page) is showed by user with form web page, test homepage is test platformHomepage.Email Accounts login page includes " Email Accounts or cell-phone number@163.com ", " password ", " logins " button and " registration "Button (as shown in label 402).
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of test devicesOne embodiment.The device embodiment is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to various electricityIn sub- equipment.
As shown in figure 5, the test device 500 of the present embodiment includes:Receiving unit 501, acquiring unit 502, generation unit503 and feedback unit 504.Wherein, receiving unit 501 is configured to receive the internet protocol address that user terminal is sent,And IP address is matched with the domain name of each server to be tested in server cluster to be tested;Acquiring unit 502 configuresFor, as destination server, obtaining the end of destination server using with the server to be tested indicated by the matched domain name of IP addressMessage ceases;Generation unit 503 is configured to the domain name based on destination server and port information generation test information, and will testInformation is sent to destination server;Feedback unit 504 is configured to the feedback information based on destination server and generates test result,To user terminal return test result, wherein feedback information be and test the relevant information of information.
In the present embodiment, the specific reality of receiving unit 501, acquiring unit 502, generation unit 503 and feedback unit 504Existing mode and the advantageous effect of generation can be respectively referring to step 201, step 202, step 203 and the steps in Fig. 2 embodiments204, details are not described herein again.
In some optional realization methods of the present embodiment, generation unit 503 can also include:Generate subelement (figureIn be not shown), be configured to domain name based on destination server and port information generate uniform resource position mark URL;Send sonUnit (not shown) is configured to be sent to destination server using URL as test information.
In some optional realization methods of the present embodiment, feedback unit 504 can be further configured to:If targetThe feedback information of server is the corresponding content of pages of URL, using content of pages as test result, and is back to user terminal.
In some optional realization methods of the present embodiment, feedback unit 504 can be further configured to:If targetThe feedback information of server is the corresponding content of pages of URL, using the domain name of destination server and port information as test result,And it is back to user terminal.
In some optional realization methods of the present embodiment, generation unit 503 can be further configured to:Determine meshWhether the quantity for marking the port indicated by the port information of server is more than the first preset value;If so, from the end of destination serverMessage breath selects predetermined number port in indicated port, the port of domain name and selected taking-up based on destination serverPort information generate predetermined number test information.
Below with reference to Fig. 6, it illustrates the computer systems 600 suitable for the server for realizing the embodiment of the present applicationStructural schematic diagram.Server shown in Fig. 6 is only an example, should not be to the function and use scope band of the embodiment of the present applicationCarry out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored inProgram in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 andExecute various actions appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to alwaysLine 604.
It is connected to I/O interfaces 605 with lower component:Importation 606 including keyboard, mouse etc.;It is penetrated including such as cathodeThe output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 608 including hard disk etc.;And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as becauseThe network of spy's net executes communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such asDisk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 610, as needed in order to be read from thereonComputer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart descriptionSoftware program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable mediumOn computer program, which includes the program code for method shown in execution flow chart.In such realityIt applies in example, which can be downloaded and installed by communications portion 609 from network, and/or from detachable media611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processesAbove-mentioned function.It should be noted that the above-mentioned computer-readable medium of the application can be computer-readable signal media orComputer readable storage medium either the two arbitrarily combines.Computer readable storage medium for example can be --- butBe not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or arbitrary above combination.The more specific example of computer readable storage medium can include but is not limited to:Electrical connection with one or more conducting wires,Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only depositReservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memoryPart or above-mentioned any appropriate combination.In this application, computer readable storage medium can any be included or storeThe tangible medium of program, the program can be commanded the either device use or in connection of execution system, device.AndIn the application, computer-readable signal media may include the data letter propagated in a base band or as a carrier wave partNumber, wherein carrying computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but notIt is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computerAny computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit useIn by instruction execution system, device either device use or program in connection.Include on computer-readable mediumProgram code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo ZheshangAny appropriate combination stated.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of the various embodiments of the application, method and computer journeyThe architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generationA part for a part for one module, program segment, or code of table, the module, program segment, or code includes one or more usesThe executable instruction of the logic function as defined in realization.It should also be noted that in some implementations as replacements, being marked in boxThe function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actuallyIt can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it to noteMeaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holdingThe dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instructionCombination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hardThe mode of part is realized.Described unit can also be arranged in the processor, for example, can be described as:A kind of processor packetInclude receiving unit, acquiring unit, generation unit and feedback unit.Wherein, the title of these units not structure under certain conditionsThe restriction of the pairs of unit itself, for example, receiving unit is also described as " receiving the Internet protocol that user terminal is sentIP address, and the domain name of each server to be tested in IP address and server cluster to be tested is subjected to matched unit ".
As on the other hand, present invention also provides a kind of computer-readable medium, which can beIncluded in server described in above-described embodiment;Can also be individualism, and without be incorporated the server in.It is above-mentionedComputer-readable medium carries one or more program, when said one or multiple programs are executed by the server,Make the server:The internet protocol address that user terminal is sent is received, and by IP address and server cluster to be testedIn the domain name of each server to be tested matched;Using with the server to be tested indicated by the matched domain name of IP address asDestination server obtains the port information of destination server;Domain name and port information based on destination server generate test letterBreath, and test information is sent to destination server;Feedback information based on destination server generates test result, to user's endEnd return test result, wherein feedback information be and test the relevant information of information.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the artMember should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristicScheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent featureOther technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed hereinCan technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

CN201710130628.7A2017-03-072017-03-07Test method and deviceActiveCN108574604B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710130628.7ACN108574604B (en)2017-03-072017-03-07Test method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710130628.7ACN108574604B (en)2017-03-072017-03-07Test method and device

Publications (2)

Publication NumberPublication Date
CN108574604Atrue CN108574604A (en)2018-09-25
CN108574604B CN108574604B (en)2020-09-29

Family

ID=63577078

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710130628.7AActiveCN108574604B (en)2017-03-072017-03-07Test method and device

Country Status (1)

CountryLink
CN (1)CN108574604B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109324914A (en)*2018-09-262019-02-12多点生活(成都)科技有限公司Service calling method, service call device and central server
CN109542756A (en)*2018-09-292019-03-29中国平安人寿保险股份有限公司Method, apparatus, electronic equipment and the storage medium of automatic configuration script
CN110457197A (en)*2019-08-192019-11-15中国工商银行股份有限公司Service test method, device, computer equipment and storage medium
CN110475268A (en)*2019-07-052019-11-19深圳壹账通智能科技有限公司Short chain test method, system, equipment and storage medium
CN110795343A (en)*2019-10-122020-02-14车智互联(北京)科技有限公司 Test system, test method and computing equipment
CN111049912A (en)*2019-12-172020-04-21用友网络科技股份有限公司Debugging method, test development device, and computer-readable storage medium
CN112306858A (en)*2020-05-212021-02-02北京字节跳动网络技术有限公司Test method and device and electronic equipment
CN112363879A (en)*2020-11-202021-02-12上海连尚网络科技有限公司Cache server performance test method, device, equipment and medium
CN113630802A (en)*2020-05-072021-11-09大唐联仪科技有限公司NR user plane service test method and device
CN113641575A (en)*2021-08-062021-11-12上海浦东发展银行股份有限公司Test method, device, equipment and storage medium
CN113760697A (en)*2020-07-152021-12-07北京沃东天骏信息技术有限公司Interface testing method and device, electronic equipment and storage medium
CN114006847A (en)*2020-07-142022-02-01成都鼎桥通信技术有限公司Automatic testing method for private network terminal
CN114071119A (en)*2020-07-312022-02-18北京达佳互联信息技术有限公司Resource testing method and device, electronic equipment and storage medium
CN114629888A (en)*2022-03-182022-06-14中国农业银行股份有限公司Server load testing method and device
CN115509888A (en)*2021-06-232022-12-23神讯电脑(昆山)有限公司Test method, test device, storage medium and electronic equipment

Citations (18)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1435783A (en)*2002-10-222003-08-13交大铭泰(北京)软件有限公司Reverse domain name analysis method
KR100694248B1 (en)*2006-04-252007-03-27충남대학교산학협력단 Apparatus and method for testing security policy of network security system
CN101447898A (en)*2008-11-192009-06-03中国人民解放军信息安全测评认证中心Test system used for network safety product and test method thereof
CN101841436A (en)*2010-03-022010-09-22北京星网锐捷网络技术有限公司Method for testing performance of IPFIX (Internet Protocol Flow Information Export) server, device and system thereof
CN102571466A (en)*2010-12-162012-07-11中国移动通信集团安徽有限公司Method, device and system for testing service
CN102916958A (en)*2012-10-152013-02-06福建榕基软件股份有限公司Method and system for realizing access encryption of mobile terminal browser
CN103220372A (en)*2012-01-192013-07-24中国移动通信集团公司Data service access method and system
CN103685590A (en)*2012-09-142014-03-26阿里巴巴集团控股有限公司Method and system for obtaining IP (internet protocol) address
CN103746885A (en)*2014-01-282014-04-23中国人民解放军信息安全测评认证中心Test system and test method oriented to next-generation firewall
CN104090931A (en)*2014-06-252014-10-08华南理工大学Information prediction and acquisition method based on webpage link parameter analysis
CN104125308A (en)*2013-04-252014-10-29阿里巴巴集团控股有限公司Domain name resolution method for multi-users and domain name resolution system
CN104915288A (en)*2014-03-132015-09-16阿里巴巴集团控股有限公司Testing method and device
CN105099811A (en)*2015-06-032015-11-25北京金山安全软件有限公司Interface testing method and device
CN105430108A (en)*2014-08-252016-03-23腾讯科技(深圳)有限公司Test environment accessing method and proxy server
CN105868058A (en)*2015-12-142016-08-17乐视网信息技术(北京)股份有限公司Cross-machine room test method and apparatus
CN106131016A (en)*2016-07-132016-11-16北京知道创宇信息技术有限公司Maliciously URL detection interference method, system and device
WO2016195644A1 (en)*2015-05-292016-12-08Hewlett Packard Enterprise Development LpPotential blocking impacts
CN106302002A (en)*2016-07-292017-01-04北京小米移动软件有限公司Method of testing and device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1435783A (en)*2002-10-222003-08-13交大铭泰(北京)软件有限公司Reverse domain name analysis method
KR100694248B1 (en)*2006-04-252007-03-27충남대학교산학협력단 Apparatus and method for testing security policy of network security system
CN101447898A (en)*2008-11-192009-06-03中国人民解放军信息安全测评认证中心Test system used for network safety product and test method thereof
CN101841436A (en)*2010-03-022010-09-22北京星网锐捷网络技术有限公司Method for testing performance of IPFIX (Internet Protocol Flow Information Export) server, device and system thereof
CN102571466A (en)*2010-12-162012-07-11中国移动通信集团安徽有限公司Method, device and system for testing service
CN103220372A (en)*2012-01-192013-07-24中国移动通信集团公司Data service access method and system
CN103685590A (en)*2012-09-142014-03-26阿里巴巴集团控股有限公司Method and system for obtaining IP (internet protocol) address
CN102916958A (en)*2012-10-152013-02-06福建榕基软件股份有限公司Method and system for realizing access encryption of mobile terminal browser
CN104125308A (en)*2013-04-252014-10-29阿里巴巴集团控股有限公司Domain name resolution method for multi-users and domain name resolution system
CN103746885A (en)*2014-01-282014-04-23中国人民解放军信息安全测评认证中心Test system and test method oriented to next-generation firewall
CN104915288A (en)*2014-03-132015-09-16阿里巴巴集团控股有限公司Testing method and device
CN104090931A (en)*2014-06-252014-10-08华南理工大学Information prediction and acquisition method based on webpage link parameter analysis
CN105430108A (en)*2014-08-252016-03-23腾讯科技(深圳)有限公司Test environment accessing method and proxy server
WO2016195644A1 (en)*2015-05-292016-12-08Hewlett Packard Enterprise Development LpPotential blocking impacts
CN105099811A (en)*2015-06-032015-11-25北京金山安全软件有限公司Interface testing method and device
CN105868058A (en)*2015-12-142016-08-17乐视网信息技术(北京)股份有限公司Cross-machine room test method and apparatus
CN106131016A (en)*2016-07-132016-11-16北京知道创宇信息技术有限公司Maliciously URL detection interference method, system and device
CN106302002A (en)*2016-07-292017-01-04北京小米移动软件有限公司Method of testing and device

Cited By (26)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109324914A (en)*2018-09-262019-02-12多点生活(成都)科技有限公司Service calling method, service call device and central server
CN109324914B (en)*2018-09-262021-06-22多点生活(成都)科技有限公司Service calling method, service calling device and central server
CN109542756A (en)*2018-09-292019-03-29中国平安人寿保险股份有限公司Method, apparatus, electronic equipment and the storage medium of automatic configuration script
CN109542756B (en)*2018-09-292023-04-11中国平安人寿保险股份有限公司Method and device for automatically configuring script, electronic equipment and storage medium
CN110475268A (en)*2019-07-052019-11-19深圳壹账通智能科技有限公司Short chain test method, system, equipment and storage medium
CN110457197B (en)*2019-08-192023-05-09中国工商银行股份有限公司Service testing method, device, computer equipment and storage medium
CN110457197A (en)*2019-08-192019-11-15中国工商银行股份有限公司Service test method, device, computer equipment and storage medium
CN110795343A (en)*2019-10-122020-02-14车智互联(北京)科技有限公司 Test system, test method and computing equipment
CN110795343B (en)*2019-10-122024-03-15车智互联(北京)科技有限公司 Test systems, test methods and computing equipment
CN111049912A (en)*2019-12-172020-04-21用友网络科技股份有限公司Debugging method, test development device, and computer-readable storage medium
CN113630802A (en)*2020-05-072021-11-09大唐联仪科技有限公司NR user plane service test method and device
CN113630802B (en)*2020-05-072024-02-20大唐联仪科技有限公司NR user plane service testing method and device
CN112306858A (en)*2020-05-212021-02-02北京字节跳动网络技术有限公司Test method and device and electronic equipment
CN114006847A (en)*2020-07-142022-02-01成都鼎桥通信技术有限公司Automatic testing method for private network terminal
CN114006847B (en)*2020-07-142023-07-07成都鼎桥通信技术有限公司Automatic test method for private network terminal
CN113760697A (en)*2020-07-152021-12-07北京沃东天骏信息技术有限公司Interface testing method and device, electronic equipment and storage medium
CN113760697B (en)*2020-07-152024-09-20北京沃东天骏信息技术有限公司Interface testing method, device, electronic equipment and storage medium
CN114071119A (en)*2020-07-312022-02-18北京达佳互联信息技术有限公司Resource testing method and device, electronic equipment and storage medium
CN114071119B (en)*2020-07-312024-03-19北京达佳互联信息技术有限公司Resource testing method and device, electronic equipment and storage medium
CN112363879A (en)*2020-11-202021-02-12上海连尚网络科技有限公司Cache server performance test method, device, equipment and medium
CN112363879B (en)*2020-11-202024-11-01上海连尚网络科技有限公司Cache server performance test method, device, equipment and medium
CN115509888A (en)*2021-06-232022-12-23神讯电脑(昆山)有限公司Test method, test device, storage medium and electronic equipment
CN113641575A (en)*2021-08-062021-11-12上海浦东发展银行股份有限公司Test method, device, equipment and storage medium
CN113641575B (en)*2021-08-062024-04-09上海浦东发展银行股份有限公司Test method, device, equipment and storage medium
CN114629888A (en)*2022-03-182022-06-14中国农业银行股份有限公司Server load testing method and device
CN114629888B (en)*2022-03-182024-09-17中国农业银行股份有限公司Method and device for testing server load

Also Published As

Publication numberPublication date
CN108574604B (en)2020-09-29

Similar Documents

PublicationPublication DateTitle
CN108574604A (en)test method and device
CN102541931B (en)Application sharing method and application sharing equipment
CN110310034A (en)A kind of service orchestration applied to SaaS, business flow processing method and apparatus
CN108459953A (en)test method and device
CN109218368A (en)Realize method, apparatus, electronic equipment and the readable medium of Http reverse proxy
JP2018516417A (en) Payment method, apparatus and system
CN107463453B (en)Method, device, equipment and storage medium for communication between different applications of same terminal
CN109981322A (en)The method and apparatus of cloud resource management based on label
CN109992732A (en)Information sharing method, device, electronic equipment and storage medium
CN105931107A (en)Sharing method and apparatus
CN109815107A (en)The method and apparatus of automatic test
CN113076153B (en)Interface calling method and device
CN109582317A (en)Method and apparatus for debugging boarding application
CN108932193A (en)A kind of MQTT server interface test method and system
CN108959211A (en)The method and apparatus of form validation
CN109656799A (en)Test method and device
CN109408748A (en)Method and apparatus for handling information
CN108694120A (en)The method and apparatus of testing service component
CN104731465A (en)Service provision method, device and system
CA2839013A1 (en)Methods for implementing web services and devices thereof
CN109327530A (en)A kind of information processing method, device, electronic equipment and storage medium
CN112015383B (en) A login method and device
CN106845209A (en)Safe verification method and device
CN108880923A (en)The method and apparatus that policer operation applied to application server is requested
CN109818994A (en)Information processing method and device for agent side

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp