Summary of the invention
Fundamental purpose of the present invention is to provide a kind of test environment information processing method, device and system, to solve the test environment poor information problem targetedly recorded in prior art.
To achieve these goals, according to an aspect of the present invention, a kind of test environment information processing method is provided.Test environment information processing method according to the present invention comprises: client selects the type of the test environment information of needs record; Client obtains the test code corresponding with needing the type of the test environment information recorded; And client performs test by test code, obtain the test environment information corresponding with the type of the test environment information needing to record.
Further, perform test in client by test code, after obtaining the test environment information corresponding with the type of the test environment information needing to record, the method also comprises: client display test environment information.
Further, client display test environment information comprises: test environment information is sent to service end by client, and wherein, service end is used for test environment information to be stored in presetting database; Client obtains the test result information after upgrading, wherein, test result information after renewal is that the test environment information got is added on the information obtained in test result information, test result information is stored in presetting database, and test result information is under the test environment that test environment information is corresponding, perform the test result information tested and obtain; And the test result information after client display update.
Further, perform test in client by test code, after obtaining the test environment information corresponding with the type of the test environment information needing to record, the method also comprises: the search condition receiving outside input; And according to search condition, test environment information is shown.
Further, perform test in client by test code, after obtaining the test environment information corresponding with the type of the test environment information needing to record, the method also comprises: receive the pre-conditioned of outside input; And according to pre-conditioned, test environment information is sorted.
To achieve these goals, according to a further aspect in the invention, a kind of test environment information handling system is provided.Test environment information handling system according to the present invention comprises: client, for selecting the type of the test environment information needing record, obtain the test code corresponding with needing the type of the test environment information recorded, perform test by test code, obtain the test environment information corresponding with the type of the test environment information needing to record; And service end, for store need test environment information corresponding to the type of test environment information of record and test environment corresponding to test environment information under perform the test result information tested and obtain.
To achieve these goals, according to a further aspect in the invention, a kind of test environment signal conditioning package is provided.Test environment signal conditioning package according to the present invention comprises: selection unit, for selecting the type of the test environment information needing record; First acquiring unit, for obtaining the test code corresponding with the type of the test environment information needing to record; Second acquisition unit, for performing test by test code, obtains the test environment information corresponding with the type of the test environment information needing to record.
Further, this device also comprises: display unit, for showing test environment information.
Further, display unit comprises: sending module, and for test environment information is sent to service end, wherein, service end is used for test environment information to be stored in presetting database; Acquisition module, for obtaining the test result information after renewal, wherein, test result information after renewal is that the test environment information got is added on the information obtained in test result information, test result information is stored in presetting database, and test result information is under the test environment that test environment information is corresponding, perform the test result information tested and obtain; First display module, for the test result information after display update.
Further, this device also comprises: receiver module, for receiving the search condition of outside input; Second display module, for showing test environment information according to search condition.
For above-mentioned test environment information processing method, owing to be have selected the type of the test environment information needing record by client; Obtain the test code corresponding with needing the type of the test environment information recorded; Perform test by test code, obtain the test environment information corresponding with the type of the test environment information needing to record.By the present invention, solve the test environment poor information problem targetedly recorded in prior art.Achieve the effect obtaining test environment information targetedly.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The application's scheme is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the instructions of the application and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that the embodiment of the application described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Fig. 1 is the process flow diagram according to test environment information processing method of the present invention.As shown in Figure 1, the method comprises following step S101 to step S103:
Step S101, client selects the type of the test environment information needing record.
Client stores the type of all test environment information.In test job, when performing test assignment, client, according to testing scheme and test-types, selects the type of the test environment information needing record.Such as, when carrying out functional test to internet product, client selects the web page interlinkage of test website, and the code file that website is run etc. are as the type needing the test environment information recorded; When executive software compatibility test, client selects operating system version and browser version etc. as the type needing the test environment information recorded.
Step S102, client obtains the test code corresponding with needing the type of the test environment information recorded.
Select the type of the test environment information needing record according to above-mentioned client, client obtains the test code corresponding with needing the type of the test environment information recorded.
Particularly, if client selects the type of the test environment information needing record to be current operation system type, current screen resolution width, current screen resolution height, current screen color depth, the system of obtaining starts to the current time, obtain current system date and time, obtain the sequence number of hard disk first subregion, select to need the operational order of the type of the test environment information of record to be respectively GetOSTyp, GetScreenResolutionX, GetScreenResolutionY, GetColorDep, GetTime, GetDateTime and GetHDDSerialNumber, obtain the part specific code selecting to need the type of the test environment information of record corresponding as follows:
Plugin s=GetSysInfo.GetOSType()
If s="1"
MessageBox " your operating system version is 2000/XP "
Else
MessageBox " your operating system version is 98 "
EndIf
Plugin s=GetSysInfo.GetScreenResolutionX()
MessageBox " your current screen resolution width: " & s
Plugin s=GetSysInfo.GetScreenResolutionY()
MessageBox " your current screen resolution height: " & s
Plugin s=GetSysInfo.GetColorDep()
MessageBox " current screen color depth: " & s
Plugin s=GetSysInfo.GetTime()
xs=int(s/1000/60/60)
fz=int(s/1000/60)-xs*60
m=cint(s/1000)-fz*60-xs*60*60
MessageBox " your operating system is from starting to the current time: " & xs & " hour " & fz & " minute " & m & " second "
Plugin s=GetSysInfo.GetDateTime()
MessageBox " your operating system date and time: " & s
Plugin s=GetSysInfo.GetHDDSerialNumber()
MessageBox " your hard disk serial number is: " & hex (s)
Step S103, client performs test by test code, obtains the test environment information corresponding with the type of the test environment information needing to record.
The client test code corresponding with the type of test environment information needing to record according to above-mentioned acquisition performs test, obtains the test environment information corresponding with the type of the test environment information needing to record.
Such as, the test code according to above-mentioned correspondence performs test, obtains following test environment information: operating system version is XP; Your current screen resolution width: 0.2cm; Your current screen resolution height: 0.2cm; Current screen color depth: the highest 32; Your operating system is from starting to the current time: 3 hours 6 minutes 23 seconds; Your operating system date and time: on March 12nd, 2014 9:00:00; Your hard disk serial number is: WD-WMAM9CX75615PVA200Q5A0FJLB.
Therefore get according to the type of the test environment information of client selection needs record is corresponding the test environment information needing the type of the test environment information of record corresponding.
Preferably, in the test environment information processing method that the embodiment of the present invention provides, the method also comprises: client display test environment information.
Preferably, the test environment information corresponding in order to the type of the test environment information to the needs record obtained shows in time, in the test environment information processing method that the embodiment of the present invention provides, test environment information is sent to service end by client, wherein, service end is used for test environment information to be stored in presetting database; Client obtains the test result information after upgrading, wherein, test result information after renewal is that the test environment information got is added on the information obtained in test result information, test result information is stored in presetting database, and test result information is under the test environment that test environment information is corresponding, perform the test result information tested and obtain; Test result information after client display update.
By the test environment got information is added in test result information, allows test environment information occupy the parameter bit of a test result, be presented in test result information.By the test result that direct viewing client-side shows, can know targetedly and need the test environment information known to make to check that test environment information is more directly perceived simultaneously.
Preferably, in order to the test environment information corresponding to the type of test environment information of the needs record obtained shows in time, in the test environment information processing method that the embodiment of the present invention provides, the method also comprises: the search condition receiving outside input; According to search condition, test environment information is shown.
By the search condition of the state receiving outside input, all test environment information is filtered, filter out the test of all completion statuses, make the test of all completion statuses be presented at client intuitively.
Preferably, in order to the test environment information corresponding to the type of test environment information of the needs record obtained shows in time, in the test environment information processing method that the embodiment of the present invention provides, the method also comprises: receive the pre-conditioned of outside input; And according to pre-conditioned, test environment information is sorted.
Such as, according to above-mentioned filter out the test of all completion statuses after, filter result concentrate test environment information is sorted, check in completed test and contain how many windows7 operating systems, how many windows8 operating systems.The number of windows7 and the windows8 operating system in the test of all completion statuses is made to be presented at client intuitively.
Such as, the browser model in the test environment of record is sorted, under looking at IE11, has the result of how many test cases have failed, have the result success of how many test cases.Successful failed situation under simultaneously contrasting IE10.Obtain the result after the browser model sequence in the test environment of record, just can judge the support situation of the product of current test to IE different editions.Such as, test cases all under IE10 all have failed, and so can judge what current test products version was caused by the mess code of an essence the support of IE10, makes the scheme of dealing with problems and removes to find the mess code causing makeing mistakes.Thus go analytical test result from macroscopic aspect.
The test environment information processing method that the embodiment of the present invention provides, client selects the type of the test environment information needing record; Client obtains the test code corresponding with needing the type of the test environment information recorded; And client performs test by test code, obtain the test environment information corresponding with the type of the test environment information needing to record.By the present invention, solve the test environment poor information problem targetedly recorded in prior art.Achieve the effect obtaining test environment information targetedly.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
The embodiment of the present invention additionally provides a kind of test environment information handling system, it should be noted that, the test environment information handling system of the embodiment of the present invention may be used for performing that the embodiment of the present invention provides for test environment information processing method.Below the test environment information handling system that the embodiment of the present invention provides is introduced.
Fig. 2 is the schematic diagram according to test environment information handling system of the present invention.As shown in Figure 2, this system comprises: client 100 and service end 200.
Client 100, for selecting the type of the test environment information needing record, obtaining the test code corresponding with needing the type of the test environment information recorded, performing test by test code, obtaining the test environment information corresponding with the type of the test environment information needing to record.
Service end 200, for store need test environment information corresponding to the type of test environment information of record and test environment corresponding to test environment information under perform the test result information tested and obtain.
The test environment information handling system that the embodiment of the present invention provides, the type of the test environment information needing record is selected by client 100, obtain the test code corresponding with needing the type of the test environment information recorded, perform test by test code, obtain the test environment information corresponding with the type of the test environment information needing to record; Service end 200 performs the test result information tested and obtain under storing and needing test environment information corresponding to the type of test environment information of record and test environment corresponding to test environment information.By the present invention, solve the test environment poor information problem targetedly recorded in prior art.Achieve the effect obtaining test environment information targetedly.
The embodiment of the present invention additionally provides a kind of test environment signal conditioning package, it should be noted that, the test environment signal conditioning package of the embodiment of the present invention may be used for performing that the embodiment of the present invention provides for test environment information processing method.Below the test environment signal conditioning package that the embodiment of the present invention provides is introduced.
Fig. 3 is the schematic diagram according to test environment signal conditioning package of the present invention.As shown in Figure 3, this device comprises: selection unit 10, first acquiring unit 20 and second acquisition unit 30.
Selection unit 10, for selecting the type of the test environment information needing record.
First acquiring unit 20, for obtaining the test code corresponding with the type of the test environment information needing to record.
Second acquisition unit 30, for performing test by test code, obtains the test environment information corresponding with the type of the test environment information needing to record.
Preferably, in the test environment signal conditioning package that the embodiment of the present invention provides, this device also comprises: display unit, for showing test environment information.
The test environment signal conditioning package that the embodiment of the present invention provides, selects the type of the test environment information needing record by selection unit 10; First acquiring unit 20 obtains the test code corresponding with needing the type of the test environment information recorded; Second acquisition unit 30 performs test by test code, obtains the test environment information corresponding with the type of the test environment information needing to record.By the present invention, solve the test environment poor information problem targetedly recorded in prior art.Achieve the effect obtaining test environment information targetedly.
Preferentially, the test environment information corresponding in order to the type of the test environment information to the needs record obtained shows in time, in the test environment signal conditioning package that the embodiment of the present invention provides, this display unit comprises: sending module, for test environment information is sent to service end, wherein, service end is used for test environment information to be stored in presetting database; Acquisition module, for obtaining the test result information after renewal, wherein, test result information after renewal is that the test environment information got is added on the information obtained in test result information, test result information is stored in presetting database, and test result information is under the test environment that test environment information is corresponding, perform the test result information tested and obtain; First display module, for the test result information after display update.
Preferably, in the test environment signal conditioning package that the embodiment of the present invention provides, this device also comprises: receiver module, for receiving the search condition of outside input; Second display module, for showing test environment information according to search condition.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.