CN103631715A - Method, device and system for testing application - Google Patents

Method, device and system for testing application Download PDF

Info

Publication number
CN103631715A
CN103631715A CN201310626482.7A CN201310626482A CN103631715A CN 103631715 A CN103631715 A CN 103631715A CN 201310626482 A CN201310626482 A CN 201310626482A CN 103631715 A CN103631715 A CN 103631715A
Authority
CN
China
Prior art keywords
server
configuration
test configurations
application
testing
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
CN201310626482.7A
Other languages
Chinese (zh)
Other versions
CN103631715B (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
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 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
Priority claimed from CN201310626482.7A external-priority 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

Images

Abstract

The invention provides a method, device and system for testing an application. The method comprises the step of obtaining the name of a testing configuration item of a current server, wherein the name of the testing configuration item is generated by adding the identification information of the server into the name of an operating configuration item of the server; the step of obtaining the testing configuration information of the application to be tested from a configuration server according to the name of the testing configuration item, wherein a mapping table of the name of the testing configuration item and the testing configuration information is stored in the configuration server; the step of testing the application to be tested according to the testing configuration information. A set of configuration servers can be used for managing the servers, and when the number of servers is large, resources can be saved, and management is facilitated.

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
Along with internet gos deep into people's life further, more and more hommizations, personalized setting and service are developed each details that is applied to internet.The initial stage being developed in each new setting and service, programmer need to carry out testing on line to this new setting or service, need to new setting or service, move test by test on line on the one hand, guarantee that new setting or service can smooth move when really entering user's operational phase, on the other hand, by test on line, can understand user to the view of new setting or service or suggestion, to before by new setting or the real input of service user operational phase, new setting or service are improved.
When the setting to new or service are carried out testing on line, in order not affect the operation of other servers on line, conventionally need running environment and test environment on defiber.Fig. 1 shows according to the structural representation of application test systems in prior art.In prior art, when a large building environment is tested, its environment is disposed as shown in Figure 1, and native system comprises a plurality of networks (web) server 110, wherein part web server 110 is assigned with and tests, and part web server 110 is carried out normal application operation in addition.For realizing the operation that web server is different, need on line to dispose two cover configuration servers and (conventionally use Zookeeper configuration server, Zookeeper be one distributed, the distribution applications Program Coordination service of open source code, comprise a simple primitive collection, Distributed Application can realize such as unified naming service with Zookeeper, configuration management, distributed lock service, the functions such as cluster management), a set of is configuration server 120, web server 110 for normal operation in boundary of administration, another set of is configuration server 130, for managing the web server 110 for testing.After end to be tested, need to revise the code of the web server of carrying out application testing or the address of revising configuration server 130, to drop into new setting or the service of user's operational phase, can be consistent with web server code or the configuration of other normal server on line.When web server quantity size is larger, the method for employing prior art is configured centralized management and causes resource to be wasted in a large number, and is not easy to management.In addition, when new setting or service testing is complete enters commencement of commercial operation during the stage, the operation of revising configuration server address is too loaded down with trivial details, increases error rate.
Summary of the invention
In view of the above problems, the present invention has been proposed to a kind of overcome the problems referred to above or the application testing method addressing the above problem at least in part, equipment and system are provided.
According to one aspect of the present invention, a kind of application testing method is provided, comprise: obtain the test configurations item title of current server, wherein, in the operation configuration item title that described test configurations item title is added described server to by the identification information of described server, generate; According to described test configurations item title, to configuration server, obtain the test configurations information of application to be tested, wherein, in described configuration server, store 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.
Alternatively, described application testing method also comprises: if do not obtain described test configurations information according to described test configurations item title, utilize the title of described operation configuration item to obtain operation configuration information to described configuration server; According to described operation configuration information, carry out respective application operation.
Alternatively, the identification information that carries out the server of application testing described in comprise following one of arbitrarily: described in carry out the Hostname of the server of application testing; Described medium access control MAC Address of carrying out the server of application testing.
According to another aspect of the present invention, a kind of application test systems is also provided, comprise respectively at least one the webpage web server with configuration server coupling, and at least one web testing server, wherein, described web server, is configured to trigger local application according to the operation configuration information obtaining from described configuration server and moves; Described web testing server, is configured to, according to the test configurations information of obtaining from described configuration server, the new application in this locality is carried out to application testing; And, after application testing finishes, according to the operation configuration information obtaining from described configuration server, trigger respective application operation; Described configuration server, is configured to when carrying out server application testing, for described at least one web testing server provides test configurations information; For the web testing server of described at least one web server and finish test procedure provides operation configuration information.
Alternatively, described web testing server is also configured to: add the identification information of described web testing server to the operation configuration item title of described web testing server, form test configurations item title; Send described test configurations item title to described configuration server, by described configuration server, the test configurations item title of this locality storage is mated with the configuration information of described configuration server storage; Receive matching result, and according to described matching result, at described configuration server place, obtain the described test configurations information corresponding with described test configurations item title; Utilize described test configurations information to trigger described web testing server and carry out application testing.
Alternatively, described web testing server is also configured to: if according to described matching result, described test configurations item title all fails to mate with all configuration informations of described configuration server, according to the operation configuration item title in described web testing server, at described configuration server place, obtains described operation configuration information; Utilize described operation configuration information to trigger described web testing server and carry out the operation of described respective application.
Alternatively, described configuration server is also configured to: determine described web testing server finish test procedure, delete described test configurations information.
Alternatively, described web testing server adopts gray scale issue to carry out application testing to new application.
Alternatively, described identification information comprise following one of arbitrarily: the Hostname of described web testing server; The medium access control MAC Address of described web testing server.
According to another aspect of the present invention, a kind of application testing equipment is also provided, comprising: getter, is configured to obtain test configurations information and operation configuration information from configuration server; Performer, is configured to trigger the new application of webpage web testing server is carried out to application testing according to described test configurations information; And, after application testing finishes, according to described operation configuration information, trigger respective application operation.
Alternatively, described application testing equipment also comprises: storer, and the test configurations item title that is configured to store described web testing server, wherein, described test configurations item title comprises operation configuration item title and the identification information thereof of described web testing server.
Alternatively, described getter is also configured to: the test configurations item title of this locality storage is mated with the configuration information of described configuration server storage; According to matching result, at described configuration server place, obtain the described test configurations information corresponding with described test configurations item title.
Alternatively, described getter is also configured to: if according to described matching result, described test configurations item title all fails to mate with all configuration informations of described configuration server, and described getter obtains described operation configuration information according to the operation configuration item title in described web testing server at described configuration server place.
Alternatively, described performer is also configured to: according to described operation configuration information, trigger the operation of described web testing server respective application.
According to another aspect of the present invention, a kind of configuration server is also provided, comprising: 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 testing, sends test configurations information to web testing server; Send operation configuration information to the described web testing server of web server and end application testing process; Canceller, is configured to, and after treating that application testing finishes, deletes described test configurations information.
According to the embodiment of the present invention, can obtain the test configurations item title of current server, and arrive corresponding test configurations information according to this configuration item name acquiring, further according to this test configurations information, carry out the operation test of application to be tested, solved in prior art, in operation when test of carrying out application to be tested, need separated running environment and test environment and use many cover configuration servers to cause resource to waste in a large number and be not easy to the problems of management.Adopt the embodiment of the present invention can use a set of configuration server to manage server, when number of servers is larger, can saving resource, and be convenient to management, in addition, when new setting or service testing complete, enter commencement of commercial operation during the stage, adopt the embodiment of the present invention can avoid revising the complicated processes of configuration server address function, reduce error rate, increase work efficiency.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
According to the detailed description to the specific embodiment of the invention by reference to the accompanying drawings below, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 shows the structural representation of application test systems in prior art;
Fig. 2 shows the processing flow chart of application testing method according to an embodiment of the invention;
Fig. 3 shows the processing flow 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 of applying according to an embodiment of the invention operational outfit; And
Fig. 6 shows the structural representation of configuration server according to an embodiment of the invention.
Embodiment
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In correlation technique, mention, when server data is larger, the configuration of running environment on defiber and test environment is managed concentratedly and caused resource to be wasted in a large number, and be not easy to management, in addition, when new setting or service testing is complete enters commencement of commercial operation during the stage, the operation of revising configuration server address is too loaded down with trivial details, increases error rate.
For solving the problems of the technologies described above, the embodiment of the present invention provides a kind of application testing method.Fig. 2 shows the processing flow chart of application testing method according to an embodiment of the invention.As shown in Figure 2, this flow process at least comprises that step S202 is to step S206.
Step S202, obtain the test configurations item title of current server, wherein, in the operation configuration item title that test configurations item title is added server to by the identification information of server, generate.
Step S204, according to test configurations item title, to configuration server, obtain the test configurations information of application to be tested, wherein, in configuration server, store 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, can obtain the test configurations item title of current server, and arrive corresponding test configurations information according to this configuration item name acquiring, further according to this test configurations information, carry out the operation test of application to be tested, solved in prior art, in operation when test of carrying out application to be tested, need separated running environment and test environment and use many cover configuration servers to cause resource to waste in a large number and be not easy to the problems of management.Adopt the embodiment of the present invention can use a set of configuration server to manage server, when number of servers is larger, can saving resource, and be convenient to management, in addition, when new setting or service testing complete, enter commencement of commercial operation during the stage, adopt the embodiment of the present invention can avoid revising the complicated processes of configuration server address function, reduce error rate, increase work efficiency.
Wherein, the Zookeeper configuration server that the configuration server that the embodiment of the present invention is used still can select prior art to mention is realized the recycling of existing equipment as far as possible.In like manner, the web server that the server using in the embodiment of the present invention can select prior art to mention.
Particularly, first the embodiment of the present invention obtains the operation configuration item title of server, secondly, adds the identification information of this server to above-mentioned operation configuration item title, gets the test configurations item title (being the step S202 in Fig. 2) of this server.After the test configurations key name that gets this server is referred to as, execution step S204, obtains the test configurations information of application to be tested according to this test configurations item title to configuration server.The embodiment of the present invention sends the test configurations item title of server to configuration server, by configuration server, according to the test configurations item title of this locality storage and the mapping table of test configurations information, is searched corresponding test configurations information and is back to server.After server receives above-mentioned test configurations information, execution step S206, treats Test Application according to this test configurations information and tests.
When configuration server, according to the test configurations item title receiving, fail to find corresponding test configurations information, return to server null message, server fails to get test configurations information according to test configurations item title.If server fails to get test configurations information according to test configurations item title, the operation configuration item title that embodiment of the present invention continues to send above-mentioned server, to configuration server, is found operation configuration information and is back to server according to this operation configuration item title by configuration server in the operation configuration item title of this locality storage and the mapping table of operation configuration information.Server carries out respective application operation according to this operation configuration information after receiving operation configuration information.
In the embodiment of the present invention, identification information is the authentication information of server, it can be the Hostname of server, it can be the medium access control address (hereinafter to be referred as MAC Address) of server, can also be other authentication information of server, the address that for example server is assigned with in a certain LAN (Local Area Network), the computer name of server, factory number of server etc.The embodiment of the present invention is not limited this.In the embodiment of the present invention, know after the identification information of server, add identification information to the operation configuration item title of server to obtain the test configurations item title of server, guarantee that server is according to configuration item name acquiring configuration information, and utilize configuration information to apply while moving, can carry out the separation of running environment and test environment to the application of application to be tested and normal operation, guarantee in the situation that not affecting the normal operation of other servers, on given server, treating Test Application trys out, improve the efficiency of management of configuration server, save management resource.
The application testing method now with specific embodiment, the embodiment of the present invention being provided describes.
Embodiment mono-
Fig. 3 shows the processing flow chart of application testing method in accordance with a preferred embodiment of the present invention, for supporting above-mentioned any one application testing method, above-mentioned application testing method is set forth more clear understandablely.Referring to Fig. 3, the preferred embodiment at least comprises that step S302 is to step S310.
Step S302, obtain the operation configuration item title of server, for example :/app_conf.In step S302, operation configuration item title is determined according to concrete application.
The host name of step S304, interpolation server, to moving configuration item title, forms test configurations item title :/app_conf_hostname.Certainly, this time add server identification information except host name all can, also can add different server identification information simultaneously, for example, add the host name of server and MAC Address to moving in configuration item title.The embodiment of the present invention only describes with main frame example by name.
After step S306, the test configurations key name that gets server according to step S304 are referred to as, utilize this test configurations item title/app_conf_hostname to obtain test configurations information, if get test configurations information, perform step S310, if do not get test configurations information, perform step S308.
Particularly, server sends test configurations item title/app_conf_hostname to configuration server.For obtaining test configurations information, in the embodiment of the present invention, generate mapping table, be stored in configuration server.Wherein, in this mapping table, with test configurations key name, be called key word, the corresponding test configurations information of take is value, and both become mapping relations, according to key word, can be mapped to the test configurations information that corresponding value refers to.Wherein, in above-mentioned test configurations information, can comprise test environment variable, test profile address and test configurations resource etc.After configuration server receives test configurations item title/app_conf_hostname, in above-mentioned mapping table, according to test configurations item title/app_conf_hostname, find corresponding test configurations information.If get the test configurations information corresponding with test configurations item title/app_conf_hostname, perform step S310, if configuration server does not get above-mentioned test configurations information, configuration server is back to server null message, prompt server fails to get corresponding test configurations information according to test configurations item title/app_conf_hostname, execution step S308.
Step S308, server send operation configuration item title/app_conf to configuration server, get operation configuration information, wherein, in this operation configuration information, can comprise that running environment variable, running configuration file address and operation resource allocation etc. move relevant information to server, several specifying informations herein, only for exemplifying, do not cause restriction to operation configuration information itself.
The configuration information that step S310, basis get carries out the operation of respective application, and flow process finishes.
Particularly, if server basis/app_conf_hostname gets test configurations information, server carries out the operation of application to be tested according to this test configurations information, if server does not get test configurations information, and then get the operation configuration information corresponding with moving configuration item title/app_conf according to step S308, server carries out the operation of respective application according to this operation configuration information.
Application testing method based on above each preferred embodiment provides, based on same inventive concept, the embodiment of the present invention provides a kind of application test systems.
Fig. 4 shows the structural representation of application test systems according to an embodiment of the invention.Referring to Fig. 4, the application test systems of the embodiment of the present invention comprises respectively at least one web server 410 with configuration server 420 couplings, and at least one web testing server 430.In Fig. 4, the quantity of web server 410 is shown as 3, only a plurality of for example, and in practical application, the concrete quantity of web server 410 may be any integer value, sets as the case may be.Framework in each web server 410 is similar, at this, does not repeat.Equally, the quantity of the web testing server 430 in Fig. 4 is also shown as 3, only a plurality of for example, and in practical application, the concrete quantity of web testing server 430 may be any integer value, sets as the case may be.Framework in each web testing server 430 is similar, and therefore not to repeat here.
Now introduce each device or the function of composition and the annexation between each several part in the application test systems of the embodiment of the present invention:
Web server 410, is coupled with configuration server 420, is configured to trigger local application according to the operation configuration information obtaining from configuration server 420 and moves.
Web testing server 430, be coupled with configuration server 420, be configured to, according to the test configurations information of obtaining from configuration server 420, the new application in this locality is carried out to application testing, and after application testing finishes, according to the operation configuration information obtaining from configuration server 420, trigger respective application operation.
Configuration server 420, is coupled with at least one web server 410 and at least one web testing server, is configured to when carrying out server application testing, for described at least one web testing server provides test configurations information; For the web testing server of described at least one web server and finish test procedure provides operation configuration information.
According to the embodiment of the present invention, can obtain the test configurations item title of current server, and arrive corresponding test configurations information according to this configuration item name acquiring, further according to this test configurations information, carry out the operation test of application to be tested, solved in prior art, in operation when test of carrying out application to be tested, need separated running environment and test environment and use many cover configuration servers to cause resource to waste in a large number and be not easy to the problems of management.Adopt the embodiment of the present invention can use a set of configuration server to manage server, when number of servers is larger, can saving resource, and be convenient to management, in addition, when new setting or service testing complete, enter commencement of commercial operation during the stage, adopt the embodiment of the present invention can avoid revising the complicated processes of configuration server address function, reduce error rate, increase work efficiency.The application test systems that the embodiment of the present invention provides is managed concentratedly application configuration, does not need aol server to revise any code and can realize easily gray scale issue.
As shown in Figure 4, in the application test systems that the embodiment of the present invention provides, web server 410 is obtained operation configuration item title, and sends this operation configuration item title to configuration server 420.In configuration server 420, store the mapping table of configuration item title and configuration information, after configuration server 420 receives above-mentioned operation configuration item title, the operation configuration item title that 420 pairs of configuration servers receive is mated with the configuration item title of local storage, and find corresponding operation configuration information according to matching result, and then return to this operation configuration information to web server 410.Web server 410 triggers local application according to this operation configuration information and moves after receiving the operation configuration information that configuration server 420 returns.
When web testing server 430 is as shown in Figure 4 treated Test Application and carried out application testing, web testing server 430 obtains operation configuration item title, and the identification information that adds self is to moving configuration item title, forms test configurations item title.After web testing server 430 gets this test configurations key name and is referred to as, send test configurations item title to configuration server 420.The test configurations item title that 420 pairs of configuration servers receive is mated with the test configurations item title of local storage, and in mapping table as described above, searches corresponding test configurations information according to matching result, and is back to web testing server 430.After web testing server 430 receives above-mentioned test configurations information, utilize this test configurations information to trigger the test run of application to be tested.
After configuration server 420 receives test configurations key name that web testing server 430 sends and is referred to as, according to matching result, in mapping table, cannot find corresponding test configurations information, configuration server 420 is back to 430 1 null messages of web testing server, and prompting web testing server 430 cannot get corresponding test configurations information according to above-mentioned test configurations item title.When web testing server 430 fails to get test configurations information according to test configurations item title, web testing server 430 resends its operation configuration item title to configuration server 420.After configuration server 420 receives the operation configuration item title of web testing server 430, this operation configuration item title is mated with the operation configuration item title of local storage, and get corresponding operation configuration information according to matching result, and return to this operation configuration information to web testing server 430.Web testing server 430 carries out the operation of respective application according to this operation configuration information after receiving operation configuration information.
After the trial run that utilizes web testing server 430 to carry out application to be tested finishes, delete the test configurations information in configuration server 420, web testing server 430 cannot get corresponding test configurations information according to its test configurations item title, further web testing server 430 can according to its move configuration item name acquiring to operation configuration information carry out the operation of respective application.
In the embodiment of the present invention, adopt gray scale issue to treat Test Application and carry out application testing.Adopt gray scale issue to treat Test Application and carry out application testing, can guarantee in the process of application testing, make a part of user use tested application, and another part user keeps using original application constant.When there is the problem in operation in tested application, can shift and use the user of tested application to the customer group of using original application, guarantee the stability of network and the problem of tested application appearance is carried out to time update and perfect.When the use through user, tested application completes its test process, can expand the usable range of this tested application, and then all users can be used through promoting and perfect above-mentioned tested application, improves user and experiences.
In addition, in the embodiment of the present invention, identification information is the authentication information of server, can be the Hostname of server, can also be the medium access control address (hereinafter to be referred as MAC Address) of server.The embodiment of the present invention is not limited this.In the embodiment of the present invention, add identification information to the operation configuration item title of server to obtain the test configurations item title of server, guarantee that server is according to configuration item name acquiring configuration information, and utilize configuration information to apply while moving, can carry out the separation of running environment and test environment to the application of application to be tested and normal operation, guarantee in the situation that not affecting the normal operation of other servers, on given server, treating Test Application trys out, improve the efficiency of management of configuration server, save management resource.
Based on above application testing method and the system of each preferred embodiment, based on same inventive concept, the embodiment of the present invention provides a kind of application testing equipment, for realizing above-mentioned application testing method and system.
Fig. 5 shows the structural representation of applying according to an embodiment of the invention operational outfit.Referring to Fig. 5, the application testing equipment 500 of the embodiment of the present invention at least comprises: getter 520 and performer 530.
Now introduce each device of application testing equipment 500 or the function of composition and the annexation between each several part of the embodiment of the present invention:
Getter 520, is configured to obtain test configurations information and operation configuration information from configuration server.
Performer 530, with getter 520 couplings, is configured to trigger the application to be tested of webpage web testing server is carried out to application testing according to test configurations information; And, after application testing finishes, according to operation configuration information, trigger respective application operation.
According to the embodiment of the present invention, can obtain the test configurations item title of current server, and arrive corresponding test configurations information according to this configuration item name acquiring, further according to this test configurations information, carry out the operation test of application to be tested, solved in prior art, in operation when test of carrying out application to be tested, need separated running environment and test environment and use many cover configuration servers to cause resource to waste in a large number and be not easy to the problems of management.Adopt the embodiment of the present invention can use a set of configuration server to manage server, when number of servers is larger, can saving resource, and be convenient to management, in addition, when new setting or service testing complete, enter commencement of commercial operation during the stage, adopt the embodiment of the present invention can avoid revising the complicated processes of configuration server address function, reduce error rate, increase work efficiency.
As shown in Figure 5, operation configuration item title and the test configurations item title of the storer 510 storage web testing servers in application testing equipment 500, wherein, the test configurations item title of web testing server consists of the identification information of its operation configuration item title and web testing server.
The test configurations item title that the getter 520 being coupled with storer 510 sends storeies 510 storages is to server.After server receives above-mentioned test configurations key name and is referred to as, according to the configuration item title of this locality storage, with the mapping table of configuration information, above-mentioned test configurations item title is configured to mating of a title.If whois lookup is to the test configurations item title matching with above-mentioned test configurations item title, server finds the test configurations information corresponding with this test configurations item title in mapping table, and sends this test configurations information to the getter 520 in application testing equipment 500.After getter 520 gets test configurations information, the performer 530 of triggering and its coupling, the application that utilizes this test configurations information to trigger application to be tested by performer 530 moves.
After server receives test configurations key name and is referred to as, while failing to find the configuration item title matching with this test configurations item title in this locality, server returns to a null message to getter 520, the operation configuration item title that getter 520 sends storage in storer 510 is to server, by server, according to this, move configuration item name lookup to corresponding operation configuration information, and be sent to getter 520.Getter 520 triggers performer 530 after getting operation configuration information, is triggered the operation of web testing server respective application by performer 530 according to this operation configuration information.
In the embodiment of the present invention, adopt gray scale issue to treat Test Application and carry out application testing.Adopt gray scale issue to treat Test Application and carry out application testing, can guarantee in the process of application testing, make a part of user use tested application, and another part user keeps using original application constant.When there is the problem in operation in tested application, can shift and use the user of tested application to the customer group of using original application, guarantee the stability of network and the problem of tested application appearance is carried out to time update and perfect.When the use through user, tested application completes its test process, can expand the usable range of this tested application, and then all users can be used through promoting and perfect above-mentioned tested application, improves user and experiences.
In addition, in the embodiment of the present invention, identification information is the authentication information of server, can be the Hostname of server, can also be the medium access control address (hereinafter to be referred as MAC Address) of server.The embodiment of the present invention is not limited this.In the embodiment of the present invention, add identification information to the operation configuration item title of server to obtain the test configurations item title of server, guarantee that server is according to configuration item name acquiring configuration information, and utilize configuration information to apply while moving, can carry out the separation of running environment and test environment to the application of application to be tested and normal operation, guarantee in the situation that not affecting the normal operation of other servers, on given server, treating Test Application trys out, improve the efficiency of management of configuration server, save management resource.
Application testing method, system and equipment based on above each preferred embodiment provides, based on same inventive concept, the embodiment of the present invention provides a kind of configuration server, for realizing above-mentioned application testing method and system.
Fig. 6 shows the structural representation of configuration server according to an embodiment of the invention.Referring to Fig. 6, the configuration server 600 of the embodiment of the present invention at least comprises: adder 610, transmitter 620 and canceller 630.
Now introduce each device of configuration server 600 or the function of composition and the annexation between each several part of the embodiment of the present invention:
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 testing, sends test configurations information to web testing server; Send operation configuration information to the web testing server of web server and end application testing process.
Canceller 630, is coupled with transmitter 620, is configured to, and after treating that application testing finishes, deletes test configurations information.
According to the embodiment of the present invention, can obtain the test configurations item title of current server, and arrive corresponding test configurations information according to this configuration item name acquiring, further according to this test configurations information, carry out the operation test of application to be tested, solved in prior art, in operation when test of carrying out application to be tested, need separated running environment and test environment and use many cover configuration servers to cause resource to waste in a large number and be not easy to the problems of management.Adopt the embodiment of the present invention can use a set of configuration server to manage server, when number of servers is larger, can saving resource, and be convenient to management, in addition, when new setting or service testing complete, enter commencement of commercial operation during the stage, adopt the embodiment of the present invention can avoid revising the complicated processes of configuration server address function, reduce error rate, increase work efficiency.
Particularly, as shown in Figure 6, when carrying out the operation of application to be tested, test configurations information to the configuration server 600 that adder 610 adds the server that carries out application operation to be tested is preserved.When above-mentioned server sends test configurations item title to configuration server 600, the transmitter 620 in configuration server 600 is searched the test configurations information corresponding with this test configurations item title, and this test configurations information is sent to server.When application to be tested has moved, the test configurations information that the canceller 630 in configuration server 600 is deleted in configuration server 600.When server sends test configurations item title again to configuration server 600, configuration server 600 cannot find corresponding test configurations information according to this test configurations item title, the transmitter 620 in configuration server 600 returns to a null message to server, prompt server cannot find corresponding test configurations information according to this test configurations item title, and server sends operation configuration item title to configuration server 600.After configuration server 600 receives operation configuration item title, by transmitter 620, search the operation configuration information corresponding with this operation configuration item title, and return to this operation configuration information to server, by server, according to this operation configuration information, carry out the operation of respective application.
According to the combination of above-mentioned any one preferred embodiment or a plurality of preferred embodiments, the embodiment of the present invention can reach following beneficial effect:
According to the embodiment of the present invention, can obtain the test configurations item title of current server, and arrive corresponding test configurations information according to this configuration item name acquiring, further according to this test configurations information, carry out the operation test of application to be tested, solved in prior art, in operation when test of carrying out application to be tested, need separated running environment and test environment and use many cover configuration servers to cause resource to waste in a large number and be not easy to the problems of management.Adopt the embodiment of the present invention can use a set of configuration server to manage server, when number of servers is larger, can saving resource, and be convenient to management, in addition, when new setting or service testing complete, enter commencement of commercial operation during the stage, adopt the embodiment of the present invention can avoid revising the complicated processes of configuration server address function, reduce error rate, increase work efficiency.
The embodiment of the invention also discloses A1. application testing method, comprising:
Obtain the test configurations item title of current server, wherein, in the operation configuration item title that described test configurations item title is added described server to by the identification information of described server, generate;
According to described test configurations item title, to configuration server, obtain the test configurations information of application to be tested, wherein, in described configuration server, store 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 comprise:
If do not obtain described test configurations information according to described test configurations item title, utilize the title of described operation configuration item to obtain operation configuration information to described configuration server;
According to described operation configuration information, carry out respective application operation.
A3. according to the method described in A1 or A2, wherein, described in carry out the server of application testing identification information comprise following one of arbitrarily:
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, comprise respectively at least one the webpage web server with configuration server coupling, and at least one web testing server, wherein,
Described web server, is configured to trigger local application according to the operation configuration information obtaining from described configuration server and moves;
Described web testing server, is configured to, according to the test configurations information of obtaining from described configuration server, this locality application to be tested is carried out to application testing; And, after application testing finishes, according to the operation configuration information obtaining from described configuration server, trigger respective application operation;
Described configuration server, is configured to when carrying out server application testing, for described at least one web testing server provides test configurations information; For the web testing server of described at least one web server and finish test procedure provides operation configuration information.
B5. according to the system described in B4, wherein, described web testing server is also configured to:
Add the identification information of described web testing server to the operation configuration item title of described web testing server, form test configurations item title;
Send described test configurations item title to described configuration server, by described configuration server, the test configurations item title of this locality storage is mated with the configuration information of described configuration server storage;
Receive matching result, and according to described matching result, at described configuration server place, obtain the described test configurations information corresponding with described test configurations item title;
Utilize described test configurations information to trigger described web testing server and carry out application testing.
B6. according to the system described in B4 or B5, wherein, described web testing server is also configured to:
If according to described matching result, described test configurations item title all fails to mate with all configuration informations of described configuration server, according to the operation configuration item title in described web testing server, at described configuration server place, obtains described operation configuration information;
Utilize described operation configuration information to trigger described web testing server and carry out the operation of described respective application.
B7. according to the system described in B4 to B6 any one, wherein, described configuration server is also configured to: determine described web testing server finish test procedure, delete described test configurations information.
B8. according to the system described in B4 to B7 any one, wherein, the issue of described web testing server employing gray scale is treated Test Application and is carried out application testing.
B9. according to the system described in B5 to B8 any one, wherein, described identification information comprise following one of arbitrarily:
The Hostname of described web testing server;
The medium access control MAC Address of described web testing server.
The embodiment of the invention also discloses C10. application testing equipment, comprising:
Getter, is configured to obtain test configurations information and operation configuration information from configuration server;
Performer, is configured to trigger the application to be tested of webpage web testing server is carried out to application testing according to described test configurations information; And, after application testing finishes, according to described operation configuration information, trigger respective application operation.
C11. according to the equipment described in C10, wherein, also comprise:
Storer, the test configurations item title that is configured to store described web testing server, wherein, described test configurations item title comprises operation configuration item title and the identification information thereof of described web testing server.
C12. according to the equipment described in C11, wherein, described getter is also configured to:
The test configurations item title of this locality storage is mated with the configuration information of described configuration server storage;
According to matching result, at described configuration server place, obtain the described test configurations information corresponding with described test configurations item title.
C13. according to the equipment described in C12, wherein, described getter is also configured to:
If according to described matching result, described test configurations item title all fails to mate with all configuration informations of described configuration server, and described getter obtains described operation configuration information according to the operation configuration item title in described web testing server at described configuration server place.
C14. according to the equipment described in C13, wherein, described performer is also configured to: according to described operation configuration information, trigger the operation of described web testing server respective application.
The embodiment of the invention also discloses D15. configuration server, comprising:
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 testing, sends test configurations information to web testing server; Send operation configuration information to the described web testing server of web server and end application testing process;
Canceller, is configured to, and after treating that application testing finishes, deletes described test configurations information.
In the instructions that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this instructions (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the some or all functions of the some or all parts in the application testing equipment of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, although detailed, illustrate and described a plurality of exemplary embodiment of the present invention herein, but, without departing from the spirit and scope of the present invention, still can directly determine or derive many other modification or the modification that meets the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or modifications.

Claims (10)

1. an application testing method, comprising:
Obtain the test configurations item title of current server, wherein, in the operation configuration item title that described test configurations item title is added described server to by the identification information of described server, generate;
According to described test configurations item title, to configuration server, obtain the test configurations information of application to be tested, wherein, in described configuration server, store 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.
2. method according to claim 1, wherein, also comprises:
If do not obtain described test configurations information according to described test configurations item title, utilize the title of described operation configuration item to obtain operation configuration information to described configuration server;
According to described operation configuration information, carry out respective application operation.
3. method according to claim 1 and 2, wherein, described in carry out the server of application testing identification information comprise following one of arbitrarily:
The Hostname of described server;
The medium access control MAC Address of described server.
4. an application test systems, comprises respectively at least one the webpage web server with configuration server coupling, and at least one web testing server, wherein,
Described web server, is configured to trigger local application according to the operation configuration information obtaining from described configuration server and moves;
Described web testing server, is configured to, according to the test configurations information of obtaining from described configuration server, this locality application to be tested is carried out to application testing; And, after application testing finishes, according to the operation configuration information obtaining from described configuration server, trigger respective application operation;
Described configuration server, is configured to when carrying out server application testing, for described at least one web testing server provides test configurations information; For the web testing server of described at least one web server and finish test procedure provides operation configuration information.
5. system according to claim 4, wherein, described web testing server is also configured to:
Add the identification information of described web testing server to the operation configuration item title of described web testing server, form test configurations item title;
Send described test configurations item title to described configuration server, by described configuration server, the test configurations item title of this locality storage is mated with the configuration information of described configuration server storage;
Receive matching result, and according to described matching result, at described configuration server place, obtain the described test configurations information corresponding with described test configurations item title;
Utilize described test configurations information to trigger described web testing server and carry out application testing.
6. according to the system described in claim 4 or 5, wherein, described web testing server is also configured to:
If according to described matching result, described test configurations item title all fails to mate with all configuration informations of described configuration server, according to the operation configuration item title in described web testing server, at described configuration server place, obtains described operation configuration information;
Utilize described operation configuration information to trigger described web testing server and carry out the operation of described respective application.
7. according to the system described in claim 4 to 6 any one, wherein, described configuration server is also configured to: determine described web testing server finish test procedure, delete described test configurations information.
8. an application testing equipment, comprising:
Getter, is configured to obtain test configurations information and operation configuration information from configuration server;
Performer, is configured to trigger the application to be tested of webpage web testing server is carried out to application testing according to described test configurations information; And, after application testing finishes, according to described operation configuration information, trigger respective application operation.
9. equipment according to claim 8, wherein, also comprises:
Storer, the test configurations item title that is configured to store described web testing server, wherein, described test configurations item title comprises operation configuration item title and the identification information thereof of described web testing server.
10. a configuration server, comprising:
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 testing, sends test configurations information to web testing server; Send operation configuration information to the described web testing server of web server and end application testing process;
Canceller, is configured to, and after treating that application testing finishes, deletes 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 true CN103631715A (en) 2014-03-12
CN103631715B CN103631715B (en) 2016-11-30

Family

ID=

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699612A (en) * 2015-03-25 2015-06-10 北京嘀嘀无限科技发展有限公司 Processing method, equipment and system used in software testing
CN105607994A (en) * 2015-10-19 2016-05-25 珠海金山网络游戏科技有限公司 Mobile terminal software testing method and system
CN106095676A (en) * 2016-06-07 2016-11-09 乐视控股(北京)有限公司 Method of testing that data report, Apparatus and system
CN106878045A (en) * 2016-10-11 2017-06-20 阿里巴巴集团控股有限公司 Service calling method and device
CN107491390A (en) * 2017-08-15 2017-12-19 深圳市慧择时代科技有限公司 The method and device of replacement test environment configuration information
CN107908565A (en) * 2017-11-27 2018-04-13 中国银行股份有限公司 A kind of test method and equipment
CN109462491A (en) * 2017-09-06 2019-03-12 北京京东尚科信息技术有限公司 System, method and apparatus for testing service device function
CN109828927A (en) * 2019-01-31 2019-05-31 北京三快在线科技有限公司 A kind of method, apparatus of integration testing, equipment and storage medium
CN110096396A (en) * 2019-03-18 2019-08-06 北京奇艺世纪科技有限公司 It is grouped control method, distribution application system and the storage medium of test
CN110245191A (en) * 2019-06-18 2019-09-17 政采云有限公司 Data processing method and device
CN112114885A (en) * 2020-09-15 2020-12-22 青岛海信移动通信技术股份有限公司 Terminal, control equipment and service processing method
CN112181802A (en) * 2020-08-21 2021-01-05 长沙市到家悠享网络科技有限公司 Test method and device
CN113326186A (en) * 2021-05-19 2021-08-31 网易(杭州)网络有限公司 Software testing method and device, electronic equipment and storage medium

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

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699612A (en) * 2015-03-25 2015-06-10 北京嘀嘀无限科技发展有限公司 Processing method, equipment and system used in software testing
CN105607994A (en) * 2015-10-19 2016-05-25 珠海金山网络游戏科技有限公司 Mobile terminal software testing method and system
CN105607994B (en) * 2015-10-19 2018-12-11 珠海金山网络游戏科技有限公司 A kind of mobile terminal software test method and system
CN106095676A (en) * 2016-06-07 2016-11-09 乐视控股(北京)有限公司 Method of testing that data report, Apparatus and system
CN106878045A (en) * 2016-10-11 2017-06-20 阿里巴巴集团控股有限公司 Service calling method and device
CN107491390A (en) * 2017-08-15 2017-12-19 深圳市慧择时代科技有限公司 The method and device of replacement test environment configuration information
CN109462491B (en) * 2017-09-06 2021-10-01 北京京东尚科信息技术有限公司 System, method and apparatus for testing server functionality
CN109462491A (en) * 2017-09-06 2019-03-12 北京京东尚科信息技术有限公司 System, method and apparatus for testing service device function
CN107908565A (en) * 2017-11-27 2018-04-13 中国银行股份有限公司 A kind of test method and equipment
CN109828927A (en) * 2019-01-31 2019-05-31 北京三快在线科技有限公司 A kind of method, apparatus of integration testing, equipment and storage medium
CN110096396A (en) * 2019-03-18 2019-08-06 北京奇艺世纪科技有限公司 It is grouped control method, distribution application system and the storage medium of test
CN110096396B (en) * 2019-03-18 2023-05-23 北京奇艺世纪科技有限公司 Control method for packet test, distributed application system and storage medium
CN110245191A (en) * 2019-06-18 2019-09-17 政采云有限公司 Data processing method and device
CN110245191B (en) * 2019-06-18 2021-07-02 政采云有限公司 Data processing method and device
CN112181802A (en) * 2020-08-21 2021-01-05 长沙市到家悠享网络科技有限公司 Test method and device
CN112114885A (en) * 2020-09-15 2020-12-22 青岛海信移动通信技术股份有限公司 Terminal, control equipment and service processing method
CN113326186A (en) * 2021-05-19 2021-08-31 网易(杭州)网络有限公司 Software testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
KR102338208B1 (en) Method, apparatus and system for processing data
CN102955717B (en) Message management equipment and method in distributed message processing system
US11310066B2 (en) Method and apparatus for pushing information
CN110019080B (en) Data access method and device
US8825750B2 (en) Application server management system, application server management method, management apparatus, application server and computer program
CN105468720A (en) Method for integrating distributed data processing systems, corresponding systems and data processing method
US11256677B2 (en) Method, device, and computer program product for managing storage system
CN107800781A (en) A kind of configuration data processing method and device
CN103136342A (en) Searching method, system and searching server of application programs (APP)
US20180314548A1 (en) Work item management in content management systems
CN103034541A (en) Distributing type information system and equipment and method thereof
CN104361040A (en) Method and device for customized query
US9411618B2 (en) Metadata-based class loading using a content repository
CN108365976B (en) Network service optimization method and device
CN112131230B (en) Application software as a service (SaaS) realization method, device, equipment and storage medium
CN112199200B (en) Resource scheduling method and device, computer equipment and storage medium
CN105468776A (en) Method, device and system for operating database
CN103530155A (en) Method and device for installing application program
CN116346777A (en) Dictionary tree domain name matching method, device, equipment and storage medium
CN107547607B (en) Cluster migration method and device
CN105354081A (en) Synchronous service binding method and apparatus
US9858355B1 (en) Search engine optimization based upon most popular search history
CN109471837A (en) The distributed storage method of power infrastructures data
CN109240653A (en) A kind of method and system constructing internet O&M resource associations system
CN103631715A (en) Method, device and system for testing application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
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.

TR01 Transfer of patent right