CN110109842B - Method and device for testing numerical system - Google Patents

Method and device for testing numerical system Download PDF

Info

Publication number
CN110109842B
CN110109842B CN201910526673.3A CN201910526673A CN110109842B CN 110109842 B CN110109842 B CN 110109842B CN 201910526673 A CN201910526673 A CN 201910526673A CN 110109842 B CN110109842 B CN 110109842B
Authority
CN
China
Prior art keywords
information
delivered
template
test
planning
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.)
Active
Application number
CN201910526673.3A
Other languages
Chinese (zh)
Other versions
CN110109842A (en
Inventor
孙丹
王玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910526673.3A priority Critical patent/CN110109842B/en
Publication of CN110109842A publication Critical patent/CN110109842A/en
Application granted granted Critical
Publication of CN110109842B publication Critical patent/CN110109842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a method and a device for testing a numerical system, which automatically creates a test version of the numerical system according to a preset creation period, wherein the test version comprises the following steps: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of a numerical system, the confirmation template is used for inputting actual information generated in the numerical system according to the planning information, after first information filled by a first object according to the planning template and second information filled by a second object according to the confirmation template are obtained, a test result of the numerical system can be determined according to the first information and the second information, and in the process, the planning template is not required to be manually distributed and the test result is not required to be manually checked, so that test omission can be reduced, and the synchronism, the stability and the test efficiency of the test can be improved.

Description

Method and device for testing numerical system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for testing a numerical system.
Background
Games are typically made up of multiple components, and as an example, a game may include: game types, game world views, numerical systems, social systems, visual presentations, and the like. The rationality and completeness of the numerical system are key to the long-term stable operation of the game, and the numerical system generally comprises an economic system, a player growth system, a combat system, a mission system, a prop system and the like.
In the prior art, when a logarithmic system is tested, a game master designer records planning values through a working document, then distributes the working document containing the planning values to testers responsible for all system modules, the testers realize actual numerical value playing in a game according to the values in the working document, then collect actual playing values and planning values, and determine test results according to the difference condition of the actual playing values and the planning values. In an application scenario of bonus experience value delivery, a game master designer may plan to deliver a certain number of experience values to users of a certain level in a certain period of time, the plan may be distributed to testers through a document, the testers execute corresponding experience value delivery in a corresponding period of time according to the values in the document, and then determine whether a test is passed or not according to the difference between the actual delivered experience value of the testers and the planned delivered experience value of the game master designer.
However, in the prior art, when the log system is tested, the manual distribution mode of the planned values has poor synchronization effect, and specifically, if a game master designer modifies the planned values, each tester cannot quickly synchronize the planned values due to the hysteresis of manual distribution; on the other hand, the stability is poor, and in particular, because the documents are manually saved and distributed, there is no uniform saving requirement, so that uncertainty exists in querying history records, collecting test results and the like.
Disclosure of Invention
The embodiment of the invention provides a method and a device for testing a numerical system, which are used for solving the technical problems of poor numerical synchronization efficiency and poor stability during the testing of the numerical system.
A first aspect of an embodiment of the present invention provides a method for testing a numerical system, including:
creating a test version of the numerical system according to a preset creation period; the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of the numerical system, and the confirmation template is used for inputting actual information generated in the numerical system according to the planning information;
acquiring first information and second information, wherein the first information is information filled by a first object according to the planning template, and the second information is information filled by a second object according to the confirmation template;
and determining a test result of the numerical system according to the first information and the second information.
Optionally, after the creating the test version of the numerical value according to the preset creating period, the method further includes:
sending a first notification message to a first object, wherein the first notification message is used for indicating the first object to fill in information according to the planning template;
and sending a second notification message to a second object, wherein the second notification message is used for indicating the second object to fill in information according to the confirmation template.
Optionally, the planning template includes at least one of: a planned delivery route of the object to be delivered, a planned delivery type of the object to be delivered, a planned delivery numerical value of the object to be delivered, a planned delivery stage starting time of the object to be delivered, and a planned delivery stage ending time of the object to be delivered;
the validation template includes at least one of: the method comprises the steps of actual delivery route of the object to be delivered, actual delivery type of the object to be delivered, actual delivery numerical value of the object to be delivered, actual delivery stage starting time of the object to be delivered, actual delivery stage ending time of the object to be delivered and remark description of the object to be delivered.
Optionally, determining a test result of the numerical system according to the first information and the second information includes:
determining a difference between the first information and the second information;
under the condition that the difference accords with a preset difference condition, determining that the test result of the numerical system is test passing;
and under the condition that the difference does not accord with the preset difference condition, determining that the test result of the numerical system is that the test is not passed.
Optionally, the determining the difference between the first information and the second information includes:
determining at least one same information item of the first determination information and the second information according to a preset name mapping table; the name mapping table comprises a mapping relation of the names of the information items of the test version;
a difference is determined for each of said identical information items.
Optionally, after determining the test result of the numerical system, the method further includes:
and sending the test result to a preset object.
Optionally, the creating a test version of the numerical system according to a preset creation period includes:
and respectively creating a test version of the numerical system in each creation period according to the preset creation period.
A second aspect of an embodiment of the present invention provides an apparatus for testing a numerical system, including:
the creation module is used for creating a test version of the numerical system according to a preset creation period; the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of the numerical system, and the confirmation template is used for inputting actual information generated in the numerical system according to the planning information;
the acquisition module is used for acquiring first information and second information, wherein the first information is information filled by a first object according to the planning template, and the second information is information filled by a second object according to the confirmation template;
and the determining module is used for determining the test result of the numerical system according to the first information and the second information.
Optionally, the method further comprises:
the first sending module is used for sending a first notification message to a first object, wherein the first notification message is used for indicating the first object to fill in information according to the planning template;
the second sending module is used for sending a second notification message to a second object, wherein the second notification message is used for indicating the second object to fill in information according to the confirmation template.
Optionally, the planning template includes at least one of: a planned delivery route of the object to be delivered, a planned delivery type of the object to be delivered, a planned delivery numerical value of the object to be delivered, a planned delivery stage starting time of the object to be delivered, and a planned delivery stage ending time of the object to be delivered;
the validation template includes at least one of: the method comprises the steps of actual delivery route of the object to be delivered, actual delivery type of the object to be delivered, actual delivery numerical value of the object to be delivered, actual delivery stage starting time of the object to be delivered, actual delivery stage ending time of the object to be delivered and remark description of the object to be delivered.
Optionally, the determining module includes:
a determining sub-module for determining a difference between the first information and the second information; under the condition that the difference accords with a preset difference condition, determining that the test result of the numerical system is test passing; and under the condition that the difference does not accord with the preset difference condition, determining that the test result of the numerical system is that the test is not passed.
Optionally, the determining submodule includes:
a determining unit, configured to determine at least one identical information item of the first determining information and the second information according to a preset name mapping table; the name mapping table comprises a mapping relation of the names of the information items of the test version; a difference is determined for each of said identical information items.
Optionally, the method further comprises:
and the preset object sending module is used for sending the test result to a preset object.
Optionally, the creating module includes:
the creation sub-module is used for respectively creating a test version of the numerical system in each creation period according to a preset creation period.
A third aspect of an embodiment of the present invention provides an electronic device, including: a processor, a memory and a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method of any of the preceding first aspects.
A fourth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program which, when executed, implements a method according to any one of the preceding first aspects.
Compared with the prior art, the embodiment of the invention has the beneficial effects that:
the method and the device for testing the numerical system provided by the embodiment of the invention can be used for performing the test of the numerical system in a flow manner, and according to the method for testing, the information synchronization and the information common management in the test can be realized, so that the synchronism, the stability and the testing efficiency of the test are improved. Specifically, according to the embodiment of the invention, a test version of the numerical system can be automatically created according to a preset creation period, and the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of a numerical system, the confirmation template is used for inputting actual information generated in the numerical system according to the planning information, after first information filled by a first object according to the planning template and second information filled by a second object according to the confirmation template are obtained, a test result of the numerical system can be determined according to the first information and the second information, and in the process, the planning template is not required to be manually distributed and the test result is not required to be manually checked, so that test omission can be reduced, and the synchronism, the stability and the test efficiency of the test can be improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a method for testing a numerical system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for testing a numerical system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a planning template of a method for testing a numerical system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a validation template of a method for testing a numerical system according to an embodiment of the present invention;
FIG. 5 is a schematic diagram showing a method for testing a numerical system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of a device for testing a numerical system according to the present invention.
Detailed Description
The following description of the technical solutions according to the embodiments of the present invention will be given with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present invention to describe XXX, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
The embodiment of the invention can carry out the test of the logarithmic system in a flow way, and according to the method of the test, the information synchronization and the information common management in the test can be realized, thereby improving the synchronism, the stability and the test efficiency of the test. Specifically, according to the embodiment of the invention, a test version of the numerical system can be automatically created according to a preset creation period, and the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of a numerical system, the confirmation template is used for inputting actual information generated in the numerical system according to the planning information, after first information filled by a first object according to the planning template and second information filled by a second object according to the confirmation template are obtained, a test result of the numerical system can be determined according to the first information and the second information, and in the process, the planning template is not required to be manually distributed and the test result is not required to be manually checked, so that test omission can be reduced, and the synchronism, the stability and the test efficiency of the test can be improved.
The embodiment of the invention can be applied to a terminal, and the terminal can comprise: the embodiment of the invention is not limited to the electronic device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, or a server, which can run the test method.
The preset creation period described in the embodiments of the present invention may be determined according to the actual testing requirement of the game numerical system, for example, if the development period of one version of the game item is from monday, and is one week, the preset creation period is one creation version per week, and the period is one week.
Referring to fig. 1, an application scenario of a method for testing a numerical system according to an embodiment of the present invention is shown, where, as shown in fig. 1, a system to which an embodiment of the present invention is applied may include:
the version self-creating module is used for creating a test version of the numerical system according to a preset creating period; the notification module is used for notifying the first object to carry out first information input according to the planning module and notifying the second object to carry out second information input according to the planning module; a planning module for entering first information (i.e., planning information) of the first object; a confirmation module for entering second information (i.e., actual confirmation information) of the second object; the mapping module is used for storing the mapping relation of the same information items between the planning module and the determining module; the summarizing and comparing module is used for summarizing and comparing the difference between the first information and the second information according to the mapping module; and the reporting module is used for receiving the comparison result generated by the summarizing comparison module. The module can perform the test of the logarithmic system in a flow manner, so that the information synchronization and the information common management in the test are realized, and the synchronism, the stability and the test efficiency of the test are further improved.
Fig. 2 is a flow chart of a method for testing a numerical system according to an embodiment of the invention. The method specifically comprises the following steps:
step S101: creating a test version of the numerical system according to a preset creation period; the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of the numerical system, and the confirmation template is used for inputting actual information generated in the numerical system according to the planning information.
In specific application, a test tool can be developed through any programming language and script framework, and is set in a terminal, so that the test tool can automatically realize the test method of the embodiment of the invention, for example, a boa (python) programming language can be utilized, a set of test tools based on a B-S Web system is built by using a Java Script (JS) -based front-end language angullar JS and an open source code Web (Web) application framework djangoo, and the test tool can have a notification function, a numerical programming entry function, a personal implementation numerical entry function, a data summarization comparison function, a name number correspondence function, a reporting function and the like, and the embodiment of the invention is not limited in particular.
In a specific application, the planning term of the planning template and the confirmation term of the confirmation template may have a corresponding relationship. For example, if the experience value of the placement in the game for a certain period of time is planned in the planning term, the confirmation term may include the experience value confirmation term actually placed in the certain period of time, so that the difference between the planning and the actual situation can be obtained according to the comparison of the planning information in the planning template and the confirmation information in the confirmation template. It will be appreciated that the specific information items set in the planning template and the confirmation template may be determined according to an actual application scenario, which is not particularly limited in the embodiment of the present invention.
In an embodiment of the present invention, optionally, step S101 includes: and respectively creating a test version of the numerical system in each creation period according to the preset creation period. Specifically, a test version of the numerical system may be created correspondingly in each period according to a preset creation period, and data between each test version may be independent from each other. It will be appreciated that the testing method of each test version is similar, and thus, in the embodiment of the present invention, a test version is illustrated as an example.
Step S102: and acquiring first information and second information, wherein the first information is information filled by a first object according to the planning template, and the second information is information filled by a second object according to the confirmation template.
In the embodiment of the invention, the first object may be a game master designer, the first object may fill in planning information of the test version according to a planning template, the planning information is first information, the second object may be a tester, the second object may fill in confirmation information actually obtained by the test version in the test according to a confirmation template, and the confirmation information is second information.
In one possible implementation manner of the embodiment of the present invention, after the first object completes filling the planning template, the operation after completing filling is triggered, and then the terminal may further obtain the first information filled by the first object according to the planning template; after the confirmation template is filled, the second object can trigger the operation after the completion of filling, and the terminal can further acquire second information filled by the second object according to the confirmation template.
In another possible implementation manner, the terminal may periodically acquire the first information filled in by the first object according to the planning template, and periodically acquire the second information filled in by the second object according to the confirmation template.
It will be appreciated that, according to the actual application scenario, those skilled in the art may also acquire the first information and the second information in other manners, which is not limited in particular in the embodiment of the present invention.
Step S103: and determining a test result of the numerical system according to the first information and the second information.
In the embodiment of the invention, whether the test of the numerical system is passed or not can be determined according to the difference between the same items in the first information and the second information. For example, if the empirically placed planned value in the first information is 100 and the empirically placed actual value in the second information is 0, the first information and the second information are considered to have larger differences, and the test of the numerical system is not passed. For another example, if the planned value of the empirical input in the first information is 100 and the actual value of the empirical input in the second information is 99 or 100, the first information and the second information are considered to be not different, and the test of the numerical system is passed.
Optionally, determining a test result of the numerical system according to the first information and the second information includes: determining a difference between the first information and the second information; under the condition that the difference accords with a preset difference condition, determining that the test result of the numerical system is test passing; and under the condition that the difference does not accord with the preset difference condition, determining that the test result of the numerical system is that the test is not passed.
In the embodiment of the invention, the preset difference condition can be determined according to the actual application scene. By way of example, the preset difference condition may be that the difference between the first information and the second information is not greater than 90%, or the like, which is not particularly limited in the embodiment of the present invention.
Optionally, the determining the difference between the first information and the second information includes: determining at least one same information item of the first determination information and the second information according to a preset name mapping table; the name mapping table comprises a mapping relation of the names of the information items of the test version; a difference is determined for each of said identical information items.
In the embodiment of the invention, considering the situation that temporary names or product group codes are frequently used in the initial stage of game product production, the formal names are not determined until the early stage of online. Therefore, when the record is planned, the code number may be filled out because the formal name is not determined, when the actual value is recorded, the actual name may be input when the actual value is recorded, so that the first information and the second information are actually the same information items, but cannot be compared due to different filling. Therefore, a mapping table including a mapping relation of information item names in the test version may be preset, according to the mapping table, the information items mapped to each other may be determined as identical information items, and differences of each identical information item in the first information and the second information may be determined, so that an accurate difference determination result may be obtained.
It will be appreciated that in a particular application there are generally two possible reasons for the numerical system to fail the test. For one, the planning is correct and the actual delivery is incorrect, which can lead to the monetary value obtained by the game player exceeding the planned value, which can have a detrimental effect on the economic system of the game and therefore require modification in the actual delivery. For the second reason, the actual placement is correct and the programming is incorrect, which may result in insufficient play to attract players, thus requiring the game master designer to confirm and change the programming fill value.
Optionally, in step S101, the planning template includes at least one of: a planned delivery route of the object to be delivered, a planned delivery type of the object to be delivered, a planned delivery numerical value of the object to be delivered, a planned delivery stage starting time of the object to be delivered, and a planned delivery stage ending time of the object to be delivered; the validation template includes at least one of: the method comprises the steps of actual delivery route of the object to be delivered, actual delivery type of the object to be delivered, actual delivery numerical value of the object to be delivered, actual delivery stage starting time of the object to be delivered, actual delivery stage ending time of the object to be delivered and remark description of the object to be delivered.
In the embodiment of the invention, the planning template can be responsible for providing the functions of inputting, storing and modifying planning information. By way of example, as shown in FIG. 3, the planning template may include: the method comprises the steps of planning a delivery path of an object to be delivered, planning a delivery type of the object to be delivered, planning a delivery value of the object to be delivered, starting time of a planning delivery stage of the object to be delivered and ending time of the planning delivery stage of the object to be delivered. The delivery route is used for indicating in which specific activity or task is to be delivered, the delivery type is used for indicating specific experience values, prizes and the like, the delivery value is used for indicating specific values of delivery, and the delivery stage starting time and the delivery stage ending time are used for indicating the delivery time period.
It will be appreciated that the input information received in the planning template represents the planned values, and controls for indicating addition, modification, deletion, etc. may be further included in the planning template, through which modification of the input information may be supported, which is not particularly limited in the embodiment of the present invention.
In the embodiment of the invention, the confirmation template can be responsible for providing the functions of inputting, storing and modifying the confirmation information. The validation items contained in the validation template may correspond to the planning objectives, as illustrated in fig. 4, and the validation template may include: the method comprises the steps of an actual delivery path of an object to be delivered, an actual delivery type of the object to be delivered, an actual delivery numerical value of the object to be delivered, an actual delivery stage starting time of the object to be delivered, an actual delivery stage ending time of the object to be delivered and remark descriptions of the object to be delivered. It will be appreciated that the input information received in the validation template represents an actual value, and controls for indicating addition, modification, deletion, etc. may be further included in the validation template, through which modification of the input information may be supported, which is not particularly limited in the embodiments of the present invention.
It will be appreciated that in the test version, the administrator may also set the rights of a specific game master designer, a tester, etc., so that the game master designer may fill in the planning template, and the tester may fill in the confirmation template, which is not particularly limited in the embodiment of the present invention.
Optionally, after step S101, the method includes: sending a first notification message to a first object, wherein the first notification message is used for indicating the first object to fill in information according to the planning template; and sending a second notification message to a second object, wherein the second notification message is used for indicating the second object to fill in information according to the confirmation template.
In the embodiment of the invention, the identity information of the first object and the identity information of the second object can be input in advance, and then the first object can be informed to fill in the planning template and the second object can be informed to fill in the confirmation template at regular intervals. The time of notification, as well as the specific content of the notification message, may be preconfigured when sending the first notification message to the first object and the second notification message to the second object. Specifically, according to the configuration of the first object and the second object in advance, a forwarding interface of the communication tool is called to push information, and the first object and the second object are notified to fill in the content. For example, a first notification message can be pushed to one or more planning responsible persons (i.e., the first object) during a monday, and the planning responsible persons complete the input work of the planning values after receiving the first notification message; and (3) pushing a second notification message to one or more realization responsible persons (namely second objects) at regular time from Tuesday to Tuesday, and completing the specific realization input work after the realization responsible persons receive the second notification message.
Optionally, after step S103, the method may further include: and sending the test result to a preset object.
In the embodiment of the invention, the preset object can be a preset manager or a tester, and in specific application, the test result can be sent to the preset object by means of mail, short message, and the like, so that the preset object can know the test result in time. For example, a rendering method of the Django framework may be employed to generate a piece of mail in hypertext markup language (hyper text markup language, HTML) format, and apply the mail module of python to send the mail to a designated manager.
For example, as shown in fig. 5, when the test result is sent to the preset object, the test result may further include a put summary. In the delivery summary, the planned delivery value, the actual delivery difference value and the delivery difference of a certain delivery type can be summarized, so that the difference between the planned value and the actual value can be clearly shown. It can be understood that, in general, the planned delivery value is consistent with the actual delivery difference, so that a better planning and delivery effect is achieved, but the tolerance value of the planned delivery value and the actual delivery difference can be set according to the actual application scene, and the test can be considered to pass under the condition that the delivery difference is lower than the tolerance value. If the test fails, the first object and the second object can be adjusted adaptively according to the test result, the consistency of the planning value and the actual value is ensured, and after the test passes, the first object and the second object can click on the strategy confirmation, so that the test content can be used for an actual scene.
In summary, the method and the device for testing the numerical system provided by the embodiment of the invention can perform the test of the numerical system in a flow manner, and according to the method for testing, the information synchronization and the information common management in the test can be realized, so that the synchronism, the stability and the test efficiency of the test are improved. Specifically, according to the embodiment of the invention, a test version of the numerical system can be automatically created according to a preset creation period, and the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of a numerical system, the confirmation template is used for inputting actual information generated in the numerical system according to the planning information, after first information filled by a first object according to the planning template and second information filled by a second object according to the confirmation template are obtained, a test result of the numerical system can be determined according to the first information and the second information, and in the process, the planning template is not required to be manually distributed and the test result is not required to be manually checked, so that test omission can be reduced, and the synchronism, the stability and the test efficiency of the test can be improved.
Fig. 6 is a schematic structural diagram of an embodiment of a device for testing a numerical system according to the present invention. As shown in fig. 6, the apparatus for testing a numerical system provided in this embodiment includes:
a creating module 610, configured to create a test version of the numerical system according to a preset creating period; the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of the numerical system, and the confirmation template is used for inputting actual information generated in the numerical system according to the planning information;
the obtaining module 620 is configured to obtain first information and second information, where the first information is information filled by a first object according to the planning template, and the second information is information filled by a second object according to the confirmation template;
and the determining module 630 is configured to determine a test result of the numerical system according to the first information and the second information.
Optionally, the method further comprises:
the first sending module is used for sending a first notification message to a first object, wherein the first notification message is used for indicating the first object to fill in information according to the planning template;
the second sending module is used for sending a second notification message to a second object, wherein the second notification message is used for indicating the second object to fill in information according to the confirmation template.
Optionally, the planning template includes at least one of: a planned delivery route of the object to be delivered, a planned delivery type of the object to be delivered, a planned delivery numerical value of the object to be delivered, a planned delivery stage starting time of the object to be delivered, and a planned delivery stage ending time of the object to be delivered;
the validation template includes at least one of: the method comprises the steps of actual delivery route of the object to be delivered, actual delivery type of the object to be delivered, actual delivery numerical value of the object to be delivered, actual delivery stage starting time of the object to be delivered, actual delivery stage ending time of the object to be delivered and remark description of the object to be delivered.
Optionally, the determining module includes:
a determining sub-module for determining a difference between the first information and the second information; under the condition that the difference accords with a preset difference condition, determining that the test result of the numerical system is test passing; and under the condition that the difference does not accord with the preset difference condition, determining that the test result of the numerical system is that the test is not passed.
Optionally, the determining submodule includes:
a determining unit, configured to determine at least one identical information item of the first determining information and the second information according to a preset name mapping table; the name mapping table comprises a mapping relation of the names of the information items of the test version; a difference is determined for each of said identical information items.
Optionally, the method further comprises:
and the preset object sending module is used for sending the test result to a preset object.
Optionally, the creating module includes:
the creation sub-module is used for respectively creating a test version of the numerical system in each creation period according to a preset creation period.
The method and the device for testing the numerical system provided by the embodiment of the invention can be used for performing the test of the numerical system in a flow manner, and according to the method for testing, the information synchronization and the information common management in the test can be realized, so that the synchronism, the stability and the testing efficiency of the test are improved. Specifically, according to the embodiment of the invention, a test version of the numerical system can be automatically created according to a preset creation period, and the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of a numerical system, the confirmation template is used for inputting actual information generated in the numerical system according to the planning information, after first information filled by a first object according to the planning template and second information filled by a second object according to the confirmation template are obtained, a test result of the numerical system can be determined according to the first information and the second information, and in the process, the planning template is not required to be manually distributed and the test result is not required to be manually checked, so that test omission can be reduced, and the synchronism, the stability and the test efficiency of the test can be improved.
The device for testing a numerical system according to the embodiments of the present invention may be used to execute the method shown in the foregoing corresponding embodiments, and the implementation manner and principle are the same and will not be repeated.
The embodiment of the invention also provides electronic equipment, which comprises: a processor, a memory and a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method according to any of the preceding embodiments.
Embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed, implements a method according to any of the preceding embodiments.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (12)

1. A method of testing a numerical system, the method comprising:
creating a test version of the numerical system according to a preset creation period; the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of the numerical system, and the confirmation template is used for inputting actual information generated in the numerical system according to the planning information;
acquiring first information and second information, wherein the first information is information filled by a first object according to the planning template, and the second information is information filled by a second object according to the confirmation template;
determining a test result of the numerical system according to the first information and the second information;
the planning template includes at least one of: a planned delivery route of the object to be delivered, a planned delivery type of the object to be delivered, a planned delivery numerical value of the object to be delivered, a planned delivery stage starting time of the object to be delivered, and a planned delivery stage ending time of the object to be delivered;
the validation template includes at least one of: the method comprises the steps of an actual delivery path of an object to be delivered, an actual delivery type of the object to be delivered, an actual delivery numerical value of the object to be delivered, an actual delivery stage starting time of the object to be delivered, an actual delivery stage ending time of the object to be delivered and remark descriptions of the object to be delivered;
the creating a test version of the numerical system according to a preset creation period includes:
and respectively creating a test version of the numerical system in each creation period according to the preset creation period.
2. The method of claim 1, wherein after creating the test version of the value according to the preset creation period, further comprising:
sending a first notification message to a first object, wherein the first notification message is used for indicating the first object to fill in information according to the planning template;
and sending a second notification message to a second object, wherein the second notification message is used for indicating the second object to fill in information according to the confirmation template.
3. The method of claim 1, wherein determining the test result of the numerical system based on the first information and the second information comprises:
determining a difference between the first information and the second information;
under the condition that the difference accords with a preset difference condition, determining that the test result of the numerical system is test passing;
and under the condition that the difference does not accord with the preset difference condition, determining that the test result of the numerical system is that the test is not passed.
4. A method according to claim 3, wherein said determining the difference between the first information and the second information comprises:
determining at least one identical information item of the first information and the second information according to a preset name mapping table; the name mapping table comprises a mapping relation of the names of the information items of the test version;
a difference is determined for each of said identical information items.
5. The method of any one of claims 1-2, wherein after determining the test results for the numerical system, further comprising:
and sending the test result to a preset object.
6. An apparatus for testing a numerical system, comprising:
the creation module is used for creating a test version of the numerical system according to a preset creation period; the test version comprises: the system comprises a planning template and a confirmation template, wherein the planning template is used for inputting planning information of the numerical system, and the confirmation template is used for inputting actual information generated in the numerical system according to the planning information;
the acquisition module is used for acquiring first information and second information, wherein the first information is information filled by a first object according to the planning template, and the second information is information filled by a second object according to the confirmation template;
the determining module is used for determining a test result of the numerical system according to the first information and the second information;
the planning template includes at least one of: a planned delivery route of the object to be delivered, a planned delivery type of the object to be delivered, a planned delivery numerical value of the object to be delivered, a planned delivery stage starting time of the object to be delivered, and a planned delivery stage ending time of the object to be delivered;
the validation template includes at least one of: the method comprises the steps of an actual delivery path of an object to be delivered, an actual delivery type of the object to be delivered, an actual delivery numerical value of the object to be delivered, an actual delivery stage starting time of the object to be delivered, an actual delivery stage ending time of the object to be delivered and remark descriptions of the object to be delivered;
the creation module comprises:
the creation sub-module is used for respectively creating a test version of the numerical system in each creation period according to a preset creation period.
7. The apparatus as recited in claim 6, further comprising:
the first sending module is used for sending a first notification message to a first object, wherein the first notification message is used for indicating the first object to fill in information according to the planning template;
the second sending module is used for sending a second notification message to a second object, wherein the second notification message is used for indicating the second object to fill in information according to the confirmation template.
8. The apparatus of claim 6, wherein the means for determining comprises:
a determining sub-module for determining a difference between the first information and the second information; under the condition that the difference accords with a preset difference condition, determining that the test result of the numerical system is test passing; and under the condition that the difference does not accord with the preset difference condition, determining that the test result of the numerical system is that the test is not passed.
9. The apparatus of claim 8, wherein the determination submodule comprises:
a determining unit, configured to determine at least one identical information item of the first information and the second information according to a preset name mapping table; the name mapping table comprises a mapping relation of the names of the information items of the test version; a difference is determined for each of said identical information items.
10. The apparatus according to any one of claims 6-7, further comprising:
and the preset object sending module is used for sending the test result to a preset object.
11. An electronic device, comprising:
a processor, a memory and a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method of any of claims 1-5.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed, implements the method according to any of claims 1-5.
CN201910526673.3A 2019-06-18 2019-06-18 Method and device for testing numerical system Active CN110109842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910526673.3A CN110109842B (en) 2019-06-18 2019-06-18 Method and device for testing numerical system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910526673.3A CN110109842B (en) 2019-06-18 2019-06-18 Method and device for testing numerical system

Publications (2)

Publication Number Publication Date
CN110109842A CN110109842A (en) 2019-08-09
CN110109842B true CN110109842B (en) 2023-08-08

Family

ID=67495338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910526673.3A Active CN110109842B (en) 2019-06-18 2019-06-18 Method and device for testing numerical system

Country Status (1)

Country Link
CN (1) CN110109842B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8185877B1 (en) * 2005-06-22 2012-05-22 Jpmorgan Chase Bank, N.A. System and method for testing applications
CN101414935B (en) * 2008-07-09 2011-06-22 北京星网锐捷网络技术有限公司 Method and system for generating test case
CN103631720B (en) * 2013-12-20 2016-08-17 百度在线网络技术(北京)有限公司 The generation method and apparatus of test case
CN108255653B (en) * 2018-01-02 2021-05-04 深圳壹账通智能科技有限公司 Product testing method and terminal thereof
CN108984418B (en) * 2018-08-22 2023-04-11 中国平安人寿保险股份有限公司 Software test management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110109842A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN109658181A (en) Information processing method and device
CN104317618B (en) A kind of firmware partition treating method and apparatus
CN104834602B (en) A kind of program dissemination method, device and program delivery system
CN107391123A (en) A kind of method of self-service designing form and traffic flow replenishment system
CN109728969B (en) Abnormal user detection method of application software, monitoring server and storage medium
CN113448862B (en) Software version testing method and device and computer equipment
CN111949607B (en) Method, system and device for monitoring UDT file
CN109784738B (en) Approval method and approval device
CN110971447A (en) Test information management method and device, electronic equipment and readable storage medium
CN109284331B (en) Certificate making information acquisition method based on service data resources, terminal equipment and medium
CN112308512A (en) Business service approval processing method, device and equipment
CN114331315A (en) Social security service processing method and device combining RPA and AI
CN108123810A (en) A kind of error bills processing method and processing device
CN109587351B (en) Call testing method, device, equipment and storage medium
CN108153663A (en) Page data processing method and device
CN113157581A (en) Method and device for automatically triggering service, electronic equipment and storage medium
CN110109842B (en) Method and device for testing numerical system
CN113450062A (en) Project information processing method, system, electronic device and storage medium
CN112597123A (en) Data multi-version dynamic switching method and device
CN110162982B (en) Method and device for detecting illegal rights, storage medium and electronic equipment
CN115484560A (en) Intelligent short message processing method and device, electronic equipment and storage medium
CN108549722A (en) Multi-platform data publication method, system and medium
CN111177501B (en) Label processing method, device and system
CN110807037B (en) Data modification method and device, electronic equipment and storage medium
CN110517010B (en) Data processing method, system and storage medium

Legal Events

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