CN108984394A - A kind of test method, computer readable storage medium and terminal device - Google Patents

A kind of test method, computer readable storage medium and terminal device Download PDF

Info

Publication number
CN108984394A
CN108984394A CN201810630780.6A CN201810630780A CN108984394A CN 108984394 A CN108984394 A CN 108984394A CN 201810630780 A CN201810630780 A CN 201810630780A CN 108984394 A CN108984394 A CN 108984394A
Authority
CN
China
Prior art keywords
operation module
module
sequence
test
field
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
Application number
CN201810630780.6A
Other languages
Chinese (zh)
Inventor
张静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810630780.6A priority Critical patent/CN108984394A/en
Publication of CN108984394A publication Critical patent/CN108984394A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention belongs to field of computer technology more particularly to a kind of test methods, computer readable storage medium and terminal device.The method has preset the first field and the second field in test request, wherein, first field may indicate whether to deposit and operate before testing, second field operates corresponding operation module sequence before can determining the test, after getting test request, it is operated before testing if the first field instruction extracted is deposited, then extract the second field, and corresponding operation module sequence is operated before according to the value of the second field determining the test, each operation module in operation module sequence is run, successively finally to operate before completing the test.Through the invention, it is not necessarily to manpower intervention, corresponding test preparation process can be executed automatically according to the field contents in test request, substantially increases testing efficiency.

Description

A kind of test method, computer readable storage medium and terminal device
Technical field
The invention belongs to field of computer technology more particularly to a kind of test methods, computer readable storage medium and end End equipment.
Background technique
When carrying out test job, it is often necessary to manually perform a very long test preparation process ability by tester Reach real test point, during which can be related to system login publish, system switching and mass data input.To a certain page Specific function tested for, first have to by following steps:
1, browser is opened;
2, web page address is inputted in the browser's address bar and clicks inquiry;
3, Login chain is clicked in webpage to connect, input the log-on messages such as account, password in login interface and click login and press Button;
4, the page link corresponding with specific function to be tested in webpage clicking, jumps to the page of the specific function Face.
After completing above step, the specific function could be tested in the current page.In current test In, the above test preparation process be all by being accomplished manually, every time test require tester be repeatedly carried out with Upper movement, efficiency are extremely inefficient.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of test method, computer readable storage medium and terminal device, It is extremely inefficient to solve the problems, such as to manually perform test preparation process efficiency.
The first aspect of the embodiment of the present invention provides a kind of test method, may include:
Test request is obtained, and extracts the first field from the test request according to preset first rule, described the One field is used to indicate whether to deposit and operate before testing;
It is operated before testing if the first field instruction is deposited, according to preset Second Rule from the test request Extract the second field;
Corresponding operation module sequence, the operation mould are operated before determining the test according to the value of second field Block sequence includes at least one operation module, and the operation module is for executing specified operation;
Each operation module in the operation module sequence is run, successively to operate before completing the test.
The second aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer-readable instruction, and the computer-readable instruction realizes following steps when being executed by processor:
Test request is obtained, and extracts the first field from the test request according to preset first rule, described the One field is used to indicate whether to deposit and operate before testing;
It is operated before testing if the first field instruction is deposited, according to preset Second Rule from the test request Extract the second field;
Corresponding operation module sequence, the operation mould are operated before determining the test according to the value of second field Block sequence includes at least one operation module, and the operation module is for executing specified operation;
Each operation module in the operation module sequence is run, successively to operate before completing the test.
The third aspect of the embodiment of the present invention provides a kind of test terminal device, including memory, processor and deposits The computer-readable instruction that can be run in the memory and on the processor is stored up, the processor executes the calculating Following steps are realized when machine readable instruction:
Test request is obtained, and extracts the first field from the test request according to preset first rule, described the One field is used to indicate whether to deposit and operate before testing;
It is operated before testing if the first field instruction is deposited, according to preset Second Rule from the test request Extract the second field;
Corresponding operation module sequence, the operation mould are operated before determining the test according to the value of second field Block sequence includes at least one operation module, and the operation module is for executing specified operation;
Each operation module in the operation module sequence is run, successively to operate before completing the test.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention is pre- in test request If the first field and the second field, wherein the first field may indicate whether to deposit and operate before testing, the second field can be true Corresponding operation module sequence is operated before the fixed test, after getting test request, if the first field instruction extracted It deposits and operates before testing, then extract the second field, and operate corresponding behaviour before determining the test according to the value of the second field Make sequence of modules, runs each operation module in operation module sequence, successively finally to operate before completing the test.Pass through The present invention is not necessarily to manpower intervention, corresponding test preparation process can be executed automatically according to the field contents in test request, greatly Testing efficiency is improved greatly.
Detailed description of the invention
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 is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of test method in the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of operation module relational tree;
Fig. 3 is the schematic flow diagram of the corresponding operation module sequence of operation before determining test according to the value of the second field;
Fig. 4 is the schematic flow diagram for successively running each operation module in operation module sequence;
Fig. 5 is a kind of one embodiment structure chart of test device in the embodiment of the present invention;
Fig. 6 is a kind of schematic block diagram for testing terminal device in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Fig. 1, a kind of one embodiment of test method may include: in the embodiment of the present invention
Step S101, test request is obtained, and extracts the first word from the test request according to preset first rule Section.
The test request can be issued by tester, include the first field, first word in the test request Section is used to indicate whether to deposit to be operated before testing, and operation refers to the operation for needing to execute before testing before the test.
When the first field value is 0, then it represents that there is no operations before test for this test, namely are not related to going through the motions Process is tested according to official testing process, when the first field value is 1, then it represents that this test exists Operation before test, namely it is related to process flow, before being tested, it is necessary first to first cover process flow.
Step S102, judge indicating whether to deposit and operating before testing for first field.
It is operated before testing if first field instruction is deposited, thens follow the steps S103 and its subsequent step, if described the The instruction of one field thens follow the steps S106 there is no operation before test.
Step S103, the second field is extracted from the test request according to preset Second Rule.
Second field is for operating corresponding operation module sequence before determining the test, only when first word It just include second field in the test request when section value is 1, and when the first field value is 0, the survey In examination request and second field is not included.
Step S104, corresponding operation module sequence is operated before determining the test according to the value of second field.
The operation module sequence includes at least one operation module, and the operation module is for executing specified operation. The perform script of a large amount of duplicate interlude processes is carried out modularized encapsulation in advance by the present embodiment, only externally provides calling interface, Tester can call these modules by corresponding interface call instruction, execute these interlude processes automatically.
For example, if current test is that the function to calculate premium in the page of insuring of website is tested, first Browser is opened, then input the web page address of website in the browser's address bar and clicks inquiry, the homepage in website is aobvious It shows after coming, the login of webpage clicking links, and after login interface is shown, inputs account, password etc. in login interface and steps on Record information simultaneously clicks login button, after the completion of login, clicks the link of insuring on the page, jumps to the page of insuring, completing After the operation of above series of, premium computing function therein can just be tested on the page insuring.
Correspondingly, it the function of income calculation to be tested in the financing page to website if current test is, After the completion of login, the financing link on the page is clicked, the financing page is jumped to, after completing the operation of above series of, Income calculation function therein can be tested on the financing page.
If current test be will amount is estimated in the loan page to website function test, completed logging in Afterwards, the loan link on the page is clicked, the loan page is jumped to, after completing the operation of above series of, can just borrow Function is estimated to amount therein on the money page to test.
For the above test scene, interlude process can be encapsulated as following operation module:
ExplorerOpen operation module executes the operation for opening browser;
URLInput operation module executes web page address input and clicks the operation of inquiry;
LoginLinkClick operation module executes and clicks the operation that Login chain connects;
LoginInput operation module executes and inputs the operation of the log-on messages such as account, password in login interface;
LoginBottonClick operation module executes the operation for clicking login button;
InsuranceLinkClick operation module executes the operation for clicking link of insuring;
FinanceLinkClick operation module executes the operation for clicking financing link;
LoanLinkClick operation module executes the operation for clicking loan link.
The calling of module for ease of operation, the present embodiment is by each operation module according to the sequencing and industry of execution The dependence of business logic constructs operation module relational tree as shown in Figure 2, and the operation module relational tree is each to record The tree of dependence between operation module, wherein Modm,nIndicate n-th of operation module of m level, m+1 layers The execution needs of the operation module of grade just can be performed on the basis of the operation module of m level has executed, i.e., is patrolled according to business Volume, the operation module of more early execution, level is also higher, the operation module of more late execution, and level is also lower.
It is still illustrated with above-mentioned test scene, service logic sequence are as follows: it is defeated to open browser → execution web page address Enter and click inquiry → click log in link → login interface input the log-on messages → click login buttons such as account, password → Click insure link or click financing link or click loan link.
Then ExplorerOpen is the first level operation module, and URLInput operation module is the second level operation module, LoginLinkClick is third level operation module, and LoginInput is the 4th level operation module, LoginBottonClick be layer 5 grade operation module, InsuranceLinkClick, FinanceLinkClick, LoanLinkClick is layer 6 grade operation module.
After building aforesaid operations module relationship tree, in the database by operation module relational tree storage, in case Subsequent query uses.Under the premise of operation module relational tree constructs completion, step S104 specifically may include step as shown in Figure 3 It is rapid:
Step S1041, operation mould corresponding with the value of second field is inquired in preset operation module list Block, and the operation module found is determined as target operation module.
It is corresponding between the operation module list records each value and each operation module of second field Relationship, following table are an example of the operation module list:
Second field value Operation module
Value 1 Operation module 1
Value 2 Operation module 2
Value 3 Operation module 3
………… …………
If the value of second field is value 2, it can determine corresponding operation module for operation by tabling look-up Module 2 namely target operation module are operation module 2.
Step S1042, inquire what the execution of the target operation module was relied in preset operation module relational tree Each operation module.
Specifically, the target operation module is labeled as current operation module first, and in the operation module relationship The level of the current operation module is inquired in tree.Whether the level for then judging the current operation module is the operation mould Highest level in block relational tree, if the level of the current operation module is not top in the operation module relational tree Grade, then inquire the operation module that the current operation module is relied in a upper level in the operation module relational tree, And the operation module that is relied on the execution that the operation module inquired is determined as the target operation module, then will inquire Operation module is labeled as new current operation module, returns and executes whether the level for judging the current operation module is institute The step of stating the highest level in operation module relational tree, until the level of the current operation module is operation module pass Until highest level in system tree.
By taking operation module relational tree shown in Fig. 2 as an example, if the target operation module is Mod4,2, then according to above-mentioned side Method successively inquires each operation module that its execution is relied on and is respectively as follows: Mod3,1、Mod2,1、Mod1,1
Step S1043, each operation module and the object run relied on the execution of the target operation module Module is arranged as the operation module sequence according to preset execution sequence.
It is still illustrated with above-mentioned example, then operation module sequence is answered are as follows:
Mod1,1→Mod2,1→Mod3,1→Mod4,2
By the calling to each operation module in the operation module sequence, oneself of whole process process can have both been realized Dynamicization operation.
Step S105, each operation module in the operation module sequence is run, successively to grasp before completing the test Make.
Specifically, step S105 may include step as shown in Figure 4:
Step S1051, sequence is chosen from the operation module sequence in primary operation module as priority service Module.
Step S1052, storage address corresponding with the priority service module is inquired in preset storage address list.
The storage address list records corresponding relationship between each operation module and each storage address, following table are For an example of the storage address list:
Step S1053, the script of the priority service module is extracted from the storage address inquired, and runs institute State the script of priority service module.
Step S1054, waiting time corresponding with the priority service module is inquired in preset interval time list.
Corresponding relationship of the waiting time list records between each operation module and each waiting time.Following table is For an example of the waiting time list:
Operation module Waiting time
Operation module 1 Waiting time 1
Operation module 2 Waiting time 2
Operation module 3 Waiting time 3
………… …………
The default process of the waiting time list may include:
Firstly, obtaining the historical record in preset statistical time range.
The statistical time range can be configured according to the actual situation, for example, can be set to 1 day, 1 week, 1 month Or other values.
Then, the reaction of the number of run and each run of each operation module is counted respectively according to the historical record Duration.
It is a length of when the reaction to bring into operation from operation module to the duration received operation result.
Finally, calculating waiting time corresponding with each operation module according to the following formula:
Wherein, m is the serial number of operation module, and 1≤m≤M, M are the number of operation module, NmFor m-th operation module Number of run, n are the serial number of each operation, 1≤n≤Nm, ReactDurm,nFor the reaction of m-th of operation module n-th operation Time, MaxReactDurmFor the maximum reaction time of m-th of operation module, andλ is preset system Number, and λ > 1, Max are maximizing function, Min is function of minimizing, WaitDurmIt is corresponding with m-th of operation module Waiting time.
Step S1055, after waiting waiting time corresponding with the priority service module, by the priority service module It is deleted from the operation module sequence.
Step S1056, judge whether the operation module sequence is empty;
If the operation module sequence is not sky, S1051 is returned to step, if the operation module sequence is sky, Then follow the steps S1057.
Step S1057, it determines to operate before the test and be completed.
Implementation procedure more than it should be noted that is entirely to be automatically performed by test terminal device, and whole process is complete Completely without the participation for needing tester, i.e., the entire interlude process before official testing process can be considered for tester one it is black Box treatment process implements details without paying close attention to it, to reduce the repeated labor of tester.
Step S106, official testing process is executed.
The official testing process is to test real key testpoint to this to test, if current test is to want The function of calculating premium in the page of insuring of website is tested, then can calculate function to premium therein on the page insuring It can be carried out test, it, can be if current test is the function of income calculation to test in the financing page to website Income calculation function therein is tested on the financing page, if current test is will amount in the loan page to website The function of estimating is tested, then can estimate function to amount therein on the loan page and test.
In conclusion the embodiment of the present invention has preset the first field and the second field in test request, wherein the first word Section may indicate whether to deposit to be operated before testing, and the second field operates corresponding operation module sequence before can determining the test Column operate before testing if the first field instruction extracted is deposited after getting test request, extract the second field, and Corresponding operation module sequence is operated before determining the test according to the value of the second field, finally successively runs operation module sequence Each operation module in column, to complete operation before testing.Through the invention, it is not necessarily to manpower intervention, it can be automatically according to test Field contents in request execute corresponding test preparation process, substantially increase testing efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to a kind of test method described in foregoing embodiments, Fig. 5 shows a kind of survey provided in an embodiment of the present invention One embodiment structure chart that trial assembly is set.
In the present embodiment, a kind of test device may include:
Test request obtains module 501, for obtaining test request;
First field extraction module 502, for extracting the first word from the test request according to preset first rule Section, first field is used to indicate whether to deposit to be operated before testing;
Second field extraction module 503 operates if depositing for first field instruction, before testing according to preset Second Rule extracts the second field from the test request;
Operation module sequence determining module 504, for being operated before determining the test according to the value of second field Corresponding operation module sequence, the operation module sequence include at least one operation module, and the operation module is for executing Specified operation;
Operation module sequence execution module 505, for successively running each operation module in the operation module sequence, To operate before completing the test.
Further, the operation module sequence determining module may include:
Target operation module determination unit takes for inquiring in the preset operation module list with second field It is worth corresponding operation module, and the operation module found is determined as target operation module, the operation module list records Corresponding relationship between each value and each operation module of second field;
Relational tree query unit, for inquiring the execution of the target operation module in preset operation module relational tree The each operation module relied on, the operation module relational tree are record dependence between each operation module tree-shaped Structure;
Operation module series arrangement unit, each operation module for being relied on the execution of the target operation module The operation module sequence is arranged as according to preset execution sequence with the target operation module.
Further, the relational tree query unit may include:
Level inquires subelement, for the target operation module to be labeled as current operation module, and in the operation The level of the current operation module is inquired in module relationship tree;
Level judgment sub-unit, for judging whether the level of the current operation module is the operation module relational tree In highest level;
Upper layer module inquires subelement, if the level for the current operation module is not the operation module relational tree In highest level, then inquire what the current operation module was relied in a upper level in the operation module relational tree Operation module, and the operation module that the execution that the operation module inquired is determined as the target operation module is relied on;
Current operation module marks subelement, for the operation module inquired to be labeled as new current operation module.
Further, the operation module sequence execution module may include:
Priority service module selection unit, for choosing sequence from the operation module sequence in primary operation mould Block is as priority service module;
Storage address query unit, it is corresponding with the priority service module for being inquired in preset storage address list Storage address, corresponding relationship of the storage address list records between each operation module and each storage address;
Script extraction unit, for extracting the script of the priority service module from the storage address inquired, And run the script of the priority service module;
Waiting time query unit, it is corresponding with the priority service module for being inquired in preset interval time list Waiting time, corresponding relationship of the waiting time list records between each operation module and each waiting time;
Operation module deletes unit, is used for after waiting waiting time corresponding with the priority service module, will be described Priority service module is deleted from the operation module sequence;
Operation module sequence judging unit, for judging whether the operation module sequence is empty.
Further, the test device can also include:
Historical record obtains module, for obtaining the historical record in preset statistical time range;
Historical record statistical module, for counted respectively according to the historical record number of run of each operation module with And the reaction duration of each run, when reaction it is a length of from operation module bring into operation to receive operation result when It is long;
Waiting time computing module, for calculating waiting time corresponding with each operation module according to the following formula:
Wherein, m is the serial number of operation module, and 1≤m≤M, M are the number of operation module, NmFor m-th operation module Number of run, n are the serial number of each operation, 1≤n≤Nm, ReactDurm,nFor the reaction of m-th of operation module n-th operation Time, MaxReactDurmFor the maximum reaction time of m-th of operation module, andλ is preset system Number, and λ > 1, Max are maximizing function, Min is function of minimizing, WaitDurmIt is corresponding with m-th of operation module Waiting time.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of module and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Fig. 6 shows a kind of schematic block diagram for testing terminal device provided in an embodiment of the present invention, for ease of description, only Show part related to the embodiment of the present invention.
In the present embodiment, the test terminal device 6 can be desktop PC, notebook, palm PC and cloud Server etc. is held to calculate equipment.The test terminal device 6 can include: processor 60, memory 61 and be stored in the storage In device 61 and the computer-readable instruction 62 that can run on the processor 60, such as execute the calculating of above-mentioned test method Machine readable instruction.The processor 60 is realized when executing the computer-readable instruction 62 in above-mentioned each test method embodiment The step of, such as step S101 to S106 shown in FIG. 1.Alternatively, the processor 60 executes the computer-readable instruction 62 The function of each module/unit in the above-mentioned each Installation practice of Shi Shixian, such as the function of module 501 to 505 shown in Fig. 5.
Illustratively, the computer-readable instruction 62 can be divided into one or more module/units, one Or multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the present invention.Institute Stating one or more module/units can be the series of computation machine readable instruction section that can complete specific function, the instruction segment For describing implementation procedure of the computer-readable instruction 62 in the test terminal device 6.
The processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), 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 is also possible to any conventional processor Deng.
The memory 61 can be the internal storage unit of the test terminal device 6, such as test terminal device 6 Hard disk or memory.The memory 61 is also possible to the External memory equipment of the test terminal device 6, such as the test is eventually The plug-in type hard disk being equipped in end equipment 6, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 61 can also both include the test The internal storage unit of terminal device 6 also includes External memory equipment.The memory 61 is described computer-readable for storing Other instruction and datas needed for instruction and the test terminal device 6.The memory 61 can be also used for temporarily depositing Store up the data that has exported or will export.
The functional units in various embodiments of the present invention may be integrated into one processing unit, is also possible to each Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used To use formal implementation of hardware, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including several computer-readable instructions are used so that one Platform computer equipment (can be personal computer, server or the network equipment etc.) executes described in each embodiment of the present invention The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of computer-readable instruction.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of test method characterized by comprising
Test request is obtained, and extracts the first field, first word from the test request according to preset first rule Section is used to indicate whether to deposit to be operated before testing;
It operates if the first field instruction is deposited, is extracted from the test request according to preset Second Rule before testing Second field;
Corresponding operation module sequence, the operation module sequence are operated before determining the test according to the value of second field Column include at least one operation module, and the operation module is for executing specified operation;
Each operation module in the operation module sequence is run, successively to operate before completing the test.
2. test method according to claim 1, which is characterized in that the value according to second field determines institute The corresponding operation module sequence of operation includes: before stating test
It inquires corresponding with the value of second field operation module in preset operation module list, and will find Operation module is determined as target operation module, the operation module list records each value of second field with it is each Corresponding relationship between operation module;
Each operation module that the execution of the target operation module is relied on, institute are inquired in preset operation module relational tree Stating operation module relational tree is the tree for recording the dependence between each operation module;
The each operation module and the target operation module that the execution of the target operation module is relied on are according to preset Execution sequence is arranged as the operation module sequence.
3. test method according to claim 2, which is characterized in that described to be inquired in preset operation module relational tree Each operation module that the execution of the target operation module is relied on includes:
The target operation module is labeled as current operation module, and is inquired in the operation module relational tree described current The level of operation module;
Whether the level for judging the current operation module is highest level in the operation module relational tree;
If the level of the current operation module is not the highest level in the operation module relational tree, in the operation mould The operation module that the current operation module is relied in a upper level, and the operation mould that will be inquired are inquired in block relational tree Block is determined as the operation module that the execution of the target operation module is relied on;
The operation module inquired is labeled as new current operation module, returns and executes the judgement current operation module Level the step of whether being the highest level in the operation module relational tree, until the level of the current operation module is Until highest level in the operation module relational tree.
4. test method according to any one of claim 1 to 3, which is characterized in that described successively to run the operation Each operation module in sequence of modules includes:
Sequence is chosen from the operation module sequence in primary operation module as priority service module;
Storage address corresponding with the priority service module, the storage address column are inquired in preset storage address list Table has recorded the corresponding relationship between each operation module and each storage address;
The script of the priority service module is extracted from the storage address inquired, and runs the priority service module Script;
It is inquired in preset interval time list waiting time corresponding with the priority service module, the waiting time column Table has recorded the corresponding relationship between each operation module and each waiting time;
After waiting corresponding with priority service module waiting time, by the priority service module from the operation module It is deleted in sequence;
Judge whether the operation module sequence is empty;
If the operation module sequence is not sky, returns to described choose from the operation module sequence of execution and sort first The step of operation module of position is as priority service module, until the operation module sequence is empty.
5. test method according to claim 4, which is characterized in that the default process of the waiting time list includes:
Obtain the historical record in preset statistical time range;
Count the number of run of each operation module and the reaction duration of each run respectively according to the historical record, it is described It is a length of when reaction to bring into operation from operation module to the duration received operation result;
Waiting time corresponding with each operation module is calculated according to the following formula:
Wherein, m is the serial number of operation module, and 1≤m≤M, M are the number of operation module, NmFor the operation time of m-th of operation module Number, n are the serial number of each operation, 1≤n≤Nm, ReactDurm,nFor m-th of operation module n-th operation reaction time, MaxReactDurmFor the maximum reaction time of m-th of operation module, andλ is preset system Number, and λ > 1, Max are maximizing function, Min is function of minimizing, WaitDurmIt is corresponding with m-th of operation module Waiting time.
6. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special Sign is, the test side as described in any one of claims 1 to 5 is realized when the computer-readable instruction is executed by processor The step of method.
7. a kind of test terminal device, including memory, processor and storage are in the memory and can be in the processing The computer-readable instruction run on device, which is characterized in that the processor is realized such as when executing the computer-readable instruction Lower step:
Test request is obtained, and extracts the first field, first word from the test request according to preset first rule Section is used to indicate whether to deposit to be operated before testing;
It operates if the first field instruction is deposited, is extracted from the test request according to preset Second Rule before testing Second field;
Corresponding operation module sequence, the operation module sequence are operated before determining the test according to the value of second field Column include at least one operation module, and the operation module is for executing specified operation;
Each operation module in the operation module sequence is run, successively to operate before completing the test.
8. test terminal device according to claim 7, which is characterized in that the value according to second field is true Operating corresponding operation module sequence before the fixed test includes:
It inquires corresponding with the value of second field operation module in preset operation module list, and will find Operation module is determined as target operation module, the operation module list records each value of second field with it is each Corresponding relationship between operation module;
Each operation module that the execution of the target operation module is relied on, institute are inquired in preset operation module relational tree Stating operation module relational tree is the tree for recording the dependence between each operation module;
The each operation module and the target operation module that the execution of the target operation module is relied on are according to preset Execution sequence is arranged as the operation module sequence.
9. test terminal device according to claim 7, which is characterized in that described in preset operation module relational tree Inquiring each operation module that the execution of the target operation module is relied on includes:
The target operation module is labeled as current operation module, and is inquired in the operation module relational tree described current The level of operation module;
Whether the level for judging the current operation module is highest level in the operation module relational tree;
If the level of the current operation module is not the highest level in the operation module relational tree, in the operation mould The operation module that the current operation module is relied in a upper level, and the operation mould that will be inquired are inquired in block relational tree Block is determined as the operation module that the execution of the target operation module is relied on;
The operation module inquired is labeled as new current operation module, returns and executes the judgement current operation module Level the step of whether being the highest level in the operation module relational tree, until the level of the current operation module is Until highest level in the operation module relational tree.
10. test terminal device according to any one of claims 7 to 9, which is characterized in that described in the successively operation Each operation module in operation module sequence includes:
Sequence is chosen from the operation module sequence in primary operation module as priority service module;
Storage address corresponding with the priority service module, the storage address column are inquired in preset storage address list Table has recorded the corresponding relationship between each operation module and each storage address;
The script of the priority service module is extracted from the storage address inquired, and runs the priority service module Script;
It is inquired in preset interval time list waiting time corresponding with the priority service module, the waiting time column Table has recorded the corresponding relationship between each operation module and each waiting time;
After waiting corresponding with priority service module waiting time, by the priority service module from the operation module It is deleted in sequence;
Judge whether the operation module sequence is empty;
If the operation module sequence is not sky, returns to described choose from the operation module sequence of execution and sort first The step of operation module of position is as priority service module, until the operation module sequence is empty.
CN201810630780.6A 2018-06-19 2018-06-19 A kind of test method, computer readable storage medium and terminal device Pending CN108984394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810630780.6A CN108984394A (en) 2018-06-19 2018-06-19 A kind of test method, computer readable storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810630780.6A CN108984394A (en) 2018-06-19 2018-06-19 A kind of test method, computer readable storage medium and terminal device

Publications (1)

Publication Number Publication Date
CN108984394A true CN108984394A (en) 2018-12-11

Family

ID=64540659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810630780.6A Pending CN108984394A (en) 2018-06-19 2018-06-19 A kind of test method, computer readable storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN108984394A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889410A (en) * 2019-03-18 2019-06-14 北京达佳互联信息技术有限公司 Test method, apparatus, agent equipment and the readable storage medium storing program for executing of business function
CN111477313A (en) * 2020-03-31 2020-07-31 苏州长光华医生物医学工程有限公司 Dynamic sequencing method, system and storage medium for chemical analyzer test items

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135938A (en) * 2011-03-21 2011-07-27 中国工商银行股份有限公司 Software product testing method and system
US20130139004A1 (en) * 2011-11-28 2013-05-30 Advantest Corporation Test module generation apparatus, test procedure generation apparatus, generation method, program, and test apparatus
CN103853663A (en) * 2014-03-25 2014-06-11 北京金山网络科技有限公司 Application program test method and system
CN107943693A (en) * 2017-11-21 2018-04-20 北京安博通科技股份有限公司 Application software audit testing method and device, application software audit testing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135938A (en) * 2011-03-21 2011-07-27 中国工商银行股份有限公司 Software product testing method and system
US20130139004A1 (en) * 2011-11-28 2013-05-30 Advantest Corporation Test module generation apparatus, test procedure generation apparatus, generation method, program, and test apparatus
CN103853663A (en) * 2014-03-25 2014-06-11 北京金山网络科技有限公司 Application program test method and system
CN107943693A (en) * 2017-11-21 2018-04-20 北京安博通科技股份有限公司 Application software audit testing method and device, application software audit testing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889410A (en) * 2019-03-18 2019-06-14 北京达佳互联信息技术有限公司 Test method, apparatus, agent equipment and the readable storage medium storing program for executing of business function
CN111477313A (en) * 2020-03-31 2020-07-31 苏州长光华医生物医学工程有限公司 Dynamic sequencing method, system and storage medium for chemical analyzer test items

Similar Documents

Publication Publication Date Title
CN108664897A (en) Bank slip recognition method, apparatus and storage medium
WO2020073727A1 (en) Risk forecast method, device, computer apparatus, and storage medium
CN101493913A (en) Method and system for assessing user credit in internet
CN108763277A (en) A kind of data analysing method, computer readable storage medium and terminal device
CN109472568A (en) A kind of block chain method of commerce, device, management system, equipment and storage medium
CN110400219A (en) Method for processing business and system, transaction monitoring method and system
CN105894183A (en) Project evaluation method and apparatus
CN108133390A (en) For predicting the method and apparatus of user behavior and computing device
CN109919608B (en) Identification method, device and server for high-risk transaction main body
CN114693192A (en) Wind control decision method and device, computer equipment and storage medium
CN108984394A (en) A kind of test method, computer readable storage medium and terminal device
CN109992506A (en) Scheduling tests method, apparatus, computer equipment and storage medium
CN110532359A (en) Legal provision query method, apparatus, computer equipment and storage medium
CA3172392A1 (en) Systems and methods for anonymizing sensitive data and simulating accelerated schedule parameters using the anonymized data
CN110266555A (en) Method for analyzing web site service request
CN109359034A (en) A kind of operation system test method, computer readable storage medium and terminal device
WO2021098652A1 (en) Data processing method and device
CN116501979A (en) Information recommendation method, information recommendation device, computer equipment and computer readable storage medium
CN116703598A (en) Transaction behavior detection method, device, computer equipment and storage medium
CN117033765A (en) Service recommendation method, device, computer equipment and storage medium
CN106651183A (en) Communication data security audit method and device for industrial control system
CN115511562A (en) Virtual product recommendation method and device, computer equipment and storage medium
CN115293783A (en) Risk user identification method and device, computer equipment and storage medium
CN114565443A (en) Data processing method, data processing device, computer equipment and storage medium
CN111179076A (en) IT system intelligent management method, IT system intelligent management device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination