CN103631715B - Application testing method, equipment and system - Google Patents

Application testing method, equipment and system Download PDF

Info

Publication number
CN103631715B
CN103631715B CN201310626482.7A CN201310626482A CN103631715B CN 103631715 B CN103631715 B CN 103631715B CN 201310626482 A CN201310626482 A CN 201310626482A CN 103631715 B CN103631715 B CN 103631715B
Authority
CN
China
Prior art keywords
service device
configuration
test
information
test configurations
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
CN201310626482.7A
Other languages
Chinese (zh)
Other versions
CN103631715A (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 Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310626482.7A priority Critical patent/CN103631715B/en
Publication of CN103631715A publication Critical patent/CN103631715A/en
Application granted granted Critical
Publication of CN103631715B publication Critical patent/CN103631715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of application testing method, equipment and system.Wherein, the method includes: obtain the test configurations item title of current server, and wherein, test configurations item title is added to by the identification information of server in the operation configuration item title of server and generated;Obtain the test configurations information of application to be tested according to test configurations item title to configuration service device, wherein, in configuration service device, storage has the mapping table of test configurations item title and test configurations information;According to test configurations information, application to be tested is tested.Use the embodiment of the present invention that a set of configuration service device can be used server to be managed, when number of servers is larger when, it is possible to save resource, and be easy to management.

Description

Application testing method, equipment and system
Technical field
The present invention relates to internet, applications field, particularly relate to a kind of application testing method, equipment and system.
Background technology
Further go deep into the life of people along with the Internet, more and more hommizations, personalized setting and service are opened Send out each details being applied to the Internet.At the initial stage that each new setting and service are developed, programmer needs this new Setting or service carry out testing on line, on the one hand need to survey by testing on line to carry out new setting or service running Examination, it is ensured that new setting or service can smooth run when actually entering user's operational phase, on the other hand, by surveying on line Examination will appreciate that user is to the new view arranging or servicing or suggestion, in order to new setting or service are really put into use Before the operational phase of family, new setting or service are improved.
New setting or service are carried out test on line when, in order to not affect the operation of other servers on line, Typically require running environment and test environment on defiber.Fig. 1 shows according to the structure of application test systems in prior art Schematic diagram.In prior art, when a big building environment is tested, its environment is disposed as it is shown in figure 1, native system includes Multiple networks (web) server 110, wherein part web server 110 is allocated tests, additionally part web server 110 apply operation normally.The operation different for realizing web server, needs to dispose two set configuration service devices on line (generally using Zookeeper configuration service device, Zookeeper is distributed, a distribution applications program association for open source code Being taken after mixing with liquid business, comprise a simple primitive collection, Distributed Application can use Zookeeper to realize such as Uniform Name clothes The functions such as business, configuration management, distributed lock service, cluster management), a set of is configuration service device 120, is used for managing on line normal The web server 110 run, another set of is configuration service device 130, for management for the web server 110 tested.To be measured After examination terminates, amendment is needed to carry out code or the address of amendment configuration service device 130 of the web server that application is tested, So that put into the new setting of user's operational phase or service can with on line other normal server web server code or It is consistent that person configures holding.When web server quantity size is bigger when, the method for prior art is used to carry out configuring concentrate tube Reason causes resource to be wasted in a large number, and is not easy to management.It addition, when new setting or service testing complete entrance commencement of commercial operation rank Duan Shi, the operation of amendment configuration service device address is the most loaded down with trivial details, increases error rate.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on State the application testing method of problem, equipment and system.
According to one aspect of the present invention, it is provided that a kind of application testing method, including: obtain the test of current server Configuration item title, wherein, described test configurations item title is added to the fortune of described server by the identification information of described server Row configuration item title generates;The test configurations of application to be tested is obtained according to described test configurations item title to configuration service device Information, wherein, in described configuration service device, storage has the mapping table of described test configurations item title and test configurations information;According to Described application to be tested is tested by described test configurations information.
Alternatively, described application testing method also includes: if not obtaining described test according to described test configurations item title Configuration information, utilizes the title of described operation configuration item to obtain to described configuration service device and runs configuration information;According to described fortune Row configuration information carries out respective application operation.
Alternatively, carry out described in the identification information of server of application test include following one of arbitrarily: described in carry out should Hostname with the server of test;The medium access control MAC Address of the described server carrying out application test.
According to another aspect of the present invention, additionally provide a kind of application test systems, including respectively with configuration service device At least one webpage web server of coupling, and at least one web testing service device, wherein, described web server, configuration According to the configuration information that runs that obtains at described configuration service device trigger local application and run;Described web tests Server, is configured to, according to the test configurations information obtained at described configuration service device, the application that this locality is new carries out application and surveys Examination;And, after test to be applied terminates, trigger respective application according to the operation configuration information obtained at described configuration service device Run;Described configuration service device, is configured to when carrying out server application test, at least one web testing service device described Test configurations information is provided;Web testing service device at least one web server described and finish test procedure provides fortune Row configuration information.
Alternatively, described web testing service device is additionally configured to: add the identification information of described web testing service device to institute State the operation configuration item title of web testing service device, constitute test configurations item title;Send described test configurations item title to institute State configuration service device, by described configuration service device to locally stored test configurations item title and the storage of described configuration service device Configuration information mates;Receive matching result, and obtain with described at described configuration service device according to described matching result The described test configurations information that test configurations item title is corresponding;Described test configurations information is utilized to trigger described web test clothes Business device carries out application test.
Alternatively, described web testing service device is additionally configured to: if according to described matching result, described test configurations key name Claim all to fail to mate with all configuration informations of described configuration service device, then join according to the operation in described web testing service device Put a title at described configuration service device, obtain described operation configuration information;Described operation configuration information is utilized to trigger described Web testing service device carries out the operation of described respective application.
Alternatively, described configuration service device is additionally configured to: determine described web testing service device finish test procedure, deletes Described test configurations information.
Alternatively, described web testing service device uses gray scale issue that new application carries out application test.
Alternatively, described identification information include following one of arbitrarily: the Hostname of described web testing service device;Described The medium access control MAC Address of web testing service device.
According to another aspect of the present invention, additionally provide a kind of application test equipment, including getter, be configured to from Obtain test configurations information at configuration service device and run configuration information;Performer, is configured to believe according to described test configurations Breath triggers the new application to webpage web testing service device and carries out application test;And, after test to be applied terminates, according to institute State operation configuration information and trigger respective application operation.
Alternatively, described application test equipment also includes: memorizer, is configured to store the survey of described web testing service device Trial puts a title, wherein, described test configurations item title include described web testing service device operation configuration item title and Identification information.
Alternatively, described getter is additionally configured to: to locally stored test configurations item title and described configuration service device The configuration information of storage mates;Obtain at described configuration service device and described test configurations item title according to matching result Corresponding described test configurations information.
Alternatively, described getter is additionally configured to: if according to described matching result, described test configurations item title is with described All configuration informations of configuration service device all fail to mate, and the most described getter is according to the operation in described web testing service device Configuration item title obtains described operation configuration information at described configuration service device.
Alternatively, described performer is additionally configured to: trigger described web testing service device phase according to described operation configuration information The operation that should apply.
According to another aspect of the present invention, additionally provide a kind of configuration service device, including: adder, it is configured to basis User instruction adds described test configurations information and preserves to local;Transmitter, is configured to, when carrying out application test, send test Configuration information is to web testing service device;Send and run configuration information to described in web server and end application test process Web testing service device;Canceller, is configured to, and after test to be applied terminates, deletes described test configurations information.
According to the embodiment of the present invention, it is possible to obtain the test configurations item title of current server, and according to this configuration key name Claim to get corresponding test configurations information, carry out the testing results of application to be tested further according to this test configurations information, Solve in prior art, when carrying out the testing results of application to be tested, need to separate running environment and test environment and make The problem causing resource to be wasted in a large number with many set configuration service devices and being not easy to management.Use the embodiment of the present invention can use one Server was managed, when number of servers is larger when by set configuration service device, it is possible to saves resource, and is easy to Management, it addition, when new setting or service testing complete enter the commencement of commercial operation stage time, use the embodiment of the present invention it can be avoided that The complicated processes of amendment configuration service device address function, reduces error rate, improves work efficiency.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
According to below in conjunction with the accompanying drawing detailed description to the specific embodiment of the invention, those skilled in the art will be brighter Above-mentioned and other purposes, advantage and the feature of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the structural representation of application test systems in prior art;
Fig. 2 shows the process chart of application testing method according to an embodiment of the invention;
Fig. 3 shows the process chart of application testing method in accordance with a preferred embodiment of the present invention;
Fig. 4 shows the structural representation of application test systems according to an embodiment of the invention;
Fig. 5 shows the structural representation applying operation equipment according to an embodiment of the invention;And
Fig. 6 shows the structural representation of configuration service device according to an embodiment of the invention.
Detailed description of the invention
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this Bright preferred forms.
Correlation technique is mentioned, when server data is larger when, to running environment on defiber and test wrapper The configuration in border carries out centralized management and causes resource to be wasted in a large number, and is not easy to management, it addition, when new setting or service testing During the complete entrance commencement of commercial operation stage, the operation of amendment configuration service device address is the most loaded down with trivial details, increases error rate.
For solving above-mentioned technical problem, embodiments provide a kind of application testing method.Fig. 2 shows according to this The process chart of the application testing method of one embodiment of invention.As in figure 2 it is shown, this flow process at least includes that step S202 is to step Rapid S206.
Step S202, the test configurations item title of acquisition current server, wherein, test configurations item title is by server Identification information adds in the operation configuration item title of server and generates.
Step S204, according to test configurations item title to configuration service device obtain application to be tested test configurations information, Wherein, in configuration service device, storage has the mapping table of test configurations item title and test configurations information.
Step S206, according to test configurations information, described application to be tested is tested.
According to the embodiment of the present invention, it is possible to obtain the test configurations item title of current server, and according to this configuration key name Claim to get corresponding test configurations information, carry out the testing results of application to be tested further according to this test configurations information, Solve in prior art, when carrying out the testing results of application to be tested, need to separate running environment and test environment and make The problem causing resource to be wasted in a large number with many set configuration service devices and being not easy to management.Use the embodiment of the present invention can use one Server was managed, when number of servers is larger when by set configuration service device, it is possible to saves resource, and is easy to Management, it addition, when new setting or service testing complete enter the commencement of commercial operation stage time, use the embodiment of the present invention it can be avoided that The complicated processes of amendment configuration service device address function, reduces error rate, improves work efficiency.
Wherein, the Zookeeper that the configuration service device that the embodiment of the present invention uses still can select prior art to mention joins Put server, realize the recycling of existing equipment as far as possible.In like manner, the server used in the embodiment of the present invention can select existing There is the web server that technology is mentioned.
Specifically, first the embodiment of the present invention obtains the operation configuration item title of server, secondly, adds this server Identification information, to above-mentioned operation configuration item title, gets test configurations item title (the i.e. step in Fig. 2 of this server S202).Get this server test configurations key name be referred to as after, perform step S204, arrive according to this test configurations item title Configuration service device obtains the test configurations information of application to be tested.The embodiment of the present invention sends the test configurations item title of server To configuration service device, look into according to the mapping table of locally stored test configurations item title with test configurations information configuration service device Look for corresponding test configurations information and be back to server.After server receives above-mentioned test configurations information, perform step S206, tests application to be tested according to this test configurations information.
When configuration service device fails to find corresponding test configurations information according to the test configurations item title received, then Return to server null message, i.e. server fail to get test configurations information according to test configurations item title.If server Fail to get test configurations information according to test configurations item title, then the embodiment of the present invention continues to send the fortune of above-mentioned server Row configuration item title is to configuration service device, by configuration service device according to this operation configuration item title in locally stored operation configuration Item title and the mapping table of operation configuration information find operation configuration information and be back to server.Server receives fortune After row configuration information, carry out respective application operation according to this operation configuration information.
In the embodiment of the present invention, identification information is the authentication information of server, can be the Hostname of server, Can be medium control reference address (hereinafter referred to as MAC Address) of server, it is also possible to be other authentications of server The address that information, such as server are allocated on a certain LAN, the computer name of server, the factory number etc. of server Deng.This is not limited by the embodiment of the present invention.In the embodiment of the present invention, after knowing the identification information of server, add mark Knowledge information runs configuration item title to obtain the test configurations item title of server to server, it is ensured that server is according to configuration Item name acquiring configuration information, and when utilizing configuration information to carry out application operation, it is possible to application to be tested and normally transport The application of row carries out the separation of running environment and test environment, it is ensured that do not affecting the situation that other servers are properly functioning Under, application to be tested is carried out trail run by given server, improves the efficiency of management of configuration service device, save management money Source.
The application testing method now provided the embodiment of the present invention with specific embodiment illustrates.
Embodiment one
Fig. 3 shows the process chart of application testing method in accordance with a preferred embodiment of the present invention, is used for supporting Any one application testing method above-mentioned, illustrates to become apparent from understandable by above-mentioned application testing method.Seeing Fig. 3, this is preferred Embodiment at least includes that step S302 is to step S310.
Step S302, the operation configuration item title of acquisition server, such as :/app_conf.In step s 302, run Depending on configuration item title is according to concrete application.
Step S304, the host name of interpolation server extremely run configuration item title, constitute test configurations item title :/app_ conf_hostname.Certainly, this time add the server identification information in addition to host name the most permissible, it is also possible to add simultaneously Different server identification information, such as, the host name of interpolation server and MAC Address are to running in configuration item title.This Inventive embodiments only illustrates as a example by host name.
Step S306, get according to step S304 server test configurations key name be referred to as after, utilize this test configurations Item title/app_conf_hostname obtains test configurations information, if getting test configurations information, then performs step S310, If not getting test configurations information, then perform step S308.
Specifically, server sends test configurations item title/app_conf_hostname to configuration service device.For obtaining Test configurations information, generates mapping table, is stored in configuration service device in the embodiment of the present invention.Wherein, to survey in this mapping table Trial puts the entitled keyword of item, and with corresponding test configurations information for value, both become mapping relations, can reflect according to keyword It is mapped to the test configurations information that the value of correspondence is referred to.Wherein, above-mentioned test configurations information can include test environment variable, Test profile address and test configurations resource etc..When configuration service device receives test configurations item title/app_conf_ After hostname, above-mentioned mapping table finds according to test configurations item title/app_conf_hostname the survey of correspondence Examination configuration information.If getting the test configurations information with test configurations item title/corresponding for app_conf_hostname, then hold Row step S310, if configuration service device does not gets above-mentioned test configurations information, then configuration service device is back to server sky and disappears Breath, prompting server fails to get the test configurations letter of correspondence according to test configurations item title/app_conf_hostname Breath, performs step S308.
Step S308, server transmission operation configuration item title/app_conf, to configuration service device, gets operation configuration Information, wherein, can include running environment variable, running configuration file address and run configuration money in this operation configuration information Relevant information is run to server in sources etc., and several specifying informations herein only enumerate, to running configuration information itself not Cause restriction.
The configuration information that step S310, basis get carries out the operation of respective application, and flow process terminates.
Specifically, if server gets test configurations information according to/app_conf_hostname, then server according to This test configurations information carries out the operation of application to be tested, if server does not gets test configurations information, and then according to step S308 gets and the operation configuration information running configuration item title/corresponding for app_conf, then server is joined according to this operation Confidence breath carries out the operation of respective application.
The application testing method provided based on the most each preferred embodiment, based on same inventive concept, the embodiment of the present invention Provide a kind of application test systems.
Fig. 4 shows the structural representation of application test systems according to an embodiment of the invention.See Fig. 4, this The application test systems of bright embodiment includes at least one web server 410 coupled respectively with configuration service device 420, and At least one web testing service device 430.In Fig. 4, the quantity of web server 410 is shown as 3, is merely cited for multiple, actual In application, the particular number of web server 410 is probably any integer value, sets as the case may be.Each web server Framework in 410 is similar, does not repeats at this.Equally, the quantity of the web testing service device 430 in Fig. 4 is also displayed as 3 Individual, it is merely cited for multiple, in actual application, the particular number of web testing service device 430 is probably any integer value, according to Concrete condition sets.Framework in each web testing service device 430 is similar, and therefore not to repeat here.
Now introduce between each device in the application test systems of the embodiment of the present invention or the function of composition and each several part Annexation:
Web server 410, is coupled with configuration service device 420, is configured to according to acquisition at configuration service device 420 The application running configuration information triggering local runs.
Web testing service device 430, is coupled with configuration service device 420, is configured to according to obtaining at configuration service device 420 After the test configurations information taken carries out application and tests the application that this locality is new, and test to be applied terminates, according to from configuration clothes The operation configuration information obtained at business device 420 triggers respective application and runs.
Configuration service device 420, is coupled with at least one web server 410 and at least one web testing service device, It is configured to, when carrying out server application test, provide test configurations information at least one web testing service device described;For institute The web testing service device stating at least one web server and finish test procedure provides operation configuration information.
According to the embodiment of the present invention, it is possible to obtain the test configurations item title of current server, and according to this configuration key name Claim to get corresponding test configurations information, carry out the testing results of application to be tested further according to this test configurations information, Solve in prior art, when carrying out the testing results of application to be tested, need to separate running environment and test environment and make The problem causing resource to be wasted in a large number with many set configuration service devices and being not easy to management.Use the embodiment of the present invention can use one Server was managed, when number of servers is larger when by set configuration service device, it is possible to saves resource, and is easy to Management, it addition, when new setting or service testing complete enter the commencement of commercial operation stage time, use the embodiment of the present invention it can be avoided that The complicated processes of amendment configuration service device address function, reduces error rate, improves work efficiency.What the embodiment of the present invention provided should By test system, application configuration is managed concentratedly, it is not necessary to aol server revises any code can conveniently realize ash Degree is issued.
As shown in Figure 4, in the application test systems that the embodiment of the present invention provides, web server 410 obtains runs configuration item Title, and send this operation configuration item title to configuration service device 420.In configuration service device 420, storage has configuration item title With the mapping table of configuration information, after configuration service device 420 receives above-mentioned operation configuration item title, configuration service device 420 To receive run configuration item title mate with locally stored configuration item title, and find according to matching result right The operation configuration information answered, and then return this operation configuration information to web server 410.Web server 410 receives configuration After the operation configuration information that server 420 returns, trigger local application according to this operation configuration information and run.
When web testing service device 430 as shown in Figure 4 carries out application test to application to be tested, web testing service device 430 obtain operation configuration item title, and add the identification information of self to operation configuration item title, composition test configurations key name Claim.Web testing service device 430 get this test configurations key name be referred to as after, send test configurations item title to configuration service device 420.The configuration service device 420 test configurations item title to receiving is mated with locally stored test configurations item title, And in mapping table as described above, search corresponding test configurations information according to matching result, and it is back to web test clothes Business device 430.After web testing service device 430 receives above-mentioned test configurations information, this test configurations information is utilized to trigger to be measured The test run of examination application.
When configuration service device 420 receive web testing service device 430 send test configurations key name be referred to as after, according to Join result and cannot find corresponding test configurations information in the mapping table, then configuration service device 420 is back to web testing service 430 1 null messages of device, prompting web testing service device 430 cannot get corresponding survey according to above-mentioned test configurations item title Examination configuration information.When web testing service device 430 fails to get test configurations information according to test configurations item title, and web tests Server 430 resends it and runs configuration item title to configuration service device 420.Configuration service device 420 receives web test clothes After the operation configuration item title of business device 430, this operation configuration item title is carried out with locally stored operation configuration item title Coupling, and get according to matching result and run configuration information accordingly, and return this operation configuration information to web testing service Device 430.After web testing service device 430 receives operation configuration information, carry out respective application according to this operation configuration information Run.
After the trail run utilizing web testing service device 430 to carry out application to be tested terminates, delete configuration service device Test configurations information in 420, then web testing service device 430 cannot get corresponding survey according to its test configurations item title Examination configuration information, further web testing service device 430 can run, according to it, the operation configuration information that configuration item name acquiring arrives Carry out the operation of respective application.
In the embodiment of the present invention, use gray scale to issue application to be tested and carry out application test.Use gray scale to issue to treat Test application carries out application test, it is possible to ensure, during application test, to make a part of user use tested application, and Another part user keeps using original application constant.When there is the problem run in tested application, it is possible to transfer uses The user of tested application is to the customer group using original application, it is ensured that the stability of network to asking that tested application occurs Topic carries out time update with perfect.When the use through user, tested application completes its test process, then can expand this quilt The range of test application, and then all users can be used through promoting and perfect above-mentioned tested application, carry High Consumer's Experience.
It addition, in the embodiment of the present invention, identification information is the authentication information of server, it can be the main frame of server Title, it is also possible to be medium control reference address (hereinafter referred to as MAC Address) of server.This is not added by the embodiment of the present invention To limit.In the embodiment of the present invention, the operation configuration item title of interpolation identification information to server is to obtain the test of server Configuration item title, it is ensured that server according to configuration item name acquiring configuration information, and utilize configuration information carry out application run time, Application to be tested and properly functioning application can be carried out the separation of running environment and test environment, it is ensured that at not shadow In the case of other servers of sound are properly functioning, given server carries out to application to be tested trail run, improve configuration clothes The efficiency of management of business device, saves management resource.
Application testing method based on the most each preferred embodiment and system, based on same inventive concept, the present invention implements Example provides a kind of application test equipment, is used for realizing above-mentioned application testing method and system.
Fig. 5 shows the structural representation applying operation equipment according to an embodiment of the invention.See Fig. 5, this The application test equipment 500 of bright embodiment at least includes: getter 520 and performer 530.
Now introduce between application each device of test equipment 500 of the embodiment of the present invention or the function of composition and each several part Annexation:
Getter 520, is configured at configuration service device obtain test configurations information and run configuration information.
Performer 530, couples with getter 520, is configured to trigger webpage web testing service according to test configurations information The application to be tested of device carries out application test;And, after test to be applied terminates, trigger respective application according to running configuration information Run.
According to the embodiment of the present invention, it is possible to obtain the test configurations item title of current server, and according to this configuration key name Claim to get corresponding test configurations information, carry out the testing results of application to be tested further according to this test configurations information, Solve in prior art, when carrying out the testing results of application to be tested, need to separate running environment and test environment and make The problem causing resource to be wasted in a large number with many set configuration service devices and being not easy to management.Use the embodiment of the present invention can use one Server was managed, when number of servers is larger when by set configuration service device, it is possible to saves resource, and is easy to Management, it addition, when new setting or service testing complete enter the commencement of commercial operation stage time, use the embodiment of the present invention it can be avoided that The complicated processes of amendment configuration service device address function, reduces error rate, improves work efficiency.
As it is shown in figure 5, the memorizer 510 in application test equipment 500 stores the operation configuration key name of web testing service device Claim and test configurations item title, wherein, the test configurations item title of web testing service device run by configuration item title with The identification information of web testing service device is constituted.
The getter 520 being coupled with memorizer 510 sends the test configurations item title of memorizer 510 storage to service Device.Server receives after above-mentioned test configurations key name is referred to as, according to reflecting of locally stored configuration item title and configuration information Firing table carries out the coupling of configuration item title to above-mentioned test configurations item title.If whois lookup to above-mentioned test configurations key name Claim the test configurations item title matched, then server finds the survey corresponding with this test configurations item title in the mapping table Examination configuration information, and send this test configurations information to the getter 520 applied in test equipment 500.Getter 520 gets After test configurations information, trigger coupled performer 530, performer 530 utilize this test configurations information to trigger and treat The application of test application runs.
When server receive test configurations key name be referred to as after, fail to find in this locality and this test configurations item title phase During the configuration item title mated, server one null message of return is to getter 520, then during getter 520 sends memorizer 510 The operation configuration item title of storage, to server, is joined to corresponding operation according to this operation configuration item name lookup by server Confidence ceases, and sends to getter 520.After getter 520 gets operation configuration information, trigger performer 530, by running Device 530 triggers the operation of web testing service device respective application according to this operation configuration information.
In the embodiment of the present invention, use gray scale to issue application to be tested and carry out application test.Use gray scale to issue to treat Test application carries out application test, it is possible to ensure, during application test, to make a part of user use tested application, and Another part user keeps using original application constant.When there is the problem run in tested application, it is possible to transfer uses The user of tested application is to the customer group using original application, it is ensured that the stability of network to asking that tested application occurs Topic carries out time update with perfect.When the use through user, tested application completes its test process, then can expand this quilt The range of test application, and then all users can be used through promoting and perfect above-mentioned tested application, carry High Consumer's Experience.
It addition, in the embodiment of the present invention, identification information is the authentication information of server, it can be the main frame of server Title, it is also possible to be medium control reference address (hereinafter referred to as MAC Address) of server.This is not added by the embodiment of the present invention To limit.In the embodiment of the present invention, the operation configuration item title of interpolation identification information to server is to obtain the test of server Configuration item title, it is ensured that server according to configuration item name acquiring configuration information, and utilize configuration information carry out application run time, Application to be tested and properly functioning application can be carried out the separation of running environment and test environment, it is ensured that at not shadow In the case of other servers of sound are properly functioning, given server carries out to application to be tested trail run, improve configuration clothes The efficiency of management of business device, saves management resource.
Application testing method, system and the equipment provided based on the most each preferred embodiment, based on same inventive concept, this Inventive embodiments provides a kind of configuration service device, is used for realizing above-mentioned application testing method and system.
Fig. 6 shows the structural representation of configuration service device according to an embodiment of the invention.See Fig. 6, the present invention The configuration service device 600 of embodiment at least includes: adder 610, transmitter 620 and canceller 630.
Now introduce the company between each device of the configuration service device 600 of the embodiment of the present invention or the function of composition and each several part Connect relation:
Adder 610, is configured to add described test configurations information according to user instruction and preserves to local.
Transmitter 620, is coupled with adder 610, is configured to, when carrying out application test, send test configurations information extremely Web testing service device;Send and run configuration information to web server and the web testing service device terminating to apply test process.
Canceller 630, is coupled with transmitter 620, is configured to, and after test to be applied terminates, deletes test configurations letter Breath.
According to the embodiment of the present invention, it is possible to obtain the test configurations item title of current server, and according to this configuration key name Claim to get corresponding test configurations information, carry out the testing results of application to be tested further according to this test configurations information, Solve in prior art, when carrying out the testing results of application to be tested, need to separate running environment and test environment and make The problem causing resource to be wasted in a large number with many set configuration service devices and being not easy to management.Use the embodiment of the present invention can use one Server was managed, when number of servers is larger when by set configuration service device, it is possible to saves resource, and is easy to Management, it addition, when new setting or service testing complete enter the commencement of commercial operation stage time, use the embodiment of the present invention it can be avoided that The complicated processes of amendment configuration service device address function, reduces error rate, improves work efficiency.
Specifically, as shown in Figure 6, when carrying out the operation of application to be tested, adder 610 adds and carries out application to be tested The test configurations information of the server run preserves to configuration service device 600.When above-mentioned server sends test configurations item Title is searched corresponding with this test configurations item title to configuration service device 600, the transmitter 620 in configuration service device 600 Test configurations information, and this test configurations information is sent to server.When application to be tested has run, configuration service device Canceller 630 in 600 deletes the test configurations information in configuration service device 600.When server sends test configurations item again Title cannot find corresponding test configurations to configuration service device 600, configuration service device 600 according to this test configurations item title Information, then the transmitter 620 in configuration service device 600 returns a null message to server, and prompting server is according to this test Configuration item title cannot find the test configurations information of correspondence, then server sends and runs configuration item title to configuration service device 600.After configuration service device 600 receives operation configuration item title, search and this operation configuration item title phase transmitter 620 Corresponding operation configuration information, and return this operation configuration information to server, server enter according to this operation configuration information The operation of row respective application.
According to any one preferred embodiment above-mentioned or the combination of multiple preferred embodiment, the embodiment of the present invention can reach Following beneficial effect:
According to the embodiment of the present invention, it is possible to obtain the test configurations item title of current server, and according to this configuration key name Claim to get corresponding test configurations information, carry out the testing results of application to be tested further according to this test configurations information, Solve in prior art, when carrying out the testing results of application to be tested, need to separate running environment and test environment and make The problem causing resource to be wasted in a large number with many set configuration service devices and being not easy to management.Use the embodiment of the present invention can use one Server was managed, when number of servers is larger when by set configuration service device, it is possible to saves resource, and is easy to Management, it addition, when new setting or service testing complete enter the commencement of commercial operation stage time, use the embodiment of the present invention it can be avoided that The complicated processes of amendment configuration service device address function, reduces error rate, improves work efficiency.
The embodiment of the invention also discloses A1. application testing method, including:
Obtaining the test configurations item title of current server, wherein, described test configurations item title is by described server Identification information adds in the operation configuration item title of described server and generates;
According to the test configurations information of described test configurations item title to configuration service device acquisition application to be tested, wherein, In described configuration service device, storage has the mapping table of described test configurations item title and test configurations information;
According to described test configurations information, described application to be tested is tested.
A2. according to the method described in A1, wherein, also include:
If not obtaining described test configurations information according to described test configurations item title, utilize the name of described operation configuration item Claim to described configuration service device to obtain to run configuration information;
Respective application operation is carried out according to described operation configuration information.
A3. according to the method described in A1 or A2, wherein, under the identification information of the server carrying out application test described in includes One of row are any:
The Hostname of described server;
The medium access control MAC Address of described server.
The embodiment of the invention also discloses B4. application test systems, including couple with configuration service device respectively to A few webpage web server, and at least one web testing service device, wherein,
Described web server, is configured to trigger this locality according to the operation configuration information obtained at described configuration service device Application run;
Described web testing service device, is configured to according to the test configurations information obtained at described configuration service device this Ground application to be tested carries out application test;And, after test to be applied terminates, according to the fortune obtained at described configuration service device Row configuration information triggers respective application and runs;
Described configuration service device, is configured to when carrying out server application test, at least one web testing service described Device provides test configurations information;Web testing service device at least one web server described and finish test procedure provides Run configuration information.
B5. according to the system described in B4, wherein, described web testing service device is additionally configured to:
Add the identification information operation configuration item title to described web testing service device of described web testing service device, structure Become test configurations item title;
Send described test configurations item title extremely described configuration service device, by described configuration service device to locally stored survey Trial is put the configuration information that a title stores with described configuration service device and is mated;
Receive matching result, and obtain at described configuration service device and described test configurations item according to described matching result The described test configurations information that title is corresponding;
Utilize described test configurations information to trigger described web testing service device and carry out application test.
B6. according to the system described in B4 or B5, wherein, described web testing service device is additionally configured to:
If according to described matching result, described test configurations item title is equal with all configuration informations of described configuration service device Fail to mate, then obtain according to the operation configuration item title in described web testing service device described at described configuration service device Run configuration information;
Utilize described operation configuration information to trigger described web testing service device and carry out the operation of described respective application.
B7. according to the system described in any one of B4 to B6, wherein, described configuration service device is additionally configured to: determine described web Testing service device finish test procedure, deletes described test configurations information.
B8. according to the system described in any one of B4 to B7, wherein, described web testing service device uses gray scale issue to treat Test application carries out application test.
B9. according to the system described in any one of B5 to B8, wherein, described identification information include following one of arbitrarily:
The Hostname of described web testing service device;
The medium access control MAC Address of described web testing service device.
The embodiment of the invention also discloses C10. mono-kind and apply test equipment, including:
Getter, is configured at configuration service device obtain test configurations information and run configuration information;
Performer, is configured to trigger the application to be tested to webpage web testing service device according to described test configurations information Carry out application test;And, after test to be applied terminates, trigger respective application according to described operation configuration information and run.
C11. according to the equipment described in C10, wherein, also include:
Memorizer, is configured to store the test configurations item title of described web testing service device, wherein, described test configurations Item title includes operation configuration item title and the identification information thereof of described web testing service device.
C12. according to the equipment described in C11, wherein, described getter is additionally configured to:
The configuration information stored locally stored test configurations item title with described configuration service device mates;
At described configuration service device, the described survey corresponding with described test configurations item title is obtained according to matching result Examination configuration information.
C13. according to the equipment described in C12, wherein, described getter is additionally configured to:
If according to described matching result, described test configurations item title is equal with all configuration informations of described configuration service device Fail coupling, the most described getter according to the operation configuration item title in described web testing service device at described configuration service device Place obtains described operation configuration information.
C14. according to the equipment described in C13, wherein, described performer is additionally configured to: touch according to described operation configuration information The operation sending out web testing service device respective application described.
The embodiment of the invention also discloses D15. configuration service device, including:
Adder, is configured to add described test configurations information according to user instruction and preserves to local;
Transmitter, is configured to, when carrying out application test, send test configurations information to web testing service device;Send fortune Row configuration information is to web server and terminates to apply the described web testing service device of test process;
Canceller, is configured to, and after test to be applied terminates, deletes described test configurations information.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's Within the scope of and form different embodiments.Such as, in detail in the claims, embodiment required for protection one of arbitrarily Can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice Microprocessor or digital signal processor (DSP) realize according to embodiments of the present invention application test equipment in some or The some or all functions of the whole parts of person.The present invention is also implemented as performing method as described herein Point or whole equipment or device program (such as, computer program and computer program).Such realize this Bright program can store on a computer-readable medium, or can be to have the form of one or more signal.Such Signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame Claim.
So far, although those skilled in the art will appreciate that the multiple of the most detailed present invention of illustrate and describing show Example embodiment, but, without departing from the spirit and scope of the present invention, still can be direct according to present disclosure Determine or derive other variations or modifications of many meeting the principle of the invention.Therefore, the scope of the present invention is it is understood that and recognize It is set to and covers other variations or modifications all these.

Claims (14)

1. an application testing method, including:
Obtaining the test configurations item title of current server, wherein, described test configurations item title is by the mark of described server Information is added in the operation configuration item title of described server and is generated;
The test configurations information of application to be tested is obtained according to described test configurations item title to configuration service device;
If obtaining described test configurations information according to described test configurations item title to described configuration service device, then according to described survey Described application to be tested is tested by examination configuration information, and wherein, in described configuration service device, storage has described test configurations item Title and the mapping table of test configurations information;
If not obtaining described test configurations information according to described test configurations item title to described configuration service device, then utilize described The title running configuration item obtains operation configuration information to described configuration service device, and carries out phase according to described operation configuration information Operation should be applied.
Method the most according to claim 1, wherein, the identification information of described server include following one of arbitrarily:
The Hostname of described server;
The medium access control MAC Address of described server.
3. an application test systems, including at least one the webpage web server coupled with configuration service device respectively, Yi Jizhi A few web testing service device, wherein,
Described web server, is configured to operation local the answering of configuration information triggering that basis obtains at described configuration service device With running;
Described web testing service device, this locality is treated by the test configurations information according to obtaining at described configuration service device that is configured to Test application carries out application test;And, after test to be applied terminates, the operation according to obtaining at described configuration service device is joined Confidence breath triggers respective application and runs;
Described configuration service device, is configured to, when carrying out server application test, carry at least one web testing service device described For test configurations information;Web testing service device at least one web server described and finish test procedure provides operation Configuration information.
System the most according to claim 3, wherein, described web testing service device is additionally configured to:
Add the identification information operation configuration item title to described web testing service device of described web testing service device, constitute and survey Trial puts a title;
Send described test configurations item title extremely described configuration service device, described configuration service device locally stored test is joined Put the configuration information that a title stores with described configuration service device to mate;
Receive matching result, and obtain at described configuration service device and described test configurations item title according to described matching result Corresponding described test configurations information;
Utilize described test configurations information to trigger described web testing service device and carry out application test.
System the most according to claim 4, wherein, described web testing service device is additionally configured to:
If according to described matching result, described test configurations item title all fails with all configuration informations of described configuration service device Coupling, then obtain described operation according to the operation configuration item title in described web testing service device at described configuration service device Configuration information;
Utilize described operation configuration information to trigger described web testing service device and carry out the operation of described respective application.
6. according to the system described in any one of claim 3 to 5, wherein, described configuration service device is additionally configured to: determine described Web testing service device finish test procedure, deletes described test configurations information.
7. according to the system described in any one of claim 3 to 5, wherein, described web testing service device uses gray scale issue to treat Test application carries out application test.
8. according to the system described in claim 4 or 5, wherein, described identification information include following one of arbitrarily:
The Hostname of described web testing service device;
The medium access control MAC Address of described web testing service device.
9. an application test equipment, including:
Getter, is configured to obtain the test configurations information of application to be tested according to test configurations item title to configuration service device, If not obtaining described test configurations information according to described test configurations item title to described configuration service device, then utilize and run configuration The title of item obtains to described configuration service device and runs configuration information;
Performer, is configured to trigger the application to be tested to webpage web testing service device according to described test configurations information and carries out Application test;And, after test to be applied terminates, trigger respective application according to described operation configuration information and run.
Equipment the most according to claim 9, wherein, also includes:
Memorizer, is configured to store the test configurations item title of described web testing service device, wherein, described test configurations key name Claim operation configuration item title and the identification information thereof including described web testing service device.
11. equipment according to claim 10, wherein, described getter is additionally configured to:
The configuration information stored locally stored test configurations item title with described configuration service device mates;
At described configuration service device, obtain the described test corresponding with described test configurations item title according to matching result to join Confidence ceases.
12. equipment according to claim 11, wherein, described getter is additionally configured to:
If according to described matching result, described test configurations item title all fails with all configuration informations of described configuration service device Coupling, the most described getter obtains at described configuration service device according to the operation configuration item title in described web testing service device Take described operation configuration information.
13. equipment according to claim 12, wherein, described performer is additionally configured to: according to described operation configuration information Trigger the operation of described web testing service device respective application.
14. 1 kinds of configuration service devices, including:
Adder, is configured to add test configurations information according to user instruction and preserves to local;
Transmitter, is configured to the test configurations information according to test configurations item name acquiring application to be tested, if according to described survey Trial is put title and is obtained described test configurations information, then send described test configurations information to web testing service device, if according to Described test configurations item title does not obtains described test configurations information, then utilize and run configuration item name acquiring operation configuration letter Breath, sends described operation configuration information to web server, and sends described operation configuration information and terminate to application test process After web testing service device;
Canceller, is configured to after test to be applied terminates, delete described test configurations information.
CN201310626482.7A 2013-11-28 Application testing method, equipment and system Active CN103631715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310626482.7A CN103631715B (en) 2013-11-28 Application testing method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310626482.7A CN103631715B (en) 2013-11-28 Application testing method, equipment and system

Publications (2)

Publication Number Publication Date
CN103631715A CN103631715A (en) 2014-03-12
CN103631715B true CN103631715B (en) 2016-11-30

Family

ID=

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1894667A (en) * 2003-12-18 2007-01-10 康泰克创新公司 System and method for allocating server resources
CN101079763A (en) * 2006-06-12 2007-11-28 腾讯科技(深圳)有限公司 A remote configuration and management system and method of servers
CN102214128A (en) * 2010-04-01 2011-10-12 埃森哲环球服务有限公司 Repurposable recovery environment
CN102882907A (en) * 2011-07-14 2013-01-16 鸿富锦精密工业(深圳)有限公司 Client configuration system and method
CN103176790A (en) * 2011-12-26 2013-06-26 阿里巴巴集团控股有限公司 Application releasing method and application releasing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1894667A (en) * 2003-12-18 2007-01-10 康泰克创新公司 System and method for allocating server resources
CN101079763A (en) * 2006-06-12 2007-11-28 腾讯科技(深圳)有限公司 A remote configuration and management system and method of servers
CN102214128A (en) * 2010-04-01 2011-10-12 埃森哲环球服务有限公司 Repurposable recovery environment
CN102882907A (en) * 2011-07-14 2013-01-16 鸿富锦精密工业(深圳)有限公司 Client configuration system and method
CN103176790A (en) * 2011-12-26 2013-06-26 阿里巴巴集团控股有限公司 Application releasing method and application releasing system

Similar Documents

Publication Publication Date Title
CN102647482B (en) Method and system for accessing website
CN110326255A (en) Manage messaging protocol communication
CN106649630A (en) Data query method and device
US9485244B2 (en) Executing an operation over file repositories located in different authentication domains using a representational state transfer (REST)-compliant client
CN107179984A (en) A kind of interface mock methods and interface test method
US20150310113A1 (en) Mobile Terminal, Server, System And Method For Realizing Search
CN104572960B (en) A kind of method and device of search
CN110347942A (en) Method for page jump, device, storage medium and computer equipment
CN104202360A (en) Webpage access method, device and router
CN103136342B (en) The searching method of application A PP, system and search server
US10719555B2 (en) System and method in a database system for sharing a data item with an entity in another tenant domain
CN105718517A (en) Webpage display control method and system, and application server
CN107800781A (en) A kind of configuration data processing method and device
CN109614312A (en) Method for generating test case, device, electronic equipment and storage medium
CN104598620A (en) Application program searching method and device
CN105357067A (en) Test method and system for cloud platform
CN107992350B (en) Method and device for generating configuration overview page
CN105516333A (en) Interactive method and system based on webpage
CN108984197A (en) A kind of code update method and device
US11943177B2 (en) Virtual agent portal integration of two frameworks
CN103634298B (en) A kind of data base's connection processing method and device
CN103631715B (en) Application testing method, equipment and system
KR20110031201A (en) User interfaces for service object located in a distributed system
US20190266520A1 (en) Travel search machine with shareable trip objects
CN110297976A (en) Recommended method, device, equipment and readable storage medium storing program for executing based on cloud retrieval

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.