Prd document testing method and device, computer equipment and medium
By conducting content testing and data updates on preset testing strategies on Prd documents, problems are quickly found and rectified, and problems are solved in the existing technology, and the problems of lag in understanding and difficulty in rectification are achieved efficient rectification and quality improvement of Prd documents.
Patent Information
- Application Number
- CN202411158188.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, it is difficult for Prd documents to quickly discover ambiguity and problems during the requirements review meeting, resulting in lagging in requirements understanding and increasing the difficulty and time cost of document rectification.
Provide a test method for Prd document, including obtaining the original Prd document, conducting content testing based on preset testing strategies, generating test report data, and updating data content, obtaining target Prd document, quickly searching and rectifying problems through this process, and reducing Difficulty and time of rectification.
Through early testing and rectification, the difficulty and time cost of Prd document rectification is effectively reduced, the quality and availability of documents are improved, and the risks in the development process are reduced.
Smart Images

Figure CN119203987A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of document testing, and in particular, to a testing method, apparatus, computer equipment and medium applicable to a prd document. Background Art
[0002] The PRD document is the most important document for a product project to move from the "conceptualization" stage to the "drawing" stage. The quality of the PRD document directly affects whether the R&D department can clearly define the functions and performance of the product.
[0003] In the current overall software development process, testing generally outputs opinions on the PRD proposed by the product during the requirements review meeting and outputs requirements issues during the subsequent use case writing. The PRD requirement prototype is an important basis for software development. If the PRD is only in a short requirement review meeting of tens of minutes or one or two hours, it is difficult to find various ambiguities and various contents in the PRD requirements. After the requirements review, the development process will be immediately entered. At this time, development and testing will carefully understand the detailed requirements, find problems and correct them.
[0004] However, in the existing method, the lag in understanding requirements and ambiguity analysis causes problems to be exposed too late, thereby increasing the difficulty of PRD document rectification and incurring a high time cost. Summary of the invention
[0005] The embodiments described in this article provide a method, apparatus, computer device and medium for testing a prd document, which overcome the above-mentioned problems.
[0006] In a first aspect, according to the content of the present disclosure, a method for testing a prd document is provided, comprising:
[0007] Obtaining an original PRD document, wherein the original PRD document includes: product overview data, demand overview data, product operation data, and functional demand data;
[0008] Performing content testing on the original prd document based on a preset test strategy to obtain a content test result of the original prd document, wherein the preset test strategy includes: a first test rule, a second test rule, a third test rule, a fourth test rule and a fifth test rule, wherein the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule respectively perform compliance testing on the original prd document from different test angles;
[0009] Based on the content test result of the original prd document, generate test report data corresponding to the original prd document;
[0010] Based on the test report data corresponding to the original prd document, the data content of the original prd document is updated to obtain a target prd document.
[0011] In a second aspect, according to the content of the present disclosure, a test device for a prd document is provided, comprising:
[0012] An acquisition module is used to acquire an original PRD document, wherein the original PRD document includes: product overview data, demand overview data, product operation data and functional demand data;
[0013] A testing module, used for performing a content test on the original prd document based on a preset test strategy to obtain a content test result of the original prd document, wherein the preset test strategy includes: a first test rule, a second test rule, a third test rule, a fourth test rule and a fifth test rule, wherein the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule respectively perform a compliance test on the original prd document from different test angles;
[0014] A generating module, used for generating test report data corresponding to the original prd document based on the content test result of the original prd document;
[0015] The updating module is used to update the data content of the original prd document based on the test report data corresponding to the original prd document to obtain the target prd document.
[0016] In a third aspect, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the prd document testing method in any of the above embodiments are implemented.
[0017] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for testing a prd document in any of the above embodiments are implemented.
[0018] The testing method of the prd document provided in the embodiment of the present application obtains the original prd document, which includes: product overview data, demand overview data, product operation data and functional demand data; performs content testing on the original prd document based on a preset test strategy to obtain the content test result of the original prd document, the preset test strategy includes: a first test rule, a second test rule, a third test rule, a fourth test rule and a fifth test rule, and the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule respectively perform compliance testing on the original prd document from different test angles; based on the content test result of the original prd document, generates test report data corresponding to the original prd document; based on the test report data corresponding to the original prd document, updates the data content of the original prd document to obtain the target prd document. In this way, the prd document is tested in advance, the problems therein are quickly found and rectified, which effectively reduces the difficulty of prd document rectification and saves document rectification time.
[0019] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:
[0021] Figure 1 It is a flowchart of a prd document testing method provided by the present invention.
[0022] Figure 2 It is a structural schematic diagram of a prd document testing device provided by the present invention.
[0023] Figure 3 It is a structural schematic diagram of a computer device provided by the present disclosure.
[0024] It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0026] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. Terms such as "first" and "second" are only used to distinguish one component (or a part of a component) from another component (or another part of a component).
[0029] In the description of the present application, unless otherwise specified, "plurality" means more than two (including two), and similarly, "multiple groups" means more than two groups (including two).
[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0031] Figure 1 It is a flowchart of a method for testing a prd document provided by an embodiment of the present disclosure, such as Figure 1As shown, the specific process of the test method of the prd document includes:
[0032] S110, obtain the original prd document.
[0033] The original PRD document includes: product overview data, demand overview data, product operation data and functional requirement data. The original PRD document is a product design document obtained by marketers through manual research.
[0034] Product overview data includes: product background and core function description; requirement overview data includes: business process diagram, requirement list, etc.; product operation data includes: user type, user characteristics, operating environment, and restrictions on design and implementation; functional requirement data includes: functional purpose, source background, problem type, user scenario simulation, business rules, interface type, and scenario interaction.
[0035] S120. Perform a content test on the original prd document based on a preset test strategy to obtain a content test result of the original prd document.
[0036] Among them, the preset test strategy includes: a first test rule, a second test rule, a third test rule, a fourth test rule and a fifth test rule. The first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule respectively perform compliance tests on the original prd document from different test angles.
[0037] The content test results of the original prd document include the test results of each test rule in the preset test strategy. The test results of each test rule can be represented by a test identifier, that is, the content test results of the original prd document may include: a content test identifier corresponding to the first test rule, a data test identifier corresponding to the second test rule, a data test identifier corresponding to the third test rule, a data test identifier corresponding to the fourth test rule, and a data test identifier corresponding to the fifth test rule.
[0038] In some embodiments, a content test is performed on the original prd document based on a preset test strategy to obtain a content test result of the original prd document, including:
[0039] Based on the first test rule, test whether the current version content of the original prd document has data correlation with the historical version content, and obtain the content test identifier corresponding to the first test rule; based on the second test rule, test whether the data content of the original prd document has content integrity, and obtain the data test identifier corresponding to the second test rule; based on the third test rule, test whether the data content of the original prd document has data applicability, and obtain the data test identifier corresponding to the third test rule; based on the fourth test rule, test whether the product design in the original prd document has design integrity, and obtain the data test identifier corresponding to the fourth test rule; based on the fifth test rule, test whether the data content of the original prd document has data rationality, and obtain the data test identifier corresponding to the fifth test rule.
[0040] Among them, a preset test identifier can be set in advance, and the preset test identifier can be used to measure the test results of the original prd document.
[0041] The content test identifier corresponding to the first test rule is used to describe the test result of the data association between the current version content and the historical version content of the original prd document. Data association can be used to describe whether there is a data conflict between the current version content and the historical version content of the original prd document, such as different interpretations of the same noun.
[0042] For example, if the content test identifier corresponding to the first test rule is a preset test identifier, then the test result of the data correlation between the current version content and the historical version content of the original prd document is determined to be test failed; if the content test identifier corresponding to the first test rule is not a preset test identifier, then the test result of the data correlation between the current version content and the historical version content of the original prd document is determined to be test passed.
[0043] The data test identifier corresponding to the second test rule is used to describe the test result of the content integrity of the data content of the original prd document. The content integrity can be used to describe whether the description in the original prd document is clear, unambiguous, and standardized.
[0044] For example, if the data test identifier corresponding to the second test rule is a preset test identifier, then the test result of the content integrity of the data content of the original prd document is determined to be test failed; if the data test identifier corresponding to the second test rule is not a preset test identifier, then the test result of the content integrity of the data content of the original prd document is determined to be test passed.
[0045] The data test identifier corresponding to the third test rule is used to describe the test result of the data applicability of the data content of the original prd document. The data applicability can be used to describe the feasibility of the content in the original prd document.
[0046] For example, if the data test identifier corresponding to the third test rule is a preset test identifier, then the test result of the data applicability of the data content of the original prd document is determined to be test failure; if the data test identifier corresponding to the third test rule is not a preset test identifier, then the test result of the data applicability of the data content of the original prd document is determined to be test passed.
[0047] The data test identifier corresponding to the fourth test rule is used to describe the test result of the design integrity of the product design in the original prd document. The design integrity can be used to describe that there are no missing parts and the missing parts are explained in the product design in the original prd document.
[0048] For example, if the data test identifier corresponding to the fourth test rule is a preset test identifier, then the test result of the design integrity of the product design in the original prd document is determined to be test failed; if the data test identifier corresponding to the fourth test rule is not a preset test identifier, then the test result of the design integrity of the product design in the original prd document is determined to be test passed.
[0049] The data test identifier corresponding to the fifth test rule is used to describe the test result of the data rationality of the data content of the original prd document. Data rationality can be used to describe whether the content design of the original prd document is reasonable and feasible or not cumbersome from the user's perspective.
[0050] For example, if the data test identifier corresponding to the fifth test rule is a preset test identifier, then the test result of the data rationality of the data content of the original prd document is determined to be test failure; if the data test identifier corresponding to the fifth test rule is not a preset test identifier, then the test result of the data rationality of the data content of the original prd document is determined to be test passed.
[0051] S130. Generate test report data corresponding to the original prd document based on the content test results of the original prd document.
[0052] Among them, the test report data corresponding to the original prd document may include: a test identification whose test result is a test failure. For example, the content test result of the original prd document is: a content test identification corresponding to the first test rule, a data test identification corresponding to the second test rule, a data test identification corresponding to the third test rule, a data test identification corresponding to the fourth test rule, and a data test identification corresponding to the fifth test rule. The data test identification corresponding to the third test rule and the data test identification corresponding to the fourth test rule both correspond to test results that failed, then the test report data corresponding to the original prd document includes: a content test identification corresponding to the first test rule, a data test identification corresponding to the second test rule, and a data test identification corresponding to the fifth test rule.
[0053] In some embodiments, based on the content test results of the original prd document, test report data corresponding to the original prd document is generated, including:
[0054] Obtain a content test identifier corresponding to the first test rule, a data test identifier corresponding to the second test rule, a data test identifier corresponding to the third test rule, a data test identifier corresponding to the fourth test rule, and a data test identifier corresponding to the fifth test rule; determine a data test identifier having a data matching relationship with a preset test identifier from the content test identifier corresponding to the first test rule, the data test identifier corresponding to the second test rule, the data test identifier corresponding to the third test rule, the data test identifier corresponding to the fourth test rule, and the data test identifier corresponding to the fifth test rule; generate test report data corresponding to the original prd document based on the data test identifier having a data matching relationship with the preset test identifier.
[0055] Among them, the preset test mark is used to describe the non-compliance of data content.
[0056] The data matching relationship may be that a test identifier is the same as a preset test identifier or belongs to the same similar category of data identifiers, such as the preset test identifier is A, and a test identifier is A or A1, A2, etc.
[0057] Thus, by using the data test identifier that has a data matching relationship with the preset test identifier, multiple test results that do not meet the data compliance can be effectively screened out, making it easier to generate test report data corresponding to the original prd document.
[0058] S140. Based on the test report data corresponding to the original prd document, update the data content of the original prd document to obtain the target prd document.
[0059] In some embodiments, the test report data corresponding to the original prd document is: the data test identifier corresponding to the second test rule, and the data content of the original prd document corresponds to the field description information.
[0060] Based on the test report data corresponding to the original prd document, the data content of the original prd document is updated to obtain the target prd document, including:
[0061] Obtain the field reference information corresponding to the data content of the original prd document; based on the field reference information corresponding to the data content of the original prd document, correct the field description information corresponding to the data content of the original prd document to obtain the target prd document.
[0062] For example, if the test report data does not contain clear descriptions of the meaning of a field, the PRD content can be supplemented with the field meaning information based on the reference content; if the test report data only contains a brief description of the business process without specific details, the details can be supplemented according to the questions raised. This makes it easier to effectively update the data content of the original PRD document and improve the data availability of the PRD document.
[0063] In addition, the test report data corresponding to the original prd document is: the data test identifier corresponding to the first test rule. Based on the test report data corresponding to the original prd document, the data content of the original prd document is updated to obtain the target prd document, which may include: updating the content data of the current version content based on the content data of the historical version content in the original prd document to ensure data uniqueness.
[0064] The test report data corresponding to the original prd document is: the data test identifier corresponding to the third test rule. Based on the test report data corresponding to the original prd document, the data content of the original prd document is updated to obtain the target prd document, which may include: adding application data with data applicability based on the data content of the original prd document.
[0065] The test report data corresponding to the original prd document is: the data test identifier corresponding to the fourth test rule. Based on the test report data corresponding to the original prd document, the data content of the original prd document is updated to obtain the target prd document, which may include: completing the design missing parts in the product design in the original prd document.
[0066] The test report data corresponding to the original prd document is: the data test identifier corresponding to the fifth test rule. Based on the test report data corresponding to the original prd document, the data content of the original prd document is updated to obtain the target prd document, which may include: based on the data content of the original prd document, adjusting the data that does not have data rationality to ensure the rationality of the data in the prd document.
[0067] In this embodiment, an original prd document is obtained, and the original prd document includes: product overview data, demand overview data, product operation data and functional demand data; the original prd document is tested for content based on a preset test strategy to obtain a content test result of the original prd document, and the preset test strategy includes: a first test rule, a second test rule, a third test rule, a fourth test rule and a fifth test rule, and the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule respectively perform compliance tests on the original prd document from different test angles; based on the content test result of the original prd document, test report data corresponding to the original prd document is generated; based on the test report data corresponding to the original prd document, the data content of the original prd document is updated to obtain a target prd document. In this way, the prd document is tested in advance, problems therein are quickly found and rectified, which effectively reduces the difficulty of prd document rectification and saves document rectification time.
[0068] In some embodiments, it also includes:
[0069] Perform integrity evaluation on the target prd document to obtain multiple document evaluation values; based on the multiple document evaluation values, update the preset test strategy.
[0070] Each document evaluation value is used to describe the integrity evaluation value of the data content included in the target prd document under different evaluation angles, that is, the data integrity evaluation is performed on the corresponding part of the data in the revised target prd document after the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule are completed.
[0071] In some embodiments, updating a preset test strategy based on multiple document evaluation values includes:
[0072] The data associations between each document evaluation value and the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule are obtained respectively; the target test rule having data association with the target evaluation value is modified to update the preset test strategy.
[0073] Among them, the target evaluation value is a document evaluation value among multiple document evaluation values that is less than a preset evaluation threshold, and the target test rule is at least one test rule among the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule.
[0074] For example, if the document evaluation value corresponding to the partial data associated with the first test rule and the document evaluation value corresponding to the partial data associated with the second test rule are both less than the preset evaluation threshold, it means that the first test rule and the second test rule are still imperfect and need to be further refined to ensure that data correction can be performed more carefully during subsequent testing of the prd document. By refining and adjusting the imperfect test rules, the effectiveness of the preset test strategy can be effectively improved.
[0075] In some embodiments, it also includes:
[0076] The document test identifier of the target PRD document is set; if the document test identifier of the target PRD document indicates that the target PRD document passes the compliance test, the target PRD document is sent to the target display device.
[0077] The document test identifier is used to describe whether the current document has passed the compliance test. If the document test identifier matches the established test identifier, the document test identifier of the target PRD document is determined to indicate that the target PRD document has passed the compliance test; if the document test identifier does not match the established test identifier, the document test identifier of the target PRD document is determined to indicate that the target PRD document has not passed the compliance test, thereby sending the PRD document that has passed the compliance test to the target display device for display review, effectively reducing the review difficulty and the amount of document modification data.
[0078] This embodiment can reduce the missing content of PRD and unreasonable design requirements, and effectively supervise the integrity and effective quality of PRD files by reducing the difficulty and ambiguity in understanding PRD and reducing the risks in the development process in advance through early intervention, so as to make PRD files more standardized.
[0079] Figure 2 A schematic diagram of the structure of a prd document testing device provided in this embodiment, the prd document testing device may include: an acquisition module 210, a test module 220, a generation module 230 and an update module 240.
[0080] The acquisition module 210 is used to acquire the original prd document, which includes: product overview data, demand overview data, product operation data and functional requirement data.
[0081] The testing module 220 is used to perform content testing on the original PRD document based on a preset testing strategy to obtain the content testing result of the original PRD document. The preset testing strategy includes: a first testing rule, a second testing rule, a third testing rule, a fourth testing rule and a fifth testing rule. The first testing rule, the second testing rule, the third testing rule, the fourth testing rule and the fifth testing rule respectively perform compliance testing on the original PRD document from different testing angles.
[0082] The generating module 230 is used to generate the test report data corresponding to the original prd document based on the content test result of the original prd document.
[0083] The updating module 240 is used to update the data content of the original prd document based on the test report data corresponding to the original prd document to obtain a target prd document.
[0084] In this embodiment, optionally, the testing module 220 is specifically used to:
[0085] Based on the first test rule, test whether the current version content of the original prd document has data correlation with the historical version content, and obtain the content test identifier corresponding to the first test rule; based on the second test rule, test whether the data content of the original prd document has content integrity, and obtain the data test identifier corresponding to the second test rule; based on the third test rule, test whether the data content of the original prd document has data applicability, and obtain the data test identifier corresponding to the third test rule; based on the fourth test rule, test whether the product design in the original prd document has design integrity, and obtain the data test identifier corresponding to the fourth test rule; based on the fifth test rule, test whether the data content of the original prd document has data rationality, and obtain the data test identifier corresponding to the fifth test rule.
[0086] In this embodiment, optionally, the generating module 230 is specifically configured to:
[0087] Obtain a content test identifier corresponding to the first test rule, a data test identifier corresponding to the second test rule, a data test identifier corresponding to the third test rule, a data test identifier corresponding to the fourth test rule, and a data test identifier corresponding to the fifth test rule; determine a data test identifier having a data matching relationship with a preset test identifier from the content test identifier corresponding to the first test rule, the data test identifier corresponding to the second test rule, the data test identifier corresponding to the third test rule, the data test identifier corresponding to the fourth test rule, and the data test identifier corresponding to the fifth test rule, and the preset test identifier is used to describe non-compliance of data content; based on the data test identifier having a data matching relationship with the preset test identifier, generate test report data corresponding to the original prd document.
[0088] In this embodiment, optionally, the test report data corresponding to the original prd document is: the data test identifier corresponding to the second test rule, and the data content of the original prd document corresponds to the field description information.
[0089] The updating module 240 is specifically used for:
[0090] Obtain the field reference information corresponding to the data content of the original prd document; based on the field reference information corresponding to the data content of the original prd document, correct the field description information corresponding to the data content of the original prd document to obtain the target prd document.
[0091] In this embodiment, optionally, it also includes: an evaluation module.
[0092] The evaluation module is used to evaluate the integrity of the target prd document and obtain multiple document evaluation values, each of which is used to describe the integrity evaluation value of the data content included in the target prd document under different evaluation angles.
[0093] The updating module 240 is further used to update the preset testing strategy based on multiple document evaluation values.
[0094] In this embodiment, optionally, the updating module 240 is specifically configured to:
[0095] The data associations between each document evaluation value and the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule are obtained respectively; the target test rule having data association with the target evaluation value is modified to update the preset test strategy; wherein the target evaluation value is a document evaluation value among multiple document evaluation values that is less than a preset evaluation threshold, and the target test rule is at least one test rule among the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule.
[0096] In this embodiment, optionally, it also includes: a setting module and a sending module.
[0097] The setting module is used to set the document test identifier of the target prd document. The document test identifier is used to describe whether the current document passes the compliance test.
[0098] The sending module is used to send the target prd document to the target display device if the document test identifier of the target prd document indicates that the target prd document passes the compliance test.
[0099] The testing device for the prd document provided in the present disclosure can execute the above method embodiments. Its specific implementation principles and technical effects can be found in the above method embodiments, and the present disclosure will not repeat them here.
[0100] The present application also provides a computer device. Figure 3 , Figure 3 This is a basic structural block diagram of the computer device in this embodiment.
[0101] The computer device includes a memory 310 and a processor 320 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with a memory 310 and a processor 320, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0102] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.
[0103] The memory 310 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, for example, a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 310 may be an internal storage unit of a computer device, for example, a hard disk or a memory of the computer device. In other embodiments, the memory 310 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card (FlashCard) equipped on the computer device. Of course, the memory 310 may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 310 is generally used to store the operating system and various application software installed on the computer device, such as the program code of the above method. In addition, the memory 310 may also be used to temporarily store various data that have been output or are to be output.
[0104] The processor 320 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 310 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 320 is used to execute the program codes or instructions stored in the memory 310 or process data, such as running the program code of the above method.
[0105] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0106] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.
[0107] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.
[0108] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.
[0109] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0110] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0111] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0112] In the claims, any reference symbols placed between brackets shall not be construed as limiting the claims. The word "comprising" described in the present application does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application can be implemented with the aid of hardware comprising several different elements and with the aid of a suitably programmed computer. In a unit claim that lists a number of devices, several units of these devices may be embodied by the same hardware item. The use of first, second, and third, etc. does not indicate any order, and these words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
[0113] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for testing a prd document, characterized in that: include: Obtaining an original PRD document, wherein the original PRD document includes: product overview data, demand overview data, product operation data, and functional requirement data; Performing content testing on the original prd document based on a preset test strategy to obtain a content test result of the original prd document, wherein the preset test strategy includes: a first test rule, a second test rule, a third test rule, a fourth test rule and a fifth test rule, wherein the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule respectively perform compliance testing on the original prd document from different test angles; Based on the content test result of the original prd document, generate test report data corresponding to the original prd document; Based on the test report data corresponding to the original prd document, the data content of the original prd document is updated to obtain a target prd document.
2. The method according to claim 1, characterized in that: The performing of content testing on the original prd document based on a preset test strategy to obtain a content test result of the original prd document includes: Based on the first test rule, test whether the current version content of the original prd document has data association with the historical version content, and obtain a content test identifier corresponding to the first test rule; Based on the second test rule, test whether the data content of the original prd document has content integrity, and obtain a data test identifier corresponding to the second test rule; Based on the third test rule, test whether the data content of the original prd document has data applicability, and obtain a data test identifier corresponding to the third test rule; Based on the fourth test rule, test whether the product design in the original prd document has design integrity, and obtain a data test identifier corresponding to the fourth test rule; Based on the fifth test rule, test whether the data content of the original prd document has data rationality, and obtain the data test identifier corresponding to the fifth test rule.
3. The method according to claim 2, characterized in that The generating of test report data corresponding to the original prd document based on the content test result of the original prd document comprises: Obtaining a content test identifier corresponding to the first test rule, a data test identifier corresponding to the second test rule, a data test identifier corresponding to the third test rule, a data test identifier corresponding to the fourth test rule, and a data test identifier corresponding to the fifth test rule; Determine, from the content test identifier corresponding to the first test rule, the data test identifier corresponding to the second test rule, the data test identifier corresponding to the third test rule, the data test identifier corresponding to the fourth test rule, and the data test identifier corresponding to the fifth test rule, a data test identifier having a data matching relationship with a preset test identifier, the preset test identifier being used to describe that the data content is non-compliant; Based on the data test identifier having a data matching relationship with the preset test identifier, the test report data corresponding to the original prd document is generated.
4. The method according to claim 1, characterized in that: The test report data corresponding to the original prd document is: the data test identifier corresponding to the second test rule, and the data content of the original prd document corresponds to the field description information; The method of updating the data content of the original prd document based on the test report data corresponding to the original prd document to obtain the target prd document includes: Obtain field reference information corresponding to the data content of the original prd document; Based on the field reference information corresponding to the data content of the original prd document, the field description information corresponding to the data content of the original prd document is corrected to obtain the target prd document.
5. The method according to claim 1, characterized in that Also includes: Performing integrity evaluation on the target prd document to obtain a plurality of document evaluation values, each of which is used to describe the integrity evaluation value of the data content included in the target prd document under different evaluation angles; Based on the multiple document evaluation values, the preset test strategy is updated.
6. The method according to claim 5, characterized in that The updating of the preset test strategy based on the plurality of document evaluation values comprises: Respectively obtaining data associations between each of the document evaluation values and the first test rule, the second test rule, the third test rule, the fourth test rule, and the fifth test rule; Modifying the target test rules having data association with the target evaluation value to update the preset test strategy; Among them, the target evaluation value is a document evaluation value that is less than a preset evaluation threshold among multiple document evaluation values, and the target test rule is at least one test rule among the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule.
7. The method according to claim 1, characterized in that Also includes: Set the document test identifier of the target prd document, where the document test identifier is used to describe whether the current document passes the compliance test; If the document test identifier of the target prd document indicates that the target prd document passes the compliance test, the target prd document is sent to the target display device.
8. A testing device for a prd document, characterized in that: include: An acquisition module is used to acquire an original PRD document, wherein the original PRD document includes: product overview data, demand overview data, product operation data and functional demand data; A testing module, used for performing a content test on the original prd document based on a preset test strategy to obtain a content test result of the original prd document, wherein the preset test strategy includes: a first test rule, a second test rule, a third test rule, a fourth test rule and a fifth test rule, wherein the first test rule, the second test rule, the third test rule, the fourth test rule and the fifth test rule respectively perform a compliance test on the original prd document from different test angles; A generating module, used for generating test report data corresponding to the original prd document based on the content test result of the original prd document; The updating module is used to update the data content of the original prd document based on the test report data corresponding to the original prd document to obtain the target prd document.
9. A computer device, characterized in that: The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, a method for testing a prd document as claimed in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for testing a prd document as described in any one of claims 1 to 7 is implemented.
