CN108459957A - Test method, device, equipment and the storage medium of fund system test case - Google Patents
Test method, device, equipment and the storage medium of fund system test case Download PDFInfo
- Publication number
- CN108459957A CN108459957A CN201711221943.7A CN201711221943A CN108459957A CN 108459957 A CN108459957 A CN 108459957A CN 201711221943 A CN201711221943 A CN 201711221943A CN 108459957 A CN108459957 A CN 108459957A
- Authority
- CN
- China
- Prior art keywords
- keyword
- test
- test case
- drag
- script
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to automatization testing technique field, the present invention provides a kind of test method, device, equipment and the storage medium of fund system test case, and the test method of fund system test case includes:The corresponding code of the execution action of test case in test case data library is divided into disparate modules, so that each module is formed removable motion block on visualization interface and shown in the form of keyword by read test use-case data library;Permutation and combination is carried out to keyword to the drag operation of keyword according to user and forms test script;The keyword in test script is parsed to execute the test script, it converts keyword to and executes action, pass through the explanation to these keywords in lower layer, it is translated into specific action, the script that fund industry tester can quickly use greatly reduces the requirement for creating test case to personnel's program capability.
Description
Technical field
The present invention relates to automatization testing technique field more particularly to a kind of test method of fund system test case,
Device, equipment and storage medium.
Background technology
Currently, tested using test script in fund system automatic test, need according to test script language into
Row programming, especially needs continuous changed test script in test process, tester reprograms again, and test script
Language rule is complicated, and the business personnel and tester of fund system do not allow readily understood, the program capability requirement to tester
It is higher, cause working efficiency relatively low.
Invention content
The purpose of the present invention is to provide a kind of test method of fund system test case, device, equipment and storages to be situated between
Matter can realize the establishment of test case with the mode of dragging, and realize the automatic test of test script, and establishment is made to test
Use-case is no longer influenced by personnel's program capability.
The invention is realized in this way first aspect present invention provides a kind of test method of fund system test case,
The test method of the fund system test case includes:
Read test use-case data library, the execution action of the test case in the test case data library is corresponding
Code is divided into disparate modules, so that each module is formed removable motion block on visualization interface and is shown in the form of keyword
Show;
Permutation and combination is carried out to keyword to the drag operation of the keyword according to user and forms test script;
The keyword in the test script is parsed to execute the test script, it is dynamic to convert the keyword to execution
Make.
Second aspect of the present invention provides a kind of test device of fund system test case, the fund system test case
Test device include:
Key generator module is used for read test use-case data library, and the test in the test case data library is used
The code that the execution action of example is corresponding is divided into disparate modules, make each module formed on visualization interface removable motion block and with
The form of keyword is shown;
Test script generation module, for carrying out arrangement group to keyword to the drag operation of the keyword according to user
Conjunction forms test script;
Test script execution module is incited somebody to action for parsing the keyword in the test script to execute the test script
The keyword, which is converted into, executes action.
Third aspect present invention provides a kind of terminal device, including memory, processor and is stored in the memory
In and the computer program that can run on the processor, the processor realize such as this hair when executing the computer program
The step of bright first aspect the method.
Fourth aspect present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has
Computer program, when the computer program is executed by processor realize as described in the first aspect of the invention method the step of.
The embodiment of the present invention provides a kind of test method, device, equipment and the storage medium of fund system test case, will
The test case read resolves into different modules, and each module corresponds to keyword and shown on visualization interface, according to
Family carries out permutation and combination to keyword to the drag operation of keyword and forms different test scripts, executes test script and obtains
Keyword in test script, parse keyword, and execute it is corresponding in keyword execute action, by by code wrap at pass
Key word, and make its visualization and removableization, which is exposed to fund industry by simple readily comprehensible top layer's keyword
Tester uses, and in lower layer by the explanation to these keywords, is translated into specific action, and fund industry is allowed to test
The script that personnel can quickly use greatly reduces the requirement for creating test case to personnel's program capability.In addition, should
Keyword scalability is strong, can easily be expanded new action, and grammer is simple, and scalability is strong, is convenient for the later stage
It safeguards
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some
Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow chart of the test method for fund system test case that an embodiment of the present invention provides;
Fig. 2 is a kind of flow chart of the test method for fund system test case that another embodiment of the invention provides;
Fig. 3 is the step S40 in a kind of test method for fund system test case that an embodiment of the present invention provides
A kind of embodiment provide particular flow sheet;
Fig. 4 is the step S20 in a kind of test method for fund system test case that an embodiment of the present invention provides
Particular flow sheet;
Fig. 5 is the step S202 in a kind of test method for fund system test case that an embodiment of the present invention provides
Particular flow sheet;
Fig. 6 is a kind of flow chart of the test method for fund system test case that another embodiment of the invention provides;
Fig. 7 is a kind of structural representation of the test device for fund system test case that another embodiment of the invention provides
Figure;
Fig. 8 is the test foot in a kind of test device for fund system test case that another embodiment of the invention provides
The structural schematic diagram of this generation module;
Fig. 9 is a kind of structural representation of the test device for fund system test case that another embodiment of the invention provides
Figure;
Figure 10 is the verification in a kind of test device for fund system test case that another embodiment of the invention provides
The structural schematic diagram of module;
Figure 11 is the structural schematic diagram for the terminal device that another embodiment of the invention provides.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right
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.
In order to illustrate technical scheme of the present invention, illustrated below by specific embodiment.
The embodiment of the present invention provides a kind of test method of fund system test case, as shown in Figure 1, the fund system is surveyed
The test method of example on probation includes:
Step S10. read test use-case datas library, the execution action institute of the test case in test case data library is right
The code answered is divided into disparate modules, so that each module is formed removable motion block on visualization interface and is carried out in the form of keyword
Display.
In step slo, the test case in read test use-case data library, reading manner can be connecting test use-cases
Management tool carrys out read test use-case;It is by the execution of the test case in test case data library to carry out piecemeal to test case
The corresponding code of action is divided into disparate modules, and the module being divided into is the unit for the minimum code for realizing a function, keyword
It is the title in code mapping table corresponding with the operational order in test case.Such as:
Above-mentioned code is the test case for being related to scroll bar, wherein<Style type=" text/css ">body
{scrollbar-face-color:#330033;}</style>, to realize the minimum code unit of a function;Each module
It generates removable motion block and is shown in the form of keyword, realize code visualization, keyword " scroll bar table can be used
Face color is set " show removable motion block, hiding code is below<Style type=" text/css ">body
{scrollbar-face-color:#330033;}</style>.
It should be noted that key word library is updated according to the update in the test case data library read.For example, passing through
The test case management tool of connection is then updated key word library by networking or a collection of test case of artificial importing.
Step S20. carries out permutation and combination to keyword to the drag operation of keyword according to user and forms test script.
In step S20, when detecting drag operation of the user to keyword, for example, detecting that user is drawn with mouse
When moving some keyword, the keyword is made to be moved according to the place that user drags, the dragging behavior for user, on surface
It is the recombination to keyword, will by the recombination of the code of module array, is actually the process for generating new test script.Example
Such as, user passes through the keywords such as dragging " beginning, last registration, continues broadcasting, time setting, end at login ", you can creates one
A new test script.
In step S20, as an implementation, after the arrangement for completing keyword, test script tabular mould is established
Plate, by application configuration file, the test script language syntax of test case tabular template and keyword is tied up in realization
Fixed, the keyword setting steps data to forming each step in test script arrange, and test case writer passes through in the template
In keyword of filling in line by line correspond to step parameter needed for step, to form the test case table with flow and step data
Lattice are realized that test script automatically generates engine modules based on test case tabular module and binding relationship configuration module, are passed through
The engine carries out parsing test case table, and reads its script grammer binding configuration file, line by line by the binding of each row content
Script syntactic element is associated, and then carrying out the pattern based on regular expression to cell content, that is, test parameter knows
Not, its semanteme is obtained, and then automatically generates corresponding script.
Step S30. parses the keyword in the test script to execute the test script, converts keyword to and holds
Action is made.
It in step s 30, can be by language interpreter progress, interpreter read test script to explaining for keyword
In keyword, identify action that needs execute further according to corresponding syntax rule, these actions then passed into bottom again
The operation module of layer, operation module is again to the operation put into practice in each application program, for example opens the page, carries out fund
Apply to purchase and inquire database etc..The test object in keyword specially acquisition keyword is parsed, object is executed and holds
Row parameter executes action according to test object, execution object and execution parameter.For example, to above-mentioned keyword " scroll bar surface
When color settings " are parsed, it is scroll bar to obtain the test object in keyword, and it can be pressing on scroll bar to execute object
Button, rolling sliding slot, scroll bar track etc., execution parameter is set specific color, is also needed to according to pre- when parsing keyword
Determine syntax rule to be parsed, for example, syntax rule can be arranged, script is defined as defin, logic judgment is
If...else..., loop test do...while..., for.., testing procedure Steps, inspection rule Rule, inspection
It is Scenario etc. to make an inventory of as Check, test scene.
The embodiment of the present invention provides a kind of test method of fund system test case, and the test case read is decomposed
At different modules, each module corresponds to keyword and is shown on visualization interface, according to user to the drag operation of keyword
Permutation and combination is carried out to keyword and forms different test scripts, execute test script and obtains the keyword in test script,
Parse keyword, execute keyword in it is corresponding execute action, by by code wrap at keyword, and make its visualization with can
Simple readily comprehensible top layer's keyword is exposed to fund industry tester and used by mobile, the language, logical in lower layer
The explanation to these keywords is crossed, specific action is translated into, the foot that fund industry tester can quickly use
This language greatly reduces the requirement for creating test case to personnel's program capability.In addition, the keyword scalability is strong, energy
Enough easily to be expanded new action, grammer is simple, and scalability is strong, is convenient for later maintenance.
Further, as an implementation, as shown in Fig. 2, further including step 40 after step S30.
The code integrity of step S40. validation test scripts, makes the code of test script meet automated test tool generation
The code of code specification.
In step s 40, check whether the script of automation generation is complete and whether has syntax error.
For the step S40 in above-described embodiment, as an implementation, as shown in figure 3, including:
The test case information that step S401. additions generate.
Step S402. adds exception handling code, exception handling code try- in the outer layer of automatic test script
Catch codes.
Whether step S403. has syntax error according to try-catch code checks automatic test script, if nothing, holds
Row step S405, directly generates final version;If so, thening follow the steps S404.
Specifically, if try will correctly be done directly test, if try mistakes will walk catch codes, Jin Erjian
Measure grammer whether mistake.
Step S404. sends out miscue, and tester is made to be modified according to miscue.
Step S405. directly generates final version.
Specifically, test process may be used such as under type:
try
{
It is possible that there is the automatic test script code of mistake
}
catch
{
Processing after error
}
If the code in try does not malfunction, after the content in normal program operation try, it is not carried out in catch
Content,
If the code in try is once error, program, which is jumped into immediately in catch, goes to execute code, then malfunctioning in try generation
All codes after code just no longer perform, and when encountering exception throws, will carry out abnormality processing, the mistake of algorithm according to following algorithm
Journey is as follows:
Begin
(1) if checks exception throws
(2) it will be indicated in thread on the mark position occurred extremely
(3) for takes out the stack frame do of current function Method
(4) all exception handling codes in scanning function, the abnormality processing block found out and currently matched extremely
(5) if finds do
(6) cycle is jumped out
(7)else
(8) stack that Different Strategies are carried out according to the type of current stack frame retracts, and stack frame (9) if for finding a function takes
Frame of popping is interrupt stack frame do
(10) thread exception bits are still set, upper layer of throwing to is handled
(11)end if
(12)end for
(13) matched abnormality processing block is had found, is prompted, and according to the type of current stack frame, takes different plans
PC values are slightly updated, are jumped at the first instruction of Catch blocks
(14)end if
End。
The embodiment of the present invention can verify the code integrity of automatic test script, make the code of automatic test script
Meet the code of automated test tool code specification.
For the step S20 in above-described embodiment, as an implementation, as shown in figure 4, according to user to keyword
Drag operation to keyword carry out permutation and combination, form different test cases, including:
Step S201. obtains the drag operation that user carries out, and the corresponding dragging prompt of the keyword for obtaining drag operation
Information.
In step s 201, when user drags keyword, the corresponding prompt message of keyword is detected at this time, it should
Prompt message can be the prompt message that keyword itself carries, such as the rule etc. of keyword, can also be that user is dragging
Some prompts of self-defining before dynamic keyword, such as the logical place etc. belonging to keyword, wherein logical place refers to closing
Key word meets the position of logic execution sequence, is essentially dependence from top to bottom, such as keyword between logical order
For " login ", " inquiry " and " exiting ", logical place is front end, middle-end and rear end.
Step S202. shows the drag prompt information, and is dragged according to described in the movement of the motion track of the drag operation
Prompt message is dragged, so that user can view the drag prompt information during dragging operation described in progress.
In step S202, when pulling keyword movement, prompt message is moved with track is pulled.As one kind
Embodiment, the color of word is different from the color of keyword in prompt message, and in prompt message word font size not
Be same as the font size of keyword, for example, when keyword color and font are black four, text color in prompt message and
Font is red small by five.The present embodiment is conducive to user and sees prompt message constantly, and does not obscure mutually with keyword.
For the step S202 in above-described embodiment, as an implementation, as shown in figure 5, including:
For step S2021. when pulling keyword to certain positions, the drag prompt information display parameters prompt is to prompt
The different parameter of user setting.
In step S2021, when pulling keyword to certain positions, in order to adapt to the position, need in keyword
Certain parameters in portion's code are modified, and can send out modification parameter prompts at this time, and user can be voluntarily arranged according to demand
Parameter.
Step S2022. sends out wrong drag prompt information and carries out when the position that keyword is dragged to is not inconsistent logical
Prompt.
In step S2022, occur the main reason for miscue be under keyword hide code logic according to dragging
Sequence it is unworkable, prompt user replace position or replace keyword.
The embodiment of the present invention shows the prompt message of keyword when user pulls keyword, and user is made to be believed according to prompt
Breath more accurately carries out group to keyword and is shaped as test case, provides the efficiency that user creates test case.
It, can be to the survey including the keyword when the code to keyword is modified as another embodiment
Example on probation carries out regression test, and regression test refers to after having modified the old code of keyword, again to the test case of keyword
It is tested to confirm modification without introducing new mistake or other codes being caused to generate mistake.As shown in fig. 6, the fund system
The test method of test case includes:Further include:
Step S301. is when the sound code file of keyword is changed, by test case, sound code file and sound code file
The corresponding keyword of middle statement line forms mapping relations.
It is capped the corresponding keyword of statement line in step S302. detection sound code files, there will be capped statement line pair
Test case where the keyword answered is determined as the test case returned.
Based on step 301 and step S302, sound code file can correspond to multiple keywords, for example, the source generation of query function
Code can be divided into login according to its execution action, inquire and exit keyword, wherein the 1st to 10 row of sound code file 1 corresponds to
Keyword is logged in, the 11st to 20 row of sound code file 1 corresponds to key word of the inquiry, and the 21st to the 30 row correspondence of sound code file 1 exits
Keyword, test case 1 to test case 5 are related from the sound code file of different keywords, wherein are obtained for each test case
It is to following mapping relations:
1, test case 1 has used login keyword, i.e. test case 1, sound code file 1, test case 1 to cover source code text
Mapping relations between 1st to 10 row of part 1;
2, test case 2 has used key word of the inquiry, test case 2, sound code file 1, test case 2 to cover sound code file
Mapping relations between 1 the 11st to 20 row;
3, test case 3, which has used, exits keyword, and test case 3, sound code file 1, test case 3 cover sound code file
Mapping relations between 1 the 21st to 30 row;
4, test case 4 has used login keyword, key word of the inquiry and has exited keyword, test case 4, source code text
Part 4, test case 4 cover the mapping relations between the 1st to 30 row of sound code file 1.
Code in the 1st row to 10 rows of modification sound code file 1, can be corresponded to the 1st row to 10 rows in sound code file 1
Keyword search and include the mapping relations of the keyword, you can obtain test case 1 and 4 corresponding mapping of test case pass
Include the keyword in system, the test case 1 and 4 in the mapping relations found is determined as the use-case that needs return, and
Test case 2 and test case 3 need not then return.
In above-mentioned steps, when the sound code file of the keyword in test case is modified or is replaced, then source code
The statement line of file is changed, and corresponding with the statement line in the sound code file keyword of test case is made to correspond, can be with
Found according to the capped corresponding keyword of statement line and need the test case that returns, compared with the prior art, can quickly,
The use-case of needs recurrence is accurately positioned out.
Another kind embodiment of the invention provides a kind of test case creation device 50, as shown in fig. 7, test case creation fills
Setting 50 includes:
Key generator module 501 is used for read test use-case data library, by the test case in test case data library
The corresponding code of execution action be divided into disparate modules, each module forms removable motion block on visualization interface and with key
The form of word is shown;
Test script generation module 502, for being arranged keyword the drag operation of the keyword according to user
Row combination forms test script;
Test script execution module 503, for executing the test script and parsing the keyword in the test script,
It converts the keyword to and executes action.
Further, as shown in figure 8, test script generation module 502 further includes:
Prompt message display unit 511, the drag operation for obtaining user's progress, and obtain the pass of the drag operation
The corresponding drag prompt information of key word, shows the drag prompt information of the acquisition;
Prompt message mobile unit 512, for moving the dragging prompt letter according to the motion track of the drag operation
Breath;
Key combination unit 512 forms test script for carrying out permutation and combination to keyword.
Further, the prompt message display unit 511 is additionally operable to when pulling keyword to predeterminated position, is made described
Drag prompt information display parameters prompt the parameter to prompt user setting different, and work as the position that the keyword is dragged to
When not being inconsistent logical, sends out wrong drag prompt information and prompted.
Further, as shown in figure 9, test case creation device 50 further includes authentication module 504, the authentication module
504 for checking whether the script of automation generation is complete and whether has syntax error.
Further, as shown in Figure 10, authentication module 504 includes:
Test case information adding device 514, for adding test case information, the test case information includes:It surveys
Example title on probation and ID;
Exception handling code adding device 515 adds abnormality processing generation for the outer layer in the automatic test script
Code, the exception handling code are try-catch codes;
Errors validity unit 516, for whether being had according to automatic test script described in the try-catch code verifications
Grammer and mistake is write, if verification does not pass through, sends out miscue, if passing through, generate final automatic test script.
The specific work process of module, can refer to corresponding processes in the foregoing method embodiment in above-mentioned terminal device,
Details are not described herein.
Another kind embodiment of the invention provides a computer readable storage medium, is stored on the computer readable storage medium
There is computer program, which realizes the survey of the fund system test case in above-described embodiment when being executed by processor
Method for testing, to avoid repeating, which is not described herein again.Alternatively, the computer program realizes above-described embodiment when being executed by processor
The function of each module/unit in the test device of middle fund system test case, to avoid repeating, which is not described herein again.
Figure 11 is the schematic diagram of terminal device in the present embodiment.As shown in figure 11, terminal device 6 includes processor 60, deposits
Reservoir 61 and it is stored in the computer program 62 that can be run in memory 61 and on processor 60.Processor 60 executes calculating
Each step of test case creation method in above-described embodiment, such as step S10, S20 shown in FIG. 1 are realized when machine program 62
And S30.Alternatively, processor 60 realizes the test dress of fund system test case in above-described embodiment when executing computer program 62
Set the function of each module/unit.
Illustratively, computer program 62 can be divided into one or more module/units, one or more mould
Block/unit is stored in memory 61, and is executed by processor 60, to complete the present invention.One or more module/units can
To be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing computer program 62 at end
Implementation procedure in end equipment 6.For example, computer program 62 can be divided into key generator module 501, test case life
At module 502 and test case script generation module 503.
The terminal device 6 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 60, memory 61.It will be understood by those skilled in the art that Figure 11 is only
The example of terminal device 6 does not constitute the restriction to terminal device 6, may include components more more or fewer than diagram, or
Combine certain components or different components, for example, terminal device can also include input-output equipment, network access equipment,
Bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field 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 processor
Deng.
Memory 61 can be the internal storage unit of terminal device 6, such as the hard disk or memory of terminal device 6.Storage
Device 61 can also be the plug-in type hard disk being equipped on the External memory equipment of terminal device 6, such as terminal device 6, intelligent storage
Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..
Further, memory 61 can also both include terminal device 6 internal storage unit and also including External memory equipment.Memory
61 for storing other programs and data needed for computer program and terminal device.Memory 61 can be also used for temporarily
Store the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The 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, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of test method of fund system test case, which is characterized in that the test side of the fund system test case
Method includes:
Read test use-case data library, by the corresponding code of the execution action of the test case in the test case data library
It is divided into disparate modules, each module is made to form removable motion block on visualization interface and is shown in the form of keyword;
Permutation and combination is carried out to keyword to the drag operation of the keyword according to user and forms test script;
The keyword in the test script is parsed to execute the test script, the keyword is converted to and executes action.
2. test method as described in claim 1, which is characterized in that according to user to the drag operation of the keyword to closing
Key word carries out permutation and combination and forms test script, including:
Obtain the drag operation that user carries out, and the corresponding drag prompt information of keyword for obtaining the drag operation;
It shows the drag prompt information, and the drag prompt information is moved according to the motion track of the drag operation, and
Permutation and combination is carried out to keyword and forms test script.
3. test method as claimed in claim 2, which is characterized in that according to the movement of the motion track of the drag operation
Drag prompt information, including:
When pulling keyword to predeterminated position, make the drag prompt information display parameters prompt to prompt user setting different
Parameter;
When the position that the keyword is dragged to is not inconsistent logical, sends out wrong drag prompt information and prompted.
4. test method as claimed in claim 3, which is characterized in that the test method of the fund system test case is also wrapped
It includes:
When the sound code file of keyword is changed, by language in test case, the sound code file and the sound code file
The corresponding keyword of sentence row forms mapping relations;
It detects and is capped the corresponding keyword of statement line in sound code file, will have the corresponding keyword place of capped statement line
Test case be determined as the test case returned.
5. test method as described in claim 1, which is characterized in that the keyword in the test script is parsed, it will be described
Keyword, which is converted into, executes action, including:
Obtain keyword in test object, execute object and execute parameter, by the test object, the execution object with
And the execution parameter is converted into and executes action.
6. a kind of test device of fund system test case, which is characterized in that the test of the fund system test case fills
Set including:
Key generator module is used for read test use-case data library, by the test case in the test case data library
The corresponding code of execution action is divided into disparate modules, and each module is made to form removable motion block on visualization interface and with key
The form of word is shown;
Test script generation module, for carrying out permutation and combination shape to keyword to the drag operation of the keyword according to user
At test script;
Test script execution module will be described for parsing the keyword in the test script to execute the test script
Keyword, which is converted into, executes action.
7. test device as claimed in claim 6, which is characterized in that the test script generation module further includes:
Prompt message display unit, the drag operation for obtaining user's progress, and obtain the keyword pair of the drag operation
The drag prompt information answered shows the drag prompt information of the acquisition;
Prompt message mobile unit, for moving the drag prompt information according to the motion track of the drag operation;
Key combination unit forms test script for carrying out permutation and combination to keyword.
8. test device as claimed in claim 6, which is characterized in that the prompt message display unit is additionally operable to close when dragging
When key word is to predeterminated position, the drag prompt information display parameters are made to prompt the parameter to prompt user setting different, and work as
When the position that the keyword is dragged to is not inconsistent logical, sends out wrong drag prompt information and prompted.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711221943.7A CN108459957A (en) | 2017-11-29 | 2017-11-29 | Test method, device, equipment and the storage medium of fund system test case |
PCT/CN2018/080896 WO2019104917A1 (en) | 2017-11-29 | 2018-03-28 | Fund system test case testing method, device and equipment, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711221943.7A CN108459957A (en) | 2017-11-29 | 2017-11-29 | Test method, device, equipment and the storage medium of fund system test case |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108459957A true CN108459957A (en) | 2018-08-28 |
Family
ID=63220396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711221943.7A Pending CN108459957A (en) | 2017-11-29 | 2017-11-29 | Test method, device, equipment and the storage medium of fund system test case |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108459957A (en) |
WO (1) | WO2019104917A1 (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189692A (en) * | 2018-10-18 | 2019-01-11 | 阳光人寿保险股份有限公司 | A kind of webservice interface test method and device |
CN109542780A (en) * | 2018-11-13 | 2019-03-29 | 东软集团股份有限公司 | Test method, test equipment and the storage medium of natural language processing application |
CN109815127A (en) * | 2018-12-21 | 2019-05-28 | 浙江数链科技有限公司 | Automatized script conversion method, device, computer equipment and storage medium |
CN110232014A (en) * | 2019-02-25 | 2019-09-13 | 上海蔚来汽车有限公司 | Operation flow automated testing method, device, controller and medium |
CN110908902A (en) * | 2019-11-12 | 2020-03-24 | 北京云测信息技术有限公司 | Method and device for editing test steps and electronic equipment |
CN111124938A (en) * | 2020-03-31 | 2020-05-08 | 四川新网银行股份有限公司 | Method for generating componentized test case |
CN111881042A (en) * | 2020-07-27 | 2020-11-03 | 云账户技术(天津)有限公司 | Automatic test script generation method and device and electronic equipment |
CN112445711A (en) * | 2020-12-07 | 2021-03-05 | 视若飞信息科技(上海)有限公司 | Test method for generating simulation test scene based on visual dragging of Web page |
CN112685045A (en) * | 2020-12-28 | 2021-04-20 | 北京达佳互联信息技术有限公司 | Page source file processing method and device, electronic equipment and storage medium |
CN112988590A (en) * | 2021-04-01 | 2021-06-18 | 中车青岛四方机车车辆股份有限公司 | Electromagnetic environment hybrid automatic testing method and system, storage medium and terminal equipment |
CN113064811A (en) * | 2020-12-25 | 2021-07-02 | 浙江鲸腾网络科技有限公司 | Workflow-based automatic testing method and device and electronic equipment |
CN113407441A (en) * | 2021-05-25 | 2021-09-17 | 威胜集团有限公司 | Software testing method, device, equipment and storage medium |
CN113626326A (en) * | 2021-08-09 | 2021-11-09 | 三峡高科信息技术有限责任公司 | Dragging type zero code front end automatic test system based on image recognition |
CN113742238A (en) * | 2021-09-14 | 2021-12-03 | 南方电网深圳数字电网研究院有限公司 | Test case generation method and device |
CN113760730A (en) * | 2021-01-27 | 2021-12-07 | 北京京东振世信息技术有限公司 | Automatic testing method and device |
CN116166567A (en) * | 2023-04-23 | 2023-05-26 | 成都华兴汇明科技有限公司 | Test case generation method and device based on graphic programming |
CN113064811B (en) * | 2020-12-25 | 2024-06-07 | 浙江鲸腾网络科技有限公司 | Automatic testing method and device based on workflow and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541730A (en) * | 2011-12-08 | 2012-07-04 | 北京空间飞行器总体设计部 | Semantic identification and automatic generation method for spacecraft test script |
CN102567193A (en) * | 2010-12-09 | 2012-07-11 | 北京新媒传信科技有限公司 | Method and system for converting test case to automated testing script |
CN103034582A (en) * | 2011-09-28 | 2013-04-10 | 腾讯科技(深圳)有限公司 | Method and system for positioning regression cases |
CN103441900A (en) * | 2013-08-27 | 2013-12-11 | 上海新炬网络技术有限公司 | Centralization cross-platform automated testing system and control method thereof |
CN103530041A (en) * | 2013-08-19 | 2014-01-22 | 贝壳网际(北京)安全技术有限公司 | Dragging processing method and device and terminal equipment |
US8677320B2 (en) * | 2011-04-06 | 2014-03-18 | Mosaic, Inc. | Software testing supporting high reuse of test data |
US8826084B1 (en) * | 2011-09-07 | 2014-09-02 | Innovative Defense Technologies, LLC | Method and system for implementing automated test and retest procedures |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
IN2013MU01526A (en) * | 2013-04-25 | 2015-04-10 | Tata Consultancy Services Ltd | |
CN106383784A (en) * | 2016-09-20 | 2017-02-08 | 上海爱数信息技术股份有限公司 | Software automated test method and system |
-
2017
- 2017-11-29 CN CN201711221943.7A patent/CN108459957A/en active Pending
-
2018
- 2018-03-28 WO PCT/CN2018/080896 patent/WO2019104917A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567193A (en) * | 2010-12-09 | 2012-07-11 | 北京新媒传信科技有限公司 | Method and system for converting test case to automated testing script |
US8677320B2 (en) * | 2011-04-06 | 2014-03-18 | Mosaic, Inc. | Software testing supporting high reuse of test data |
US8826084B1 (en) * | 2011-09-07 | 2014-09-02 | Innovative Defense Technologies, LLC | Method and system for implementing automated test and retest procedures |
CN103034582A (en) * | 2011-09-28 | 2013-04-10 | 腾讯科技(深圳)有限公司 | Method and system for positioning regression cases |
CN102541730A (en) * | 2011-12-08 | 2012-07-04 | 北京空间飞行器总体设计部 | Semantic identification and automatic generation method for spacecraft test script |
CN103530041A (en) * | 2013-08-19 | 2014-01-22 | 贝壳网际(北京)安全技术有限公司 | Dragging processing method and device and terminal equipment |
CN103441900A (en) * | 2013-08-27 | 2013-12-11 | 上海新炬网络技术有限公司 | Centralization cross-platform automated testing system and control method thereof |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189692A (en) * | 2018-10-18 | 2019-01-11 | 阳光人寿保险股份有限公司 | A kind of webservice interface test method and device |
CN109542780A (en) * | 2018-11-13 | 2019-03-29 | 东软集团股份有限公司 | Test method, test equipment and the storage medium of natural language processing application |
CN109542780B (en) * | 2018-11-13 | 2022-02-15 | 东软集团股份有限公司 | Test method, test device and storage medium for natural language processing application |
CN109815127A (en) * | 2018-12-21 | 2019-05-28 | 浙江数链科技有限公司 | Automatized script conversion method, device, computer equipment and storage medium |
CN110232014A (en) * | 2019-02-25 | 2019-09-13 | 上海蔚来汽车有限公司 | Operation flow automated testing method, device, controller and medium |
CN110908902A (en) * | 2019-11-12 | 2020-03-24 | 北京云测信息技术有限公司 | Method and device for editing test steps and electronic equipment |
CN111124938A (en) * | 2020-03-31 | 2020-05-08 | 四川新网银行股份有限公司 | Method for generating componentized test case |
CN111881042A (en) * | 2020-07-27 | 2020-11-03 | 云账户技术(天津)有限公司 | Automatic test script generation method and device and electronic equipment |
CN112445711A (en) * | 2020-12-07 | 2021-03-05 | 视若飞信息科技(上海)有限公司 | Test method for generating simulation test scene based on visual dragging of Web page |
CN113064811A (en) * | 2020-12-25 | 2021-07-02 | 浙江鲸腾网络科技有限公司 | Workflow-based automatic testing method and device and electronic equipment |
CN113064811B (en) * | 2020-12-25 | 2024-06-07 | 浙江鲸腾网络科技有限公司 | Automatic testing method and device based on workflow and electronic equipment |
CN112685045A (en) * | 2020-12-28 | 2021-04-20 | 北京达佳互联信息技术有限公司 | Page source file processing method and device, electronic equipment and storage medium |
CN113760730A (en) * | 2021-01-27 | 2021-12-07 | 北京京东振世信息技术有限公司 | Automatic testing method and device |
CN112988590A (en) * | 2021-04-01 | 2021-06-18 | 中车青岛四方机车车辆股份有限公司 | Electromagnetic environment hybrid automatic testing method and system, storage medium and terminal equipment |
CN113407441A (en) * | 2021-05-25 | 2021-09-17 | 威胜集团有限公司 | Software testing method, device, equipment and storage medium |
CN113626326A (en) * | 2021-08-09 | 2021-11-09 | 三峡高科信息技术有限责任公司 | Dragging type zero code front end automatic test system based on image recognition |
CN113626326B (en) * | 2021-08-09 | 2022-02-11 | 三峡高科信息技术有限责任公司 | Dragging type zero code front end automatic test system based on image recognition |
CN113742238A (en) * | 2021-09-14 | 2021-12-03 | 南方电网深圳数字电网研究院有限公司 | Test case generation method and device |
CN113742238B (en) * | 2021-09-14 | 2024-05-14 | 南方电网数字平台科技(广东)有限公司 | Method and device for generating test cases |
CN116166567A (en) * | 2023-04-23 | 2023-05-26 | 成都华兴汇明科技有限公司 | Test case generation method and device based on graphic programming |
CN116166567B (en) * | 2023-04-23 | 2023-08-11 | 成都华兴汇明科技有限公司 | Test case generation method and device based on graphic programming |
Also Published As
Publication number | Publication date |
---|---|
WO2019104917A1 (en) | 2019-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108459957A (en) | Test method, device, equipment and the storage medium of fund system test case | |
Friederich et al. | A framework for data-driven digital twins of smart manufacturing systems | |
Li et al. | Software defect prediction via convolutional neural network | |
CN109542791B (en) | A kind of program large-scale concurrent evaluating method based on container technique | |
CN108255702A (en) | A kind of test case creation method, apparatus, equipment and storage medium | |
CN106104472A (en) | Specify logic checking rule and logic checking rule is applied to data | |
Gupta et al. | Neural attribution for semantic bug-localization in student programs | |
CN106909510A (en) | A kind of method and server for obtaining test case | |
CN107797913A (en) | A kind of software analysis System and method for of real-time system | |
CN109376093B (en) | Insurance product testing method and device, storage medium and electronic equipment | |
CN105373472B (en) | A kind of method of testing and test system of the statistical accuracy based on database | |
CN109299177A (en) | Data pick-up method, apparatus, storage medium and electronic equipment | |
CN107766448A (en) | Rule-based satellite telemetering data analysis system | |
CN109840205A (en) | Applied program testing method, device, readable storage medium storing program for executing and terminal device | |
CN110287002A (en) | A kind of ether mill virtual machine defect inspection method and system | |
CN108460068A (en) | Method, apparatus, storage medium and the terminal that report imports and exports | |
Syriani et al. | Challenges for addressing quality factors in model transformation | |
CN104657274A (en) | Method and device for testing software interface | |
CN106681854A (en) | Information checking method, device and system | |
CN103838666A (en) | Method and device for determining code execution coverage rate | |
Huo et al. | Autolog: A log sequence synthesis framework for anomaly detection | |
Thu et al. | Model driven development of mobile applications using drools knowledge-based rule | |
CN111176980A (en) | Data analysis method, device and system with separated debugging environment and running environment | |
Eriksson et al. | Use cases for systems engineering—an approach and empirical evaluation | |
Avros et al. | Boosted decision trees for behaviour mining of concurrent programmes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180828 |
|
RJ01 | Rejection of invention patent application after publication |