CN103970648A - Test method and system of installation package - Google Patents

Test method and system of installation package Download PDF

Info

Publication number
CN103970648A
CN103970648A CN201310036301.5A CN201310036301A CN103970648A CN 103970648 A CN103970648 A CN 103970648A CN 201310036301 A CN201310036301 A CN 201310036301A CN 103970648 A CN103970648 A CN 103970648A
Authority
CN
China
Prior art keywords
installation kit
alternate file
test terminal
command line
line parameter
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
CN201310036301.5A
Other languages
Chinese (zh)
Other versions
CN103970648B (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.)
Baidu International Technology Shenzhen Co Ltd
Original Assignee
Baidu International Technology Shenzhen 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 Baidu International Technology Shenzhen Co Ltd filed Critical Baidu International Technology Shenzhen Co Ltd
Priority to CN201310036301.5A priority Critical patent/CN103970648B/en
Publication of CN103970648A publication Critical patent/CN103970648A/en
Application granted granted Critical
Publication of CN103970648B publication Critical patent/CN103970648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a test method and system of an installation package. The method comprises the following steps: obtaining a first installation package by a test terminal; obtaining an alternate file corresponding to the first installation package from a test server according to the first installation package by the test terminal, wherein the alternate file is used for obtaining command line parameters during calling of the alternate file; calling the alternate file according to the first installation package by the test terminal, and obtaining the command line parameters stored during calling of the alternate file; obtaining a test result according to the command line parameters by the test terminal. According to the method provided by the embodiment of the invention, on one hand, the test time is shortened, the test time cost is reduced, for example, the time for downloading from the test server by the test terminal and the time for installing and uninstalling software and restarting the test terminal are shortened, and on the other hand, due to the adoption of the alternate file, the continuous test can be performed and the test efficiency is improved.

Description

The method of testing of installation kit and system
Technical field
The present invention relates to field of computer technology, particularly a kind of method of testing of installation kit and system.
Background technology
Online installation all praised highly by present a lot of software and binding is installed, the mini mini installation kit of terminal downloads, the size of this mini installation kit is about hundreds of KB, after this mini installation kit of terminal operating, send request the download address of obtaining complete installation kit to server, then download complete installation kit according to download address, last terminal is called complete installation kit and completes the installation of designated software with specific command line parameter.
Whether traditional test mini installation kit meets demand, mainly by test terminal modelling customer behavior operation mini installation kit, and wait for after mini installation kit is downloaded complete installation kit and restart installation, by checking whether the interface occurring in installation process meets expection and judge whether mini installation kit meets demand, need under different installation environments, test for different mini installation kits on the one hand, on the other hand due to complete installation kit successful installation with while installing unsuccessfully, return to the parameter difference of mini installation kit, test terminal need to be tested respectively complete installation kit successful installation and failed situation is installed.
The problem existing is at present, the test of a mini installation kit is often carried out in test terminal, all need first to test the situation of mini installation kit successful installation, and then test mini installation kit is installed failed situation, and complete installation kit need to be downloaded according to mini installation kit in test terminal in the time testing, and complete installation kit is installed, then lay down software, restart again test terminal (just can unload clean after general software restarting), failed situation is installed in repetitive operation test more afterwards, and the test duration, time cost is high and efficiency is very low.
Summary of the invention
The present invention is intended at least one of solve the problems of the technologies described above.
For this reason, first object of the present invention is to propose a kind of method of testing of installation kit, the method can have been saved the test duration on the one hand, reduce the time cost of test, as save the time that download from testing server test terminal, save installation, uninstall simultaneously and restart time of test terminal, adopt on the other hand alternate file can realize continuously uninterrupted test, improved testing efficiency.
Second object of the present invention is to propose the method for testing of another kind of installation kit.
The 3rd object of the present invention is to propose a kind of test macro of installation kit.
To achieve these goals, the embodiment of first aspect present invention discloses a kind of method of testing of installation kit, comprises the following steps: a, test terminal obtain the first installation kit; B, described test terminal obtain alternate file corresponding to described the first installation kit according to described the first installation kit from testing server, wherein, and command line parameter when described alternate file is called for obtaining described alternate file; Described alternate file is called according to described the first installation kit in c, described test terminal, and obtains the described command line parameter of preserving when described alternate file is called; And d, described test terminal obtain test result according to described command line parameter.
According to the method for testing of embodiment of the present invention installation kit, adopt alternate file to replace complete installation kit corresponding to mini installation kit to test, save the test duration on the one hand, reduce the time cost of test, as save the time that download from testing server test terminal, save installation, uninstall simultaneously and restart time of test terminal, adopt on the other hand alternate file can realize continuously uninterrupted test, improved testing efficiency.
To achieve these goals, the method for testing that discloses another kind of installation kit of the embodiment of second aspect present invention, comprises the following steps: a, testing server receive the first download request that test terminal sends according to the first installation kit; B, described testing server search to obtain alternate file corresponding to described the first installation kit according to described the first download request in described testing server, wherein, and command line parameter when described alternate file is called for obtaining described alternate file; And described alternate file is sent to described test terminal by c, described testing server, so that described alternate file is called according to described the first installation kit in described test terminal, and obtain the described command line parameter of preserving when described alternate file is called, and obtain test result according to described command line parameter.
According to the method for testing of embodiment of the present invention installation kit, adopt alternate file to replace complete installation kit corresponding to mini installation kit to test, save the test duration on the one hand, reduce the time cost of test, as save the time that download from testing server test terminal, save installation, uninstall simultaneously and restart time of test terminal, adopt on the other hand alternate file can realize continuously uninterrupted test, improved testing efficiency.
To achieve these goals, the test macro that discloses another kind of installation kit of the embodiment of third aspect present invention, comprise: test terminal and testing server, wherein, described test terminal, be used for obtaining the first installation kit, and from described testing server, obtain alternate file corresponding to described the first installation kit according to described the first installation kit, wherein, command line parameter when described alternate file is called for obtaining described alternate file, and call described alternate file according to described the first installation kit, and obtain the described command line parameter that described alternate file is preserved when called, and, obtain test result according to described command line parameter, described testing server, for obtaining corresponding alternate file according to described the first installation kit, and is sent to described test terminal by described alternate file.
According to the test macro of embodiment of the present invention installation kit, adopt alternate file to replace complete installation kit corresponding to mini installation kit to test, save the test duration on the one hand, reduce the time cost of test, as save the time that download from testing server test terminal, save installation, uninstall simultaneously and restart time of test terminal, adopt on the other hand alternate file can realize continuously uninterrupted test, improved testing efficiency.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Brief description of the drawings
The present invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments obviously and easily and understand, wherein,
Fig. 1 is the process flow diagram of the method for testing of installation kit according to an embodiment of the invention;
Fig. 2 is the process flow diagram of the method for testing of the installation kit of a specific embodiment according to the present invention;
Fig. 3 is the process flow diagram of the method for testing of the installation kit of another specific embodiment according to the present invention;
Fig. 4 is the process flow diagram of the method for testing of the installation kit of another specific embodiment according to the present invention;
Fig. 5 is the process flow diagram of the method for testing of installation kit in accordance with another embodiment of the present invention; And
Fig. 6 is the structural representation of the test macro of installation kit according to an embodiment of the invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise all changes, amendment and the equivalent within the scope of spirit and the intension that falls into additional claims.
In description of the invention, it will be appreciated that, term " first ", " second " etc. are only for describing object, and can not be interpreted as instruction or hint relative importance.In description of the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, and for example, can be to be fixedly connected with, and can be also to removably connect, or connects integratedly; Can be mechanical connection, can be also electrical connection; Can be to be directly connected, also can indirectly be connected by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.In addition,, in description of the invention, except as otherwise noted, the implication of " multiple " is two or more.
Any process of otherwise describing in process flow diagram or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
Describe according to the method for testing of the installation kit of the embodiment of the present invention and system below with reference to accompanying drawing.
A method of testing for installation kit, comprises the following steps: a, test terminal obtain the first installation kit; B, test terminal obtain according to the first installation kit the alternate file that the first installation kit is corresponding from testing server, wherein, and command line parameter when alternate file is called for obtaining alternate file; Alternate file is called according to the first installation kit in c, test terminal, and obtains the command line parameter of preserving when alternate file is called; And d, test terminal obtain test result according to command line parameter.
Fig. 1 is the process flow diagram of the method for testing of installation kit according to an embodiment of the invention.
As shown in Figure 1, comprise the steps according to the method for testing of the installation kit of the embodiment of the present invention.
Step S101, test terminal obtains the first installation kit.
In one embodiment of the invention, the first installation kit is mini installation kit.
Particularly, the first installation kit can be downloaded from remote server in test terminal.
Step S102, test terminal obtains according to the first installation kit the alternate file that the first installation kit is corresponding from testing server, wherein, command line parameter when alternate file is called for obtaining alternate file.
Particularly, first the first installation kit is moved in test terminal, then download corresponding alternate file according to the first installation kit from testing server, alternate file can be that dummy program or other can obtain self command line parameter when called, and the command line parameter obtaining can be saved in to this locality, wherein alternate file user replaces complete installation kit, and the title of alternate file is consistent with the title of complete installation kit.
Step S103, alternate file is called according to the first installation kit in test terminal, and obtains the command line parameter of preserving when alternate file is called.
Step S104, test terminal obtains test result according to command line parameter.
In one embodiment of the invention, test terminal judges that whether command line parameter is consistent with the default command line parameter of the first installation kit, if command line parameter is consistent with the default command line parameter of the first installation kit, test terminal determines that the first installation kit tests successfully.Wherein, if the default command line parameter of command line parameter and the first installation kit is inconsistent, the first installation kit test crash is determined in test terminal.
In one embodiment of the invention, multiple mini installation kits can be tested in test terminal simultaneously, thus, can further improve testing efficiency.
According to the method for testing of the installation kit of the embodiment of the present invention, adopt alternate file to replace complete installation kit corresponding to mi ni installation kit to test, save the test duration on the one hand, reduce the time cost of test, as save the time that download from testing server test terminal, save installation, uninstall simultaneously and restart time of test terminal, adopt on the other hand alternate file can realize continuously uninterrupted test, improved testing efficiency.
Fig. 2 is the process flow diagram of the method for testing of the installation kit of a specific embodiment according to the present invention.
As shown in Figure 2, comprise the steps according to the method for testing of the installation kit of the embodiment of the present invention.
Step S201, test terminal obtains the first installation kit.
In one embodiment of the invention, the first installation kit is mini installation kit.
Particularly, the first installation kit can be downloaded from remote server in test terminal.
Step S202, test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.
In one embodiment of the invention, the second installation kit is the complete installation kit that mini installation kit is corresponding.
Particularly, the download address that the second installation kit is downloaded in operation when the first installation kit by test terminal is modified, and makes test terminal according to alternate file in the first installation kit access testing server.For example, the hosts file that test terminal can be revised in the system of test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.
Step S203, test terminal obtains according to the first installation kit the alternate file that the first installation kit is corresponding from testing server, wherein, command line parameter when alternate file is called for obtaining alternate file.
Particularly, first the first installation kit is moved in test terminal, then download corresponding alternate file according to the first installation kit from testing server, alternate file can be that dummy program or other can obtain self command line parameter when called, and the command line parameter obtaining can be saved in to this locality, wherein alternate file user replaces complete installation kit, and the title of alternate file is consistent with the title of complete installation kit.
Step S204, alternate file is called according to the first installation kit in test terminal, and obtains the command line parameter of preserving when alternate file is called.
Step S205, test terminal obtains test result according to command line parameter.
In one embodiment of the invention, test terminal judges that whether command line parameter is consistent with the default command line parameter of the first installation kit, if command line parameter is consistent with the default command line parameter of the first installation kit, test terminal determines that the first installation kit tests successfully.Wherein, if the default command line parameter of command line parameter and the first installation kit is inconsistent, the first installation kit test crash is determined in test terminal.
In one embodiment of the invention, multiple mini installation kits can be tested in test terminal simultaneously, thus, can further improve testing efficiency.
According to the method for testing of the installation kit of the embodiment of the present invention, test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.
Fig. 3 is the process flow diagram of the method for testing of the installation kit of another specific embodiment according to the present invention.
As shown in Figure 3, comprise the steps according to the method for testing of the installation kit of the embodiment of the present invention.
Step S301, test terminal obtains the first installation kit.
In one embodiment of the invention, the first installation kit is mini installation kit.
Particularly, the first installation kit can be downloaded from remote server in test terminal.
Step S302, test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.
In one embodiment of the invention, the second installation kit is the complete installation kit that mini installation kit is corresponding.
Particularly, the download address that the second installation kit is downloaded in operation when the first installation kit by test terminal is modified, and makes test terminal according to alternate file in the first installation kit access testing server.For example, the hosts file that test terminal can be revised in the system of test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.
Step S303, the first installation kit is moved to send the first download request to testing server in test terminal, and obtains the configuration file of alternate file according to the first download request, and wherein, configuration file comprises the download address of alternate file.
Step S304, test terminal sends the second download request to obtain alternate file according to download address to testing server.
Wherein, command line parameter when alternate file is called for obtaining alternate file, alternate file can be that dummy program or other can obtain self command line parameter when called, and the command line parameter obtaining can be saved in to this locality, wherein alternate file user replaces complete installation kit, and the title of alternate file is consistent with the title of complete installation kit.
Step S305, alternate file is called according to the first installation kit in test terminal, and obtains the command line parameter of preserving when alternate file is called.
Step S306, test terminal obtains test result according to command line parameter.
In one embodiment of the invention, test terminal judges that whether command line parameter is consistent with the default command line parameter of the first installation kit, if command line parameter is consistent with the default command line parameter of the first installation kit, test terminal determines that the first installation kit tests successfully.Wherein, if the default command line parameter of command line parameter and the first installation kit is inconsistent, the first installation kit test crash is determined in test terminal.
In one embodiment of the invention, multiple mini installation kits can be tested in test terminal simultaneously, thus, can further improve testing efficiency.
According to the method for testing of the installation kit of the embodiment of the present invention, obtain the download address of alternate file by download configuration file and download.
Fig. 4 is the process flow diagram of the method for testing of the installation kit of another specific embodiment according to the present invention.
As shown in Figure 4, comprise the steps according to the method for testing of the installation kit of the embodiment of the present invention.
Step S401, test terminal obtains the first installation kit.
In one embodiment of the invention, the first installation kit is mini installation kit.
Particularly, the first installation kit can be downloaded from remote server in test terminal.
Step S402, test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.
In one embodiment of the invention, the second installation kit is the complete installation kit that mini installation kit is corresponding.
Particularly, the download address that the second installation kit is downloaded in operation when the first installation kit by test terminal is modified, and makes test terminal according to alternate file in the first installation kit access testing server.For example, the hosts file that test terminal can be revised in the system of test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.
Step S403, the first installation kit is moved to send the first download request to testing server in test terminal, and obtains the configuration file of alternate file according to the first download request, and wherein, configuration file comprises the download address of alternate file.
Step S404, test terminal sends the second download request to obtain alternate file according to download address to testing server.
Wherein, command line parameter when alternate file is called for obtaining alternate file, alternate file can be that dummy program or other can obtain self command line parameter when called, and the command line parameter obtaining can be saved in to this locality, wherein alternate file user replaces complete installation kit, and the title of alternate file is consistent with the title of complete installation kit.
Step S405, the second check code of alternate file is recalculated to obtain in test terminal.
In one embodiment of the invention, the configuration file of alternate file also comprises the first check code of alternate file.
Step S406, test terminal judges that whether the second check code is consistent with the first check code.
Step S407, if the second check code is consistent with the first check code, alternate file is called according to the first installation kit in test terminal, and obtains the command line parameter of preserving when alternate file is called.
Wherein, if the second check code and the first check code are inconsistent, the alternate file that explanation is obtained is not corresponding with the first installation kit, finishes test.
Step S408, test terminal obtains test result according to command line parameter.
In one embodiment of the invention, test terminal judges that whether command line parameter is consistent with the default command line parameter of the first installation kit, if command line parameter is consistent with the default command line parameter of the first installation kit, test terminal determines that the first installation kit tests successfully.Wherein, if the default command line parameter of command line parameter and the first installation kit is inconsistent, the first installation kit test crash is determined in test terminal.
In one embodiment of the invention, multiple mini installation kits can be tested in test terminal simultaneously, thus, can further improve testing efficiency.
According to the method for testing of the installation kit of the embodiment of the present invention, test terminal by recalculate alternate file the second check code and and testing server in the first check code of alternate file compare, whether completely can judge the alternate file of downloading from testing server test terminal, improve the accuracy rate of test.
The present invention also proposes the method for testing of another kind of installation kit.
A method of testing for installation kit, comprises the following steps: a, testing server receive the first download request that test terminal sends according to the first installation kit; B, testing server search to obtain according to the first download request the alternate file that the first installation kit is corresponding in testing server, wherein, and command line parameter when alternate file is called for obtaining alternate file; And alternate file is sent to test terminal by c, testing server, so that alternate file is called according to the first installation kit in test terminal, and obtain the command line parameter that alternate file is preserved when called, and obtain test result according to command line parameter.
Fig. 5 is the process flow diagram of the method for testing of installation kit in accordance with another embodiment of the present invention.
As shown in Figure 5, comprise the steps according to the method for testing of the installation kit of the embodiment of the present invention.
Step S501, testing server receives the first download request that test terminal sends according to the first installation kit.
In one embodiment of the invention, the first installation kit is mini installation kit, and the first installation kit can be downloaded from remote server in test terminal.
Step S502, testing server searches to obtain according to the first download request the alternate file that the first installation kit is corresponding in testing server, wherein, command line parameter when alternate file is called for obtaining alternate file.
Particularly, alternate file can be that dummy program or other can obtain self command line parameter when called, and the command line parameter obtaining can be saved in to this locality, wherein alternate file user replaces complete installation kit, and the title of alternate file is consistent with the title of complete installation kit.
Step S503, alternate file is sent to test terminal by testing server, so that alternate file is called according to the first installation kit in test terminal, and obtains the command line parameter of preserving when alternate file is called, and obtain test result according to command line parameter.
In one embodiment of the invention, test terminal judges that whether command line parameter is consistent with the default command line parameter of the first installation kit, if command line parameter is consistent with the default command line parameter of the first installation kit, test terminal determines that the first installation kit tests successfully.Wherein, if the default command line parameter of command line parameter and the first installation kit is inconsistent, the first installation kit test crash is determined in test terminal.
According to the method for testing of the installation kit of the embodiment of the present invention, adopt alternate file to replace complete installation kit corresponding to mi ni installation kit to test, save the test duration on the one hand, reduce the time cost of test, as save the time that download from testing server test terminal, save installation, uninstall simultaneously and restart time of test terminal, adopt on the other hand alternate file can realize continuously uninterrupted test, improved testing efficiency.
In one embodiment of the invention, multiple mini installation kits can be tested in test terminal simultaneously, thus, can further improve testing efficiency.
In one embodiment of the invention, test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.Wherein, the second installation kit is the complete installation kit that mi ni installation kit is corresponding.Particularly, the download address that the second installation kit is downloaded in operation when the first installation kit by test terminal is modified, and makes test terminal according to alternate file in the first installation kit access testing server.For example, the hosts file that test terminal can be revised in the system of test terminal will be redirected to the address of alternate file in testing server for the download address of the second installation kit in the first installation kit.Thus, can greatly shorten the time that the first installation kit is downloaded complete installation kit, save the time of installing and unload complete installation kit, improve testing efficiency.
In one embodiment of the invention, the first installation kit is moved to send the first download request to testing server in test terminal, and obtain the configuration file of alternate file according to the first download request, wherein, configuration file comprises the download address of alternate file, and sends the second download request to obtain alternate file according to download address to testing server.
In one embodiment of the invention, configuration file also comprises the first identifying code of alternate file, the second check code of alternate file is recalculated to obtain in test terminal, test terminal judges that whether the second check code is consistent with the first check code, if and the second check code is consistent with the first check code, calls alternate file according to the first installation kit.Wherein, if the second check code and the first check code are inconsistent, the alternate file that explanation is obtained is not corresponding with the first installation kit, finishes test.Particularly, test terminal by recalculate alternate file the second check code and and testing server in the first check code of alternate file compare, whether completely can judge the alternate file of downloading from testing server test terminal, improve the accuracy rate of test.
In order to realize above-described embodiment, the present invention also proposes the test macro of another kind of installation kit.
A kind of test macro of installation kit, comprise: test terminal and testing server, wherein, test terminal, for obtaining the first installation kit, and from testing server, obtain according to the first installation kit the alternate file that the first installation kit is corresponding, wherein, command line parameter when alternate file is called for obtaining alternate file, and call alternate file according to the first installation kit, and obtain the command line parameter of preserving when alternate file is called, and obtain test result according to command line parameter; Testing server, for obtaining corresponding alternate file according to the first installation kit, and is sent to test terminal by alternate file.
Fig. 6 is the structural representation of the test macro of installation kit according to an embodiment of the invention.
As shown in Figure 6, according to the test macro of the installation kit of the embodiment of the present invention, comprising: test terminal 10 and testing server 20.
Particularly, test terminal 10 is for obtaining the first installation kit, and from testing server 20, obtain the alternate file that the first installation kit is corresponding according to the first installation kit, wherein, command line parameter when alternate file is called for obtaining alternate file, and call alternate file according to the first installation kit, and obtain the command line parameter of preserving when alternate file is called, and obtain test result according to command line parameter.
In one embodiment of the invention, the first installation kit is mini installation kit, and the first installation kit can be downloaded from remote server in test terminal 10.
In one embodiment of the invention, alternate file can be that dummy program or other can obtain self command line parameter when called, and the command line parameter obtaining can be saved in to this locality, wherein alternate file user replaces complete installation kit, and the title of alternate file is consistent with the title of complete installation kit.
In one embodiment of the invention, whether test terminal 10 is also consistent with the default command line parameter of the first installation kit for judging command line parameter, if command line parameter is consistent with the default command line parameter of the first installation kit, test eventually 10 ends determine that the first installation kit tests successfully.Wherein, if the default command line parameter of command line parameter and the first installation kit is inconsistent, whole 10 ends of test are determined the first installation kit test crash.
Testing server 20 is for obtaining corresponding alternate file according to the first installation kit, and alternate file is sent to test terminal 10.
In one embodiment of the invention, multiple mini installation kits can be tested in test terminal 10 simultaneously, thus, can further improve testing efficiency.
According to the test macro of the installation kit of the embodiment of the present invention, adopt alternate file to replace complete installation kit corresponding to mini installation kit to test, save the test duration on the one hand, reduce the time cost of test, as save the time that download from testing server test terminal, save installation, uninstall simultaneously and restart time of test terminal, adopt on the other hand alternate file can realize continuously uninterrupted test, improved testing efficiency.
In one embodiment of the invention, test terminal 10 is also for being redirected to the first installation kit the address of alternate file in testing server 20 for the download address of the second installation kit.In another embodiment of the present invention, the second installation kit is the complete installation kit that mini installation kit is corresponding.Particularly, the download address that the second installation kit is downloaded in operation when the first installation kit by test terminal 10 is modified, and makes test terminal 10 according to alternate file in the first installation kit access testing server 20.For example, the hosts file that test terminal 10 can be revised in 10 systems of test terminal will be redirected to the address of alternate file in testing server 20 for the download address of the second installation kit in the first installation kit.
In one embodiment of the invention, test terminal 10 is also for moving the first installation kit to send the first download request to testing server 20, and obtain the configuration file of alternate file according to the first download request, wherein, configuration file comprises the download address of alternate file, and sends the second download request to obtain alternate file according to download address to testing server 20.
In one embodiment of the invention, configuration file also comprises the first check code of alternate file.
In another embodiment of the present invention, test terminal 10 is also for recalculating to obtain the second check code of alternate file, and judge that whether the second check code is consistent with the first check code, and at the second check code with the first check code when consistent, call described alternate file according to the first installation kit, wherein, if the second check code and the first check code are inconsistent, the alternate file that explanation is obtained is not corresponding with the first installation kit, finishes test.Particularly, test terminal 10 by recalculate alternate file the second check code and and testing server 20 in the first check code of alternate file compare, whether completely can judge the alternate file of downloading from testing server 20 test terminal 10, improve the accuracy rate of test.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, amendment, replacement and modification to these embodiment, scope of the present invention is by claims and be equal to and limit.

Claims (18)

1. a method of testing for installation kit, is characterized in that, comprises the following steps:
A, test terminal obtain the first installation kit;
B, described test terminal obtain alternate file corresponding to described the first installation kit according to described the first installation kit from testing server, wherein, and command line parameter when described alternate file is called for obtaining described alternate file;
Described alternate file is called according to described the first installation kit in c, described test terminal, and obtains the described command line parameter of preserving when described alternate file is called; And
D, described test terminal obtain test result according to described command line parameter.
2. method according to claim 1, is characterized in that, after described step a, also comprises:
Described test terminal will be redirected to the address of alternate file described in described testing server for the download address of the second installation kit in described the first installation kit.
3. method according to claim 1 and 2, is characterized in that, described step b further comprises:
Described the first installation kit is moved to send the first download request to described testing server in described test terminal, and obtains the configuration file of described alternate file according to described the first download request, and wherein, described configuration file comprises the download address of described alternate file; And
Described test terminal sends the second download request to obtain described alternate file according to described download address to described testing server.
4. method according to claim 3, is characterized in that, described configuration file also comprises the first identifying code of described alternate file, after described step b, also comprises;
The second check code of described alternate file is recalculated to obtain in described test terminal;
Described test terminal judges that whether described the second check code is consistent with described the first check code; And
If described the second check code is consistent with described the first check code, continue to carry out described step c.
5. method according to claim 1, is characterized in that, described steps d further comprises:
Described test terminal judges that whether described command line parameter is consistent with the default command line parameter of described the first installation kit; And
If described command line parameter is consistent with the default command line parameter of described the first installation kit, described test terminal determines that described the first installation kit tests successfully.
6. according to the method described in claim 1-5 any one, it is characterized in that, described the first installation kit is mini installation kit, and described the second installation kit is the complete installation kit that described mini installation kit is corresponding.
7. a method of testing for installation kit, is characterized in that, comprises the following steps:
A, testing server receive the first download request that test terminal sends according to the first installation kit;
B, described testing server search to obtain alternate file corresponding to described the first installation kit according to described the first download request in described testing server, wherein, and command line parameter when described alternate file is called for obtaining described alternate file; And
Described alternate file is sent to described test terminal by c, described testing server, so that described alternate file is called according to described the first installation kit in described test terminal, and obtain the described command line parameter of preserving when described alternate file is called, and obtain test result according to described command line parameter.
8. method according to claim 7, is characterized in that, before described step a, also comprises:
Described test terminal will be redirected to the address of alternate file described in described testing server for the download address of the second installation kit in described the first installation kit.
9. according to the method described in claim 7 or 8, it is characterized in that, described step a further comprises:
Described the first installation kit is moved to send the second download request to described testing server in described test terminal, and obtains the configuration file of described alternate file according to described the second download request, and wherein, described configuration file comprises the download address of described alternate file; And
Described test terminal sends the 3rd download request to obtain described alternate file according to described download address to described testing server.
10. method according to claim 9, is characterized in that, also comprises:
The second check code of described alternate file is recalculated to obtain in described test terminal;
Described test terminal judges that whether described the second check code is consistent with described the first check code; And
If described the second check code is consistent with described the first check code, call described alternate file according to described the first installation kit.
11. methods according to claim 7, is characterized in that, also comprise:
Described test terminal judges that whether described command line parameter is consistent with the default command line parameter of described the first installation kit; And
If described command line parameter is consistent with the default command line parameter of described the first installation kit, described test terminal determines that described the first installation kit tests successfully.
12. according to the method described in claim 7-11 any one, it is characterized in that, described the first installation kit is mini installation kit, and described the second installation kit is the complete installation kit that described mini installation kit is corresponding.
The test macro of 13. 1 kinds of installation kits, is characterized in that, comprising: test terminal and testing server, wherein,
Described test terminal, be used for obtaining the first installation kit, and from described testing server, obtain alternate file corresponding to described the first installation kit according to described the first installation kit, wherein, command line parameter when described alternate file is called for obtaining described alternate file, and call described alternate file according to described the first installation kit, and obtain the described command line parameter of preserving when described alternate file is called, and obtain test result according to described command line parameter;
Described testing server, for obtaining corresponding alternate file according to described the first installation kit, and is sent to described test terminal by described alternate file.
14. systems according to claim 13, is characterized in that, described test terminal also for:
The address of alternate file described in described testing server will be redirected to for the download address of the second installation kit in described the first installation kit.
15. according to the system described in claim 13 or 14, it is characterized in that, described test terminal also for:
Move described the first installation kit to send the first download request to described testing server, and obtain the configuration file of described alternate file according to described the first download request, wherein, described configuration file comprises the download address of described alternate file, and sends the second download request to obtain described alternate file according to described download address to described testing server.
16. systems according to claim 15, is characterized in that, described configuration file also comprises the first identifying code of described alternate file, described test terminal also for:
Recalculate to obtain the second check code of described alternate file, and judge that whether described the second check code is consistent with described the first check code, and when consistent, call described alternate file according to described the first installation kit with described the first check code at described the second check code.
17. systems according to claim 13, is characterized in that, described test terminal also for:
Judge that whether described command line parameter is consistent with the default command line parameter of described the first installation kit, and in the time that the default command line parameter of described command line parameter and described the first installation kit is consistent, determine that described the first installation kit tests successfully.
18. according to the system described in claim 13-17 any one, it is characterized in that, described the first installation kit is mini installation kit, and described the second installation kit is the complete installation kit that described mini installation kit is corresponding.
CN201310036301.5A 2013-01-30 2013-01-30 The method of testing of installation kit and system Active CN103970648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310036301.5A CN103970648B (en) 2013-01-30 2013-01-30 The method of testing of installation kit and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310036301.5A CN103970648B (en) 2013-01-30 2013-01-30 The method of testing of installation kit and system

Publications (2)

Publication Number Publication Date
CN103970648A true CN103970648A (en) 2014-08-06
CN103970648B CN103970648B (en) 2016-12-28

Family

ID=51240177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310036301.5A Active CN103970648B (en) 2013-01-30 2013-01-30 The method of testing of installation kit and system

Country Status (1)

Country Link
CN (1) CN103970648B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607992A (en) * 2015-09-29 2016-05-25 网易(杭州)网络有限公司 Application program test method, device and system
CN105912464A (en) * 2016-04-01 2016-08-31 广州唯品会网络技术有限公司 Unit testing method and method
CN106933609A (en) * 2015-12-29 2017-07-07 北京五八信息技术有限公司 The generation method and device of Android application program installation kits

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979414A (en) * 2005-11-29 2007-06-13 珠海金山软件股份有限公司 Method for mounting software through internetwork
US20100211943A1 (en) * 2009-02-18 2010-08-19 Inventec Corporation Method for simplifying process for installing application of windows operating system
US8176321B1 (en) * 2010-05-18 2012-05-08 Google Inc. Safe installation of browser extensions
CN102567063A (en) * 2012-01-20 2012-07-11 飞天诚信科技股份有限公司 Method and device for automatically installing software
CN102646041A (en) * 2011-02-17 2012-08-22 腾讯科技(深圳)有限公司 Software installation method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979414A (en) * 2005-11-29 2007-06-13 珠海金山软件股份有限公司 Method for mounting software through internetwork
US20100211943A1 (en) * 2009-02-18 2010-08-19 Inventec Corporation Method for simplifying process for installing application of windows operating system
US8176321B1 (en) * 2010-05-18 2012-05-08 Google Inc. Safe installation of browser extensions
CN102646041A (en) * 2011-02-17 2012-08-22 腾讯科技(深圳)有限公司 Software installation method and system
CN102567063A (en) * 2012-01-20 2012-07-11 飞天诚信科技股份有限公司 Method and device for automatically installing software

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐燚等: "一种面向软件测试的切换式捕包系统的设计和实现", 《重庆邮电大学学报(自然科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607992A (en) * 2015-09-29 2016-05-25 网易(杭州)网络有限公司 Application program test method, device and system
CN105607992B (en) * 2015-09-29 2019-02-19 网易(杭州)网络有限公司 Applied program testing method, device and system
CN106933609A (en) * 2015-12-29 2017-07-07 北京五八信息技术有限公司 The generation method and device of Android application program installation kits
CN105912464A (en) * 2016-04-01 2016-08-31 广州唯品会网络技术有限公司 Unit testing method and method
CN105912464B (en) * 2016-04-01 2018-08-24 广州品唯软件有限公司 A kind of unit test method and device

Also Published As

Publication number Publication date
CN103970648B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN108399132B (en) Scheduling test method, device and storage medium
CN101826026A (en) Embedded equipment and on-line updating system and method of firmware in embedded equipment
CN102609326A (en) Data downloading processing method and data downloading processing device
CN103973858B (en) The Auto-Test System of mobile terminal
CN110716919A (en) Mock testing method, Mock testing device and storage medium
CN105553738A (en) Heat loading method and device of configuration information and distributed cluster system
CN102646043A (en) Method and device for upgrading mobile terminal software and mobile terminal
CN106055368A (en) Application updating method and device
CN104978253A (en) Target file checking method and apparatus
CN102346673A (en) Method and device for upgrading mobile phone system
CN104918114A (en) Method and device for upgrading operation system
CN104866293A (en) Method and device for extending Android application program function
CN106909480B (en) Cross debugging method and device for embedded system
CN106648762B (en) Method and device for building development environment
CN105045699A (en) Method and system for automatic continuous running of consistency test of mobile terminal and intelligent card
CN106293849B (en) application updating method and terminal
CN103970648A (en) Test method and system of installation package
CN104615471A (en) System upgrading method and device for terminal
CN109002305B (en) Method and system for updating equipment program
CN107621963B (en) Software deployment method, software deployment system and electronic equipment
CN106603289B (en) LMT configuration file smooth upgrading method
CN111399862A (en) Batch installation method and device of Windows missing driver and computer equipment
CN111324365A (en) Method and equipment for upgrading super-converged system
CN105468420B (en) Operating system update method and apparatus
CN106095474A (en) For the method and apparatus updating the software in means of transport

Legal Events

Date Code Title Description
C06 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