CN108268374B - Software version test method, device, terminal device and storage medium - Google Patents
Software version test method, device, terminal device and storage medium Download PDFInfo
- Publication number
- CN108268374B CN108268374B CN201711070064.9A CN201711070064A CN108268374B CN 108268374 B CN108268374 B CN 108268374B CN 201711070064 A CN201711070064 A CN 201711070064A CN 108268374 B CN108268374 B CN 108268374B
- Authority
- CN
- China
- Prior art keywords
- content
- tested
- code
- version
- database
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of software version test method, device, terminal device and storage mediums.The software version test method, comprising: operation code compares platform, and the code compares platform and is connected with database;The software version test method further includes comparing the following steps that platform executes by the code: obtaining the release content to be tested stored in the database, the release content to be tested is associated with revision ID to be tested;Based on the revision ID to be tested, the baseline version content homologous with the revision ID to be tested stored in the database is obtained, the baseline version content is associated with baseline version ID;Code comparison is carried out to the release content to be tested and the baseline version content, obtains comparison result.When the software version test method carries out software version test, software version testing efficiency and optimization software version test effect can be improved.
Description
Technical field
The present invention relates to software test field more particularly to a kind of software version test method, device, terminal device and deposit
Storage media.
Background technique
The update iteration speed of software is very fast at present, and software updates the change that can all have software version each time.With
Software version change frequency raising, it is also higher and higher to the test request of software version.Current software version change compares
It is more and scattered, it is difficult to directly read the release content in test environment, and lack the comparison to release content, be unable to satisfy to frequency
The testing requirement that the software version of numerous update is intuitively compared, cause software version testing efficiency low and test effect compared with
Difference.
Summary of the invention
The embodiment of the present invention provides a kind of software version test method, to solve software version testing efficiency lowly and test
The poor problem of effect.
In a first aspect, the embodiment of the present invention provides a kind of software version test method, comprising:
Obtain the release content to be tested stored in the database, the release content to be tested and revision ID to be tested
It is associated;
Based on the revision ID to be tested, the base homologous with the revision ID to be tested stored in the database is obtained
Line release content, the baseline version content are associated with baseline version ID;
Code comparison is carried out to the release content to be tested and the baseline version content, obtains comparison result.
Second aspect, the embodiment of the present invention provide a kind of software version test device, comprising:
Release content to be tested obtains module, for obtaining the release content to be tested stored in the database;
Baseline version content obtains module, for being based on the revision ID to be tested, obtains and stores in the database
The homologous baseline version content with the revision ID to be tested;
Comparison result obtains module, for carrying out code ratio to the release content to be tested and the baseline version content
It is right, obtain comparison result.
The third aspect, the embodiment of the present invention provide a kind of terminal device, including memory, processor and are stored in described
In memory and the computer program that can run on the processor, the processor are realized when executing the computer program
The step of software version test method.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium
Matter is stored with computer program, and the computer program realizes the step of the software version test method when being executed by processor
Suddenly.
In software version test method, device, terminal device and storage medium provided by the embodiment of the present invention, transport first
Line code compares platform, compares platform by operation code, can be realized the system of release content and baseline version content to be tested
One management, is conducive to directly read release content and the baseline version content to be tested in platform test environment data base and carries out
Code compares, and greatly improves the efficiency for carrying out version test.Then platform is compared in code obtain release content to be tested, it is to be measured
Examination release content is associated with revision ID to be tested, compares the content that platform is capable of quick obtaining version to be tested by code,
Improve the efficiency for obtaining beta version content.It is then based on revision ID to be tested, platform is compared in code and obtains in baseline version
Hold, baseline version content is associated with baseline version ID, and comparing platform by code can be according to version to be tested and baseline version
The content of connection quick obtaining baseline version between this, improves the efficiency for obtaining baseline version content.Finally it is based on code ratio
It to platform, treats beta version content and baseline version content is compared, obtain comparison result, platform is compared by code,
Code ratio can be directly carried out in the display interface of platform to release content and the baseline version content to be tested obtained in platform
It is right, it realizes and compares the function of carrying out release content and baseline version content code to be tested on platform and compare in code.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a flow chart of software version test method in the embodiment of the present invention 1.
Fig. 2 is a specific flow chart of step S10 in Fig. 1.
Fig. 3 is a specific flow chart of step S20 in Fig. 1.
Fig. 4 is a specific flow chart of step S30 in Fig. 1.
Fig. 5 is a specific flow chart of step S40 in Fig. 1.
Fig. 6 is another specific flow chart of step S40 in Fig. 1.
Fig. 7 is a functional block diagram of software version test device in the embodiment of the present invention 2.
Fig. 8 is a schematic diagram of terminal device in the embodiment of the present invention 4.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment 1
Fig. 1 shows a flow chart of software version test method in the present embodiment.The software version test method can be applied
It, can be to release content for carrying out software version test in the terminal device of the financial institutions such as bank, insurance and security configuration
Directly read line code comparison of going forward side by side, enables to software version testing efficiency height and test effect is good.Wherein, the terminal
Equipment is the equipment that can carry out human-computer interaction with user, the including but not limited to equipment such as computer, smart phone and plate.Such as Fig. 1
Shown, which includes the following steps:
S10: operation code compares platform, and code compares platform and is connected with database.
Wherein, code comparison platform refers to that collection directly reads release content and is to release content progress code comparison function
The system platform of one.In the present embodiment, platform is compared in terminal device operation code, which compares platform and pass through display circle
Face obtains the instruction (such as version selection instruction, the first, second code compare instruction etc.) of user's input, executes instruction and will execute
Show in the display interface to result visualization.When user can simplify the test of script software version by code comparison platform
Cumbersome step does not spend and individually obtains different release contents, and in addition different release contents is compared.The code
Platform is compared, is connected with database, the release content of each version is stored in database.For the ease of managing each version
Release content establishes corresponding software release data sheet in the database, by searching for what is recorded in the software release data sheet
The storage address of each release content calls directly storage corresponding release content in the database.And it is compared on platform in code
Realize the function that code compares, the effect that the efficiency and code for optimizing software version test compare.
In a specific embodiment, as shown in Fig. 2, in step S10, code compares platform and is connected with database, has
Body includes the following steps:
S11: code compares the database configuration parameters that platform obtains user's input.
Wherein, database configuration parameters, which refer to, establishes the call parameter that code compares platform and database connection relationship, should
Database configuration parameters include the IP address of database, No. Sid of database, the user name of log database, database step on
The port numbers of password and database are recorded, above-mentioned database configuration parameters are all the configuration parameters that must be filled out, and lack any one and all will
The connection that code compares platform and database can not be established.Sid (Security Identifiers, i.e. secure identifier) is mark
Know unique number of user, group and computer account, the present embodiment middle finger is for the unique identification database to be connected
Number.In the present embodiment, code compares platform when foundation is connect with database, and platform will show newly-built linkage interface, and
User is waited to create at this and input corresponding database configuration parameters in linkage interface, so that code compares platform and obtains the data
Library configuration parameter.
Particularly, when user runs code for the first time compares platform, which will show newly-built linkage interface, until obtaining
Otherwise the database configuration parameters of user's input can not compare in the code and carry out other operations on platform.When user is non-for the first time
When running code comparison platform, platform will be automatically loaded the database of the last connection, repeat attended operation without user;
If " connection of newdata library " button can be clicked on platform when the database that user needs to change connection, with to code
Platform input database change directive is compared, so that display is newly-built after code comparison platform receives the database change directive
Linkage interface re-establishes the connection with required database.
S12: according to database configuration parameters, so that code is compared platform and be connected with database.
In the present embodiment, code compares platform according to the database configuration parameters of acquisition user's input (including database
IP address, No. Sid of database, the user name of log database, the port numbers of the login password of database and database), sentence
Whether the database configuration parameters of disconnected input are correct.If correct, the connection between code comparison platform and database is established, and
The configuration for comparing platform into code compares interface;The configuration compares interface and refers to the display interface for configuration version content.
If incorrect, newly-built linkage interface is shown again, so that user re-enters database configuration parameters.Specifically, judge number
Judge whether all database configuration parameters correspond to same database according to whether library configuration parameter correctly refers to, that is, judges all numbers
Its database to be connected can be uniquely directed toward according to library configuration parameter.
Further, code compares the database configuration parameters that platform obtains user's input every time, is judging its input
When database configuration parameters are incorrect, the current number of the incorrect database configuration parameters of same day input need to be counted, judgement should
Whether current number is more than preset times (such as 5 times);If current number is more than preset times, refuse code compare platform with
Database connection is connected, to play guarantor with database by fishing test or other modes realization to avoid the illegal user
Protect the purpose of the data safety in database;If current number is not above preset times, display is newly-built again connects boundary
Face, so that user re-enters database configuration parameters.
S20: obtaining the release content to be tested stored in database, and release content to be tested is related to revision ID to be tested
Connection.
Wherein, release content to be tested refers to the release content tested, the release content to be tested refer to
The code that beta version includes.The release content to be tested includes but is not limited to installation kit configuration file, be can be and software version
The relevant All Files of this test, are illustrated by taking release content to be tested as an example below, not with specific file (as installed
Packet configuration file) it is illustrated.Version to be tested is compared in code can show multiple, progress code comparison every time on platform
Release content to be tested be user's release content to be tested for choosing and confirming.Revision ID to be tested refers to for unique identification
The mark of release content to be tested.
In the present embodiment, code compares platform according to the version acquisition instruction to be tested for obtaining user's input, this is to be tested
Version acquisition instruction includes revision ID to be tested.Code comparison platform has created from database soft according to revision ID to be tested
Part edition data table finds the associated storage address of release content to be tested corresponding with the revision ID to be tested, then root
Release content to be tested is obtained according to the storage address, and compares the release content to be tested that will acquire on platform in code with information
The form of item is shown in configuration and compares on interface.Version command to be tested can have a plurality of, and every comprising unique corresponding to be measured
Try revision ID, i.e., release content to be tested can have it is multiple, and show information bar arrange from top to bottom in order.Believing
It ceases on item, has multiple buttons that can carry out clicking operation, each button has its corresponding function (including to check, choose, obtain
Homologous baseline version, deletion etc.).Wherein, the release content to be tested can be checked when button is checked in click;When click is chosen
When button, it can show that the state of the corresponding release content to be tested of the information bar is to have chosen state in information bar, this is chosen
Function carries out the release content to be tested of code comparison for determining, a release content to be tested is chosen in each code comparison,
Until release content to be tested has all been surveyed.Release content to be tested is obtained by comparing platform in code, can use generation
The relationship that is connected with database of code comparison platform, compares to directly read on platform and stores in the database to be tested in code
Release content greatly improves the efficiency of software version test.
In a specific embodiment, it as shown in figure 3, in step S20, obtains in the version to be tested stored in database
Hold, release content to be tested is associated with revision ID to be tested, specifically comprises the following steps:
S21: the revision ID to be tested of user's input is obtained.
In the present embodiment, is compared in the configuration that code compares platform and is equipped with " obtaining a version to be tested " button on interface,
User, which clicks the button, can pop up a revision ID input frame to be tested, and user is waited to input correctly revision ID to be tested,
To make code compare the version acquisition instruction to be tested that platform obtains carrying revision ID to be tested.Specifically, version to be tested
ID can be to be named with timestamp;Wherein, timestamp (timestamp) refers to that one can indicate a data in some spy
Time identifier that is already existing, complete before fixing time, can verify that;The time identifier is usually a character string, is used
In the time for uniquely identifying certain a moment.After code, which compares platform, obtains correctly revision ID to be tested, it will configuring
The information bar that the version to be tested is shown on interface is compared, user can input corresponding operation according to the button in the information bar
Instruction.Code compares multiple revision IDs to be tested of the available user's input of platform, and compares in configuration and show phase on interface
Multiple information bars are answered, each information bar represents corresponding each release content to be tested.
S22: searching the storage address of release content to be tested according to revision ID to be tested, is obtained based on storage address to be measured
Try release content.
In the present embodiment, code compare platform according to the revision ID to be tested of acquisition with it is each in software release data sheet
Revision ID is matched, when being matched in software release data sheet and the identical revision ID of revision ID to be tested of user's input
When, it will release content to be tested is obtained according to the storage address of the revision ID corresponding software version to be tested, and with information bar
Form be shown in configuration compare interface on.
S30: being based on revision ID to be tested, obtains in the baseline version homologous with revision ID to be tested stored in database
Hold, baseline version content is associated with baseline version ID.
Wherein, baseline version can be understood as each software version in one " snapshot " of specific period.It provides one
Official standard, subsequent software version change is based on this standard, and only could change this standard after authorization.It establishes
After one initial baseline, the change carried out every time to it later will all be recorded as a difference, until building up next baseline version
This.Therefore, baseline version can equally have multiple.Baseline version content refers to the code that baseline version includes.Baseline version ID
Refer to the mark for unique identification baseline version content.During software version test, release content and base to be tested
Line release content is to carry out code to compare essential two kinds of comparisons object.In general, release content to be tested refers to out
The release content that hair personnel modify to function in the baseline version content basis after a certain baseline version.Especially
Ground, version to be tested are an opposite concepts, and baseline version content can also be used as release content to be tested, i.e. initial input
Revision ID to be tested be specifically a certain baseline version ID.It is compared in Shi Weiyi baseline version it is to be appreciated that carrying out code
Hold the comparison between another baseline version content.
In the present embodiment, obtained based on revision ID to be tested by the incidence relation of revision ID to be tested and baseline version ID
Take the baseline version content homologous with revision ID to be tested stored in database.Wherein, homologous is data source according to configuration
Determining, data source refers to database or database server used in database application.Pass through version to be tested
ID obtains homologous baseline version content, improves the efficiency that baseline version is obtained in software version test process.
In a specific embodiment, as shown in figure 4, in step S30, it is based on revision ID to be tested, is obtained in database
The baseline version content homologous with revision ID to be tested of storage, baseline version content is associated with baseline version ID, specific to wrap
Include following steps:
S31: being based on revision ID to be tested, obtains and the homologous baseline version list of revision ID to be tested.
In the present embodiment, code compares platform and obtains the homologous baseline version acquisition that user inputs on configuration comparison interface
Instruction.Specifically, i.e. user's information bar according to release content to be tested, clicks homologous baseline version in information bar
Button is obtained, code compares the homologous baseline version acquisition instruction that platform obtains button representative.It is obtained when code compares platform
After the homologous baseline version acquisition instruction, it will searched in the database according to revision ID to be tested and obtain homologous baseline version
This ID, and be finally shown in configuration in the form of a list and compare on interface, i.e., it is compared in configuration and shows homologous baseline on interface
Version list.
S32: being based on baseline version list, obtains the baseline version selection instruction of user's input, baseline version selection instruction
Including baseline version ID.
In the present embodiment, configuration compares and shows the baseline version list comprising multiple and different baseline version ID on interface,
It is that family can be used to compare platform to code to input baseline version selection instruction that user, which clicks configuration and compares any baseline version in interface,
The baseline version selection instruction carries the corresponding baseline version ID of baseline version that user clicks.Code compares platform and is somebody's turn to do in acquisition
After baseline version selection instruction, obtained and baseline version ID phase entrained by baseline version selection instruction in baseline version list
Corresponding baseline version content.It is to be appreciated that the process is that user clicks on configuration comparison interface in baseline version list
One of baseline version operation, to obtain baseline version content.
S33: being based on baseline version ID, obtains the baseline version content stored in database.
In the present embodiment, code compares platform according in the baseline version ID of acquisition and the baseline version tables of data created
Each revision ID matched, when being matched in baseline version tables of data and the identical version of baseline version ID of user's input
When this ID, it will obtain baseline version content according to the storage address that the revision ID corresponds to baseline version, and with the shape of information bar
Formula is shown in configuration and compares on interface.It is similar to release content to be tested, the operation of multiple functions is equipped with equally in information bar
Button (including check, choose, into subbase line release content interface, deletion etc.).
S40: treating beta version content and baseline version content carries out code comparison, obtains comparison result.
In the present embodiment, the configuration that code compares platform compares and shows multiple and different release contents to be tested on interface
With the information bar of baseline version content, according to the release content and baseline version to be tested in the user's click information table got
Content and input choose instruction, determine release content and the baseline version content to be tested for carrying out code comparison, and in platform
On treat beta version content and baseline version content is compared, obtain comparison result.Platform is compared by the code, it can be with
It is straight to realize by each release content to be tested and baseline version properties collection that need to carry out code comparison on a platform
The function of connecing reading and code comparison can easily obtain the release content carried out needed for code compares, and in visualization figure
It realizes that the unrestricted choice of release content and baseline version content to be tested compares on shape interface, improves and carry out software version test
Flexibility, greatly improve software version test efficiency.
In a specific embodiment, in step S40, platform is compared based on code, treats beta version content and baseline
Release content is compared, and obtains comparison result, specifically comprises the following steps:
S411: the full code for obtaining user's input compares instruction, compares instruction according to full code and treats beta version content
Character string comparison is carried out with baseline version content, obtains comparison result;Comparison result highlights in release content to be tested
At the difference of code and the code in baseline version content.
In the present embodiment, is compared in configuration and choose the release content and baseline version to be tested that carry out code comparison in interface
After content, comparing interface in configuration originally will be shown as in the code comparison button that can not click state (such as gray display)
State is clicked with what configuration compared interface same color depth, when the release content chosen is release content to be tested and baseline
When release content, it is that full code compares instruction which, which compares the corresponding instruction of button,.After code compares button when the user clicks,
Code comparison platform will acquire full code comparison and instruct, in the instruction and the release content and baseline version to be tested specifically chosen
Hold associated.Code compares platform and executes full code comparison instruction, which compares instruction will be at configuration comparison interface
The code in release content and baseline version content to be tested chosen is compared, if the release content and base to be tested chosen
Line release content does not meet the principle of code comparison, then can not carry out code comparison, configuration, which compares interface, will feed back and show
Error message reminds user to carry out correctly choosing operation.Such as when user has chosen multiple and different versions to be tested simultaneously
Code is clicked after content and compares button, and configuration comparison interface, which will be shown, " please select a version to be tested!" prompt box,
User is reminded to cancel the extra release content to be tested chosen.Platform, which is compared, by code treats beta version content and baseline version
This content carry out code comparison, concrete mode alignments be carry out character string comparison, in beta version content code and
The enterprising line character string in the corresponding position of code in baseline version content compares, and obtains comparison result.
By carrying out character string comparison, code compares will be by beta version content and baseline version on the display interface of platform
Code in this content shows that the content of beta version is in the left side of display interface, and the content of baseline version is on display circle
The right side in face.(i.e. different part) will highlight at the difference that wherein character string compares, this is highlighted can be with
It is highlighted for color or code overstriking is shown etc. highlights mode, to facilitate user to check comparison result.
In a specific embodiment, as shown in figure 5, in step S40, platform is compared based on code, treats beta version
Content and baseline version content are compared, and obtain comparison result, can also specifically include the following steps:
S421: obtaining the subbase line release content acquisition instruction of user's input, and subbase line release content acquisition instruction includes
Subbase line revision ID.
Wherein, subbase line release content refers to the baseline version content in baseline version content with part standalone feature
Functional component specifically can be the sub- content in entire baseline version content with part standalone feature.In the present embodiment,
Code compares the subbase line release content acquisition instruction that platform obtains user's input, and specially user is according to subbase line release content
Shown information bar, clicks to enter subbase line release content interface button in information bar, and code compares platform and enters subbase
Line release content interface;Then, code compares the subbase line release content acquisition instruction that platform obtains user's input, specially hooks
Subbase line release content needed for the subbase line release content interface is selected, each subbase line release content includes corresponding one
Subbase line revision ID.
S422: corresponding subbase line release content is obtained based on subbase line revision ID.
In the present embodiment, after code compares platform acquisition subbase line release content acquisition instruction, it will according to subbase line version
This ID searches the subbase line revision ID in the software release data sheet created, and subbase line revision ID is corresponding deposits by this
It stores up address and obtains subbase line release content.
S423: the first code for obtaining user's input compares instruction, compares instruction according to first code and treats beta version
Content and subbase line release content carry out character string comparison, obtain comparison result, and comparison result highlights in version to be tested
At the difference of the code of code and subbase line release content in appearance.
In the present embodiment, after obtaining subbase line release content, code compares the first generation that platform obtains user's input
After code comparison button is clicked in code comparison instruction, specially user, code, which compares platform, will acquire first code comparison instruction, should
Instruction is associated with release content and subbase the line release content to be tested specifically chosen, i.e., the comparison object that ought be compared is
When release content and baseline version content to be tested, it is that first code compares instruction which, which compares the corresponding instruction of button,.Generation
Code comparison platform will execute the instruction after configuration compares interface acquisition first code comparison instruction, which will be in configuration ratio
The code in release content and subbase line release content to be tested chosen to interface is compared, the comparison result and ratio of acquisition
To result to highlight effect similar to step S411, will not repeat them here.The present embodiment is using version to be tested
The comparison of content and subbase line release content, user, which can according to need, carries out specific part content (i.e. subbase line release content)
It is compared with release content to be tested, by the comparison using specific part content (i.e. subbase line release content), improves soft
Part testing efficiency.
In a specific embodiment, as shown in fig. 6, in step S40, platform is compared based on code, treats beta version
Content and baseline version content are compared, and obtain comparison result, can also specifically include the following steps:
S431: the subbase line release content acquisition instruction and module contents acquisition instruction to be measured of user's input, subbase are obtained
Line release content acquisition instruction includes subbase line revision ID, and module contents instruction to be measured includes module I D to be measured.
Wherein, module contents to be measured refers to the release content to be tested in release content to be tested with part standalone feature
Functional component, specifically can be the sub- content in entire release content to be tested with part standalone feature.This implementation
In example, code compares the subbase line release content acquisition instruction and module contents acquisition instruction to be measured that platform obtains user's input,
Specially user's information bar according to subbase line release content, clicks to enter subbase line release content circle in information bar
Face button, code compare platform and enter subbase line release content interface, and the subbase line release content acquisition for obtaining user's input refers to
It enables, specially chooses subbase line release content needed for the interface, each subbase line release content includes a corresponding son
Baseline version ID.User's information bar according to release content to be tested, clicks to enter in information bar in module to be measured
Hold interface button, code compares platform and enters module contents interface to be measured, and the module contents to be measured acquisition for obtaining user's input refers to
It enables, specially chooses module contents to be measured needed for the interface, each module contents to be measured includes a corresponding mould to be measured
Block ID.
S432: corresponding subbase line release content is obtained based on subbase line revision ID.
It is identical as step S422, it will not repeat them here.
S433: corresponding module contents to be measured is obtained based on module I D to be measured.
In the present embodiment, after code compares platform acquisition module contents acquisition instruction to be measured, it will according to module I D to be measured
It searches the module I D to be measured in the software release data sheet created, and is obtained by the corresponding storage address of the module I D to be measured
Take module contents to be measured.
S434: the second code for obtaining user's input compares instruction, is instructed according to second code to sub- baseline version content
Character string comparison is carried out with module contents to be measured, obtains comparison result, comparison result highlights the generation in module contents to be measured
At the difference of code in code and subbase line release content.
Similar to step S423, difference is that the instruction obtained is second code instruction, and what is be compared is module to be measured
Content and subbase line release content pass through the ratio using specific part content (i.e. subbase line release content) and module contents to be measured
It is right, testing efficiency can be further improved.
In software version test method provided by the present embodiment, operation code first compares platform, by running code
Platform is compared, can be realized the unified management of release content and baseline version content to be tested, is conducive to directly read platform survey
Examination environment data base in release content and baseline version content to be tested go forward side by side line code comparison, improve software version test
Efficiency.Then the release content to be tested stored in database is obtained, release content to be tested is associated with revision ID to be tested,
The connection established between platform and database is compared by code, the version to be tested of storage in the database can be read directly
Content improves the efficiency for obtaining beta version content.Be then based on revision ID to be tested, obtain stored in database with it is to be measured
The homologous baseline version content of revision ID is tried, baseline version content is associated with baseline version ID, compares platform energy by code
Enough connections according between version to be tested and baseline version obtain baseline version content, improve the effect for obtaining baseline version content
Rate.Finally treat beta version content and baseline version content and carry out code comparison, obtain comparison result, and by comparison result into
Row highlights, and compares platform by code, can be straight to release content and the baseline version content to be tested obtained in platform
Line code comparison is tapped into, and in the display interface shows comparison result, realization carries out to be measured on code comparison platform
The function that release content and baseline version content code compare is tried, is conducive to user and directly easily obtains comparison from code platform
As a result, the effect that software version is tested is more preferable, it is more efficient.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment 2
Fig. 7 shows the principle frame with the one-to-one software version test device of software version test method in embodiment 1
Figure.As shown in fig. 7, the software version test device includes that code compares platform operation module 10, release content to be tested obtains
Module 20, baseline version content obtain module 30 and comparison result obtains module 40.Wherein, code compares platform and runs module
10, release content to be tested obtains module 20, baseline version content obtains module 30 and comparison result obtains the realization of module 40
Function step corresponding with software version test method in embodiment corresponds, and to avoid repeating, the present embodiment is not detailed one by one
It states.
Code compares platform and runs module 10, compares platform for running code.
Release content to be tested obtains module 20, for obtaining the release content to be tested stored in database.
Baseline version content obtain module 30, for be based on revision ID to be tested, obtain database in store with it is to be measured
Try the homologous baseline version content of revision ID.
Comparison result obtains module 40, carries out code comparison for treating beta version content and baseline version content, obtains
Take comparison result.
Preferably, it includes that database configuration parameters acquiring unit 11 is connected with database that code, which compares platform operation module 10,
Unit 12.
Database configuration parameters acquiring unit 11 compares the database configuration ginseng that platform obtains user's input for code
Number.
Database connection unit 12, for making code compare platform and being connected with database according to database configuration parameters.
Wherein, database configuration parameters include the IP address of database, No. Sid of database, the user of log database
Name, the port numbers of the login password of database and database.
Preferably, it includes revision ID acquiring unit 21 to be tested and version to be tested that release content to be tested, which obtains module 20,
Contents acquiring unit 22.
Revision ID acquiring unit 21 to be tested, for obtaining the revision ID to be tested of user's input.
Release content acquiring unit 22 to be tested, for searching the storage of release content to be tested according to revision ID to be tested
Address obtains release content to be tested based on storage address.
Preferably, baseline version content obtains module 30, including baseline version list acquiring unit 31, version selection instruction
Acquiring unit 32 and baseline version contents acquiring unit 33.
Baseline version list acquiring unit 31 obtains homologous with revision ID to be tested for being based on revision ID to be tested
Baseline version list.
Version selection instruction acquiring unit 32 obtains the baseline version choosing of user's input for being based on baseline version list
Instruction is selected, baseline version selection instruction includes baseline version ID.
Baseline version contents acquiring unit 33 obtains the baseline version stored in database for being based on baseline version ID
Content.
Preferably, it includes full code comparison result acquiring unit 411 that comparison result, which obtains module 40,.
Full code comparison result acquiring unit 411, the full code for obtaining user's input compares instruction, according to full code
It compares instruction and treats beta version content and the progress character string comparison of baseline version content, obtain comparison result;Comparison result is prominent
At the difference for showing the code in release content to be tested and the code in baseline version content out.
Preferably, it further includes subbase line revision ID acquiring unit 421, the first sub- baseline version that comparison result, which obtains module 40,
Contents acquiring unit 422 and first code comparison result acquiring unit 423.
Subbase line revision ID acquiring unit 421, for obtaining the subbase line release content acquisition instruction of user's input, subbase
Line release content acquisition instruction includes subbase line revision ID.
First subbase line release content acquiring unit 422, for obtaining corresponding subbase line version based on subbase line revision ID
This content.
First code comparison result acquiring unit 423, the first code for obtaining user's input compares instruction, according to the
One code compares instruction and treats beta version content and the progress character string comparison of subbase line release content, obtains comparison result;Than
At the difference for highlighting the code of the code and subbase line release content in release content to be tested to result.
Preferably, it further includes subbase line revision ID and module I D acquiring unit 431 to be measured, that comparison result, which obtains module 40,
Two subbase line release content acquiring units 432, module contents acquiring unit 433 to be measured and second code comparison result acquiring unit
434。
Subbase line revision ID and module I D acquiring unit 431 to be measured, for obtaining the subbase line release content of user's input
Acquisition instruction and module contents acquisition instruction to be measured, subbase line release content acquisition instruction include subbase line revision ID, mould to be measured
Block content instruction includes module I D to be measured.
Second subbase line release content acquiring unit 432, for obtaining corresponding subbase line version based on subbase line revision ID
This content.
Module contents acquiring unit 433 to be measured, for obtaining corresponding module contents to be measured based on module I D to be measured.
Second code comparison result acquiring unit 434, the second code for obtaining user's input compares instruction, according to the
Two codes compare instruction and carry out character string comparison to sub- baseline version content and module contents to be measured, obtain comparison result;It compares
As a result at the difference for highlighting the code in module contents to be measured and the code in subbase line release content.
In software version test device provided by the present embodiment, code compares platform and runs module 10, for running generation
Code comparison platform, can be realized the unified management of release content and baseline version content to be tested, is conducive to directly read platform
Test environment data base in release content and baseline version content to be tested go forward side by side line code comparison, improve software version test
Efficiency.Release content to be tested obtains module 20 and passes through code for obtaining the release content to be tested stored in database
The connection established between platform and database is compared, the release content to be tested of storage in the database can be read directly, mention
Height obtains the efficiency of beta version content.Baseline version content obtains module 30, for being based on revision ID to be tested, obtains data
The baseline version content homologous with revision ID to be tested stored in library, comparing platform by code can be according to version to be tested
Connection between baseline version obtains baseline version content, improves the efficiency for obtaining baseline version content.Comparison result obtains
Module 40 carries out code comparison for treating beta version content and baseline version content, comparison result is obtained, by comparison result
It is highlighted, can directly carry out code comparison to release content and the baseline version content to be tested obtained in platform,
And in the display interface show comparison result, it realizes and carries out release content and baseline to be tested on code comparison platform
The function that release content code compares, is conducive to user and directly easily obtains comparison result from code platform, so that software version
The effect of this test is more preferable, more efficient.
Embodiment 3
The present embodiment provides a computer readable storage medium, computer journey is stored on the computer readable storage medium
Sequence realizes software version test method in embodiment 1, to avoid repeating, here not when the computer program is executed by processor
It repeats again.Alternatively, realized when the computer program is executed by processor in embodiment 2 each module in software version test device/
The function of unit, to avoid repeating, which is not described herein again.
Embodiment 4
Fig. 8 is the schematic diagram of terminal device in the present embodiment.As shown in figure 8, terminal device 80 includes processor 81, storage
Device 82 and it is stored in the computer program 83 that can be run in memory 82 and on processor 81.Processor 81 executes computer
Each step of software version test method in embodiment 1, such as step S10, S20, S30 shown in FIG. 1 are realized when program 83
And S40.Alternatively, processor 81 realizes each module/unit of software version test device in embodiment 2 when executing computer program 83
Function, code as shown in Figure 7 compares platform operation module 10, release content to be tested obtains module 20, baseline version content
It obtains module 30 and comparison result obtains the function of module 40.
Illustratively, computer program 83 can be divided into one or more module/units, one or more mould
Block/unit is stored in memory 82, and is executed by processor 81, to complete the present invention.One or more module/units can
To be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing computer program 83 at end
Implementation procedure in end equipment 80.For example, computer program 80, which can be divided into the code in embodiment 2, compares platform operation mould
Block 10, release content to be tested obtain module 20, baseline version content obtains module 30 and comparison result obtains module 40, each mould
The concrete function of block is as described in Example 2, to avoid repeating, does not repeat one by one herein.
Terminal device 80 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.Eventually
End equipment may include, but be not limited only to, processor 81, memory 82.It will be understood by those skilled in the art that Fig. 8 is only eventually
The example of end equipment 80 does not constitute the restriction to terminal device 80, may include components more more or fewer than diagram, or
Combine certain components or different components, for example, terminal device can also include input-output equipment, network access equipment,
Bus etc..
Alleged processor 81 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
Memory 82 can be the internal storage unit of terminal device 80, such as the hard disk or memory of terminal device 80.It deposits
Reservoir 82 is also possible to the plug-in type hard disk being equipped on the External memory equipment of terminal device 80, such as terminal device 80, intelligence
Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card)
Deng.Further, memory 82 can also both including terminal device 80 internal storage unit and also including External memory equipment.It deposits
Reservoir 82 is for storing other programs and data needed for computer program and terminal device.Memory 82 can be also used for temporarily
When store the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (9)
1. a kind of software version test method characterized by comprising operation code compares platform, and the code compares platform
It is connected with database;
The software version test method further includes comparing the following steps that platform executes by the code:
The release content to be tested stored in the database is obtained, the release content to be tested is related to revision ID to be tested
Connection;
Based on the revision ID to be tested, the baseline version homologous with the revision ID to be tested stored in the database is obtained
This content;
Code comparison is carried out to the release content to be tested and the baseline version content, obtains comparison result;
Wherein, described to be based on the revision ID to be tested, it obtains being stored in the database with the release content to be tested
Homologous baseline version content, comprising:
Based on the revision ID to be tested, obtain and the homologous baseline version list of the revision ID to be tested;
Based on the baseline version list, the baseline version selection instruction of user's input, the baseline version selection instruction are obtained
Including baseline version ID;
Based on the baseline version ID, the baseline version content stored in the database is obtained.
2. software version test method according to claim 1, which is characterized in that the code compares platform and database
It is connected, comprising:
The code compares the database configuration parameters that platform obtains user's input;
According to the database configuration parameters, so that the code is compared platform and be connected with the database;
The database configuration parameters include the IP address of database, No. Sid of database, the user name of log database, number
According to the login password in library and the port numbers of database.
3. software version test method according to claim 1, which is characterized in that described obtain stores in the database
Release content to be tested, comprising:
Obtain the revision ID to be tested of user's input;
The storage address of release content to be tested is searched according to the revision ID to be tested, based on described in storage address acquisition
Release content to be tested.
4. software version test method according to claim 1, which is characterized in that described to the release content to be tested
Code comparison is carried out with the baseline version content, obtains comparison result, comprising:
The full code for obtaining user's input compares instruction, according to the full code compare instruction to the release content to be tested and
The baseline version content carries out character string comparison, obtains comparison result;The comparison result highlights the test run to be measured
At the difference of code in this content and the code in the baseline version content.
5. software version test method according to claim 1, which is characterized in that described to the release content to be tested
Code comparison is carried out with the baseline version content, obtains comparison result, further includes:
The subbase line release content acquisition instruction of user's input is obtained, the subbase line release content acquisition instruction includes subbase line
Revision ID;
Corresponding subbase line release content is obtained based on the subbase line revision ID;
The first code for obtaining user's input compares instruction, compares instruction in the version to be tested according to the first code
Hold and the subbase line release content carries out character string comparison, obtains comparison result;The comparison result highlight it is described to
At the difference of the code of code and the subbase line release content in beta version content.
6. software version test method according to claim 1, which is characterized in that described to the release content to be tested
Code comparison is carried out with the baseline version content, obtains comparison result, further includes:
Obtain the subbase line release content acquisition instruction and module contents acquisition instruction to be measured of user's input, the sub- baseline version
Content acquisition instruction includes subbase line revision ID, and the module contents instruction to be measured includes module I D to be measured;
Corresponding subbase line release content is obtained based on the subbase line revision ID;
Corresponding module contents to be measured is obtained based on the module I D to be measured;
The second code for obtaining user's input compares instruction, compares instruction in the sub- baseline version according to the second code
Hold and the module contents to be measured carries out character string comparison, obtains comparison result;The comparison result highlights described to be measured
At the difference of code in module contents and the code in the subbase line release content.
7. a kind of software version test device characterized by comprising
Code compares platform and runs module, compares platform for running code, the code compares platform and is connected with database;
Release content to be tested obtains module, for obtaining the release content to be tested stored in the database;
Baseline version content obtain module, for be based on the revision ID to be tested, obtain stored in the database with institute
State the homologous baseline version content of revision ID to be tested;
Comparison result obtains module, for carrying out code comparison to the release content to be tested and the baseline version content,
Obtain comparison result;
Wherein, the baseline version content obtains module, comprising:
Baseline version list acquiring unit obtains homologous with the revision ID to be tested for being based on the revision ID to be tested
Baseline version list;
Version selection instruction acquiring unit obtains the baseline version selection of user's input for being based on the baseline version list
Instruction, the baseline version selection instruction includes baseline version ID;
Baseline version contents acquiring unit obtains the baseline version stored in the database for being based on the baseline version ID
This content.
8. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program
The step of any one software version test method.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realizing the software version test method as described in any one of claim 1 to 6 when the computer program is executed by processor
Step.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711070064.9A CN108268374B (en) | 2017-11-03 | 2017-11-03 | Software version test method, device, terminal device and storage medium |
PCT/CN2018/081532 WO2019085386A1 (en) | 2017-11-03 | 2018-04-02 | Software version test method and apparatus, terminal device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711070064.9A CN108268374B (en) | 2017-11-03 | 2017-11-03 | Software version test method, device, terminal device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108268374A CN108268374A (en) | 2018-07-10 |
CN108268374B true CN108268374B (en) | 2019-03-05 |
Family
ID=62770952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711070064.9A Active CN108268374B (en) | 2017-11-03 | 2017-11-03 | Software version test method, device, terminal device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108268374B (en) |
WO (1) | WO2019085386A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109829083A (en) * | 2019-01-25 | 2019-05-31 | 深圳市金泰克半导体有限公司 | SPD data automatic verification method, device, computer equipment and storage medium |
CN110389903B (en) * | 2019-07-19 | 2023-08-22 | 中国工商银行股份有限公司 | Test environment deployment method and device, electronic device and readable storage medium |
CN113918441B (en) * | 2020-07-09 | 2024-10-29 | 福建天泉教育科技有限公司 | Test method and system for verifying app version |
CN113138933A (en) * | 2021-05-13 | 2021-07-20 | 网易(杭州)网络有限公司 | Data table testing method, electronic device and storage medium |
CN113448862B (en) * | 2021-07-12 | 2022-08-02 | 上海哔哩哔哩科技有限公司 | Software version testing method and device and computer equipment |
CN113342695B (en) * | 2021-07-13 | 2024-07-09 | 中国工商银行股份有限公司 | Software version testing method and device |
CN115118616B (en) * | 2022-04-29 | 2024-04-23 | 腾讯科技(深圳)有限公司 | Display result testing method, device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8881109B1 (en) * | 2009-01-22 | 2014-11-04 | Intuit Inc. | Runtime documentation of software testing |
US8978013B1 (en) * | 2013-10-09 | 2015-03-10 | Electronic Arts Inc. | Autonomous media version testing |
CN106445812A (en) * | 2016-08-31 | 2017-02-22 | 上海携程商务有限公司 | Regression test system and regression test method |
CN106528428A (en) * | 2016-11-24 | 2017-03-22 | 中山大学 | Method for constructing software variability prediction model |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102495790A (en) * | 2011-10-20 | 2012-06-13 | 镇江睿泰信息科技有限公司 | Version change difference identifier and version change identification method |
CN102722436B (en) * | 2012-05-29 | 2016-03-02 | 百度在线网络技术(北京)有限公司 | A kind of statistical method of incremental coverage information and device |
CN102929600B (en) * | 2012-06-13 | 2016-06-29 | 许继电气股份有限公司 | Monitoring system version recognition methods based on ELF |
CN105302710B (en) * | 2014-07-03 | 2019-06-07 | 腾讯科技(深圳)有限公司 | The method and apparatus that a kind of determination needs the test case of regression test |
US9547579B1 (en) * | 2014-12-30 | 2017-01-17 | Ca, Inc. | Method and apparatus for automatically detecting defects |
CN106528399A (en) * | 2015-09-15 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Test case determination method and apparatus |
-
2017
- 2017-11-03 CN CN201711070064.9A patent/CN108268374B/en active Active
-
2018
- 2018-04-02 WO PCT/CN2018/081532 patent/WO2019085386A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8881109B1 (en) * | 2009-01-22 | 2014-11-04 | Intuit Inc. | Runtime documentation of software testing |
US8978013B1 (en) * | 2013-10-09 | 2015-03-10 | Electronic Arts Inc. | Autonomous media version testing |
CN106445812A (en) * | 2016-08-31 | 2017-02-22 | 上海携程商务有限公司 | Regression test system and regression test method |
CN106528428A (en) * | 2016-11-24 | 2017-03-22 | 中山大学 | Method for constructing software variability prediction model |
Also Published As
Publication number | Publication date |
---|---|
CN108268374A (en) | 2018-07-10 |
WO2019085386A1 (en) | 2019-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108268374B (en) | Software version test method, device, terminal device and storage medium | |
CN108268253B (en) | Interface code generation method and terminal equipment | |
CN103365770B (en) | Mobile terminal software test macro and method for testing software | |
US8151244B2 (en) | Merging graphical programs based on an ancestor graphical program | |
US8930918B2 (en) | System and method for SQL performance assurance services | |
US9575875B2 (en) | Computer implemented system and method for indexing and annotating use cases and generating test scenarios therefrom | |
CN112559348B (en) | Test analysis method, system, equipment and medium based on jacoco | |
EP3602282A1 (en) | Methods and systems for testing web applications | |
CN108255714A (en) | Interface document builds test method and terminal device | |
CN109643270A (en) | Multi-layer testing external member generates | |
US20120216176A1 (en) | Computer implemented system and method for indexing and optionally annotating use cases and generating test scenarios therefrom | |
CN107678951A (en) | Test exemple automation management method, device, equipment and storage medium | |
CN108459962A (en) | Code specification detection method, device, terminal device and storage medium | |
US20150254073A1 (en) | System and Method for Managing Versions of Program Assets | |
CN110377522A (en) | The test method for scene of trading, calculates equipment and medium at device | |
CN111176980B (en) | Data analysis method, device and system for separating debugging environment and running environment | |
CN110378561A (en) | Order tracking management method, device and storage medium | |
CN108897686A (en) | It is complete to record separately automated testing method and device | |
CN106326116A (en) | Method and device for testing product | |
CN113204765B (en) | Method and system for testing HyperLegger Fabric chain code | |
CN116089439A (en) | Dynamic form modification method and device | |
CN115292418A (en) | Cross-system business process automatic processing method and system | |
CN110427287A (en) | Main board function test all-purpose system and method | |
CN113641628A (en) | Data quality detection method, device, equipment and storage medium | |
CN110019479A (en) | Data manipulation detection method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |