CN109902025A - Test environment Chinese part processing method, device, storage medium and computer equipment - Google Patents
Test environment Chinese part processing method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN109902025A CN109902025A CN201910228221.7A CN201910228221A CN109902025A CN 109902025 A CN109902025 A CN 109902025A CN 201910228221 A CN201910228221 A CN 201910228221A CN 109902025 A CN109902025 A CN 109902025A
- Authority
- CN
- China
- Prior art keywords
- file
- information
- test environment
- atomic service
- test
- 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.)
- Pending
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
This application involves a kind of test environment Chinese part processing method, device, computer readable storage medium and computer equipments, which comprises obtains the file attribute information of input;Corresponding first object the file information is obtained from the first test environment according to file attribute information, and obtains corresponding second file destination information from the second test environment;By first object the file information and the second file destination information matches, test environmental labels corresponding to differential file information and differential file information are obtained.Scheme provided by the present application can with the problem of assignment test environment and improve testing efficiency.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of test environment Chinese part processing method, device, meter
Calculation machine readable storage medium storing program for executing and computer equipment.
Background technique
With the development of computer technology, there is software test.Software test refers to operation or measures some software system
Whether the process of system meets defined demand its object is to checking system or understands fully the difference between expected results and actual result
Not.And at this point, test environment is particularly important.
Environment is consistent with test environment on line to make atomic service is identical but environment is different two application programs, on line
File timing would generally be pushed to the corresponding server of test environment by the corresponding server of environment, to complete the synchronization of environment.
However, when environment when something goes wrong, traditional method, which is difficult to position test environment environment on failure or line has occurred, to be occurred
Failure, it is difficult to so as to cause testing efficiency not high where orientation problem.
Summary of the invention
Based on this, it is necessary to which the not high technical problem of testing efficiency provides a kind of test environment Chinese part processing method, dress
It sets, computer readable storage medium and computer equipment.
A kind of test environment Chinese part processing method, comprising: obtain the file attribute information of input;Believed according to file attribute
Breath obtains corresponding first object the file information from the first test environment, and obtains from the second test environment corresponding the
Two file destination information;By first object the file information and the second file destination information matches, differential file information and difference are obtained
Test environmental labels corresponding to different the file information.
A kind of test environment Chinese part processing unit, the device include: the first acquisition module, for obtaining the file of input
Attribute information;Second obtains module, for obtaining corresponding first object from the first test environment according to file attribute information
The file information, and corresponding second file destination information is obtained from the second test environment;Matching module is used for the first mesh
The file information and the second file destination information matches are marked, test wrapper corresponding to differential file information and differential file information is obtained
Border mark.
A kind of computer readable storage medium, is stored with computer program, when which is executed by processor, makes
It obtains processor and executes following steps: obtaining the file attribute information of input;According to file attribute information from the first test environment
Corresponding first object the file information is obtained, and obtains corresponding second file destination information from the second test environment;It will
First object the file information and the second file destination information matches, obtain corresponding to differential file information and differential file information
Test environmental labels.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, computer program
When being executed by processor, so that processor executes following steps: obtaining the file attribute information of input;According to file attribute information
Corresponding first object the file information is obtained from the first test environment, and obtains corresponding second from the second test environment
File destination information;By first object the file information and the second file destination information matches, differential file information and difference are obtained
Test environmental labels corresponding to the file information.
Above-mentioned test environment Chinese part processing method, device, computer readable storage medium and computer equipment obtain defeated
The file attribute information entered obtains corresponding first object the file information from the first test environment according to file attribute information,
And corresponding second file destination information is obtained from the second test environment;By first object the file information and the second target text
Part information matches can directly compare the file destination information in two test environment;Obtain the differential file letter in test environment
Test environmental labels corresponding to breath and differential file information can determine that the difference of test environment, according to differential file information energy
The problem of enough assignment test environment, improves testing efficiency without considering environment on line.
Detailed description of the invention
Fig. 1 is the applied environment figure that environment Chinese part processing method is tested in one embodiment;
Fig. 2 is the applied environment figure that environment Chinese part processing method is tested in another embodiment;
Fig. 3 is the flow diagram that environment Chinese part processing method is tested in one embodiment;
Fig. 4 is the applied environment figure for obtaining file destination information in one embodiment in one embodiment;
Fig. 5 is the flow diagram that the file attribute information of input is obtained in one embodiment;
Fig. 6 (a) is the entrance schematic diagram that the file tested in environment in one embodiment compares interface;
Fig. 6 (b) is the interface schematic diagram of parameter input interface in one embodiment;
The interface schematic diagram of differential file information in Fig. 6 (c) one embodiment;
Fig. 7 is to illustrate the process of first object the file information and the second file destination information matches in one embodiment
Figure;
Fig. 8 is the timing diagram that environment Chinese part processing method is tested in one embodiment;
Fig. 9 is the structural block diagram that environment Chinese part processing unit is tested in one embodiment;
Figure 10 is the structural block diagram that environment Chinese part processing unit is tested in another embodiment;
Figure 11 is the structural block diagram of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
Fig. 1 is the applied environment figure that environment Chinese part processing method is tested in one embodiment.Wherein, the first test environment
Corresponding server 110 is connected by network server 120 corresponding with the second test environment.First test environment is corresponding
Server 110 and the corresponding server 120 of the second test environment can use independent server either multiple server groups
At server cluster realize, and various operating systems can be based on, for example, Windows operating system, Linux operation system
System or Android operation system etc..Documentor can be applied in the corresponding server 110 of the first test environment,
It can be applied in the corresponding server 120 of the second test environment.
Fig. 2 is the applied environment figure that environment Chinese part processing method is tested in another embodiment.Wherein, the first test wrapper
Border 210 is connected by network with server where documentor, and the second test environment 220 passes through network and file process
Server 230 where program is connected.Server 230 where documentor can pass through network or interface and terminal 240
It is connected.Server 230 can be with independently where first test environment 220, second tests environment 220 and documentor
The server cluster of server either multiple servers composition realize.Terminal 240 specifically can be terminal console or shifting
Dynamic terminal, mobile terminal specifically can be at least one of mobile phone, tablet computer, laptop etc..Documentor is also
It can be applied in terminal 240.First test environment 220, second tests server 230 where environment 220, documentor
Various operating systems can be based on terminal 240.
As shown in figure 3, in one embodiment, providing a kind of test environment Chinese part processing method.The present embodiment master
To be applied to the corresponding server 110 of the first test environment in above-mentioned Fig. 1 or the documentor institute in Fig. 2 in this way
It is illustrated in server 230.Test environment in the embodiment of the present application is not limited to two test environment, can also be three
And three or more tested environment.Referring to Fig. 3, which specifically comprises the following steps:
Step 302, the file attribute information of input is obtained.
Wherein, file attribute information refers to the information for distinguishing file attribute.For example, specifically being wrapped in file attribute information
Include the corresponding test environmental labels of the first test environment and the corresponding test environmental labels of the second test environment.File attribute information
It can also include log-on message, which may include username and password, port, file path, the i.e. mesh of file destination
Record at least one of address.Test environmental labels are the unique identifications for distinguishing tests environment.Testing environmental labels can be by
One of number, letter, symbol or a variety of compositions.Such as test environmental labels specifically can be IP (Internet
Protocol, Internet protocol) address, MAC (Media Access Control, media access control) address, computer set
Standby model or preconfigured test environment serial number etc..
Specifically, when receiving file comparison instruction, documentor matches corresponding view functions, switches to pair
The parameter input interface answered.Documentor can obtain the file attribute information of input from the parameter input interface of terminal.
Step 304, corresponding first object the file information is obtained from the first test environment according to file attribute information, with
And corresponding second file destination information is obtained from the second test environment.
Wherein, test environment refers to complete the computer hardware of Experience of Software Testing Work, software and the general name of data.Mesh
Mark file is the file in test environment, specifically can be shared library file, common gateway interface file, hypertext label language
Say at least one of file, extensible markup language document, text document etc..File destination information can specifically include target
At least one of corresponding timestamp of file name, file destination.File destination information can also include target file type
Deng.It include at least one first object file in first test environment.It include at least one second target in second test environment
File.The sequencing for obtaining the second file destination information of first object the file information and acquisition is unlimited.
Specifically, server where documentor is wrapped in file attribute information according to the file attribute information of input
Include test environmental labels, by the long-range connecting test environmental labels of Sever Connect function it is corresponding first test environment and
Second test environment.Documentor obtains corresponding first object text according to file attribute information from the first test environment
Part information and from second test environment in obtain corresponding second file destination information.
In the present embodiment, file attribute information can also include file path.Documentor can be according to the of input
The corresponding file path of one test environmental labels, obtains first object the file information from the first test environment, i.e. acquisition this article
First object the file information under the specified file in part path.Documentor is according to the second of input the test environmental labels
Corresponding file path obtains the second file destination information, the i.e. specified text in acquisition this document path from the second test environment
The second file destination information under part folder.
Step 306, by first object the file information and the second file destination information matches, differential file information and difference are obtained
Test environmental labels corresponding to different the file information.
Wherein, differential file information refers to different file in first object the file information and the second file destination information
Information.Such as differential file information be first test environment in but not second test environment in the file information, second
Test environment in but not first test environment in the file information, first test environment in and second test environment in but
At least one of the file information that file has differences.
Specifically, documentor matches first object the file information with the second file destination information, when depositing
Can not matched file destination information when, obtain test environment corresponding to differential file information and the differential file information
Mark.That is, documentor obtains differential file information and differential file information is located in the first test environment or difference
The file information is located in the second test environment.
Above-mentioned test environment Chinese part processing method, obtains the file attribute information of input, according to file attribute information from
Corresponding first object the file information is obtained in first test environment, and obtains corresponding second mesh from the second test environment
Mark the file information;First object the file information and the second file destination information matches can be directly compared in two test environment
File destination information;Obtain test environment mark corresponding to the differential file information and differential file information in test environment
Know, determine test environment difference, according to differential file information can assignment test environment the problem of, without considering ring on line
Border, and without obtaining file destination content, improve testing efficiency.
It in one embodiment, include at least one atomic service file name in the first object the file information, this
It include at least one atomic service file name in two file destination information;
By first object the file information and the second file destination information matches, differential file information and differential file letter are obtained
The corresponding test environmental labels of breath, comprising:
By the atomic service in the atomic service file name and the second file destination information in first object the file information
File name is matched, obtain can not matched atomic service file name, and can not matched atomic service filename
Claim corresponding test environmental labels;Can not matched atomic service file name be included in first object the file information and not
Atom clothes in the second file destination information, and in the second file destination information and not in first object the file information
Business file name.
Wherein, atomic service is also referred to as underlying services, it refers to that minimum service cannot be got again, but cannot individually make
With the logic of general atomic service all has been carried out, and does not need the function of calling other services to realize oneself.Atomic service text
Part refers to file relevant to atomic service.Atomic service file specifically can be shared library file or DLL (Dynamic
Link Library, dynamic link library) file.Atomic service file name is unique mark for distinguishing atomic service file
Know.Atomic service file name by one of text, number, letter or a variety of can form.In first object the file information
It may include one, two or more atomic service file names.It may include one in second file destination information, two or more
Atomic service file name.
Specifically, Dircompare function or diff instruction can be used by first object the file information in documentor
In atomic service file name matched one by one with the atomic service file name in the second file destination information, can be obtained
The atomic service file name that matches and can not matched atomic service file name, and can not matched atomic service text
Test environmental labels corresponding to part title.Wherein, Dircompare function can be used for comparing the file information under specified directory.
Diff instruction can be used for comparing the file information under specified directory or compare the content of text document.This can not matched atom
Service document title includes in the first object the file information and not atomic service filename in the second file destination information
Claim.This can not matched atomic service file name further include not believing in first object file in the second file destination information but not
Atomic service file name in breath.
Above-mentioned test environment Chinese part processing method, atomic service file name is matched, and obtaining can not be matched
Atomic service file name and corresponding test environmental labels, can not matched atomic service file name be included in first
In file destination information and not in the second file destination information, and in the second file destination information and not in first object
Atomic service file name in the file information can obtain the atomic service file name increased newly in each test environment, thus
Quick positioning question improves testing efficiency.
In one embodiment, may include in the first object the file information at least one atomic service file name and
Corresponding atomic service file type.It may include at least one service document title and correspondence in the second file destination information
Atomic service file type.By first object the file information and the second file destination information matches, differential file information is obtained
And test environmental labels corresponding to differential file information, it can also include: by the atomic service in first object the file information
File type is matched with the atomic service file type in the second file destination information, the atomic service text to be matched
The corresponding file destination information of part type;Then according to the corresponding file destination information of atomic service file type to match, hold
It is about to the atomic service file name in first object the file information and the atomic service filename in the second file destination information
The step of title is matched.
Specifically, documentor obtains corresponding first object the file information and the second file destination information.Mesh
Marking in the file information may include multiple file types.Then Dircompare function or diff instruction can be used in documentor
The atomic service file type of the atomic service file type of first object the file information and the second file destination information is carried out
Matching, the available corresponding file destination information of atomic service file type to match.File type can then be divided
Class, such as by the file type in the file type and the second file destination information in first object the file information be shared library
The atomic service file of file is classified as one kind.So documentor can file destination information to same file type, it is right
Atomic service file name and timestamp etc. are matched.
Above-mentioned test environment Chinese part processing method, by the atomic service file type and the in first object the file information
Atomic service file type in two file destination information is matched, and can be believed according to atomic service file type file destination
Breath is classified, to carry out subsequent processing, improves testing efficiency.
In one embodiment, test environment Chinese part processing method further include: to the first test environment, the second test
At least one of environment test environment sends this can not matched atomic service file name and can not matched atomic service
Test environmental labels corresponding to file name;Wherein, this can not matched atomic service file name and can not matched original
Test environmental labels corresponding to sub-services file name are used to indicate in the first test environmental renewal first object the file information
Corresponding atom clothes in corresponding atomic service file content, and instruction the second test the second file destination of environmental renewal information
Business file content.
Specifically, can not matched atomic service file name be atomic service file exclusive in the first test environment
Exclusive atomic service file name in title or the second test environment.Documentor can be to the first test environment, second
Testing that at least one of environment test environment sends can not matched atomic service title and can not matched atomic service text
Test environmental labels corresponding to part title.Then at least one of the first test environment, second test environment test environment connect
Receive can not matched atomic service title and can not after test environmental labels corresponding to matched atomic service file name,
Corresponding atomic service file content can be obtained from the corresponding test environment of test environmental labels.First test environment, second
Testing at least one of environment test environment increase can not the corresponding atomic service content of matched atomic service title.
Above-mentioned test environment Chinese part processing method is surveyed at least one of the first test environment, the second test environment
Test ring border is sent can not matched atomic service file name and can not test corresponding to matched atomic service file name
Environmental labels, and it is used to indicate test environmental renewal atomic service file content, atomic service file content pair can be realized automatically
Together, testing efficiency is improved.
It in one embodiment, include at least one atomic service file name and corresponding in first object the file information
Timestamp includes at least one atomic service file name and corresponding timestamp in the second file destination information;
By first object the file information and the second file destination information matches, differential file information and differential file letter are obtained
The corresponding test environmental labels of breath, comprising:
Atomic service in the atomic service file name and the second file destination information in first object the file information
When file name matches, the corresponding timestamp of atomic service file name to match is compared, two times are obtained
The newest corresponding atomic service file name of timestamp and the corresponding atomic service file name institute of newest timestamp are right in stamp
The test environmental labels answered.
Wherein, timestamp is for uniquely identifying a certain moment.Each atomic service file name have one it is corresponding
Timestamp.
Specifically, when documentor is instructed using Dircompare function or diff in the second file destination information
In find atomic service file name identical with the atomic service file name in first object the file information, or first
Atomic service file name identical with the atomic service title in the second file destination information is found in file destination information
When, the corresponding timestamp of identical atomic service file name is compared, newest timestamp pair in two timestamps is obtained
Test environmental labels corresponding to the atomic service file name and the atomic service file name answered.Documentor
It can also obtain the newest timestamp.
In the present embodiment, such as documentor obtains the corresponding presetting digit capacity of atomic service file name to match
Timestamp, comparing atomic service file identification in the timestamp such as first object the file information of the presetting digit capacity is A_
Service.so.20180612195906 indicates that the time is on 06 12nd, 2018 wherein 20180612195906 be timestamp
59 divide 06 second when 19.Atomic service file identification in second file destination information is A_
Service.so.20180612215906, i.e., 20180612215906 be timestamp, and the expression time is 12 days 21 June in 2018
When 59 divide 06 second.So the two atomic service file names are identical, the atomic service filename in the second file destination information
Claim corresponding timestamp timestamp more corresponding than atomic service file name in first object the file information new, then obtains the second mesh
The atomic service file name A_service.so and corresponding second test environmental labels in the file information are marked, it can be with
Obtaining the newest timestamp is 20180612215906.
Above-mentioned test environment Chinese part processing method carries out the corresponding timestamp of the atomic service file name to match
Comparison, obtains the newest corresponding atomic service file name of timestamp and the corresponding original of newest timestamp in two timestamps
Test environmental labels corresponding to sub-services file name can obtain in the essentially identical test environment of bottom atomic service file
To the difference of atomic service file name, and the test environment where newest atomic service file is obtained, improves testing efficiency.
In one embodiment, the corresponding timestamp of atomic service file name to match is compared, obtains two
The corresponding atomic service file name of newest timestamp in a timestamp, comprising: obtain the atomic service file name to match
The timestamp of corresponding presetting digit capacity;Compare the timestamp of the presetting digit capacity;When the timestamp of the presetting digit capacity is identical, obtain
Atomic service file name and timestamp atomic service file name all the same;When the timestamp of the presetting digit capacity is not identical
When, determine atomic service file name corresponding to newest timestamp.
Wherein, the timestamp of presetting digit capacity is at least 8 time, can also be 9,10,11,12 ... 14
Deng.
Specifically, documentor obtains the time of the corresponding presetting digit capacity of atomic service file name to match
Stamp, compares the timestamp of the presetting digit capacity one by one.When the timestamp of the presetting digit capacity is identical, documentor obtains atom
Service document title and timestamp atomic service file name all the same.When the timestamp of the presetting digit capacity is not identical, really
Determine the corresponding atomic service file name of newest timestamp.
Above-mentioned test environment Chinese part processing method obtains the corresponding presetting digit capacity of atomic service file name to match
Timestamp, compare the timestamp of the presetting digit capacity, when the timestamp of the presetting digit capacity is identical, obtain atomic service filename
Title and timestamp atomic service file name all the same, then do not need all the same to the atomic service file name and timestamp
Atomic service file name deal with;When the timestamp of the presetting digit capacity is not identical, the corresponding original of newest timestamp is determined
Sub-services file name then obtains the corresponding difference atomic service the file information of timestamp, improves testing efficiency.
In one embodiment, test environment Chinese part processing method further include: to the first test environment, the second test
At least one of environment tests environment and sends the newest corresponding atomic service file name of timestamp and newest timestamp pair
Test environmental labels corresponding to the atomic service file name answered;The corresponding atomic service file name of newest timestamp and
Test environmental labels are used to indicate corresponding atomic service file content in the first test environmental renewal first object the file information,
And corresponding atomic service file content in instruction the second test the second file destination of environmental renewal information.
Specifically, documentor is sent out at least one of the first test environment, the second test environment test environment
It send corresponding to the corresponding atomic service file name of newest timestamp and the corresponding atomic service file name of newest timestamp
Test environmental labels.Wherein, the corresponding atomic service file name of newest timestamp and corresponding test environmental labels
It is used to indicate corresponding atomic service file content in the first test environment modifications or substitutions first object the file information, and is referred to
Show corresponding atomic service file content in second test environment modifications or substitutions the second file destination information.
In the present embodiment, when documentor is located in the first test environment, when the first test environment obtains newest
Between stab corresponding atomic service file name and corresponding test environmental labels.When the corresponding test environment of the newest timestamp
When mark is the environmental labels of the first test environment, the first test environment can not be dealt with.Alternatively, working as the newest timestamp pair
When the test environmental labels answered are the environmental labels of the first test environment, documentor is not needed to the first test environment
Send the corresponding atomic service file name of newest timestamp and the corresponding test environmental labels of newest timestamp.When the test
When in environmental labels including the environmental labels of the second test environment, the first test environment can obtain newest from the second test environment
The corresponding atomic service file of timestamp.
Similarly, when documentor is located in the second test environment, the second test environment obtains newest timestamp
Corresponding atomic service file name and corresponding test environmental labels.When the corresponding test environmental labels of the newest timestamp
When being the environmental labels of the first test environment, the second test environment can not be dealt with.Alternatively, when the newest timestamp is corresponding
When test environmental labels are the environmental labels of the second test environment, documentor does not need to send to the second test environment
The newest corresponding atomic service file name of timestamp and the corresponding test environmental labels of newest timestamp.When the test environment
When in mark including the environmental labels of the first test environment, the second test environment can obtain the newest time from the first test environment
Stab corresponding atomic service file.
In the present embodiment, when documentor is located at server 230, documentor can be to the first test environment
The corresponding atomic service file name of newest timestamp is sent, the first test environment receives newest timestamp corresponding second and surveys
Atomic service file name in test ring border.Then it is newest can to obtain this from the second test environment by network for the first test environment
The corresponding atomic service file of timestamp.Then the first test environment is literary by the atomic service to match in the first test environment
The corresponding atomic service file modification of part title replaces with the atom clothes that the newest timestamp corresponding second is tested in environment
Business file name.
Above-mentioned test environment Chinese part processing method sends newest timestamp to the first test environment or the second test environment
Corresponding atomic service file name;The corresponding atomic service file name of newest timestamp is used to indicate the first test environment more
Corresponding atomic service file content in new first object the file information, and instruction the second test the second target of environmental renewal text
Corresponding atomic service file content in part information can make the first test environment and second test environment for original atomic service
File content replaces with the corresponding atomic service file content of newest timestamp, tests the first test environment and second in environment
Atomic service file content be newest atomic service file content, and reduce misoperation probability, improve testing efficiency.
In one embodiment, test environment Chinese part processing method further include: to the first test environment, the second test
At least one of environment test environment send can not matched atomic service file name, can not matched atomic service file
The corresponding atomic service file name of test environmental labels, newest timestamp corresponding to title and newest timestamp are corresponding
Atomic service file name corresponding to test environmental labels;Can not matched atomic service file name, can not be matched
The corresponding atomic service file name of test environmental labels, newest timestamp corresponding to atomic service file name and test
Environmental labels are used to indicate corresponding atomic service file content in the first test environmental renewal first object the file information, and
Corresponding atomic service file content in instruction the second test the second file destination of environmental renewal information.
Above-mentioned test environment Chinese part processing method is surveyed at least one of the first test environment, the second test environment
Test ring border send can not matched atomic service file name, can not test wrapper corresponding to matched atomic service file name
Border mark, the corresponding atomic service file name of newest timestamp and the corresponding atomic service file name of newest timestamp
Corresponding test environmental labels, and indicate the corresponding atomic service file content of test environmental renewal, the first test wrapper can be made
File content in border and the second test environment is completely the same, realizes the automatic aligning of file content, improves testing efficiency.
In one embodiment, test environment Chinese part processing method further include: according to the corresponding original of newest timestamp
It is corresponding that test environmental labels corresponding to sub-services file name obtain the corresponding atomic service file name of newest timestamp
Atomic service file content;The newest time is sent at least one of the first test environment, the second test environment test environment
Stab the corresponding corresponding atomic service file content of atomic service file name and the corresponding atomic service text of newest timestamp
Test environmental labels corresponding to part title;The corresponding atomic service text of the corresponding atomic service file name of the newest timestamp
Part content is used to indicate corresponding atomic service file content in the first test environmental renewal first object the file information, and refers to
Show corresponding atomic service file content in second test environmental renewal the second file destination information.
Specifically, documentor test wrapper according to corresponding to the corresponding atomic service file name of newest timestamp
Border mark obtains the corresponding atomic service file of the corresponding atomic service file name of newest timestamp.Such as file routine obtains
After the corresponding atomic service file name of newest timestamp, newest timestamp is obtained from corresponding environment according to the environmental labels
The corresponding atomic service file content of corresponding atomic service file name.Documentor tests environment, second to first
At least one of test environment test environment sends the atomic service file content and corresponding test environmental labels.Then
At least one of first test environment, the second test environment test environment is corresponding by the atomic service file name to match
Atomic service up-to-date is the corresponding atomic service file content of newest timestamp.
Above-mentioned test environment Chinese part processing method obtains the corresponding atomic service file content of newest timestamp, to
At least one test environment sends the atomic service file content, atomic service text in one test environment, the second test environment
Part content is used to indicate corresponding atomic service file content in the first test environmental renewal first object the file information, and refers to
Show corresponding atomic service file content in second test environmental renewal the second file destination information, can make the first test environment,
Second test at least one of environment test environment directly acquires atomic service file content, without from another test wrapper
It is obtained in border, improves testing efficiency.
In one embodiment, atomic service file name is stored with list mode;It will be in first object the file information
Atomic service file name is matched with the atomic service file name in the second file destination information, comprising: from the first mesh
Column corresponding to atomic service file name and the second file destination information are obtained one by one in list corresponding to mark the file information
Atomic service file name in table is matched.
Specifically, atomic service file name can be stored as list.Documentor is from first object the file information institute
In corresponding list obtain first atomic service file name, and with the institute in list corresponding to the second file destination information
There is atomic service file name to be matched one by one.Documentor is obtained from list corresponding to first object the file information
Take second atomic service file name, and with the atomic service file name in list corresponding to the second file destination information
It is matched one by one, documentor successively matches atomic service file name and the second test in the first test environment
Atomic service file name in environment.
Above-mentioned test environment Chinese part processing method, atomic service file name are stored with list mode, and storage can be improved
Rate;It obtains atomic service file name one by one from the corresponding list of first object the file information and the second file destination institute is right
Atomic service file name in the list answered is matched, and can carry out name-matches in order, improves testing efficiency.
It in one embodiment, include the informative abstract value of at least one first object file in first object the file information
And corresponding test environmental labels, it include the informative abstract value of at least one the second file destination in the second file destination information
And corresponding test environmental labels;
By first object the file information and the second file destination information matches, differential file information and differential file letter are obtained
The corresponding test environmental labels of breath, comprising: by the informative abstract value and the second file destination letter in first object the file information
Informative abstract value in breath is matched, and obtaining can not matched informative abstract value and corresponding test environment value;It will be unable to
Matched informative abstract is worth corresponding file destination information as differential file information.
Wherein, informative abstract value refers to that (Message-Digest Algorithm, informative abstract are calculated by MD2, MD4 or MD5
Method) value.Informative abstract value is used for one unique value of a file or text string generation.The identical target of each file content
File corresponds to a unique informative abstract value.When file destination is updated, corresponding informative abstract value changes.
Specifically, the modes such as Dircompare function or diff instruction can be used by first object text in documentor
Informative abstract value in part information is matched with the informative abstract value in the second file destination information.When first object file is believed
Informative abstract value in breath can not match with the informative abstract value in the second file destination information, then documentor obtains
It can not matched informative abstract value and the corresponding test environmental labels of informative abstract value.Documentor will be unable to match
Informative abstract be worth corresponding file destination information as differential file information.For example, a certain in first object the file information
Informative abstract value is 0caa3b23b8da53f9e4e041d95dc8fa2d, a corresponding unique first object file.File
Processing routine can not be matched to identical information from the informative abstract value of the second file destination information according to the informative abstract value
Digest value, then the corresponding file destination information of informative abstract value 0caa3b23b8da53f9e4e041d95dc8fa2d, such as
Corresponding timestamp of file destination title, file destination etc. is differential file information.And the informative abstract is worth corresponding first mesh
Mark the file information can be the first object the file information increased newly in the first test environment, be also possible to test environment first
In updated first object the file information.
When the informative abstract value in first object the file information and the informative abstract value phase in the second file destination information
Match, it is determined that the corresponding file destination of informative abstract value to match is identical file.
Above-mentioned test environment Chinese part processing method, by the informative abstract value and the second target in first object the file information
Informative abstract value in the file information is matched, and obtaining can not matched informative abstract value and corresponding test environment mark
Know;Matched informative abstract value be will be unable to as differential file information, since informative abstract value can uniquely indicate that content is identical
File destination, then when informative abstract value can not match, then the corresponding file destination of summary info value and another test wrapper
File destination in border mismatches, and differential file information can be obtained according only to informative abstract value, improves testing efficiency.
In one embodiment, Fig. 4 is the applied environment figure that file destination information is obtained in one embodiment.Telnet
Refer to using telnet command, counterpart terminal is made to temporarily become the process of an emulation terminal of distance host.Emulation terminal etc.
It imitates in a non intelligent machine, it is only responsible for each character that user input and passes to host, then host is exported every
A information echo is on the screen.Documentor realizes the first test wrapper of Telnet by the Paramiko that Linux is carried
The corresponding server in border, and pull the atomic service the file information in the first test file, the atomic service the file information can be with
It is SO (Shared Object, shared library) the file information.Then the corresponding server of the first test environment returns to atomic service file
Information includes atomic service file name in the atomic service the file information, and is stored in documentor with list mode
In corresponding computer equipment.Documentor realizes the second test wrapper of Telnet by the Paramiko that Linux is carried
The corresponding server in border, and pull the atomic service the file information in the second test file, the atomic service the file information can be with
It is SO the file information.Then the corresponding server of the second test environment returns to atomic service the file information, atomic service file letter
Include atomic service file name in breath, and is stored in the corresponding computer equipment of documentor with list mode.
Above-mentioned test environment Chinese part processing method, atomic service file name are stored with list mode, can be pressed centainly
Sequential storage atomic service file name, obtains atomic service file one by one from list corresponding to first object the file information
Title is matched with the atomic service file name in list corresponding to the second file destination information, can quickly obtain phase
The atomic service file name matched improves testing efficiency.
In one embodiment, as shown in figure 5, obtaining the file attribute information of input, comprising:
Step 502, file comparison instruction is obtained.
Specifically, the corresponding terminal of documentor display and file comparison instruction pair in the file comparison tool page
The component answered, when detecting the trigger action to the component, documentor obtains file comparison instruction.
Step 504, parameter input interface is switched to according to file comparison instruction.
Wherein, parameter input interface is for receiving bound of parameter face.
Specifically, documentor compares the corresponding page function of instructions match according to file, is jumped according to page function
Turn simultaneously display parameters input interface.
Step 506, the file attribute of the first test environment and the second test environment that input in parameter input interface is obtained
Information, file attribute information include the corresponding test environmental labels of the first test environment, the corresponding file road of the first test environment
Diameter, the corresponding test environmental labels of the second test environment and the corresponding file path of the second test environment.
Wherein, file path refers to file position, specifically can be file directory address or file it is absolute
Address.Documentor can obtain file destination information according to file path.
Specifically, when detecting the touch command for starting to compare, documentor obtains defeated in parameter input interface
The file path of the corresponding test environmental labels of the first test environment and the corresponding first object file of the first test environment that enter.
Documentor obtains the corresponding test environmental labels of the second test environment and second inputted in parameter input interface and tests
The file path of corresponding second file destination of environment.
In the present embodiment, file attribute information can also include the corresponding port numbers of the first test environment, the second test wrapper
The corresponding port numbers in border, the first corresponding user's name of test environment and password and the corresponding user name of the second test environment and close
At least one of code.Documentor obtains corresponding username and password, and verifies the accurate of the username and password
Property.Then it is corresponding all can to log in test environment by username and password no matter in which server for this document processing routine
Server.When the username and password of the username and password of the input and storage matches, obtain in parameter input interface
The corresponding test environmental labels of the first test environment, the corresponding file path of the first test environment, the second test environment of input
Corresponding test environmental labels and the corresponding file path of the second test environment.
Above-mentioned test environment Chinese part processing method receives file comparison instruction, switches to ginseng according to file comparison instruction
Number input interface obtains the file attribute information of the first test environment and the second test environment that input in parameter input interface,
File attribute information includes the corresponding test environmental labels of the first test environment, the corresponding test environmental labels of the second test environment
And file path, corresponding file destination can be matched according to the file attribute information of input, improve testing efficiency.
In one embodiment, test environment Chinese part processing method further include: output differential file information and difference
Test environmental labels corresponding to the file information, which includes can not matched file destination title, filename
Claim successful match but inconsistent at least one of the file destination title of timestamp.
Wherein, output, which refers to, is showed differential file information in the form of number, character, image, video or sound etc..
Specifically, documentor can show differential file information and the differential file on corresponding terminal interface
Test environmental labels corresponding to information, i.e. the differential file information are to be located in the first test environment, or be located at second and survey
In test ring border.The differential file information include can not matched file destination title, file name successful match but timestamp not
Consistent destination service file name.
In the present embodiment, which can also include differential file quantity, file destination size, file destination
At least one of occupied space, file destination version information.Wherein, file destination version information may include the version of file destination
This number.
In the present embodiment, documentor can also export the differential file in the form of voice broadcast or video playing
Test environmental labels corresponding to information and the differential file information.
Above-mentioned test environment Chinese part processing method exports test corresponding to differential file information and differential file information
Environmental labels, differential file information include the file name of successful match but the inconsistent file name of timestamp, can not match
At least one of file name, can intuitively obtain discrepant file destination information in two test environment and position production
The file of raw problem, and processing can be optimized according to the differential file information, improve testing efficiency.
In one embodiment, the test environment Chinese part processing method further include: identical file destination information is exported,
The identical file destination information includes that file name is identical and the consistent file destination title of timestamp.The identical information may be used also
To include that file name is identical and the consistent file destination quantity of timestamp.
Specifically, documentor output file title is identical and the consistent file destination title of timestamp, can be with
Output file title is identical and the consistent file destination quantity of timestamp.
Above-mentioned test environment Chinese part processing method, exports identical file destination information, the identical file destination letter
And timestamp consistent file destination title identical including file name is ceased, can intuitively be obtained identical in two test environment
File destination information does not need then to process the identical file destination information, improves testing efficiency.
In one embodiment, file attribute information includes file type, and file type includes shared library file, public network
Close at least one of interface document, Hypertext Markup Language HTML file, extensible markup language document, text document.
Wherein, shared library (Shared Object, SO) file refers to a kind of program function library, i.e., it is compiled can be for
The code and data that other programs use.Common gateway interface (Common Gateway Interface, CGI) is a Web
The standard interface of server host offer information service.By CGI interface, Web server can obtain client submission
Information, the cgi script for handing to server end are handled, and finally return to result to client.Hypertext Markup Language HTML
(Hyper Text Mark-up Language, HTML) file refers to the descriptive file being made of HTML command, HTML life
Order can be with comment, figure, animation, sound, table and link etc..Extensible markup language (Extensible Markup
Language, XML) file can be used for describing data etc..Text document (TXT) is a kind of text formatting on an operating system.
Specifically, documentor obtains the file attribute information of input, and this document attribute information includes file type,
File type includes shared library file, common gateway interface file, Hypertext Markup Language HTML file, extensible markup language text
At least one of part, text document.Wherein, this document type may be embodied in file path.Such as file path be "/
Data/ABCD/EFGHI/so/ ", then " so " i.e. therein file type of file destination information are shared library file.
When the file type of the file destination is text document, documentor can be by diff order with line by line
Mode, the target text file content that comparison document name-matches are successful but timestamp is inconsistent, obtains differential file information.And
Documentor can generate diff file according to differential file information.
Above-mentioned test environment Chinese part processing method, file attribute information include file type, and file type includes shared
Library file, common gateway interface file, Hypertext Markup Language HTML file, extensible markup language document, in text document extremely
Few one kind can carry out file process according to different file types, without modifying documentor according to file type,
Improve testing efficiency.
It in one embodiment, is that the file tested in environment in one embodiment compares interface as shown in Fig. 6 (a)
Entrance schematic diagram.Wherein, 602 control is compared for file.The touch-control of file comparison control 602 is referred to when documentor obtains
When enabling, i.e. acquisition file comparison instruction jumps to the parameter input interface as shown in Fig. 6 (b).It is one as shown in Fig. 6 (b)
The interface schematic diagram of parameter input interface in embodiment.Wherein file attribute information includes test environmental labels, i.e. IP address, end
Slogan, user name, password and directory address, also referred to as absolute address.Test environment is identified as IP address, such as the first test wrapper
The IP address in border is 10.123.18.95, and the IP address of the second test environment is 10.12.91.214.First test environment and the
The port numbers of two test environment are 36000.The file destination message address of first test environment, i.e. file path in Fig. 6 (b)
For/data/server/middle/so/ "/", the file destination message address of the second test environment, i.e. file path be/
data/server/middle/so/"/".File comparison program acquisition starts to compare instruction, by first object the file information and the
Two file destination information matches obtain test environmental labels corresponding to differential file information and differential file information.Such as Fig. 6
It (c) is the interface schematic diagram of differential file information in one embodiment shown in.It is equal including file destination title and timestamp
Identical quantity of documents and corresponding file destination title and the quantity of documents pair that file destination title is identical but the date is different
File destination title, the date corresponding test environmental labels of newest file destination title and the newest mark answered.
In one embodiment, as shown in fig. 7, to be in one embodiment that first object the file information and the second target is literary
The flow diagram of part information matches, comprising:
Step 702, corresponding test environment is remotely connected.
Step 704, the specified folder and sub-folder directory listing of input are obtained.
It wherein, include file path in file attribute information, the specified folder for obtaining input is documentor
Obtain the specified folder of input.The sub-folder directory listing for obtaining input is to obtain corresponding first object the file information
The corresponding second file destination information with acquisition.If the directory address (absolute address) in Fig. 6 (b) is i.e. for obtaining the finger of input
Determine file and sub-folder catalogue.
Step 706, judge the file destination title in the first test environment and the file destination name in the second test environment
Claim whether to match.
Step 708, if it is not, then obtaining the unmatched file destination title of file destination title and corresponding test wrapper
Border mark.
Step 710, if so, obtaining the file name that file destination title matches.
Step 712, judge whether corresponding timestamp is identical.
Step 714, if so, obtaining file destination title and corresponding timestamp file destination title all the same.
Step 716, match but the different file destination title of timestamp if it is not, then obtaining file destination title.
Step 718, judge which timestamp for newest timestamp.
Step 720, when the corresponding timestamp of file destination title in the first test environment is newest timestamp, output
The environmental labels of the file destination title the first test environment corresponding with the file destination title.
Step 722, when the corresponding timestamp of file destination title in the second test environment is newest timestamp, output
The environmental labels of the file destination title the second test environment corresponding with the file destination title.
Above-mentioned test environment Chinese part processing method obtains difference text by matching file destination title and timestamp
Part information, simple flow can improve testing efficiency.
In one embodiment, as shown in figure 8, to test the timing of environment Chinese part processing method in one embodiment
Figure.Documentor can be by python (boa) language, C language, C++ or JAVA language etc. but not limited to this calculating
Machine language development.Documentor, which specifically can be, to be deployed in the View layer of Django frame.Wherein Django frame
It is the Web application framework an of open source code, is write as by Python.Django frame uses the framework mode of MVC, i.e. mould
Type M (Model), view V (View) and controller C (Controller).URL (Uniform Resource Location, system
One Resource Locator), it is a kind of fuzzy query of regular expression.When the success of the content matching of input, just jump to corresponding
The page or View logic.Templet refers to model or template, is the framework in Django.Wherein, Compage.html
For the corresponding file of parameter input page.DirComparel.py and CompareUI.py file be two python scripts, two
There are call relations by person, and are used for the comparison of file destination information.Comparefiledetail.html is differential file information
Displayed page.
Documentor compares interface from the file on browser, as shown in Fig. 6 (a), receives file comparison instruction
When, then URL view functions are matched, to jump to the corresponding page of Compage.html.The corresponding page of Compage.html
As shown in Fig. 6 (b).Documentor obtains the file attribute information of input, for example, the first test environment environmental labels, the
The environmental labels of two test environment, the corresponding file path of the first test environment and the corresponding file path of the second test environment
Deng.Then documentor specifies new routing rule by Django framework, which is used for according to input
File attribute information obtains first object the file information and test in environment from second from the first test environment obtains the second mesh
The file information is marked, and matches corresponding URL view functions.Documentor can obtain biography by DirComparel.py file
Parameter is passed, and calls CompareUI.py by the first the file information and the second file destination information matches, obtains differential file letter
Test environmental labels corresponding to breath and differential file information.Documentor exports the differential file information and difference
Test environmental labels corresponding to the file information jump to Comparefiledetail.html, and are opened up on a web browser
Show.Shown in such as Fig. 6 (c) of the displaying interface.
Above-mentioned test environment Chinese part processing method, by matching URL function twice, can jump to parameter input interface with
And file comparison is carried out, and be shown on a web browser, it can intuitively compare two test wrappers similar in file destination information
Border, and where the file destination information of set test environmentally is newest, the problem in energy assignment test environment, to mention for displaying
High testing efficiency.
In one embodiment, a kind of test environment Chinese part processing method, comprising the following steps:
Step (a1) obtains file comparison instruction.
Step (a2) switches to parameter input interface according to file comparison instruction.
Step (a3) obtains the file attribute of the first test environment and the second test environment that input in parameter input interface
Information, file attribute information include the corresponding test environmental labels of the first test environment, the corresponding file road of the first test environment
Diameter, the corresponding test environmental labels of the second test environment and the corresponding file path of the second test environment;File attribute information is also
Including file type, file type include shared library file, common gateway interface file, in Hypertext Markup Language HTML file extremely
Few one kind.
Step (a4) obtains corresponding first object the file information from the first test environment according to file attribute information,
And corresponding second file destination information is obtained from the second test environment, wherein include extremely in first object the file information
Lack an atomic service file name and corresponding timestamp, includes at least one atomic service text in the second file destination information
Part title and corresponding timestamp, atomic service file name are stored with list mode.
Step (a5), will be in the atomic service file name and the second file destination information in first object the file information
Atomic service file name is matched, obtain can not matched atomic service file name, and can not matched atom clothes
Test environmental labels corresponding to file name of being engaged in;Can not matched atomic service file name be included in first object file letter
In breath and not in the second file destination information, and in the second file destination information and not in first object the file information
Atomic service file name.
Step (a6), when in the atomic service file name and the second file destination information in first object the file information
When atomic service file name matches, the corresponding timestamp of atomic service file name to match is compared, is obtained
The newest corresponding atomic service file name of timestamp and the corresponding atomic service file of newest timestamp in two timestamps
Test environmental labels corresponding to title.
Step (a7) sends the newest time at least one of the first test environment, the second test environment test environment
Stab test environment corresponding to corresponding atomic service file name and the corresponding atomic service file name of newest timestamp
Mark;The newest corresponding atomic service file name of timestamp and the corresponding atomic service file name institute of newest timestamp are right
The test environmental labels answered are used to indicate corresponding atomic service file in the first test environmental renewal first object the file information
Corresponding atomic service file content in content, and instruction the second test the second file destination of environmental renewal information.
Step (a8) exports test environmental labels corresponding to differential file information and differential file information, differential file
Information includes can not matched file destination title, file name successful match but the inconsistent destination service filename of timestamp
At least one of claim.
Above-mentioned test environment Chinese part processing method obtains file comparison instruction, switches to ginseng by file comparison instruction
Number input interface obtains file attribute information, and obtains corresponding file destination information according to file attribute information, and atom is taken
Business file name and corresponding timestamp are matched, and differential file information is obtained, can position disparity problem place;And to
At least one of one test environment, the second test environment test environment sends the corresponding atomic service filename of newest timestamp
Claim, instruction test environmental renewal atomic service file content can realize that atomic service file content is aligned automatically, improve test effect
Rate.
Fig. 2 and Fig. 5 is the flow diagram that environment Chinese part processing method is tested in one embodiment.It should be understood that
It is that, although each step in the flow chart of Fig. 2 and Fig. 5 is successively shown according to the instruction of arrow, these steps are not
The inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, there is no tight for the execution of these steps
The sequence of lattice limits, these steps can execute in other order.Moreover, at least part step in Fig. 2 and Fig. 5 can be with
Including multiple sub-steps perhaps these sub-steps of multiple stages or stage be not necessarily execute completion in synchronization, and
It is to execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out, but can
It is executed in turn or alternately at least part of sub-step or stage with other steps or other steps.
In one embodiment, as shown in figure 9, a kind of test environment Chinese part processing unit, the device are obtained including first
Modulus block 902, second obtains module 904 and matching module 906, in which:
First obtains module 902, for obtaining the file attribute information of input;
Second obtains module 904, for obtaining corresponding first mesh from the first test environment according to file attribute information
The file information is marked, and obtains corresponding second file destination information from the second test environment;
Matching module 906, for obtaining differential file for first object the file information and the second file destination information matches
Test environmental labels corresponding to information and differential file information.
Above-mentioned test environment Chinese part processing unit, obtains the file attribute information of input, according to file attribute information from
Corresponding first object the file information is obtained in first test environment, and obtains corresponding second mesh from the second test environment
Mark the file information;First object the file information and the second file destination information matches can be directly compared in two test environment
File destination information;Obtain test environment mark corresponding to the differential file information and differential file information in test environment
Know, determine test environment difference, according to differential file information can assignment test environment the problem of, without considering ring on line
Border, and without obtaining file destination content, improve testing efficiency.
It in one embodiment, include at least one atomic service file name in the first object the file information, this
It include at least one atomic service file name in two file destination information.Matching module 906 is for believing first object file
Atomic service file name in breath is matched with the atomic service file name in the second file destination information, and obtaining can not
Matched atomic service file name, and can not test environmental labels corresponding to matched atomic service file name;Nothing
The matched atomic service file name of method is included in first object the file information and not in the second file destination information, and
Atomic service file name in the second file destination information and not in first object the file information.
Above-mentioned test environment Chinese part processing unit, atomic service file name is matched, and obtaining can not be matched
Atomic service file name and corresponding test environmental labels, can not matched atomic service file name be included in first
In file destination information and not in the second file destination information, and in the second file destination information and not in first object
Atomic service file name in the file information can obtain the atomic service file name increased newly in each test environment, thus
Quick positioning question improves testing efficiency.
It in one embodiment, include at least one atomic service file name and corresponding in first object the file information
Timestamp includes at least one atomic service file name and corresponding timestamp in the second file destination information.Matching module
906 for when the atomic service text in the atomic service file name and the second file destination information in first object the file information
When part title matches, the corresponding timestamp of atomic service file name to match is compared, two timestamps are obtained
In corresponding to the newest corresponding atomic service file name of timestamp and the corresponding atomic service file name of newest timestamp
Test environmental labels.
Above-mentioned test environment Chinese part processing unit carries out the corresponding timestamp of the atomic service file name to match
Comparison, obtains the newest corresponding atomic service file name of timestamp and the corresponding original of newest timestamp in two timestamps
Test environmental labels corresponding to sub-services file name can obtain in the essentially identical test environment of bottom atomic service file
To the difference of atomic service file name, and the test environment where newest atomic service file is obtained, improves testing efficiency.
In one embodiment, as shown in Figure 10, the knot to test environment Chinese part processing unit in another embodiment
Structure block diagram.The test environment Chinese part processing unit further includes sending module 910.Sending module 910 is used for the first test wrapper
At least one of border, the second test environment test environment send the corresponding atomic service file name of newest timestamp, and
Test environmental labels corresponding to the corresponding atomic service file name of newest timestamp;The corresponding atomic service of newest timestamp
File name and test environmental labels are used to indicate corresponding atom in the first test environmental renewal first object the file information
In service document content, and instruction the second test the second file destination of environmental renewal information in corresponding atomic service file
Hold.
Above-mentioned test environment Chinese part processing unit sends newest timestamp to the first test environment or the second test environment
Corresponding atomic service file name;The corresponding atomic service file name of newest timestamp is used to indicate the first test environment more
Corresponding atomic service file content in new first object the file information, and instruction the second test the second target of environmental renewal text
Corresponding atomic service file content in part information can make the first test environment and second test environment for original atomic service
File content replaces with the corresponding atomic service file content of newest timestamp, tests the first test environment and second in environment
Atomic service file content be newest atomic service file content, and reduce misoperation probability, improve testing efficiency.
In one embodiment, atomic service file name is stored with list mode.Matching module 906 is used for from the first mesh
Column corresponding to atomic service file name and the second file destination information are obtained one by one in list corresponding to mark the file information
Atomic service file name in table is matched.
Above-mentioned test environment Chinese part processing unit, atomic service file name are stored with list mode, can be pressed centainly
Sequential storage atomic service file name, obtains atomic service file one by one from list corresponding to first object the file information
Title is matched with the atomic service file name in list corresponding to the second file destination information, can quickly obtain phase
The atomic service file name matched improves testing efficiency.
It in one embodiment, include the informative abstract value of at least one first object file in first object the file information
And corresponding test environmental labels, it include the informative abstract value of at least one the second file destination in the second file destination information
And corresponding test environmental labels.Matching module 906 is used for the informative abstract value and second in first object the file information
Informative abstract value in file destination is matched, and obtaining can not matched informative abstract value and corresponding test environment mark
Know;The corresponding file destination information of matched informative abstract value be will be unable to as differential file information.
Above-mentioned test environment Chinese part processing unit, by the informative abstract value and the second target in first object the file information
Informative abstract value in the file information is matched, and obtaining can not matched informative abstract value and corresponding test environment mark
Know;Matched informative abstract value be will be unable to as differential file information, since informative abstract value can uniquely indicate that content is identical
File destination, then when informative abstract value can not match, then the corresponding file destination of summary info value and another test wrapper
File destination in border mismatches, and differential file information can be obtained according only to informative abstract value, improves testing efficiency.
In one embodiment, the first acquisition module 902 is for obtaining file comparison instruction;It is cut according to file comparison instruction
Shift to parameter input interface;Obtain the file attribute of the first test environment and the second test environment that input in parameter input interface
Information, file attribute information include the corresponding test environmental labels of the first test environment, the corresponding file road of the first test environment
Diameter, the corresponding test environmental labels of the second test environment and the corresponding file path of the second test environment.
Above-mentioned test environment Chinese part processing unit receives file comparison instruction, switches to ginseng according to file comparison instruction
Number input interface obtains the file attribute information of the first test environment and the second test environment that input in parameter input interface,
File attribute information includes the corresponding test environmental labels of the first test environment, the corresponding test environmental labels of the second test environment
And file path, corresponding file destination can be matched according to the file attribute information of input, improve testing efficiency.
In one embodiment, as shown in Figure 10, which further includes output module 908.
Output module 908 is for exporting test environmental labels corresponding to differential file information and differential file information, the differential file
Information includes can not matched file destination title, file name successful match but the inconsistent destination service filename of timestamp
At least one of claim.
Above-mentioned test environment Chinese part processing unit exports test corresponding to differential file information and differential file information
Environmental labels, differential file information include the file name of successful match but the inconsistent file name of timestamp, can not match
At least one of file name, can intuitively obtain discrepant file destination information in two test environment and position production
The file of raw problem, and processing can be optimized according to the differential file information, improve testing efficiency.
In one embodiment, file attribute information includes file type, and file type includes shared library file, public network
Close at least one of interface document, Hypertext Markup Language HTML file.
Figure 11 shows the internal structure chart of computer equipment in one embodiment.The computer equipment specifically can be figure
The corresponding server 110 of the first test environment or the corresponding server 120 of the second test environment in 1.Computer equipment can also
To be server 230 or terminal 240 where the documentor in Fig. 2.As shown in figure 11, which includes being somebody's turn to do
Computer equipment includes processor, memory, network interface, input unit and the display screen connected by system bus.Wherein,
Memory includes non-volatile memory medium and built-in storage.The non-volatile memory medium of the computer equipment is stored with operation
System can also be stored with computer program, when which is executed by processor, processor may make to realize test environment
Middle document handling method.Computer program can also be stored in the built-in storage, it, can when which is executed by processor
So that processor executes test environment Chinese part processing method.The display screen of computer equipment can be liquid crystal display or electricity
Sub- ink display screen, the input unit of computer equipment can be the touch layer covered on display screen, are also possible to computer and set
Key, trace ball or the Trackpad being arranged on standby shell, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 11, only part relevant to application scheme
The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set
Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, test environment Chinese part processing unit provided by the present application can be implemented as a kind of computer
The form of program, computer program can be run in computer equipment as shown in figure 11.It can in the memory of computer equipment
Storage forms each program module of the test environment Chinese part processing unit, for example, the first acquisition module 902 shown in Fig. 9,
Second obtains module 904 and matching module 906.The computer program that each program module is constituted makes processor execute this explanation
Step in the test environment Chinese part processing method of each embodiment of the application described in book.
For example, computer equipment shown in Figure 11 can be by test environment Chinese part processing unit as shown in Figure 9
First obtain module 902 execute obtain input file attribute information;Second acquisition module 904 according to file attribute for believing
Breath obtains corresponding first object the file information from the first test environment, and obtains from the second test environment corresponding the
Two file destination information.Computer equipment can be executed by matching module 906 by first object the file information and the second target text
Part information matches obtain test environmental labels corresponding to differential file information and differential file information.
In one embodiment, a kind of computer equipment, including memory and processor are provided, memory is stored with meter
Calculation machine program, when computer program is executed by processor, so that processor executes above-mentioned test environment Chinese part processing method
Step.The step of testing environment Chinese part processing method herein can be the test environment Chinese part processing of above-mentioned each embodiment
Step in method.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored with
When sequence is executed by processor, so that the step of processor executes above-mentioned test environment Chinese part processing method.Environment is tested herein
The step of middle document handling method, can be the step in the test environment Chinese part processing method of above-mentioned each embodiment.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read
In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein
Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile
And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled
Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory
(RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM
(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM
(ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight
Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application
Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (12)
1. a kind of test environment Chinese part processing method, comprising:
Obtain the file attribute information of input;
Corresponding first object the file information is obtained from the first test environment according to the file attribute information, and from second
Corresponding second file destination information is obtained in test environment;
By the first object the file information and the second file destination information matches, differential file information and the difference are obtained
Test environmental labels corresponding to different the file information.
2. the method according to claim 1, wherein including that at least one is former in the first object the file information
Sub-services file name includes at least one atomic service file name in the second file destination information;
It is described by the first object the file information and the second file destination information matches, obtain differential file information and institute
State test environmental labels corresponding to differential file information, comprising:
By the atom in the atomic service file name and the second file destination information in the first object the file information
Service document title is matched, obtain can not matched atomic service file name and it is described can not matched atom clothes
Test environmental labels corresponding to file name of being engaged in;It is described can not matched atomic service file name be included in first object text
In part information and not in the second file destination information, and in the second file destination information and not in first object file letter
Atomic service file name in breath.
3. the method according to claim 1, wherein including that at least one is former in the first object the file information
Sub-services file name and corresponding timestamp include at least one atomic service filename in the second file destination information
Title and corresponding timestamp;
It is described by the first object the file information and the second file destination information matches, obtain differential file information and institute
State test environmental labels corresponding to differential file information, comprising:
Atom in the atomic service file name and the second file destination information in the first object the file information
When service document title matches, the corresponding timestamp of atomic service file name to match is compared, is obtained
The newest corresponding atomic service file name of timestamp and the corresponding atomic service of the newest timestamp in two timestamps
Test environmental labels corresponding to file name.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
It is corresponding that newest timestamp is sent at least one of the first test environment, the second test environment test environment
Atomic service file name and the corresponding atomic service file name of the newest timestamp corresponding to test environment mark
Know;The corresponding atomic service file name of newest timestamp and the corresponding atomic service filename of the newest timestamp
Corresponding test environmental labels are claimed to be used to indicate corresponding in first object the file information described in the first test environmental renewal
Atomic service file content, and corresponding original in the second file destination information described in instruction the second test environmental renewal
Sub-services file content.
5. according to the method described in claim 2, it is characterized in that, the atomic service file name is stored with list mode;
In the atomic service file name by the first object the file information and the second file destination information
Atomic service file name is matched, comprising:
Obtain atomic service file name and second mesh one by one from list corresponding to the first object the file information
Atomic service file name in list corresponding to mark the file information is matched.
6. the method according to claim 1, wherein include in the first object the file information at least one the
The informative abstract value of one file destination and corresponding test environmental labels include at least one in the second file destination information
The informative abstract value of a second file destination and corresponding test environmental labels;
It is described by the first object the file information and the second file destination information matches, obtain differential file information and institute
State test environmental labels corresponding to differential file information, comprising:
Informative abstract value in the first object the file information and the informative abstract value in second file destination are carried out
Matching, obtaining can not matched informative abstract value and corresponding test environmental labels;
Will described in can not matched informative abstract be worth corresponding file destination information as differential file information.
7. method according to any one of claims 1 to 6, which is characterized in that the file attribute information for obtaining input,
Include:
Obtain file comparison instruction;
Parameter input interface is switched to according to file comparison instruction;
The file attribute information of the first test environment and the second test environment that input in the parameter input interface is obtained, it is described
File attribute information includes the corresponding test environmental labels of the first test environment, the corresponding file road of the first test environment
Diameter, the corresponding test environmental labels of the second test environment and the corresponding file path of the second test environment.
8. according to claim 1 to method described in 6, which is characterized in that the method also includes:
Export test environmental labels corresponding to the differential file information and the differential file information, the differential file letter
Breath includes can not be in matched file destination title, file name successful match but the inconsistent file destination title of timestamp
It is at least one.
9. according to claim 1 to method described in 6, which is characterized in that the file attribute information includes file type, institute
Stating file type includes shared library file, common gateway interface file, Hypertext Markup Language HTML file, extensible markup language text
At least one of part, text document.
10. a kind of test environment Chinese part processing unit, which is characterized in that described device includes:
First obtains module, for obtaining the file attribute information of input;
Second obtains module, for obtaining corresponding first object text from the first test environment according to the file attribute information
Part information, and corresponding second file destination information is obtained from the second test environment;
Matching module, for obtaining difference text for the first object the file information and the second file destination information matches
Test environmental labels corresponding to part information and the differential file information.
11. a kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor,
So that the processor is executed such as the step of any one of claims 1 to 9 the method.
12. a kind of computer equipment, including memory and processor, the memory is stored with computer program, the calculating
When machine program is executed by the processor, so that the processor executes the step such as any one of claims 1 to 9 the method
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910228221.7A CN109902025A (en) | 2019-03-25 | 2019-03-25 | Test environment Chinese part processing method, device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910228221.7A CN109902025A (en) | 2019-03-25 | 2019-03-25 | Test environment Chinese part processing method, device, storage medium and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109902025A true CN109902025A (en) | 2019-06-18 |
Family
ID=66952913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910228221.7A Pending CN109902025A (en) | 2019-03-25 | 2019-03-25 | Test environment Chinese part processing method, device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109902025A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782528A (en) * | 2020-06-30 | 2020-10-16 | 中国平安人寿保险股份有限公司 | Configuration information comparison method and device, computer equipment and storage medium |
CN113515451A (en) * | 2021-06-09 | 2021-10-19 | 卡斯柯信号(成都)有限公司 | Automatic testing method of interlocking tool software |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013105358A (en) * | 2011-11-15 | 2013-05-30 | Japan Research Institute Ltd | System and method for comparative test on difference between new and old versions of program |
CN103577319A (en) * | 2012-08-07 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Source code file detection method, source code file detection device and file release system |
CN109240755A (en) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | A kind of configuration file comparison method and configuration file Compare System |
CN109324963A (en) * | 2018-08-22 | 2019-02-12 | 中国平安人寿保险股份有限公司 | The method and terminal device of automatic test profitable result |
-
2019
- 2019-03-25 CN CN201910228221.7A patent/CN109902025A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013105358A (en) * | 2011-11-15 | 2013-05-30 | Japan Research Institute Ltd | System and method for comparative test on difference between new and old versions of program |
CN103577319A (en) * | 2012-08-07 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Source code file detection method, source code file detection device and file release system |
CN109240755A (en) * | 2018-06-28 | 2019-01-18 | 平安科技(深圳)有限公司 | A kind of configuration file comparison method and configuration file Compare System |
CN109324963A (en) * | 2018-08-22 | 2019-02-12 | 中国平安人寿保险股份有限公司 | The method and terminal device of automatic test profitable result |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782528A (en) * | 2020-06-30 | 2020-10-16 | 中国平安人寿保险股份有限公司 | Configuration information comparison method and device, computer equipment and storage medium |
CN113515451A (en) * | 2021-06-09 | 2021-10-19 | 卡斯柯信号(成都)有限公司 | Automatic testing method of interlocking tool software |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8793660B2 (en) | Automated testing of programming code for a web service | |
US9720811B2 (en) | Unified model for visual component testing | |
CN107688664B (en) | Chart generation method and device, computer equipment and storage medium | |
CN108804159A (en) | Javascript module loadings method and its preprocess method, device and computer equipment | |
CN108304498A (en) | Webpage data acquiring method, device, computer equipment and storage medium | |
CN103019874B (en) | Method and the device of abnormality processing is realized based on data syn-chronization | |
CN111460356B (en) | Automatic login method, device, medium and equipment | |
CN108133007A (en) | A kind of method of data synchronization and system | |
AU2015218520A1 (en) | Service extraction and application composition | |
CN112364049B (en) | Data synchronization script generation method, system, terminal and storage medium | |
CN109787974A (en) | Message data stream generating method, device, computer equipment and storage medium | |
CN112241370B (en) | API interface class checking method, system and device | |
CN109902025A (en) | Test environment Chinese part processing method, device, storage medium and computer equipment | |
CN115658496A (en) | Extensible Web automatic test method, system, equipment and storage medium | |
CN111949607A (en) | Method, system and device for monitoring UDT file | |
CN106990974B (en) | APP updating method and device and electronic equipment | |
CN117370203B (en) | Automatic test method, system, electronic equipment and storage medium | |
CN116820635A (en) | Document block sharing method, device, system and storage medium | |
CN117499287A (en) | Web testing method, device, storage medium and proxy server | |
CN112612706A (en) | Automated testing method, computer device and storage medium | |
CN113032078A (en) | Page display method and device, electronic equipment and computer readable storage medium | |
CN111552643A (en) | Multi-browser webpage access synchronization method and system | |
CN112328504A (en) | Buried point data inspection method, buried point data inspection device, buried point data inspection system, computer equipment and storage medium | |
CN109324822B (en) | PWA (public warning assistant) item detection method, computer-readable storage medium and terminal device | |
CN114490892A (en) | Data transmission method and device based on datax |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190618 |
|
RJ01 | Rejection of invention patent application after publication |