The content of the invention
It is existing to solve it is a primary object of the present invention to provide a kind of test environment information processing method, device and system
There is the test environment poor information recorded in technology targetedly problem.
To achieve these goals, according to an aspect of the invention, there is provided a kind of test environment information processing method.
Included according to the test environment information processing method of the present invention:Client selection needs the type of the test environment information recorded;
The type for the test environment information that client obtains with needs record is corresponding to test code;And client is by testing code
Test is performed, obtains test environment information corresponding with the type for the test environment information that needs record.
Further, test is performed by testing code in client, obtains the test environment information with needing to record
After test environment information corresponding to type, this method also includes:Client shows test environment information.
Further, client shows that test environment information includes:Client sends test environment information to service end,
Wherein, service end is used to test environment information being stored in presetting database;Client obtains the test result letter after renewal
Breath, wherein, the test result information after renewal is that the test environment information addition that will be got obtains in test result information
Information, test result information is stored in presetting database, and test result information is corresponding to test environment information
The test result information that test obtains is performed under test environment;And the test result information after client display renewal.
Further, test is performed by testing code in client, obtains the test environment information with needing to record
After test environment information corresponding to type, this method also includes:Receive the search condition of outside input;And according to searching bar
Part is shown to test environment information.
Further, test is performed by testing code in client, obtains the test environment information with needing to record
After test environment information corresponding to type, this method also includes:Receive the preparatory condition of outside input;And according to default bar
Part is ranked up to test environment information.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of test environment information processing system.
Included according to the test environment information processing system of the present invention:Client, the test environment information for needing to record for selection
Type, test code corresponding with the type for the test environment information that needs record is obtained, test is performed by testing code, obtains
To the corresponding test environment information of the type of test environment information with needing to record;And service end, need to remember for storing
Survey is performed under test environment corresponding to test environment information corresponding to the type of the test environment information of record and test environment information
Try obtained test result information.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of test environment information processor.
Included according to the test environment information processor of the present invention:Selecting unit, for selecting to need the test environment information recorded
Type;First acquisition unit, type for obtaining the test environment information with needing to record is corresponding to test code;Second
Acquiring unit, for performing test by testing code, obtain survey corresponding with the type for the test environment information that needs record
Test ring environment information.
Further, the device also includes:Display unit, for showing test environment information.
Further, display unit includes:Sending module, for test environment information to be sent to service end, wherein, clothes
Business end is used to test environment information being stored in presetting database;Acquisition module, for obtaining the test result letter after updating
Breath, wherein, the test result information after renewal is that the test environment information addition that will be got obtains in test result information
Information, test result information is stored in presetting database, and test result information is corresponding to test environment information
The test result information that test obtains is performed under test environment;First display module, for showing the test result letter after updating
Breath.
Further, the device also includes:Receiving module, for receiving the search condition of outside input;Second display mould
Block, for being shown according to search condition to test environment information.
For above-mentioned test environment information processing method, due to have selected the test environment for needing to record by client
The type of information;Obtain test code corresponding with the type for the test environment information that needs record;Performed by testing code
Test, obtain test environment information corresponding with the type for the test environment information that needs record.By the present invention, solve existing
There is the test environment poor information recorded in technology targetedly problem.Realize and targetedly obtain test environment information
Effect.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
Fig. 1 is the flow chart according to the test environment information processing method of the present invention.As shown in figure 1, this method is included such as
Under step S101 to step S103:
Step S101, client selection need the type of the test environment information recorded.
The type of all test environment information is stored with client.In test job, when performing test assignment, client
According to testing scheme and test-types, selection needs the type of the test environment information recorded at end.For example, to internet product
When carrying out functional test, the web page interlinkage, the code file of website operation etc. of client selection test website, which is used as, to be needed to remember
The type of the test environment information of record;When performing software compatibility test, client selection operation system version and browser
The type as the test environment information for needing to record such as version.
Step S102, the type for the test environment information that client obtains with needs record is corresponding to test code.
The type for the test environment information for needing to record according to the selection of above-mentioned client, client are obtained with needing what is recorded
Test code corresponding to the type of test environment information.
Specifically, if the type of test environment information that client selection needs to record be current operation system type,
When current screen resolution width, current screen resolution height, current screen color depth, the system of obtaining start to current
Between, obtain current system date and time, obtain the sequence number of first subregion of hard disk, selection need record test environment letter
The operational order of the type of breath be respectively GetOSTyp, GetScreenResolutionX, GetScreenResolutionY,
GetColorDep, GetTime, GetDateTime and GetHDDSerialNumber, obtain the test wrapper that selection needs to record
Part specific code is as follows corresponding to the type of environment information:
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 ()
Your current screen resolution widths of MessageBox ":"&s
Plugin s=GetSysInfo.GetScreenResolutionY ()
Your current screen resolution heights of MessageBox ":"&s
Plugin s=GetSysInfo.GetColorDep ()
MessageBox " current screen color depths:"&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
Your operating systems of MessageBox " are from starting to the current time:" &xs& " hour " &fz& " minute " &m& "
Second "
Plugin s=GetSysInfo.GetDateTime ()
Your operating system date and times of MessageBox ":"&s
Plugin s=GetSysInfo.GetHDDSerialNumber ()
Your hard disk serial numbers of MessageBox " are:"&hex(s)
Step S103, client perform test by testing code, obtain the class of the test environment information with needing to record
Test environment information corresponding to type.
Client performs survey according to above-mentioned acquisition test code corresponding with the type for the test environment information that needs record
Examination, obtain test environment information corresponding with the type for the test environment information that needs record.
For example, performing test according to above-mentioned corresponding test code, following test environment information is obtained:Operating system version
It is XP;Your current screen resolution width:0.2cm;Your current screen resolution height:0.2cm;Current screen color is deep
Degree:Highest 32;Your operating system is from starting to the current time:23 seconds 6 minutes 3 hours;Your operating system date and
Time:12 days 9 March in 2014:00:00;Your hard disk serial number is:WD-WMAM9CX75615PVA200Q5A0FJLB.
Therefore the type for the test environment information for needing to record according to client selection accordingly gets the survey for needing to record
Test environment information corresponding to the type of test ring environment information.
Preferably, in test environment information processing method provided in an embodiment of the present invention, this method also includes:Client
Show test environment information.
Preferably, in order to which test environment information corresponding to the type of the test environment information recorded to the needs of acquisition is carried out
Display in time, in test environment information processing method provided in an embodiment of the present invention, client sends test environment information
To service end, wherein, service end is used to test environment information being stored in presetting database;Client obtains the survey after renewal
Test result information, wherein, the test result information after renewal is that the test environment information addition that will be got is believed in test result
The information obtained in breath, test result information are stored in presetting database, and test result information is believed in test environment
The test result information that test obtains is performed under test environment corresponding to breath;Test result information after client display renewal.
Added by the test environment information that will be got in test result information, allow test environment information to occupy one
The parameter bit of test result, is shown in test result information.The test result shown by being directly viewable in client, can be with
Targetedly know the test environment information that needs are known while to check that test environment information is more directly perceived.
Preferably, in order to which test environment information corresponding to the type of the test environment information recorded to the needs of acquisition is carried out
Display in time, in test environment information processing method provided in an embodiment of the present invention, this method also includes:Receive outside input
Search condition;Test environment information is shown according to search condition.
All test environment information are filtered by the search condition for the state for receiving outside input, filtered out all
The test of completion status, the test of all completion statuses is set intuitively to be shown in client.
Preferably, in order to which test environment information corresponding to the type of the test environment information recorded to the needs of acquisition is carried out
Display in time, in test environment information processing method provided in an embodiment of the present invention, this method also includes:Receive outside input
Preparatory condition;And test environment information is ranked up according to preparatory condition.
For example, after according to the above-mentioned test for filtering out all completion statuses, concentrated in filter result to test environment
Information is ranked up, and is checked in completed test and is contained how many individual windows7 operating systems, how many individual windows8 behaviour
Make system.So that the number of the windows7 and windows8 operating systems in the test of all completion statuses intuitively shows
Show in client.
For example, being ranked up to the browser model in the test environment of record, look at how many test is used under IE11
The result of example have failed, and the result of how many test case is successful.The situation that success fails under IE10 is contrasted simultaneously.Obtain
The result after the sequence of browser model in the test environment of record, with regard to the product that can judge currently to test to IE difference versions
This support situation.For example, test case all under IE10 all have failed, then may determine that current test product version
This support to IE10 makes the unrest that solution to problem looks for causing error as caused by the mess code of an essence
Code.So as to go to analyze test result from macroscopic aspect.
Test environment information processing method provided in an embodiment of the present invention, client selection need the test environment letter recorded
The type of breath;The type for the test environment information that client obtains with needs record is corresponding to test code;And client is led to
Cross test code and perform test, obtain test environment information corresponding with the type for the test environment information that needs record.Pass through
The present invention, solves the test environment poor information recorded in the prior art targetedly problem.Realize and targetedly obtain
Take the effect of test environment information.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiment of the present invention additionally provides a kind of test environment information processing system, it is necessary to which explanation, the present invention are implemented
Example test environment information processing system can be used for perform the embodiment of the present invention provided be used for test environment information processing
Method.Test environment information processing system provided in an embodiment of the present invention is introduced below.
Fig. 2 is the schematic diagram according to the test environment information processing system of the present invention.As shown in Fig. 2 the system includes:Visitor
Family end 100 and service end 200.
Client 100, the type for the test environment information for needing to record for selection, obtain the test wrapper with needing to record
Test code, test is performed by testing code corresponding to the type of environment information, obtains the test environment information with needing to record
Type corresponding to test environment information.
Service end 200, for storing test environment information and survey corresponding to the type for the test environment information for needing to record
The test result information that test obtains is performed under test environment corresponding to test ring environment information.
Test environment information processing system provided in an embodiment of the present invention, the survey for needing to record by the selection of client 100
The type of test ring environment information, test code corresponding with the type for the test environment information that needs record is obtained, by testing generation
Code performs test, obtains test environment information corresponding with the type for the test environment information that needs record;Service end 200 stores
Need under test environment corresponding to test environment information corresponding to the type of test environment information that records and test environment information
Perform the test result information that test obtains.By the present invention, solves the test environment poor information recorded in the prior art
Targetedly problem.Realize the effect for targetedly obtaining test environment information.
The embodiment of the present invention additionally provides a kind of test environment information processor, it is necessary to which explanation, the present invention are implemented
Example test environment information processor can be used for perform the embodiment of the present invention provided be used for test environment information processing
Method.Test environment information processor provided in an embodiment of the present invention is introduced below.
Fig. 3 is the schematic diagram according to the test environment information processor of the present invention.As shown in figure 3, the device includes:Choosing
Select unit 10, first acquisition unit 20 and second acquisition unit 30.
Selecting unit 10, the type for the test environment information for needing to record for selection.
First acquisition unit 20, type for obtaining the test environment information with needing to record is corresponding to test code.
Second acquisition unit 30, for performing test by testing code, obtain the test environment information with needing to record
Type corresponding to test environment information.
Preferably, in test environment information processor provided in an embodiment of the present invention, the device also includes:Display is single
Member, for showing test environment information.
Test environment information processor provided in an embodiment of the present invention, the survey for needing to record by the selection of selecting unit 10
The type of test ring environment information;The type for the test environment information that first acquisition unit 20 obtains with needs record is corresponding to test generation
Code;Second acquisition unit 30 performs test by testing code, obtains corresponding with the type for the test environment information that needs record
Test environment information.By the present invention, solves the test environment poor information recorded in the prior art targetedly problem.
Realize the effect for targetedly obtaining test environment information.
Preferentially, in order to which test environment information corresponding to the type of the test environment information recorded to the needs of acquisition is carried out
Display in time, in test environment information processor provided in an embodiment of the present invention, the display unit includes:Sending module,
For test environment information to be sent to service end, wherein, service end is used to test environment information being stored in presetting database
In;Acquisition module, for obtaining the test result information after updating, wherein, the test result information after renewal is to get
The information that is obtained in test result information of test environment information addition, test result information is stored in presetting database,
And test result information is that the test result information that test obtains is performed under test environment corresponding to test environment information;The
One display module, for showing the test result information after updating.
Preferably, in test environment information processor provided in an embodiment of the present invention, the device also includes:Receive mould
Block, for receiving the search condition of outside input;Second display module, for being carried out according to search condition to test environment information
Display.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.