CN112131134A - Time point trigger test method, device, equipment and storage medium for IPO project - Google Patents
Time point trigger test method, device, equipment and storage medium for IPO project Download PDFInfo
- Publication number
- CN112131134A CN112131134A CN202011099363.7A CN202011099363A CN112131134A CN 112131134 A CN112131134 A CN 112131134A CN 202011099363 A CN202011099363 A CN 202011099363A CN 112131134 A CN112131134 A CN 112131134A
- Authority
- CN
- China
- Prior art keywords
- task
- time
- ipo
- project
- time point
- 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
- 238000003860 storage Methods 0.000 title claims abstract description 21
- 238000010998 test method Methods 0.000 title claims abstract description 17
- 238000012360 testing method Methods 0.000 claims abstract description 82
- 230000014509 gene expression Effects 0.000 claims description 86
- 238000013507 mapping Methods 0.000 claims description 28
- 238000000034 method Methods 0.000 claims description 27
- 230000008569 process Effects 0.000 description 8
- 241000326021 Ipoides Species 0.000 description 6
- 238000009826 distribution Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
Images
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- Quality & Reliability (AREA)
- Technology Law (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- Development Economics (AREA)
- Operations Research (AREA)
- Tourism & Hospitality (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application relates to a time point trigger test method, a device, equipment and a storage medium of an IPO project, wherein the time point trigger test method of the IPO project comprises the following steps: creating an IPO project; searching a task triggering condition and a task time limit value of the current task according to the information of the IPO project; positioning a time point needing updating operation according to the current test time and the task trigger condition of the current task; setting a new task time limit value aiming at the current task, and updating the task time limit value at the time point needing to be updated by using the new task time limit value; and running an IPO project of the limit value when the task is updated to obtain a test result. The time point triggering test method of the IPO project does not need to test according to actual time points completely, can finish work in a short time, can obviously improve test efficiency, reduces workload, is high in test result accuracy, and is convenient for verifying the test result.
Description
Technical Field
The invention relates to the technical field of software testing, in particular to a time point trigger testing method, a time point trigger testing device, time point trigger testing equipment and a storage medium for an IPO project.
Background
IPO (Initial Public Offering) means that a business sells its shares to the Public for the first time. The shares of the listed company are sold by the brokerage firm or market maker according to terms agreed in the quotation or registration statement issued by the corresponding certificate authority. The IPO is carried out on an IPO system software platform.
When creating an IPO (first public stock offering) project, a time template consisting of open time, close time, pricing time, time to market, and the like exists, that is, each time point in a long time list becomes a relatively large time axis. Only at a certain point in time will the corresponding operation be triggered. However, for the test, if the test is performed step by step in the conventional manual test manner, although the test can be completed at the corresponding time point in one day, the timing job must be operated according to the specified time to complete the corresponding test, and in many cases, for example, when the workload is large or the time is not allowed, a large problem occurs.
After creating and checking the IPO project, the IPO project needs to go through stages of opening, publishing, Payment, distribution Pricing, Refund, organization publishing, Announcement, marketing (i.e., Book Open, Public Offer, Payment, alloment & trading, reflection, Institutional Offer, advertising, Listing) and the like according to the set time, and corresponding time requirements and specific time are required before each other to do specific things. The time set by creating an IPO from Open disk (Book Open) can only be shortened to at most T +1 day (T stands for deadline), until finally Listing (Listing) requires at least T +2 days to complete all the processes, e.g. T day stands for pricing date, T +1 is fastest to Listing (Book Open to Book close requires at least 2 working days, pricing date is after Book close, the whole IPO requires 4 working days to complete and market), T +1 day is fastest to promote from pricing date, and shortened to test at least 4 working days from Book Open, whereas for test development modified code can be developed by clicking fast forward to complete the current task directly into the next process without waiting to the next time point, but production requirements are free of fast forward button and immediate triggering of task to the next time point, this brings inconvenience to the testing of the timing task, so a method is needed to test the IPO flow function in a short time range and to test whether the timing task is valid or not.
Disclosure of Invention
Aiming at the problems of more time consumption and lower test efficiency caused by the fact that the traditional manual test mode can complete corresponding tests only by operating according to specified time, the application provides a time point trigger test method, a device, equipment and a storage medium for an IPO project.
According to an aspect of an embodiment of the present application, there is provided a method for testing a time trigger of an IPO project, including:
creating an IPO project; the information of the IPO project comprises a time template, a plurality of tasks, task triggering conditions and task time limit values; the time template comprises time points corresponding to the tasks;
searching a task triggering condition and a task time limit value of the current task according to the information of the IPO project;
positioning a time point needing updating operation according to the current test time and the task trigger condition of the current task;
setting a new task time limit value aiming at the current task, and updating the task time limit value at the time point needing to be updated by using the new task time limit value;
and running an IPO project of the limit value when the task is updated to obtain a test result.
In one embodiment, the information of the IPO project further includes task identifiers, and each task has a unique task identifier.
In one embodiment, the locating to the time point at which the update operation is required includes: and positioning to a time point needing to perform the updating operation through the regular expression.
In one embodiment, before the time point when the update operation is needed is located through the regular expression, the method further includes:
and generating a regular expression based on the task identification of the current task and the corresponding time point.
In one embodiment, the locating, by a regular expression, a time point at which an update operation is required includes:
establishing a mapping relation between the regular expression and the positioning information of the corresponding time point;
and determining the time point of the updating operation according to the mapping relation.
In one embodiment, the generating a regular expression based on the task identifier of the current task and the corresponding time point includes:
and constructing a regular character string by using the character string containing the task identifier of the current task and the character string containing the information of the corresponding time point, and generating a regular expression according with the grammar rule of the regular expression by using the regular character string.
In one embodiment, the establishing a mapping relationship between the regular expression and the positioning information at the corresponding time point includes:
reading parameters and positioning information of at least one time point from a database, wherein the parameters and the positioning information have one-to-one correspondence, and establishing a mapping relation between a regular expression and the positioning information according to the one-to-one correspondence.
According to another aspect of the embodiments of the present application, there is provided an apparatus for testing a time trigger of an IPO project, including:
the creation module is used for creating an IPO project; the information of the IPO project comprises a time template, a plurality of tasks, task triggering conditions and task time limit values; the time template comprises time points corresponding to the tasks;
the searching module is used for searching the task triggering condition and the task time limit value of the current task according to the information of the IPO project;
the positioning module is used for positioning a time point needing to be updated according to the current test time and the task trigger condition of the current task;
the updating module is used for setting a new task time limit value aiming at the current task and updating the task time limit value at the time point needing updating operation by using the new task time limit value;
and the operation module is used for operating the IPO project of the time limit value of the update task to obtain a test result.
According to another aspect of the embodiments of the present application, there is provided a computer device, including a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the above-mentioned point-in-time trigger test method for an IPO project.
According to another aspect of embodiments of the present application, there is provided a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-mentioned point-in-time trigger test method for an IPO project.
The technical scheme provided by one aspect of the embodiment of the application can have the following beneficial effects:
the time point triggering test method for the IPO project does not need to test according to the actual execution time of each task of the IPO project completely, can finish work in a short time, can obviously improve the test efficiency, reduces the workload, has high test result accuracy, and is convenient for verifying the test result.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application, or may be learned by the practice of the embodiments. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings. .
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of a method for point-in-time trigger testing of an IPO project, as provided in one embodiment;
FIG. 2 is a flowchart of step S3 in the corresponding embodiment of FIG. 1;
FIG. 3 is a block diagram of a device for triggering and testing the IPO project at a time point according to another embodiment;
fig. 4 is a block diagram of a computer device provided in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As shown in fig. 1, an embodiment of the present application provides a method for testing a time trigger of an IPO project, including:
s1, creating an IPO project on the IPO platform.
The information of the IPO project comprises a time template, a plurality of tasks, task identifiers, task triggering conditions and task time limit values; the time template is a time axis, and the time points on the time axis correspond to the tasks one by one. The IPO project has a unique identifier ipoId, and multiple IPO projects are often run on the IPO platform at the same time, so that in order to distinguish the IPO projects, a unique identifier is generated for each IPO project when the IPO project is created, so as to search the IPO project, thereby avoiding confusion, for example, a unique identifier ipoId is set for an IPO project, and for example, the identifier of an IPO project can be set to gongsinanme 0826. Each task has a unique identification task _ Id, and for example, the identification task _ ids of the tasks included in the IPO item gongsinanme 0826 may be set to gongsinanme 0826Open, gongsinanme 0826 printing, gongsinanme 0826 reflund, and the like, respectively. Each task corresponds to an associated task trigger condition and a task time limit value. For example, the task trigger condition associated with the task gongsinane 0826 ringing is set to be 30 hours at 12 am at 26 th of 8 months in time, the task time limit value is set to be 16 hours, namely the start time of the task gongsinane 0826 ringing of the IPO project gongsinane 0826 is 30 hours at 12 am at 26 th of 8 months, the task is started when the time reaches 30 hours at 12 th, the trigger condition is 12 hours at 30 hours at 26 th of 8 months in time, and the Pricing task duration limit value is 16 hours. The identifier of the IPO project and the identifier of the task contained in the IPO project have an associated character string, which is used for associating the IPO project with each task for convenient searching. For example, "Gongsiname 0826" in the above example is the associated string.
For example, the tasks include opening a disk, publicly issuing, paying, pricing for distribution, refunding, issuing by an organization, posting and marketing, and each task corresponds to time points t1, t2, … … and t8 respectively.
And S2, searching the trigger condition and the task time limit value of the current task according to the information of the IPO project.
Finding out whether the cond and the value in the current task are consistent and the corresponding condition and template content according to the ipoId and the task _ Id, and then storing the consistent and the value in a text; cond represents a trigger condition; value represents a task time limit value;
for example, the current task is pricing for distribution, and according to the IPO project, the time template is searched for, and the trigger condition and the task time limit value are found.
That is, the time is not priced before 12 o ' clock 30, the pricing task is started when the time reaches 12 o ' clock 30, the triggering condition is that the time reaches 12 o ' clock 30, and the pricing task duration time limit value is 16 hours.
And S3, positioning to a time point needing to be updated according to the trigger condition of the current task and the current test time.
In some embodiments, the time point of the update operation is located through the regular expression according to the trigger condition of the current task and the current test time.
Regular expressions describe a pattern (pattern) of string matching, which can be used to check whether a string contains a certain substring, to replace the matching substring, or to take out a substring that meets a certain condition from a certain string, etc.
Regular expressions are constructed in the same way as mathematical expressions are created, i.e. small expressions can be combined together with a variety of meta-characters and operators to create larger expressions. The components of a regular expression may be individual characters, a collection of characters, a range of characters, a selection between characters, or any combination of all of these components.
Regular expressions are literal patterns composed of common characters (e.g., characters a through z) and special characters (called "meta characters"). The pattern describes one or more character strings to be matched when searching for text. The regular expression is used as a template to match a certain character pattern with the searched character string.
The regular expression can be filtered to screen out the character string that meets the filtering logic thereof, and the required specific part can be obtained from the character string. Regular expressions facilitate the retrieval and replacement of text that conforms to a certain pattern (rule). It is appropriate in this embodiment to replace the old task time limit value with the new task time limit value to update the task time limit value. Complex control of character strings can be achieved quickly and in a very simple manner.
For example: update (date (# (privingdate)) + hour (0) + minute (10);
namely, the originally set pricing task duration limit (16 hours) is modified to 10 minutes at the time point of 12 points 30.
Locating a time point at which an update operation is required, comprising:
s301, generating a regular expression based on the task identification of the current task and the corresponding time point.
S302, establishing a mapping relation between the regular expression and the positioning information of the corresponding time point.
And S303, determining the time point needing to be updated according to the mapping relation.
The method comprises the steps of constructing a regular expression according to relevant parameters of a predefined time point and a task identifier of a current task, and establishing a mapping relation between the regular expression and positioning information of the time point, so that the corresponding positioning information can be determined through the regular expression, when positioning is needed, searching is carried out by adopting a rule matching mode instead of a mapping object, because the performance bottleneck can not occur when the data volume linearly increases in the rule matching mode, and the form of the regular expression is richer, and more complex fuzzy matching is supported, a complex service scene with large data volume can be met.
The regular expression and the mapping relation between the positioning information and the regular expression can be obtained by adopting the following modes:
firstly, reading parameters and positioning information of at least one time point from a database, wherein the parameters correspond to the positioning information one by one, finding one item of positioning information through one item of parameter, determining an interface by the positioning information, then generating a regular expression based on the parameters, and establishing a mapping relation between the regular expression and the positioning information according to the one-to-one corresponding relation between the parameters and the positioning information. In addition, the regular expression and the mapping relation between the positioning information and the regular expression can also be directly read from the database. The location information of a time point is information for uniquely determining a specific time point.
The time template comprises time points corresponding to all tasks, the time points correspond to the tasks one by one, and the task identification corresponds to the parameters of the time points. And the regular expression generated based on the time point and the task identification is realized by constructing a regular character string. Specifically, when the regular expression is generated, a universal unique identification code is generated according to the task identifier corresponding to the time point, the universal unique identification code is used as a grouping name, and the universal unique identification code and the corresponding task regular expression form a regular character string. The matching characters are formed by one or more characters according with the grammar rule of the regular expression and are used for representing the concrete character content which can appear at the corresponding position in the regular expression. For example, the task identification printing, a string containing "printing" may be added to the regular expression.
And performing rule matching on the parameters of the time points needing updating operation and the regular expressions to obtain target regular expressions matched with the parameters, and determining target positioning information corresponding to the target regular expressions according to the mapping relation between the regular expressions and the positioning information. The rule expression has a universal unique identification code, the rule expression is subjected to rule matching with the request parameter based on the universal unique identification code to obtain a target rule expression matched with the request parameter, and the target positioning information corresponding to the target rule expression can be determined based on the mapping relation due to the one-to-one mapping relation between the rule expression and the positioning information. And determining the time point positioned by the positioning instruction according to the target positioning information. The time point positioned by the method has high accuracy and low error rate.
S4, a new task time limit value is set for the current task, and the task time limit value is updated with the new task time limit value.
Specifically, the IPO item is found according to the current task identifier and the IPO identifier, and the original task time limit value is replaced by the new task time limit value and stored.
The ipoId finds the IPO according to the current task _ Id, and then submits to the IPO platform after updating the value.
For example, if the identifier of the current task is gongsinane 0826 printing and "gongsinane 0826" is an associated character string, the IPO item including the associated character string of "gongsinane 0826" in the ipoId is found according to the identifier, the task time limit value, i.e., the value, is updated, for example, the task time limit value may be updated from 16 hours to 0.5 hours, and then the updated task time limit value is submitted to the IPO platform for storage, so that the test does not need to be performed completely according to the actual running time of each task of the IPO item, and the test time is greatly shortened.
And S5, running an IPO project of the update task time limit value to obtain a test result.
And the IPO platform operates the IPO project according to the updated value, and the test result is obtained after the operation is finished. The problems of the IPO platform can be analyzed according to the test result, so that the repair and the improvement are facilitated.
For example, the previous task time limit value is replaced with a shorter task time limit value, thereby shortening the test execution time of the task so that the test can be triggered at the point in time when the IPO project is completed in a shorter time. If the whole IPO project is successfully and completely finished in the test process, the test result is proved to be successful, and the IPO platform is proved to have no problem. If the IPO project is suspended in the execution process of a certain task, the problem of the IPO project is searched according to the suspended task. For example, after the task time limit value of the task gongsinal 0826 printing of the IPO item gongsinal 0826 is updated and is suspended in the execution process of the task gongsinal 0826 printing, a problem existing in a module in charge of the task in the IPO platform is searched.
Because the updated time is the time needing to be left for manual operation, namely the operations of open sale, prepayment, pricing, refund, distribution and sale, distribution and the like are firstly set, the updated time needs a certain interval so that the operations can be completed in a certain time, otherwise, the whole IPO is suspended, 10 minutes are added one by one for the minute block after the time template is extracted (certainly, other time duration can be not less than 1 minute), so that division according to the current task is not needed, the template at all positions can be grabbed according to the ipoId, and then the plus minute (n) is integrally replaced, n is a global variable, a record is updated, and then the record is +10, and finally the variable is integrally replaced and the database is updated to complete the updating of the whole process. The test is completely carried out according to actual time points without the need of deadplate, the work can be completed in a short time, the test efficiency is improved, the workload is reduced, and the test result is convenient to verify.
The time point triggering test method for the IPO project does not need to test according to the actual execution time of each task of the IPO project completely, can finish work in a short time, can obviously improve the test efficiency, reduces the workload, has high test result accuracy, and is convenient for verifying the test result.
As shown in fig. 3, another embodiment of the present application provides a time point trigger testing apparatus for an IPO project, including:
a creating module 10, configured to create an IPO project; the information of the IPO project comprises a time template, a plurality of tasks, task triggering conditions and task time limit values; the time template comprises time points corresponding to the tasks;
the searching module 20 is configured to search the task trigger condition and the task time limit value of the current task according to the information of the IPO project;
the positioning module 30 is configured to position a time point at which an update operation needs to be performed according to the current test time and a task trigger condition of the current task;
an updating module 40, configured to set a new task time limit value for the current task, and update the task time limit value at the time point where the updating operation needs to be performed by using the new task time limit value;
and the running module 50 is used for running the IPO project of the task time limit value updating to obtain a test result.
In some embodiments, the information of the IPO project further includes task identifiers, and each of the tasks has a unique task identifier.
In some embodiments, the positioning module 30 is specifically configured to position, according to the current test time and the task trigger condition of the current task, a time point at which the update operation needs to be performed through a regular expression.
In some embodiments, the time point trigger test apparatus for the IPO project further includes: and the regular expression generating module is used for generating a regular expression based on the task identifier of the current task and the corresponding time point before the time point needing updating operation is positioned through the regular expression.
In some embodiments, the positioning module 30 is specifically configured to establish a mapping relationship between the regular expression and the positioning information at the corresponding time point according to the current test time and the task trigger condition of the current task;
and determining the time point of the updating operation according to the mapping relation.
In some embodiments, the regular expression generation module is specifically configured to:
before the time point needing updating operation is located through the regular expression, a regular character string is constructed by using the character string containing the task identifier of the current task and the character string containing the information of the corresponding time point, and the regular expression conforming to the grammar rule of the regular expression is generated by using the regular character string.
The time point trigger test device for the IPO project, provided by the embodiment of the application, can execute the time point trigger test method for the IPO project of the previous embodiment, does not need to test according to the actual execution time of each task of the IPO project completely, can complete work within a short time, can obviously improve the test efficiency, reduces the workload, has high test result accuracy, and is convenient for verifying the test result.
Another embodiment of the present application provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the above-mentioned time point trigger test method for an IPO project. As shown in fig. 4, in some embodiments, the computer device includes a processor, a storage medium, a memory, and a network interface connected by a system bus. The storage medium may be non-volatile or volatile. The storage medium of the computer device stores an operating system, a database and computer readable instructions, the database may store control information sequences, and the computer readable instructions, when executed by the processor, may cause the processor to implement the steps of the above-mentioned time point trigger test method for the IPO project. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions which, when executed by the processor, may cause the processor to perform the steps of the above-described point-in-time trigger test method for an IPO project. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In particular, the computer device has stored in memory computer readable instructions that, when executed by a processor, cause the processor to perform the steps of:
creating an IPO project; the information of the IPO project comprises a time template, a plurality of tasks, task triggering conditions and task time limit values; the time template comprises time points corresponding to the tasks;
searching a task triggering condition and a task time limit value of the current task according to the information of the IPO project;
positioning a time point needing updating operation according to the current test time and the task trigger condition of the current task;
setting a new task time limit value aiming at the current task, and updating the task time limit value at the time point needing to be updated by using the new task time limit value;
and running an IPO project of the limit value when the task is updated to obtain a test result. The information of the IPO project further comprises task identifiers, and each task has a unique task identifier.
The positioning to the time point needing the updating operation comprises the following steps: and positioning to a time point needing to perform the updating operation through the regular expression.
Before the processor executes the step of locating the time point needing to carry out the updating operation through the regular expression, the processor further executes: and generating a regular expression based on the task identification of the current task and the corresponding time point.
The step of locating the time point at which the updating operation needs to be performed through the regular expression executed by the processor specifically includes:
establishing a mapping relation between the regular expression and the positioning information of the corresponding time point;
and determining the time point of the updating operation according to the mapping relation.
The step of generating the regular expression based on the task identification of the current task and the corresponding time point executed by the processor comprises the following steps:
and constructing a regular character string by using the character string containing the task identifier of the current task and the character string containing the information of the corresponding time point, and generating a regular expression according with the grammar rule of the regular expression by using the regular character string.
The step of establishing, executed by the processor, a mapping relationship between the regular expression and the positioning information at the corresponding time point specifically includes:
reading parameters and positioning information of at least one time point from a database, wherein the parameters and the positioning information have one-to-one correspondence, and establishing a mapping relation between a regular expression and the positioning information according to the one-to-one correspondence.
The computer equipment provided by the embodiment of the application can execute the time point triggering test method of the IPO project, does not need to test according to the actual execution time of each task of the IPO project completely, can complete work in a short time, can obviously improve the test efficiency, reduces the workload, has high test result accuracy, and is convenient for verifying the test result.
Another embodiment of the present application provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described method for time-triggered testing of an IPO project.
In particular, the computer readable instructions stored in the storage medium described above, when executed by one or more processors, cause the one or more processors to perform the steps of:
creating an IPO project; the information of the IPO project comprises a time template, a plurality of tasks, task triggering conditions and task time limit values; the time template comprises time points corresponding to the tasks;
searching a task triggering condition and a task time limit value of the current task according to the information of the IPO project;
positioning a time point needing updating operation according to the current test time and the task trigger condition of the current task;
setting a new task time limit value aiming at the current task, and updating the task time limit value at the time point needing to be updated by using the new task time limit value;
and running an IPO project of the limit value when the task is updated to obtain a test result. The information of the IPO project further comprises task identifiers, and each task has a unique task identifier.
Further, the computer readable instructions stored in the storage medium, when executed by one or more processors, cause the one or more processors to perform the step of locating a point in time at which an update operation is required, comprising: generating a regular expression based on the task identification of the current task and the corresponding time point; and positioning to a time point needing to perform the updating operation through the regular expression.
More specifically, the computer readable instructions stored in the storage medium, when executed by one or more processors, cause the one or more processors to perform the step of locating a point in time at which an update operation is required by a regular expression, comprising:
establishing a mapping relation between the regular expression and the positioning information of the corresponding time point;
and determining the time point of the updating operation according to the mapping relation.
Further, the computer readable instructions stored in the storage medium, when executed by one or more processors, cause the one or more processors to perform the step of generating a regular expression based on the task identification of the current task and the corresponding point in time, comprising:
and constructing a regular character string by using the character string containing the task identifier of the current task and the character string containing the information of the corresponding time point, and generating a regular expression according with the grammar rule of the regular expression by using the regular character string.
Further, the computer readable instructions stored in the storage medium, when executed by one or more processors, cause the one or more processors to perform establishing a mapping relationship between the regular expression and the positioning information of the corresponding time point, including: reading parameters and positioning information of at least one time point from a database, wherein the parameters and the positioning information have one-to-one correspondence, and establishing a mapping relation between a regular expression and the positioning information according to the one-to-one correspondence.
The storage medium storing the computer readable instructions provided by the embodiment of the application can realize the time point trigger test method of the IPO project, does not need to test according to the actual execution time of each task of the IPO project completely, can complete the work in a short time, can obviously improve the test efficiency, reduces the workload, has high test result accuracy, and is convenient for verifying the test result.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A time point trigger test method for an IPO project is characterized by comprising the following steps:
creating an IPO project; the information of the IPO project comprises a time template, a plurality of tasks, task triggering conditions and task time limit values; the time template comprises time points corresponding to the tasks;
searching a task triggering condition and a task time limit value of the current task according to the information of the IPO project;
positioning a time point needing updating operation according to the current test time and the task trigger condition of the current task;
setting a new task time limit value aiming at the current task, and updating the task time limit value at the time point needing to be updated by using the new task time limit value;
and running an IPO project of the limit value when the task is updated to obtain a test result.
2. The method of claim 1, wherein the information of the IPO project further comprises task identifications, each of the tasks having a unique task identification.
3. The method of claim 2, wherein locating the point in time at which the update operation is required comprises: and positioning to a time point needing to perform the updating operation through the regular expression.
4. The method according to claim 3, wherein before the time point when the update operation is needed is located by the regular expression, the method further comprises:
and generating a regular expression based on the task identification of the current task and the corresponding time point.
5. The method of claim 4, wherein locating the time point at which the update operation is required by the regular expression comprises:
establishing a mapping relation between the regular expression and the positioning information of the corresponding time point;
and determining the time point of the updating operation according to the mapping relation.
6. The method of claim 4, wherein generating a regular expression based on the task identity of the current task and the corresponding point in time comprises:
and constructing a regular character string by using the character string containing the task identifier of the current task and the character string containing the information of the corresponding time point, and generating a regular expression according with the grammar rule of the regular expression by using the regular character string.
7. The method of claim 5, wherein the establishing a mapping relationship between the regular expression and the positioning information at the corresponding time point comprises:
reading parameters and positioning information of at least one time point from a database, wherein the parameters and the positioning information have one-to-one correspondence, and establishing a mapping relation between a regular expression and the positioning information according to the one-to-one correspondence.
8. A time point trigger test device for an IPO project is characterized by comprising:
the creation module is used for creating an IPO project; the information of the IPO project comprises a time template, a plurality of tasks, task triggering conditions and task time limit values; the time template comprises time points corresponding to the tasks;
the searching module is used for searching the task triggering condition and the task time limit value of the current task according to the information of the IPO project;
the positioning module is used for positioning a time point needing to be updated according to the current test time and the task trigger condition of the current task;
the updating module is used for setting a new task time limit value aiming at the current task and updating the task time limit value at the time point needing updating operation by using the new task time limit value;
and the operation module is used for operating the IPO project of the time limit value of the update task to obtain a test result.
9. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the method of any one of claims 1 to 7.
10. A storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011099363.7A CN112131134A (en) | 2020-10-14 | 2020-10-14 | Time point trigger test method, device, equipment and storage medium for IPO project |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011099363.7A CN112131134A (en) | 2020-10-14 | 2020-10-14 | Time point trigger test method, device, equipment and storage medium for IPO project |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112131134A true CN112131134A (en) | 2020-12-25 |
Family
ID=73854043
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011099363.7A Pending CN112131134A (en) | 2020-10-14 | 2020-10-14 | Time point trigger test method, device, equipment and storage medium for IPO project |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112131134A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817847A (en) * | 2021-01-28 | 2021-05-18 | 杭州网易再顾科技有限公司 | Data processing task testing method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109584060A (en) * | 2018-10-15 | 2019-04-05 | 平安科技(深圳)有限公司 | Processing method, device and the computer equipment and storage medium of timing transaction task |
CN109871328A (en) * | 2019-02-26 | 2019-06-11 | 网宿科技股份有限公司 | A kind of method for testing software and device |
CN110471839A (en) * | 2019-07-11 | 2019-11-19 | 平安普惠企业管理有限公司 | Fixed time test task control method, device, computer equipment and storage medium |
KR20200000684A (en) * | 2018-06-25 | 2020-01-03 | (주)농협정보시스템 | Test unified administration system and Controlling Method for the Same |
WO2020119434A1 (en) * | 2018-12-15 | 2020-06-18 | 深圳壹账通智能科技有限公司 | Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium |
-
2020
- 2020-10-14 CN CN202011099363.7A patent/CN112131134A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20200000684A (en) * | 2018-06-25 | 2020-01-03 | (주)농협정보시스템 | Test unified administration system and Controlling Method for the Same |
CN109584060A (en) * | 2018-10-15 | 2019-04-05 | 平安科技(深圳)有限公司 | Processing method, device and the computer equipment and storage medium of timing transaction task |
WO2020119434A1 (en) * | 2018-12-15 | 2020-06-18 | 深圳壹账通智能科技有限公司 | Method and apparatus for interface data processing, method and apparatus for automated testing, device, and medium |
CN109871328A (en) * | 2019-02-26 | 2019-06-11 | 网宿科技股份有限公司 | A kind of method for testing software and device |
CN110471839A (en) * | 2019-07-11 | 2019-11-19 | 平安普惠企业管理有限公司 | Fixed time test task control method, device, computer equipment and storage medium |
Non-Patent Citations (3)
Title |
---|
ROOPESH KEVIN SUNGKUR.ETC: "PWTool, A Novel Automated Tool for Pairwise Testing", IEEE, 31 December 2013 (2013-12-31) * |
秦丹;: "软件测试与质量控制", 信息与电脑(理论版), no. 05, 15 May 2012 (2012-05-15) * |
蔡维婷;黎伟健;范敏;: "Android自动化测试工具链的设计与实现", 计算机应用与软件, no. 11, 12 November 2018 (2018-11-12) * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817847A (en) * | 2021-01-28 | 2021-05-18 | 杭州网易再顾科技有限公司 | Data processing task testing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111221726A (en) | Test data generation method and device, storage medium and intelligent equipment | |
CN110209650A (en) | The regular moving method of data, device, computer equipment and storage medium | |
US20030192028A1 (en) | System and method for determining software object migration sequences | |
CN103823680B (en) | Development method and device of game business logic engine | |
CN111192144A (en) | Financial data prediction method, device, equipment and storage medium | |
CN110347545A (en) | A kind of test method and device of business platform cache policy | |
CN108108438A (en) | The recognition methods of behavioral data and device | |
CN111061733A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN112131134A (en) | Time point trigger test method, device, equipment and storage medium for IPO project | |
CN117112400B (en) | Automatic test case generation platform | |
CN116756046B (en) | Automatic interface testing method, device, equipment and storage medium | |
CN111242779A (en) | Financial data characteristic selection and prediction method, device, equipment and storage medium | |
CN114511314A (en) | Payment account management method and device, computer equipment and storage medium | |
CN112631554B (en) | Project demand management method, device and equipment | |
CN114969127A (en) | Reconciliation method, reconciliation system and storage medium for automatically combining reconciliation transactions | |
CN113935295A (en) | Valuation table summarizing method, valuation table summarizing device, valuation table summarizing equipment and valuation table summarizing medium | |
CN112817931B (en) | Incremental version file generation method and device | |
CN114356781A (en) | Software function testing method and device | |
CN113254352A (en) | Test method, device, equipment and storage medium for test case | |
CN106951449B (en) | Service driving method and device | |
CN110609790A (en) | Analytic program test method, device, medium and computer equipment | |
JP2017091213A (en) | Database update processing system, and database update processing method | |
CN112131133A (en) | IPO account verification method and device, computer equipment and storage medium | |
CN110532026A (en) | The method and device that cold standby code engineering is restored | |
CN118429113A (en) | Tax calculation method and device based on B+ tree model and multithreading programming technology |
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 |