The content of the invention
The embodiment of the present invention provides a kind of automatic test management method, device, terminal device and storage medium, to solveThe sharing that lacks correspondence and automatic test management platform between test cases and automatic test script is low, safeguardsThe problem of of high cost.
In a first aspect, the embodiment of the present invention provides a kind of automatic test management method, including:
Original test case is created in use-case editorial management platform, and the original test case is sent to use-case and is examinedCore platform;
Be based on the original test case in the use-case audits platform, acquisition target detection use-case, and by the meshMark test case is sent to use-case editorial management platform;
It is based on the target detection use-case in the use-case editorial management platform, obtains target detection script, and by instituteState target detection script and be sent to use-case test management platform;
Tested in the use-case test management platform based on the target detection script, obtain test result;
Wherein, the use-case editorial management platform, use-case examination & verification platform and the use-case test management platform pass throughB/S frameworks are connected.
Second aspect, the embodiment of the present invention provide a kind of automatic test managing device, including:
Original test case acquisition module, for creating original test case in use-case editorial management platform, and by instituteState original test case and be sent to use-case examination & verification platform;
Target detection use-case acquisition module, for being based on the original test case in auditing platform in the use-case, is obtainedTarget detection use-case is taken, and the target detection use-case is sent to use-case editorial management platform;
Target detection script acquisition module, is used for being based on the target detection in the use-case editorial management platformExample, obtains target detection script, and the target detection platform is sent to use-case test management platform;
Test result acquisition module, carries out for being based on the target detection script in the use-case test management platformTest, obtains test result;
Wherein, the use-case editorial management platform, use-case examination & verification platform and the use-case test management platform pass throughB/S frameworks are connected.
The third aspect, the embodiment of the present invention provide a kind of terminal device, including memory, processor and are stored in describedIn memory and the computer program that can run on the processor, the processor are realized when performing the computer programThe step of automatic test management method.
Fourth aspect, the embodiment of the present invention provide a kind of computer-readable recording medium, the computer-readable storage mediumMatter is stored with computer program, and the computer program realizes the step of the automatic test management method when being executed by processorSuddenly.
In automatic test management method provided in an embodiment of the present invention, device, terminal device and storage medium, first pass throughOriginal test case is created in use-case editorial management platform, and original test case is sent to by use-case based on B/S mechanisms and is examinedCore platform, to be based on original test case in use-case examination & verification platform, obtains target detection use-case, passes through B/S frameworks afterwardsAnd target detection use-case is sent to use-case editorial management platform.Finally, target detection is based in use-case editorial management platformUse-case, obtain target detection script, and based on B/S frameworks by target detection script be sent to use-case test management platform so as toTested in use-case test management platform based on target detection script, obtain test result.In the workflow each platform itBetween real time synchronization it is strong, be less prone to careless mistake, improve work efficiency, and by B/S frameworks by use-case editorial management platform,Use-case examination & verification platform is connected with use-case test management platform, can be used with making the user do not need downloading application software, sharing is highAnd maintenance cost is low.
Embodiment 1
Fig. 1 shows the flow chart of automatic test management method in the present embodiment.The automatic test management method can answerUsed in the financial institutions such as bank, security, insurance or other need to system carry out automatic test mechanism terminal device in,Using automatic test management method lifting testing efficiency, to reduce test maintaining cost.As shown in Figure 1, the automationTest and management method includes the following steps:
S10:Original test case is created in use-case editorial management platform, and original test case is sent to use-case and is examinedCore platform.
Wherein, use-case editorial management platform refers to that tester is used for creating the management platform of test case.Original testUse-case refers to tester according to the demand of test system to be measured into the obtained one group of survey for including test execution step of edlinExamination scheme.Use-case examination & verification platform is the platform for referring to audit the original test case transmitted by tester.
As shown in Fig. 2, in step S10, original test case is created in use-case editorial management platform, and by original testUse-case is sent to use-case examination & verification platform, specifically comprises the following steps:
S11:Sequentially show that at least two use-cases perform numbering on the configuration interface of use-case editorial management platform.
Wherein, the configuration interface of use-case editorial management platform refers to that tester inputs in click use-case Edit buttonDuring use-case edit instruction, use-case editorial management platform can be based on the interface that use-case edit instruction is jumped to.Use-case performs numberingRefer to the execution sequence of each step in the original test case that tester is edited.In the present embodiment, when jumping to use-caseDuring the configuration interface of editorial management platform, since interface resources are limited, which can be according to the use-case of the default quantity of displayNumbering is performed, such as showing 10 use-cases of 1-10 according to the order of Arabic numerals performs numbering;When tester wants to addWhen adding test case, batch addition manner or one by one addition manner can be selected, reduces interface resources occupation rate, lifting loadingSpeed.Specifically, when tester wants to add test case, use-case addition can be inputted to use-case editorial management platform and is referred toOrder, can customize the quantity of the use-case order number to be added of input in use-case addition instruction;Such as select batch addition sideDuring formula, can self-defined batch parameter, when batch parameter definition be 1 when, that is, select addition manner one by one, with reach addition it is convenientPurpose.
S12:Each use-case is performed numbering to associate with a basis action, forms original test case.
Wherein, basis action is some basic test actions that server prestores, such as the action of " login ".ThisIn embodiment, each use-case is performed to basis needed for one chosen during numbering is acted with tester on the basis prestoredActing (hereinafter referred to as target action) is associated, and forms one group of testing scheme for including at least one basis action, i.e., originalTest case.Sequentially show and sequentially perform since at least two use-cases perform numbering so that based on performing volume with use-caseThe original test case that number associated basis action is formed can perform the display of numbering in follow-up test in strict accordance with use-casePerformed with execution sequence, ensure that the test to system to be tested can be dynamic according to each basis in the designed original test case of userThe order of work performs, and strengthens the accuracy of test.
As shown in figure 3, in step S12, each use-case is performed into numbering and is associated with a basis action, original test is formed and usesExample, specifically comprises the following steps:
S1211:In each use-case performs and numbers corresponding input frame, action selection instruction input by user is obtained, is movedThe instruction that elects includes acting ID and/or denomination of dive.
Wherein, it is for selecting the instruction acted needed for user to act selection instruction.Action ID is to be used to unique identification takeThe mark of the basis action prestored in business device.Denomination of dive refer to tester input target action denomination of dive orThe denomination of dive of the basis action prestored in server.Specifically, each use-case perform all corresponding input frame of numbering withTester is set to input target action, tester can merely enter action ID, can also merely enter denomination of dive, or can be withInput action ID and denomination of dive at the same time, and after the completion of input click on confirming button and can input corresponding action selection and refer toOrder, so that the basis needed for being obtained based on the action selection instruction is acted.
S1212:Based on action ID and/or denomination of dive, numbering is performed with use example and is associated with basis action.
Specifically, the mode that tester obtains target action can have the following two kinds situation:First, tester knowsWhen the action ID and/or denomination of dive of target action are prestored in server, the action ID of target action can be directly inputtedAnd/or denomination of dive, to obtain target action.Second, tester does not know the action that target action is prestored in serverID and/or during denomination of dive, can input the target action to be realized of target action, use-case editorial management platform can be according to surveyThe target action that examination personnel are inputted, provides to tester and is acted to the corresponding similar basis of target action, for testPersonnel's selection target from the similar basis action provided acts, i.e., user can be selected by being inputted to use-case editorial management platformInstruction is selected, to be selected based on similar basis action and to determine target action.It is to be appreciated that if use-case editorial management platform pushes awayThe similar basis recommended acts no user institute target action to be used, then use-case editorial management platform can generate prompting exploit personMember loads the prompting message of the target action, and is sent to the client of the developer of the use-case editorial management platform, to carryThe developer that wakes up is based on prompting message and carries out basis action exploitation, so that the use-case editorial management platform is with more practicalityProperty, meet the needs of tester.
Further, use-case editorial management platform can use key when recommending similar basis action to testerWord matching algorithm, obtains and is acted to the corresponding similar basis of target action.Wherein, Keywords matching algorithm includes but not limited toCnut-Mo Lisi-Alexandre Desplat (Knuth-Morris-Pratt, hereinafter referred to as KMP) algorithm.Specifically, KMP algorithms are a kind ofImproved string matching algorithm, the keys of KMP algorithms are using the information after it fails to match, reduce pattern string and main string to the greatest extentMatching times to achieve the purpose that Rapid matching.In the present embodiment, the target that KMP algorithms input tester is selected to moveMake to carry out Keywords matching with the denomination of dive stored in database, obtain similar basis action, save the time, raising efficiency.
Specifically, server can be prestored comprising the key for being formed the denomination of dive of basis action as keywordWord information table, by the keyword in KMP algorithmic match target action and keyword message table, to determine that similar basis acts.Such as the keyword of " opening browser " can be browser, when tester inputs " click browser ", server can beIn the keyword message table prestored, recommend " opening browser " by matching keyword " browser " for testerAction, facilitate tester to use, lifted user experience.
In another embodiment, as shown in figure 4, in step S12, each use-case is performed into numbering and a basis is dynamicAssociate, specifically comprise the following steps:
S1221:The display base action lists on the configuration interface of use-case editorial management platform, basic action lists includeAt least one basis action.
Wherein, the configuration interface of use-case editorial management platform is the tester boundary shown when editing test caseFace.Basic action lists refer to that what is prestored in use-case editorial management platform includes the action column of at least two basis actionsTable.In the present embodiment, on the configuration interface of use-case editorial management platform in the form of grading list display base action lists.ToolBody, the basis action (i.e. target action) that tester also can be according to needed for being chosen basic action lists, so that testerFaster check all basis actions of server storage, lift user experience.
S1222:One basis action is dragged to using pulling mode and is performed with a use-case in the corresponding input frame of numbering, withUse example performs numbering and is associated with basis action.
Specifically, tester can use pulling mode to choose required basis action in basic action lists (i.e.Target action), it is dragged to and is performed with use-case in the corresponding input frame of numbering, so that the basis that tester chooses is movedIt is associated with use-case execution numbering to make (i.e. target action).In the present embodiment, tester is chosen using pulling modeBasis action (i.e. target action) is input to be performed in the corresponding input frame of numbering with use-case, and the operating process is simple, improvesWork efficiency.
As shown in figure 5, in an embodiment, the automatic test management method, step S10 further includes step beforeRapid S50:It is pre-configured with basic action lists.Wherein, as shown in fig. 6, the basic action lists of configuration specifically comprise the following steps:
S51:The request of at least two motion editings is obtained in use-case editorial management platform, it is dynamic that motion editing request includes basisMake corresponding denomination of dive.
Specifically, developer can be to the request of at least two motion editings be inputted on use-case editorial management platform, to be formedBasic action lists, use-case editorial management platform can call the basis prestored after basic motion editing request is receivedMotion editing template.The basis motion editing template includes the denomination of dive of basis action and corresponding action executing code.OpenHair personnel need to only edit the denomination of dive of basis action and corresponding action executing code, you can complete the volume to basis actionVolume, to reach streamline operation, the time is saved, puies forward efficient purpose.
S52:Clustering processing is carried out at least two denomination of dive using clustering algorithm, with use example editorial management platform pairBasis action carries out Classification Management, basis of formation action lists.
Specifically, the basis at least two denomination of dive obtain after clustering processing using K-means clustering algorithmsAction lists include at least two cluster class clusters, and each cluster class cluster corresponds to a behavior type, and each cluster class cluster includesOne barycenter.Each denomination of dive is calculated to the distance of barycenter using cosine similarity algorithm, by the distance being calculated minimumClassification of the cluster class cluster as the denomination of dive belonging to barycenter.Wherein, cosine similarity algorithm, also known as cosine similarity are calculatedMethod, is to assess the algorithm of their similarity by calculating two vectorial included angle cosine values.K-MEANS algorithms are that input is poly-Class number k, and the database of n data object is included, output meets a kind of algorithm of k cluster of variance minimum sandards, shouldThe complexity of algorithm is low, can handle mass data in a short time, improves efficiency.
Further, the step of carrying out clustering processing at least two denomination of dive using K-maens clustering algorithms is as follows:K are randomly selected from least two denomination of dive first and is used as barycenter, wherein, k represents the quantity of cluster class cluster.Use and divide againWord technology is segmented each denomination of dive (including barycenter), and each word is calculated in corresponding denomination of dive using TF-IDFWeights formed feature vector.Such as " opening browser " is segmented, obtain " opening " " browser " formation feature vector(vector dimension of this feature vector is 2);If the dimension of the feature vector of two denomination of dive is different, the spy of maximum dimension is takenThe corresponding dimension of sign vector is as final dimension, 0 polishing of use of other feature vector dimension deficiencies.Finally use cosineSimilarity algorithm calculates the corresponding feature vector of each denomination of dive and the distance of barycenter, by the matter of the distance being calculated minimumClassification of the cluster class cluster as the denomination of dive belonging to the heart.Wherein, the number of barycenter is determined by the quantity K of cluster class cluster, toolThe K values of body are self-defined by developer.In the present embodiment, participle technique can use stammerer participle instrument to be segmented, stammerer pointWord instrument is a kind of common Chinese word segmentation instrument, has the advantages that accuracy rate is high, efficient.
S20:Original test case is based in use-case audits platform, obtains target detection use-case, and target detection is usedExample is sent to use-case editorial management platform.
Wherein, target detection use-case refers to that auditor audits original test case, and after marking examination & verification to pass throughThe test case got.If the audit fails, original test case can be sent to use-case editor pipe by use-case examination & verification platformPlatform is modified, and amended original test case can be sent to use-case examination & verification platform by use-case editorial management platform afterwardsAudited, until auditing by obtaining target detection use-case.Alternatively, when if the audit fails, use-case examination & verification platform can obtainThe examination & verification modification instruction that auditor inputs is taken, and is modified based on examination & verification modification instruction to original test case, to obtainTake target detection use-case.
In an embodiment, as shown in fig. 7, before step S20, which further includes pairOriginal test case carries out examination & verification authority configuration.Wherein, examination & verification authority configuration is carried out to original test case, specifically included as followsStep:
S211:Examination & verification privileges configuration request input by user is obtained in use-case editorial management platform, audits authority configurationRequest includes auditor ID.
Specifically, if desired tester specifies auditor to the original when preserving the original test case edittedWhen beginning test case is audited, it may be selected to click on the examination & verification authority configuration button shown on interface, at this time use-case editorial managementPlatform can get examination & verification privileges configuration request input by user, which includes auditor ID, so thatOriginal test case distributes to the corresponding auditors of auditor ID.Wherein, auditor ID is recognizable auditorUnique mark.
S212:Based on examination & verification privileges configuration request, original test case is sent to use-case examination & verification platform, so that auditorThe corresponding examination & verification original test cases of interface display of member ID.
Specifically, tester audits original test case in the corresponding auditors of specified auditor IDWhen, click on and upload, original test case can be sent to and the corresponding examination & verifications of auditor ID by use-case editorial management platformInterface, and give the corresponding examination & verification mailboxes of auditor ID and send prompting message.
, can be direct it is to be appreciated that if tester need not specify auditor to audit original test caseSelection uploads, and original test case directly can be sent to use-case examination & verification platform by use-case editorial management platform, and be audited by use-casePlatform is allocated.Specifically, the task of each auditor includes task to be done in use-case examination & verification platformTask is completed.The task to be done that server can audit use-case each auditor in platform is determinedShi Tongji and store tasks information table, the mission bit stream table include the corresponding examination & verification mailbox of auditor ID, auditor ID andCorresponding task to be done.In the present embodiment, the upper limit of the task to be done of each auditor is pre-definedAlright.When use-case examination & verification platform receives the original test case for not specifying auditor, auditor couple is searched successivelyThe task to be done answered, if the quantity for finding task to be done does not reach the auditor of the upper limit, obtains the auditorMember ID, original test case can be sent to the corresponding examination & verification interfaces of the auditor ID by use-case examination & verification platform, and give examination & verificationThe corresponding examination & verification mailboxes of personnel ID send prompting message.The process rationally utilizes money by reasonable distribution task to reachThe purpose in source, improves efficiency.
In an embodiment, in step S20, original test case is based in use-case audits platform, obtains meshTest case is marked, is specifically comprised the following steps:
S221:Examination & verification instruction is obtained on the corresponding examination & verification interfaces of auditor ID, examination & verification instruction includes examination & verification mark.
In the present embodiment, each auditor logs in examination & verification circle corresponding with auditor ID by the login account number of oneselfFace;In use-case audits platform, any original test case audited may be selected in auditor, is examined with input selectionCore instructs, so that examination & verification interface display and the corresponding original test case of the examination & verification selection instruction.Auditor examination & verification when," examination & verification passes through " and " the audit fails " button shown on examination & verification interface is clicked on, to export corresponding examination & verification instruction, this is examinedThe examination & verification mark that core instruction carries can be that examination & verification passes through mark, or mark that the audit fails.
S222:If examination & verification is identified as examination & verification by mark, using original test case as target detection use-case.
Specifically, auditor audits original test case according to the judgement of oneself, if original test case is led toExamination & verification is crossed, which by (i.e. examination & verification passes through mark) and can be selected to confirm to protect by auditor labeled as examination & verificationDeposit, this can be passed through what is identified by use-case examination & verification platform when the examination & verification for getting the original test case is identified with examination & verificationTarget detection use-case is sent to use-case editorial management platform.If for original test case not by examination & verification, auditor can be by the originalBeginning test case is labeled as the audit fails (i.e. the audit fails identifies) and confirms to preserve, then use-case examination & verification platform can be gotExamination & verification modification instruction, examination & verification modification instruction include auditing suggestion for revision and the corresponding case management postal of use-case editorial management platformCase.Use-case audits platform and the original test case for the mark that carries that the audit fails and examination & verification suggestion for revision is being sent to useExample editorial management platform and transmission prompting message are to the corresponding mailbox of developer for creating the original test case, with enhancingThe real time synchronization of automatic test management process, is less prone to careless mistake, improves work efficiency.
In the present embodiment, if auditor mistake occurs to the mark of original test case, confirm to protect in no selectionIt can be modified in the state of depositing, use-case examination & verification platform, just can be by band only when receiving the instruction for confirming preservation stateThere is the original test case that examination & verification identifies to be sent to use-case editorial management platform, improve the fault-tolerance of management process.
S30:Target detection use-case is based in use-case editorial management platform, obtains target detection script, and target is surveyedTraining is originally sent to use-case test management platform.
Wherein, automatic test needs to be tested according to test script, it is therefore desirable to by target detection use-case into traveling far and wideThis change is handled.Specifically, target detection script is the test script for handling the progress scripting of target detection use-case.Use-caseObtained target detection script can be sent to use-case test management platform by editorial management platform, and send prompting message to testMailbox is managed, strengthens the real time synchronization of work management flow.
As shown in figure 8, in step S30, target detection use-case is based in use-case editorial management platform, obtains target detectionScript, specifically comprises the following steps:
S31:Target detection use-case is based in use-case editorial management platform, sequentially calls and performs volume with least two use-casesNumber corresponding action executing code, forms original test script.
Wherein, use-case performs numbering also associated storage action executing code corresponding with the action ID of each basis action.Specifically, use-case editorial management platform is receiving the target detection for carrying examination & verification and passing through mark of use-case examination & verification platform transmissionAfter use-case, the use-case scripting instruction of tester's input can be obtained.Use-case scripting instruction includes acting ID.Use-case editorManagement platform can be performed based on each use-case in action ID sequentially invocation target test case and number corresponding action executing code,To form original test script.The process writes test script according to target detection use-case again without tester, can be directStored action executing code is called, saves the time, improves work efficiency.
S32:Script modification instruction input by user is obtained, script modification instruction includes acting ID and adjustment parameter.
It is to be appreciated that each basis, which acts corresponding action executing code, includes method function and corresponding original ginsengNumber.Wherein, adjustment parameter refers to the parameter inputted when tester modifies original test script according to system requirements.Specifically, action executing code includes being used for realization the method function of basis action and corresponding initial parameter;At this time, Yong HukeTo the input script modification instruction of use-case editorial management platform, the adjusting that initial parameter is revised as in script modification instruction is joinedNumber.Such as when the basis action of tester's selection is " opening browser ", its corresponding action executing script is including being used forRealize the method function of printing browser function and corresponding initial parameter, the network address of browser can be modified, inputtedRequired adjustment parameter (network address needed for i.e.), so that original test case more closes the demand for meeting test system to be measured.
S33:Based on adjustment parameter, action executing code corresponding with action ID in original test script is changed, to be formedTarget detection script.
Specifically, the corresponding adjustment parameter of each action executing code obtained by step S32 changes original test footAction executing code corresponding with action ID, to form target detection script, and is sent to use-case by target detection script in thisTest management platform.In the present embodiment, reception is can also be configured before transmission target detection script to use-case test management platformThe tester ID and corresponding mailbox of test result so that test system to be measured corresponds to a tester, to strengthen work managementFlow logic.
S40:Tested in use-case test management platform based on target detection script, obtain test result.
Wherein, test result includes passing through and not passing through.Specifically, after the completion of test, use-case test management platform meetingTest result is sent to mailbox corresponding with tester ID.In the present embodiment, tester also can be by use-case test and managementTest system to be measured in platform is grouped batch testing, increases work efficiency.
Specifically, unsanctioned test result can be sent to the progress of use-case defect management platform by use-case test management platformAnalysis.Wherein, defect list can be shown in use-case defect management platform, which includes at least one defect type, oftenA defect type includes test defect description and test defect solves method.In the present embodiment, use-case defect management platform is dividingDuring the defects of analysing unsanctioned test result (i.e. target defect), analysis personnel can choose and target detection defect from defect listThe defects of similar type, use-case defect management platform can be by the description of the defect type corresponding test defect and test defect solutionCertainly method, the defects of generating html (hypertext markup language) form, report, and the defect report is sent to and testerThe corresponding mailboxes of ID.The process need not analyze personnel and edit defect handling method, save the time, and tester can be according to pushing awayThe defects of recommending solves method processing defect, improves work efficiency.
In the present embodiment, use-case defect management platform includes defect report template, which includes defect classPattern block, defect describing module and defect solve method module, during test analysis personnel need to only choose from defect list choose withThe defects of target detection defect is similar type, you can generation defect report, saves the time, improve work efficiency.
In the present embodiment, use-case editorial management platform, use-case examination & verification platform, use-case test management platform and use-case defect pipePlatform is connected by B/S frameworks.Wherein, B/S frameworks, that is, browser and server structure, under this configuration, user jobInterface is realized by web browser, and few partial transaction logic is realized in browser (Browser), but major affairsLogic is realized in server (Server).B/S frameworks are a kind of network structure patterns after WEB rises, and web browser is clientHold most important application software.User, as long as installation browser can be used, substantially reduces maintenance cost without downloading.
In the present embodiment, first pass through and original test case is created in use-case editorial management platform, and incited somebody to action based on B/S mechanismsOriginal test case is sent to use-case examination & verification platform, to be based on original test case in use-case examination & verification platform, obtains targetTest case, is sent to use-case editorial management platform by B/S frameworks by target detection use-case afterwards.Finally, in use-case editorTarget detection use-case is based in management platform, obtains target detection script, and be sent to target detection script based on B/S frameworksUse-case test management platform obtains test knot to be tested in use-case test management platform based on target detection scriptFruit.Real time synchronization in the workflow between each platform is strong, is less prone to careless mistake, improves work efficiency, and pass through B/SUse-case editorial management platform, use-case examination & verification platform are connected by framework with use-case test management platform, are answered with making the user do not need to downloadIt can be used with software, sharing is high and maintenance cost is low, and the automated testing method is pre-created basic action listsChecked for user, operating process is simple, saves the time, improves work efficiency.
It is to be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodimentExecution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logicIt is fixed.
Embodiment 2
Fig. 9 shows the original with the one-to-one automatic test managing device of automatic test management method in embodiment 1Manage block diagram.As shown in figure 9, the automatic test managing device includes original test case acquisition module 10, target detection use-caseAcquisition module 20, target detection script acquisition module 30, test result acquisition module 40, action lists configuration module 50.Wherein,Original test case acquisition module 10, target detection use-case obtain 20 modules, target detection script acquisition module 30, test resultAcquisition module 40 and action lists configuration module 50 realize function step corresponding with automatic test management method in embodimentRapid to correspond, to avoid repeating, the present embodiment is not described in detail one by one.
Original test case acquisition module 10, for creating original test case in use-case editorial management platform, and willOriginal test case is sent to use-case examination & verification platform.
Target detection use-case acquisition module 20, for being based on original test case in auditing platform in use-case, obtains targetTest case, and target detection use-case is sent to use-case editorial management platform.
Target detection script acquisition module 30, for being based on target detection use-case in use-case editorial management platform, obtainsTarget detection script, and target detection platform is sent to use-case test management platform.
Test result acquisition module 40, for being tested in use-case test management platform based on target detection script,Obtain test result.
Action lists configuration module 50, for being pre-configured with basic action lists.
Wherein, the use-case editorial management platform, use-case examination & verification platform and the use-case test management platform pass throughB/S frameworks are connected.
Preferably, original test case acquisition module 10 includes use-case execution numbering display unit 11 and original test caseAcquiring unit 12.
Use-case performs numbering display unit 11, for sequentially being shown at least on the configuration interface of use-case editorial management platformTwo use-cases perform numbering.
Original test case acquiring unit 12, associates with a basis action for each use-case to be performed numbering, is formed formerBeginning test case.
Preferably, original test case acquiring unit 12 includes action selection instruction acquisition subelement 1211, use-case performsNumbering association subelement 1212.
Act selection instruction and obtain subelement 1211, used in performing in each use-case and numbering corresponding input frame, obtainAction selection instruction input by user, action selection instruction include action ID and/or denomination of dive.
Use-case performs numbering association subelement 1212, for based on action ID and/or denomination of dive, volume to be performed with use exampleNumber with basis action associate.
Preferably, original test case acquiring unit 12 further includes basic action lists and shows that subelement 1221 and basis are movedElect subelement 1222.
Basic action lists show subelement 1221, for the display base on the configuration interface of use-case editorial management platformAction lists, basic action lists include at least one basis and act.
Basis action selection subelement 1222, is performed for being dragged to a basis action using pulling mode with a use-caseNumber in corresponding input frame, perform numbering with use example associates with basis action.
Preferably, which further includes motion editing unit 51 and basic action lists acquiring unit52。
Motion editing unit 51, for obtaining the request of at least two motion editings in use-case editorial management platform, action is compiledCollecting request includes the corresponding denomination of dive of basis action.
Basic action lists acquiring unit 52, for being carried out using clustering algorithm at least two denomination of dive at clusterReason, acts basis with use example editorial management platform and carries out Classification Management, basis of formation action lists.
Preferably, which further includes examination & verification authority configuration acquiring unit 211 and original test is usedExample transmitting element 212.
Authority configuration acquiring unit 211 is audited, for obtaining examination & verification power input by user in use-case editorial management platformConfiguring request is limited, examination & verification privileges configuration request includes auditor ID.
Original test case transmitting element 212, for based on examination & verification privileges configuration request, original test case to be sent toUse-case audits platform, so that the corresponding examination & verification original test cases of interface display of auditor ID.
Preferably, target detection use-case acquisition module 20 includes examination & verification instruction acquiring unit 221 and target detection use-case obtainsTake unit 222.
Examination & verification instruction acquiring unit 221, for obtaining examination & verification instruction, examination & verification on the corresponding examination & verification interfaces of auditor IDInstruction includes examination & verification mark.
Target detection use-case acquiring unit 222, if being identified as examination & verification by mark for auditing, original test case is madeFor target detection use-case.
Preferably, target detection script acquisition module 30 includes original test script acquiring unit 31, script modification instructionAcquiring unit 32 and target detection script acquiring unit 33.
Original test script acquiring unit 31, for being based on target detection use-case in use-case editorial management platform, sequentiallyAction executing code corresponding with least two use-cases execution numbering is called, forms original test script.
Script modification instruction acquiring unit 32, for obtaining script modification instruction input by user, script modification instruction bagInclude action ID and adjustment parameter.
Target detection script acquiring unit 33, for based on adjustment parameter, changing in original test script with acting ID pairsThe action executing code answered, to form target detection script.
Embodiment 4
Figure 10 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in Figure 10, the terminal of the embodimentEquipment 100 includes:Processor 101, memory 102 and storage are in the memory 102 and the meter that can run on processor 101Calculation machine program 103.Processor 101 realizes above-mentioned each automatic test management method embodiment when performing computer program 103In step, such as the step S10 to S40 shown in Fig. 1.Alternatively, realized during the execution computer program 103 of processor 101 above-mentionedThe function of each module/unit in each device embodiment, such as the function of module 10 to 50 shown in Fig. 9.
Exemplary, computer program 103 can be divided into one or more module/units, one or more mouldBlock/unit is stored in memory 102, and is performed by processor 101, to complete the present invention.One or more module/unitsCan be the series of computation machine programmed instruction section that can complete specific function, which is used to describe computer program 103Implementation procedure in terminal device 100.For example, computer program 103 can be divided into original test case acquisition module10th, target detection use-case obtains 20 modules, target detection script acquisition module 30, test result acquisition module 40 and examination & verification authorityConfiguration module 50.Each module concrete function as described in Example 2, does not repeat one by one herein.
Terminal device 100 can be the computing devices such as desktop PC, notebook, palm PC and cloud server.Terminal device may include, but be not limited only to, processor 101, memory 102.It will be understood by those skilled in the art that Figure 10 is onlyIt is the example of terminal device 100, does not form the restriction to terminal device 100, can includes than illustrating more or fewer portionsPart, either combines some components or different components, such as terminal device can also include input-output equipment, network connectsEnter equipment, bus etc..
Alleged processor 101 can be central processing unit (Central Processing Unit, CPU), can also beOther general processors, digital signal processor (Digital Signal Processor, DSP), application-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 can also be any conventional processorDeng.
Memory 102 can be the internal storage unit of terminal device 100, such as the hard disk or memory of terminal device 100.Memory 102 can also be the plug-in type hard disk being equipped with the External memory equipment of terminal device 100, such as terminal device 100,Intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (FlashCard) etc..Further, memory 102 can also both include the internal storage unit of terminal device 100 or including external storageEquipment.Memory 102 is used to store computer program and other programs and data needed for terminal device 100.Memory 102It can be also used for temporarily storing 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 work(Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by differentFunctional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completionThe all or part of function of description.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can alsoThat unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated listMember can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing orIn use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementationAll or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer programCalculation machine program can be stored in a computer-readable recording medium, the computer program when being executed by processor, it can be achieved that onThe step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generationCode can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable mediumIt can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, the magnetic of the computer program code can be carriedDish, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM,Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that describedThe content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practiceSubtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal andTelecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing realityExample is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to foregoing eachTechnical solution described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changedOr replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical solution, should allWithin protection scope of the present invention.