CN107844485A - The update method and device of test script file - Google Patents

The update method and device of test script file Download PDF

Info

Publication number
CN107844485A
CN107844485A CN201610829215.3A CN201610829215A CN107844485A CN 107844485 A CN107844485 A CN 107844485A CN 201610829215 A CN201610829215 A CN 201610829215A CN 107844485 A CN107844485 A CN 107844485A
Authority
CN
China
Prior art keywords
file
test script
script file
terminal
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.)
Granted
Application number
CN201610829215.3A
Other languages
Chinese (zh)
Other versions
CN107844485B (en
Inventor
林铭森
王瑞然
余剑波
卢伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201610829215.3A priority Critical patent/CN107844485B/en
Publication of CN107844485A publication Critical patent/CN107844485A/en
Application granted granted Critical
Publication of CN107844485B publication Critical patent/CN107844485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Abstract

The present invention relates to a kind of storage method of test script file and device, methods described includes:Obtain the test script file that each terminal is edited in edit page;The test script file got is added in script queue according to acquisition order;Read the test script file in the script queue;Test script file corresponding with the test script file read is searched in script database;The test script file found according to the test script file renewal read;Test script file after renewal is stored into the script database.The storage method and device of test script file provided by the invention, test script file after renewal is stored into script database, without the test script file after renewal is stored in into terminal, the situation for the loss for causing test script file when terminal breaks down is avoided, improves the security of test script file after renewal.

Description

The update method and device of test script file
Technical field
The present invention relates to software testing technology field, more particularly to the update method and dress of a kind of test script file Put.
Background technology
With the development of computer technology, the software with various functions is developed, in software development process, often needed Software is tested, application could be put into after in software test., it is necessary to write test pin in software development process This document, software code is tested by the test script file of execution.
Tested for different software, it is necessary to write different test script files.Under conventional situation, surveyed writing , it is necessary to which test script file storage is arrived into local PC during training this document.But in editor's test script file When, it is necessary to modified to the test script file being locally stored, when the PC of local breaks down, easily cause to repair The test script file changed is lost, and reduces the storage security of amended test script file.
The content of the invention
Based on this, it is necessary to for amended test script file storage security it is low the problem of, there is provided it is a kind of The storage method and device of test script file.
A kind of storage method of test script file, methods described include:
Obtain the test script file that each terminal is edited in edit page;
The test script file got is added in script queue according to acquisition order;
Read the test script file in the script queue;
Test script file corresponding with the test script file read is searched in script database;
The test script file found according to the test script file renewal read;
Test script file after renewal is stored into the script database.
In one of the embodiments, before the test script file for obtaining each terminal and being edited in edit page, Also include:
The accessing page request for the edit page that receiving terminal is sent;
Extract the checking information in the accessing page request;
Authority Verification is carried out to the checking information extracted;
After being verified, the page data of edit page is searched, the page data found is back to the terminal, The terminal is shown the edit page according to the page data of return, with the edit page to test script file Enter edlin.
In one of the embodiments, before the test script file for obtaining each terminal and being edited in edit page, Also include:
What receiving terminal was sent carries the script acquisition request of user's mark;
Obtain the script and obtain file identification corresponding to user's mark in request;
Test script file corresponding with the file identification extracted is searched in script database;
The test script file found is back to the terminal, the terminal is shown the test script file of return Show in the edit page of the terminal.
In one of the embodiments, the test pin that the test script file renewal read described in the basis is found This document, including:
The test script file read and the test script file found are subjected to differentiation comparison, obtained more New content, the test script file found according to the renewal content update;
File identification in the test script file read described in extraction;
Store the more new content is corresponding with the file identification extracted to the script database.
In one of the embodiments, the test script file by after renewal stores into the script database it Afterwards, in addition to:
Obtain the file for the carrying file identification reduction request that terminal is sent;
File in file reduction request searches more new content and test script in the script database File;
Test script file is reduced according to the more new content and test script file found;
The test script file of reduction is back to the terminal.
The storage method of above-mentioned test script file, terminal enter edlin in edit page to test script file, obtain The test script file for taking each terminal to be edited in edit page, the test script file got is added according to acquisition order Into script queue, the read test script file from script queue, the situation of data congestion can be so avoided the occurrence of, is improved The reading efficiency of test script file.Searched in script database and corresponding with the test script file read test pin This document, the test script file found according to the test script file renewal read, by the test script text after renewal Part is stored into script database, without the test script file after renewal is stored in into terminal, avoids terminal failure When cause test script file loss situation, improve renewal after test script file security.
A kind of storage device of test script file, described device include:
File acquisition module, the test script file edited for obtaining each terminal in edit page;
File add module, for the test script file got to be added in script queue according to acquisition order;
File read module, for reading the test script file in the script queue;
Ff module, test script file for searching with reading in script database is corresponding to test pin This document;
File update module, the test script text that the test script file renewal for being read according to is found Part;
File storage module, for the test script file after renewal to be stored into the script database, with institute State in edit page and edlin is entered to test script file.
In one of the embodiments, described device also includes:
Access request receiving module, the accessing page request of the edit page sent for receiving terminal;
Checking information extraction module, for extracting the checking information in the accessing page request;
Authority Verification module, for carrying out Authority Verification to the checking information extracted;
Page data returns to module, for after being verified, searching the page data of edit page, the page that will find Face data are back to the terminal, the terminal is shown the edit page according to the page data of return.
In one of the embodiments, the file update module includes:
Request receiving module is obtained, request is obtained for the script for carrying user's mark that receiving terminal is sent;
File identification acquisition module, file identification corresponding to user's mark in request is obtained for obtaining the script;
Script file searching modul, file identification for searching with extracting in script database is corresponding to test pin This document;
Script file returns to module, for the test script file found to be back into the terminal, makes the terminal The test script file of return is included in the edit page of the terminal.
In one of the embodiments, described device also includes:
Script file comparison module, for by the test script file read and the test script file that finds Differentiation comparison is carried out, obtains more new content, the test script file found according to the renewal content update;
File identification extraction module, for extracting the file identification in the test script file read;
Content storage module is updated, for storing the more new content is corresponding with the file identification extracted to the pin Database.
In one of the embodiments, described device also includes:
Acquisition request module is reduced, the file for carrying file identification for obtaining terminal transmission reduces request;
Content search module is updated, is looked into for the file in file reduction request in the script database Look for more new content and test script file;
Script file recovery module, for according to more new content and test script file the reduction test script text found Part;
Also original returns to module, for the test script file of reduction to be back into the terminal.
The storage method of above-mentioned test script file, terminal enter edlin in edit page to test script file, obtain The test script file for taking each terminal to be edited in edit page, the test script file got is added according to acquisition order Into script queue, the read test script file from script queue, the situation of data congestion can be so avoided the occurrence of, is improved The reading efficiency of test script file.Searched in script database and corresponding with the test script file read test pin This document, the test script file found according to the test script file renewal read, by the test script text after renewal Part is stored into script database, without the test script file after renewal is stored in into terminal, avoids terminal failure When cause test script file loss situation, improve renewal after test script file security.
Brief description of the drawings
Fig. 1 is the applied environment figure of the storage system of test script file in one embodiment;
Fig. 2 is the schematic flow sheet of the storage method of test script file in one embodiment;
Fig. 3 is the schematic flow sheet of Authority Verification step in one embodiment;
Fig. 4 is the schematic flow sheet according to the step of user's identifier lookup test script file in one embodiment;
Fig. 5 is schematic flow sheet the step of comparing test script file in one embodiment;
Fig. 6 is schematic flow sheet the step of test script file is reduced in one embodiment;
Fig. 7 is the structured flowchart of the storage device of test script file in one embodiment;
Fig. 8 is the structured flowchart of the storage device of test script file in another embodiment;
Fig. 9 is the structured flowchart of the storage device of test script file in another embodiment;
Figure 10 is the structured flowchart of the storage device of test script file in further embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the applied environment figure of the storage system of test script file in one embodiment, and test script file is more New system includes terminal 110 and server 120.Wherein terminal 110 can be multiple that server 120 can also be specifically multiple. Script database is provided with server 120, test script file is store in script database.
As shown in Fig. 2 in one embodiment, there is provided a kind of storage method of test script file, the present embodiment is with this Method is applied on the server 120 in the storage system of Fig. 1 test script files, and being run on server 120 has test script The storage program of file, the storage program of test script file are used for the storage method for implementing test script file, this method tool Body comprises the following steps:
S202, obtain the test script file that each terminal is edited in edit page.
Specifically, terminal 110 gets test script file from the script database of server 120, to test script text Part is parsed, and test script file is included in the edit page of terminal 110.Terminal 110 is being detected to being shown in volume When collecting the test script file progress edit operation in the page, according to survey of the edit operation detected to being shown in edit page Training this document enters edlin.Wherein edit operation can be specifically in input operation, deletion action and replacement operation at least It is a kind of.Server 120 can also periodically obtain the test script file that each terminal is edited in edit page according to preset time. The file that the script data that test script file is edited when being and testing software code is formed.
In one embodiment, when save button is clicked in detecting edit page, triggering preservation refers to terminal 110 Order, terminal 110 according to preserve instruct obtain edit page in edited test script file, by test script file send to Server 120.Terminal 110 can also periodically obtain edited test script file in edit page, by the test pin of acquisition This document is sent to server 120.
S204, the test script file got is added in script queue according to acquisition order.
Specifically, server 120 records when obtaining test script file obtains the time, according to the acquisition time to getting Test script file be ranked up, the test script file after sequence is added in script queue.Script queue is used to deposit The queue for the test script file that storage server 120 is got from each terminal 110.
In one embodiment, when server 120 receives the test script file of the upload of terminal 110, server 120 Directly the test script file received is added in script queue.
S206, read the test script file in script queue.
Specifically, after the test script file got is added to script queue by server 120, server 120 is pressed The test script file in script queue is read according to order of addition.
S208, test script file corresponding with the test script file read is searched in script database.
Specifically, script database is provided with server 120, test script file is store in script database.Clothes Device 120 be engaged in after test script file is read, test script file is parsed, extracts the file in test script file Mark, file identification are the unique mark of script test file, can be specifically function name or numbering.Server 120 is carrying After getting file identification, test script file corresponding with the file identification extracted is searched in script database, is found Test script file be test script file corresponding with the test script file read from script queue.
In one embodiment, server 120 calculates the test script text read after test script file is read Part and the similarity of the test script file stored in script database.In the test script file stored in script file storehouse Similarity highest test script file is searched, the test script file found is the test with being read from script queue The corresponding test script file of script file.
S210, the test script file found according to the test script file renewal read.
Specifically, server 120, will after the corresponding test script file of the test script file that finds with read The test script file found replaces with the test script file that reads with the test script file after being updated.
In one embodiment, the more new content position in the script file read of server 120 is added with mark Note.Server 120 extracts more new content corresponding to mark position and mark position, server from the script file read 120 are updated according to the more new content extracted to the test script file found, to the test script file found Test script file after being updated.
S212, the test script file after renewal is stored into script database.
Specifically, server 120 is after the test script information to finding is updated, the test pin after being updated This document, directly by script file storage into script database.Server 120 can also extract the test script text after renewal File identification in part, store the test script information after renewal is corresponding with the file identification extracted to script database.
In the present embodiment, terminal enters edlin in edit page to test script file, obtains each terminal in page The test script file edited in face, the test script file got is added in script queue according to acquisition order, from Read test script file in script queue, can so avoid the occurrence of the situation of data congestion, improve test script file Reading efficiency.Test script file corresponding with the test script file read is searched in script database, according to reading The test script file that the test script file renewal got is found, the test script file after renewal is stored to script number According in storehouse, without the test script file after renewal is stored in into terminal, avoiding when terminal breaks down causes test script The situation of the loss of file, improve the security of test script file after renewal.
As shown in figure 3, in one embodiment, specifically also include Authority Verification step before S202, the step is specifically wrapped Include herein below:
S302, the accessing page request for the edit page that receiving terminal is sent.
Specifically, terminal 110 obtains the checking information that tester inputs in login page, and page is generated according to checking information Face access request, accessing page request are used to access edit page.Terminal 110 sends the accessing page request of generation to service Device 120.
S304, extract the checking information in accessing page request.
Specifically, server 120 enters after the accessing page request of the transmission of terminal 110 is received to accessing page request Row parsing, extracts the checking information in accessing page request.Wherein, checking information includes user's mark and password, can also wrap Include dynamic verification code.
S306, Authority Verification is carried out to the checking information extracted.
Specifically, checking information table is set in server 120, user's mark and user's mark are store in checking information table Corresponding password.Server 120 extracts user's mark and password in checking information, verified after checking information is extracted Password corresponding to extracting user's mark is searched in information table, the password in the password and checking information that find is compared, really Determine the mark of the user in checking information and whether password matches, if matching, is verified;If mismatch, verify not by, Refuse accessing page request.
S308, after being verified, the page data of edit page is searched, the page data found is back to described Terminal, the terminal is set to show the edit page according to the page data of return, with literary to test script in edit page Part enters edlin.
Specifically, server 120 extracts the page iden-tity in accessing page request after being verified to checking information, Page data is searched according to page iden-tity, the page data found is back to terminal 110.Terminal 110 is receiving the page After data, according to page data display edit page, tester by terminal 110 in edit page to test script text Part enters edlin.Wherein, page iden-tity can be specifically the unified resource positioning of the reference address or edit page of edit page Symbol.
In the present embodiment, in terminal access edit page, the checking information in accessing page request is verified, After being verified, the page data of edit page is just returned to terminal, ensure that the access security of edit page.
As shown in figure 4, in one embodiment, it is specific before S202 also to include according to user's identifier lookup test script text The step of part, the step specifically include herein below:
S402, what receiving terminal was sent carries the script acquisition request of user's mark.
Specifically, tester can access the script database set on server 120 by terminal 110.Tester Member inputs user's mark in terminal 110 and signs in edit page, and tester triggers script in edit page and obtains instruction. When terminal 110 detects that script obtains instruction, user's mark of input is obtained, identifying generation script according to the user of acquisition obtains Request, script is obtained into request and sent to server 120.
S404, obtain script and obtain file identification corresponding to user's mark in request.
Specifically, server 120 receive terminal 110 transmission script obtain request after, to script obtain ask into Row parsing, extraction script obtain user's mark in request.User right table is provided with server 120, in user right table The file identification with the corresponding test script file of user's mark is store, represents that user corresponding to user's mark has permission to access Test script file corresponding to file identification.Server 120 searches user's mark in user right table, is finding user's mark After knowledge, file identification corresponding to extraction user's mark.
S406, test script file corresponding with the file identification extracted is searched in script database.
Specifically, server 120 obtains the file identification of the test script file stored in script database, will get File identification obtained with from script in request compared with the file identification that extracts, search with obtained from script ask in carry The file identification for the file identification matching got, obtains test script file corresponding to the file identification of matching.
S408, the test script file found is back to terminal, terminal is shown the test script file of return In the Scripting Edition page of terminal.
Specifically, server 120 obtains in request from script and extracts terminal address, by what is found from script database Test script file is back to terminal 110 corresponding to terminal address.Terminal 110 is receiving the test pin of the return of server 120 After this document, the test script file of return is parsed, the script data in test script file is included in page In face.
In the present embodiment, after the script for receiving terminal transmission obtains request, it can directly be obtained and asked according to script In user's identifier lookup corresponding to file identification, according to the file identification found in script database locating file identify Corresponding test script file, searched without tester's input file mark, simplify the lookup of test script file Process, improve search efficiency.
As shown in figure 5, in one embodiment, S210 is specifically also including the step of comparing test script file, the step Specifically include herein below:
S502, the test script file read and the test script file found are subjected to differentiation comparison, obtained More new content, the test script file found according to renewal content update.
Specifically, server 120 parses to the test script file read and the test script file found Script data is obtained, by the script data in the test script file read and the script number of the test script file found According to progress differentiation comparison.Server 120 extracts the test script file read relative to the test script file found Different script datas, and the test script file found is relative to the different script number of the test script file read According to, and positional information of the different script datas extracted in each test script file is recorded, according to the difference extracted Script data and record positional information generation more new content.
S504, extract the file identification in the test script file read.
Specifically, the extraction document from the test script file read of server 120 identifies, and file identification specifically can be with It is at least one of file name, reference number of a document and function name.
S506, store more new content is corresponding with the file identification extracted to script database.
Specifically, server 120 from the test script file read extraction document mark after, will more new content with carrying The file identification got correspondingly is stored to script database.
In the present embodiment, by the way that the test script file read and the test script file found are carried out into differentiation Compare to obtain more new content, more new content is additionally uploaded without tester, simplify the renewal process of test script file, carry High renewal efficiency.
As shown in fig. 6, in one embodiment, specific the step of also including reduction test script file after S212, should Step specifically includes herein below:
S602, obtain the file for the carrying file identification reduction request that terminal is sent.
Specifically, tester is in the editing process to test script file, it is sometimes desirable to checks without editor's Test script file, tester can be by carrying out operation triggering file reduction instruction in edit page.Terminal 110 is being examined When measuring file reduction instruction, the file identification of the test script file shown in edit page is obtained.Terminal 110 is according to acquisition The file identification generation file reduction request arrived, reduces request by file and sends to server 120.
S604, the file in file reduction request search more new content and test script text in script database Part.
Specifically, server 120 receive terminal 110 transmission file reduction request after, to file reduction ask into Row parsing, the file identification in extraction document reduction request.Server 120 is searched corresponding with file identification in script database The more new content and test script file of storage.
S606, test script file is reduced according to the more new content and test script file found.
Specifically, server 120 finds more new content and test script corresponding to file identification in script database After file, extract the script in more new content and update the data the positional information updated the data with script, renewal script data includes The script data after script data and renewal before renewal, specifically also includes renewal action type, and renewal action type includes adding At least one of add, delete and change.Server 120 is updated the data with positional information to testing pin according to the script extracted Script data is reduced corresponding to positional information in this document, the test script file reduced.
S608, the test script file of reduction is back to terminal.
Specifically, the test script file of reduction is back to terminal 110 by server 120.Terminal 110 is receiving reduction Test script file after, the test script file of reduction is parsed, reads the script in the test script file of reduction Data, the script data read is included in edit page.
In the present embodiment, the file reduction request of terminal transmission is received, according in the renewal stored in script database Appearance can be reduced to test script file, and the test script file of reduction is back into terminal.In this manner it is ensured that compiling Quick reduction test script file during volume, improve the reduction rate of test script file.
As shown in fig. 7, in one embodiment, there is provided a kind of storage device 700 of test script file, the device are specific Including:File acquisition module 702, file add module 704, file read module 706, ff module 708, file renewal Module 710 and file storage module 712.
File acquisition module 702, the test script file edited for obtaining each terminal in edit page.
File add module 704, for the test script file got to be added into script queue according to acquisition order In.
File read module 706, for reading the test script file in script queue.
Ff module 708, test script file for searching with reading in script database is corresponding to be surveyed Training this document.
File update module 710, for the test script file found according to the test script file renewal read.
File storage module 712, for the test script file after renewal to be stored into script database.
In the present embodiment, terminal enters edlin in edit page to test script file, obtains each terminal in page The test script file edited in face, the test script file got is added in script queue according to acquisition order, from Read test script file in script queue, can so avoid the occurrence of the situation of data congestion, improve test script file Reading efficiency.Test script file corresponding with the test script file read is searched in script database, according to reading The test script file that the test script file renewal got is found, the test script file after renewal is stored to script number According in storehouse, without the test script file after renewal is stored in into terminal, avoiding when terminal breaks down causes test script The situation of the loss of file, improve the security of test script file after renewal.
As shown in figure 8, in one embodiment, there is provided a kind of storage device 700 of test script file, the device are specific Also include:Access request receiving module 714, checking information extraction module 716, Authority Verification module 718 and page data return Module 720.
Access request receiving module 714, the accessing page request of the edit page sent for receiving terminal.
Checking information extraction module 716, for extracting the checking information in accessing page request.
Authority Verification module 718, for carrying out Authority Verification to the checking information extracted.
Page data returns to module 720, for after being verified, searching the page data of edit page, will find Page data be back to the terminal, the terminal is shown the edit page according to the page data of return, with institute State in edit page and edlin is entered to test script file.
In the present embodiment, in terminal access edit page, the checking information in accessing page request is verified, After being verified, the page data of edit page is just returned to terminal, ensure that the access security of edit page.
As shown in figure 9, in one embodiment, there is provided a kind of storage device 700 of test script file, the device are specific Also include:Obtain request receiving module 722, file identification acquisition module 724, script file searching modul 726 and script file Return to module 728.
Request receiving module 722 is obtained, request is obtained for the script for carrying user's mark that receiving terminal is sent.
File identification acquisition module 724, file identification corresponding to user's mark in request is obtained for obtaining script.
Script file searching modul 726, file identification for searching with extracting in script database is corresponding to be surveyed Training this document.
Script file returns to module 728, for the test script file found to be back into terminal, terminal will be returned Test script file be shown in the edit page of terminal.
In the present embodiment, after the script for receiving terminal transmission obtains request, it can directly be obtained and asked according to script In user's identifier lookup corresponding to file identification, according to the file identification found in script database locating file identify Corresponding test script file, searched without tester's input file mark, simplify the lookup of test script file Process, improve search efficiency.
As shown in Figure 10, in one embodiment, there is provided a kind of storage device 700 of test script file, in the device File update module 710 specifically includes:Script file comparison module 710a, file identification extraction module 710b, more new content are deposited Store up module 710c;The device specifically also includes:Reduce acquisition request module 730, renewal content search module 732, script file Recovery module 734 and also original return module 736.
Script file comparison module 710a, for by the test script file read and the test script file that finds Differentiation comparison is carried out, obtains more new content, the test script file found according to renewal content update.
File identification extraction module 710b, for extracting the file identification in the test script file read.
Content storage module 710c is updated, for storing more new content is corresponding with the file identification extracted to script number According to storehouse.
Acquisition request module 730 is reduced, the file for carrying file identification for obtaining terminal transmission reduces request.
Content search module 732 is updated, is searched more in script database for the file in file reduction request New content and test script file.
Script file recovery module 734, for according to more new content and test script file the reduction test pin found This document.
Also original returns to module 736, for the test script file of reduction to be back into terminal.
In the present embodiment, by the way that the test script file read and the test script file found are carried out into differentiation Compare to obtain more new content, more new content is additionally uploaded without tester, simplify the renewal process of test script file, carry High renewal efficiency.The file reduction request of terminal transmission is received, can be with according to the more new content stored in script database Test script file is reduced, the test script file of reduction is back to terminal.In this manner it is ensured that in editing process In quick reduction test script file, improve the reduction rate of test script file.
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics Shield, all it is considered to be the scope of this specification record.
Above example only expresses the several embodiments of the present invention, and its description is more specific and detailed, but can not Therefore it is construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, On the premise of not departing from present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of storage method of test script file, methods described include:
Obtain the test script file that each terminal is edited in edit page;
The test script file got is added in script queue according to acquisition order;
Read the test script file in the script queue;
Test script file corresponding with the test script file read is searched in script database;
The test script file found according to the test script file renewal read;
Test script file after renewal is stored into the script database.
2. according to the method for claim 1, it is characterised in that the test for obtaining each terminal and being edited in edit page Before script file, in addition to:
The accessing page request for the edit page that receiving terminal is sent;
Extract the checking information in the accessing page request;
Authority Verification is carried out to the checking information extracted;
After being verified, the page data of edit page is searched, the page data found is back to the terminal, makes institute State terminal and the edit page is shown according to the page data of return, to be carried out in the edit page to test script file Editor.
3. according to the method for claim 1, it is characterised in that the test for obtaining each terminal and being edited in edit page Before script file, in addition to:
What receiving terminal was sent carries the script acquisition request of user's mark;
Obtain the script and obtain file identification corresponding to user's mark in request;
Test script file corresponding with the file identification extracted is searched in script database;
The test script file found is back to the terminal, the terminal is included the test script file of return In the edit page of the terminal.
4. according to the method described in claim any one of 1-3, it is characterised in that the test script read described in the basis The test script file that file renewal is found, including:
The test script file read and the test script file found are subjected to differentiation comparison, obtained in renewal Hold, the test script file found according to the renewal content update;
File identification in the test script file read described in extraction;
Store the more new content is corresponding with the file identification extracted to the script database.
5. according to the method for claim 4, it is characterised in that the test script file by after renewal is stored to described After in script database, in addition to:
Obtain the file for the carrying file identification reduction request that terminal is sent;
File in file reduction request searches more new content and test script file in the script database;
Test script file is reduced according to the more new content and test script file found;
The test script file of reduction is back to the terminal.
6. a kind of storage device of test script file, it is characterised in that described device includes:
File acquisition module, the test script file edited for obtaining each terminal in edit page;
File add module, for the test script file got to be added in script queue according to acquisition order;
File read module, for reading the test script file in the script queue;
Ff module, the corresponding test script text of test script file for searching with reading in script database Part;
File update module, the test script file that the test script file renewal for being read according to is found;
File storage module, for the test script file after renewal to be stored into the script database.
7. device according to claim 7, it is characterised in that described device also includes:
Access request receiving module, the accessing page request of the edit page sent for receiving terminal;
Checking information extraction module, for extracting the checking information in the accessing page request;
Authority Verification module, for carrying out Authority Verification to the checking information extracted;
Page data returns to module, for after being verified, searching the page data of edit page, the page number that will find According to the terminal is back to, the terminal is set to show the edit page according to the page data of return, with the page Edlin is entered to test script file in face.
8. device according to claim 7, it is characterised in that described device also includes:
Request receiving module is obtained, request is obtained for the script for carrying user's mark that receiving terminal is sent;
File identification acquisition module, file identification corresponding to user's mark in request is obtained for obtaining the script;
Script file searching modul, the corresponding test script text of file identification for searching with extracting in script database Part;
Script file returns to module, for the test script file found to be back into the terminal, the terminal will be returned The test script file returned is shown in the edit page of the terminal.
9. according to the device described in claim any one of 6-8, it is characterised in that the file update module includes:
Script file comparison module, for the test script file read and the test script file found to be carried out Differentiation compares, and obtains more new content, the test script file found according to the renewal content update;
File identification extraction module, for extracting the file identification in the test script file read;
Content storage module is updated, for storing the more new content is corresponding with the file identification extracted to the script number According to storehouse.
10. device according to claim 9, it is characterised in that described device also includes:
Acquisition request module is reduced, the file for carrying file identification for obtaining terminal transmission reduces request;
Content search module is updated, is searched more in the script database for the file in file reduction request New content and test script file;
Script file recovery module, for according to more new content and test script file the reduction test script file found;
Also original returns to module, for the test script file of reduction to be back into the terminal.
CN201610829215.3A 2016-09-18 2016-09-18 Test script file updating method and device Active CN107844485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610829215.3A CN107844485B (en) 2016-09-18 2016-09-18 Test script file updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610829215.3A CN107844485B (en) 2016-09-18 2016-09-18 Test script file updating method and device

Publications (2)

Publication Number Publication Date
CN107844485A true CN107844485A (en) 2018-03-27
CN107844485B CN107844485B (en) 2020-09-18

Family

ID=61657201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610829215.3A Active CN107844485B (en) 2016-09-18 2016-09-18 Test script file updating method and device

Country Status (1)

Country Link
CN (1) CN107844485B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213748A (en) * 2018-08-13 2019-01-15 中国平安人寿保险股份有限公司 A kind of update method, server and the medium of database script file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032538A1 (en) * 2000-05-09 2002-03-14 Lee Young-Seok Software test system and method
CN102761861A (en) * 2011-04-27 2012-10-31 中国移动通信集团广东有限公司 Information updating method, server and information updating system
CN102968345A (en) * 2012-10-29 2013-03-13 北京奇虎科技有限公司 Note real-time synchronizing method and device
US20130290929A1 (en) * 2012-03-29 2013-10-31 Lg Cns Co., Ltd. Method of managing script, server performing the same and storage media storing the same
CN104660623A (en) * 2013-11-18 2015-05-27 北大方正集团有限公司 Method and system for network file offline editing
CN105847086A (en) * 2016-04-25 2016-08-10 奇酷软件(深圳)有限公司 Communication data sharing method, communication data sharing system and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032538A1 (en) * 2000-05-09 2002-03-14 Lee Young-Seok Software test system and method
CN102761861A (en) * 2011-04-27 2012-10-31 中国移动通信集团广东有限公司 Information updating method, server and information updating system
US20130290929A1 (en) * 2012-03-29 2013-10-31 Lg Cns Co., Ltd. Method of managing script, server performing the same and storage media storing the same
CN102968345A (en) * 2012-10-29 2013-03-13 北京奇虎科技有限公司 Note real-time synchronizing method and device
CN104660623A (en) * 2013-11-18 2015-05-27 北大方正集团有限公司 Method and system for network file offline editing
CN105847086A (en) * 2016-04-25 2016-08-10 奇酷软件(深圳)有限公司 Communication data sharing method, communication data sharing system and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李小喆: "基于GUI的回归测试脚本修复的研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213748A (en) * 2018-08-13 2019-01-15 中国平安人寿保险股份有限公司 A kind of update method, server and the medium of database script file
CN109213748B (en) * 2018-08-13 2023-10-27 中国平安人寿保险股份有限公司 Database script file updating method, server and medium

Also Published As

Publication number Publication date
CN107844485B (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN103246595B (en) Application management method, device, server and terminating unit
CN104573525B (en) A kind of specific information service software leak repair system based on white list
CN108667855B (en) Network flow abnormity monitoring method and device, electronic equipment and storage medium
US11030203B2 (en) Machine learning detection of database injection attacks
CN102804147A (en) Code inspection executing system for performing a code inspection of ABAP source codes
CN111881455B (en) Firmware security analysis method and device
CN101882135B (en) Data processing method and device
CN107844409A (en) Test example executing method and device
KR20120071834A (en) Automatic management system for group and mutant information of malicious code
CN109766697A (en) Vulnerability scanning method, storage medium, equipment and system applied to linux system
CN107870849A (en) The treating method and apparatus of test log
CN106529281A (en) Executable file processing method and device
CN107273264B (en) Method and device for tracking key attribute and associated attribute of object instance
CN105183648A (en) Visualized automatic dial testing method and system
CN109547294A (en) Networking equipment model detection method and device based on firmware analysis
US20120151581A1 (en) Method and system for information property management
CN113312258A (en) Interface testing method, device, equipment and storage medium
CN107844485A (en) The update method and device of test script file
CN104182479A (en) Method and device for processing information
CN109918638B (en) Network data monitoring method
KR101264792B1 (en) Personal information protection system
CN111079375B (en) Information sorting method and device, computer storage medium and terminal
CN104978273B (en) The automatic testing method and automatic detection unit of pad name
CN112379891B (en) Data processing method and device
CN110489125B (en) File management method and computer storage medium

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