A product selection test method, alliance chain and selection test platform node
By using blockchain technology in the alliance chain, the problem of easy tampering of product selection test results is solved, the accuracy and non-tamperability of the test results are achieved, and the reliability and accuracy of the selection test are ensured.
Patent Information
- Application Number
- CN202210162564.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2042-02-22
AI Technical Summary
Existing product selection test results are easily tampered with and cannot effectively guarantee the accuracy of the selection test results.
Adopting alliance chain technology, the test result data is broadcast and stored in the alliance chain through the tester node, candidate manufacturer node and selection test platform node. Blockchain technology is used to ensure that the test result data cannot be tampered with, including initiating selection test projects in the alliance chain, broadcasting test result data as blocks into the blockchain, and calculating the final test result upon receiving the test end instruction and storing it in the final score blockchain.
Through the application of blockchain technology, the accuracy and non-tamperability of test results are ensured, the test results are prevented from being tampered with, and the reliability and accuracy of selection tests are improved.
Smart Images

Figure CN114519208B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of product testing technology, and in particular to a product selection and testing method, an alliance chain, and a selection and testing platform node. Background Art
[0002] Before purchasing technology products, companies typically conduct selection testing on candidate manufacturers' products. This involves evaluating the suitability of candidate products based on the company's business, technical, and safety requirements, following a testing process or evaluation procedure. As the number of products purchased and the amount of money involved continue to increase, the accuracy of test results becomes increasingly important.
[0003] In the past, selection testing primarily involved testers recording test results in paper documents during testing, which they then signed off on. Each candidate manufacturer also signed off on the test results for their own products. However, because paper documents are difficult to access and preserve, the current testing method primarily involves testers uploading test results to a selection testing platform. The platform then uses centralized data storage to electronically record the test results, making them easier to access, preserve, and manage.
[0004] However, the system is vulnerable to attacks and test results may be tampered with, making the test results inconsistent with the facts, thereby affecting product selection, causing large economic losses to the company, or even leading to theft. Summary of the Invention
[0005] Based on the above-mentioned deficiencies in the existing technology, the present application provides a product selection test method, an alliance chain, and a selection test platform node to solve the problem that the selection test results of the existing method are easily tampered with and cannot effectively guarantee the accuracy of the selection test results.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] In a first aspect, the present application provides a product selection and testing method, which is applied to a consortium chain, wherein the consortium chain includes a tester node, a candidate manufacturer node, and a selection and testing platform node. The product selection and testing method includes:
[0008] The selection test platform node initiates a selection test project in the alliance chain; wherein the selection test project at least includes selection test project information and test tasks corresponding to each of the tester nodes;
[0009] Each of the tester nodes broadcasts the test result data of the corresponding test task in the alliance chain;
[0010] Whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, each current target node writes the test result data as a block into its own test result blockchain; wherein the current target node includes each of the tester nodes, the selection test platform node, and each of the candidate manufacturer nodes that meet the preset conditions; the preset condition is that the current test result data is the test result data of the product of the candidate manufacturer corresponding to the candidate manufacturer node;
[0011] When the selection test platform node receives the test end instruction, it calculates the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node based on the test result data in its own test result blockchain;
[0012] The selection test platform node writes the final test result as a block into the final score blockchain.
[0013] Optionally, in the method provided above, before the selection test platform node initiates the selection test project in the alliance chain, the method further includes:
[0014] The selection test platform node receives a registration request sent by a user node; wherein the registration request includes registration information of the user node;
[0015] The selection test platform node stores the registration information of the user node in the user information table of the database;
[0016] After the user node passes the qualification review, the selection test platform node determines whether the user node is qualified to participate in the selection test based on the registration information of the user node;
[0017] If it is determined that the user node is qualified to participate in the selection test, the user node is authorized to join the alliance chain, and the user node is marked as the tester node or the candidate manufacturer node according to the type of the user node.
[0018] Optionally, in the method provided above, before each current target node writes the test result data as a block into its own test result blockchain, the method further includes:
[0019] Each of the current target nodes verifies whether the digital signature in the test result data is valid; wherein, if the current target node verifies that the digital signature in the test result data is valid, it executes the step of writing the test result data as a block into its own test result blockchain.
[0020] Optionally, in the method provided above, the final test result includes the result of the passing case and the total score of the evaluation case. The calculation of the final test result of the product of the candidate manufacturer corresponding to each candidate manufacturer node based on each test result data in the test result blockchain thereof includes:
[0021] Determine the results of the candidate manufacturer's products corresponding to each candidate manufacturer node in each of the test result data in the test result blockchain based on the test results of each test step of each of the pass cases for the products of the candidate manufacturer corresponding to each candidate manufacturer node;
[0022] Based on the test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node in each of the test result data in the test result blockchain itself on each of the evaluation cases and the weight corresponding to each of the evaluation cases, the total score of the evaluation case corresponding to the candidate manufacturer node is calculated.
[0023] Optionally, in the method provided above, after the selection test platform node initiates the selection test project in the alliance chain, the method further includes:
[0024] The selection test platform node receives the overview table and detail table of the passing cases and the overview table and detail table of the evaluation cases imported by the user;
[0025] The selection test platform node calculates the score corresponding to each evaluation case based on the weight corresponding to each evaluation case in the overview table of the evaluation cases.
[0026] The second aspect of the present application provides a consortium chain, including:
[0027] Tester node, candidate manufacturer node, and selected test platform node;
[0028] The selection test platform node is used to initiate a selection test project in the alliance chain, and whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, write the test result data as a block into its own test result blockchain, and upon receiving a test end instruction, calculate the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node based on the test result data in its own test result blockchain, and write the final test results as a block into the final score blockchain; wherein, the selection test project at least includes selection test project information and the test tasks corresponding to each tester node;
[0029] The tester node is used to broadcast the test result data of the corresponding test task in the alliance chain, and write the test result data as a block into its own test result blockchain;
[0030] The candidate manufacturer node is used to write the test result data as a block into its own test result blockchain whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, if it determines that it meets the preset conditions; wherein the preset condition is that the current test result data is the test result data of the product of the candidate manufacturer corresponding to the candidate manufacturer node.
[0031] A third aspect of the present application provides a selection test platform node, including:
[0032] A test project initialization unit, configured to initiate a selection test project in the alliance chain; wherein the alliance chain includes a tester node, a candidate manufacturer node, and the selection test platform node; the selection test project includes at least selection test project information and test tasks corresponding to each of the tester nodes;
[0033] a blockchain generation unit, configured to write the test result data of the corresponding test task into its own test result blockchain as a block whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain;
[0034] The final result generation unit is used for the selection test platform node to calculate the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node based on the test result data in its own test result blockchain when receiving the test end instruction, and write the final test results as a block into the final score blockchain.
[0035] Optionally, the selection test platform node provided above further includes:
[0036] A qualification screening unit is used to store the composition information of the user node in the registration request into the user information table of the database whenever a registration request sent by the user node is received, and after the user node passes the qualification review, determine whether the user node is qualified to participate in the selection test based on the registration information of the user node; wherein, if the user node is determined to be qualified to participate in the selection test, the user node is authorized to join the alliance chain, and the user node is marked as the tester node or the candidate manufacturer node according to the type of the user node.
[0037] Optionally, in the selection test platform node provided above, the blockchain generation unit is further used to:
[0038] Verify whether the digital signature in the test result data is valid; if the digital signature in the test result data is verified to be valid, write the test result data as a block into its own test result blockchain.
[0039] Optionally, in the selection test platform node provided above, the test item initialization unit is further used to:
[0040] Receive the overview table and details table of the passing cases and the overview table and details table of the evaluation cases imported by the user, and calculate the scores corresponding to each evaluation case based on the weights corresponding to each evaluation case in the overview table of the evaluation cases.
[0041] The present application provides a product selection test method, which is applied to a consortium chain. The consortium chain includes a tester node, a candidate manufacturer node, and a selection test platform node. The selection test platform node initiates a selection test project in the consortium chain. Among them, the selection test project includes at least selection test project information and the test tasks corresponding to each tester node. Each tester node broadcasts the test result data of the corresponding test task in the consortium chain. Whenever a tester node broadcasts the test result data of the corresponding test task in the consortium chain, each current target node writes the test result data as a block into its own test result blockchain, thereby storing the test result data through the blockchain to prevent the test result data from being tampered with. Among them, the current target node includes each tester node, the selection test platform node, and each candidate manufacturer node that meets the preset conditions. The preset condition is that the current test result data is the test result data of the product of the candidate manufacturer corresponding to the candidate manufacturer node, thereby preventing the test result data of the product of a candidate manufacturer from being obtained by other candidate manufacturers. Finally, when the selection test platform node receives the test end instruction, it calculates the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node based on the test result data in its own test result blockchain, and writes the final test results as a block into the final score blockchain. The final test results are also stored in the blockchain to avoid tampering, thereby ensuring the accuracy of the test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without any creative work.
[0043] Figure 1 A schematic diagram of the architecture of a consortium chain provided in an embodiment of the present application;
[0044] Figure 2 A flowchart of a product selection test method provided in an embodiment of the present application;
[0045] Figure 3 A flowchart of a method for screening tester nodes and candidate manufacturer nodes in a consortium chain provided in an embodiment of the present application;
[0046] Figure 4 A flowchart of a method for calculating a final test result provided in an embodiment of the present application;
[0047] Figure 5 A structural diagram of a selection test platform node provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0049] In this application, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
[0050] The present application provides a product selection test method to solve the problem that the selection test results of the existing method are easily tampered with and cannot effectively guarantee the accuracy of the selection test results.
[0051] It should be noted that the product selection test method provided in this application is applied to the alliance chain, so Figure 1 As shown, an alliance chain provided by an embodiment of the present application includes a tester node, a candidate manufacturer node, and a selection test platform node.
[0052] The tester node refers to the node used by the selection test implementers. The candidate manufacturer node refers to the node used by the candidate manufacturer. There are typically multiple tester nodes and candidate manufacturer nodes, and these nodes can specifically be electronic devices such as computers or mobile phones. The selection test platform node is the selection test platform, specifically the selection test platform server.
[0053] Among them, the selection test platform node is mainly used to: initiate selection test projects in the alliance chain, and whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, the test result data is written as a block into its own test result blockchain, and is used to: when receiving the test end instruction, based on the various test result data in its own test result blockchain, calculate the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node, and write the final test results as a block into the final score blockchain.
[0054] The selection test items at least include the selection test item information and the test tasks corresponding to each tester node.
[0055] The tester node is used to broadcast the test result data of the corresponding test task in the alliance chain, and write the test result data as a block into its own test result blockchain.
[0056] The candidate manufacturer node is used to write the test result data as a block into its own test result blockchain whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain. If it determines that it meets the preset conditions, the candidate manufacturer node will write the test result data as a block into its own test result blockchain.
[0057] The preset condition is that the current test result data is the test result data of the product of the candidate manufacturer corresponding to the candidate manufacturer node.
[0058] Based on the alliance chain provided above, the embodiment of the present application provides a product selection test method, which is applied to the alliance chain provided above. Therefore, the alliance chain specifically includes a tester node, a candidate manufacturer node, and a selection test platform node. Figure 2 As shown, the product selection test method provided in the embodiment of the present application includes:
[0059] S201. The selection test platform node initiates a selection test project in the alliance chain.
[0060] The selected test items include at least the selected test item information and the test tasks corresponding to each tester node. Optionally, the test item information may include the test start time, end time, participating manufacturers, test implementation personnel, test item name, etc.
[0061] Optionally, the user can log in to the selection test platform node to enter the test project information and the test tasks corresponding to each tester node, and then initiate the selection test project through the selection test platform node so that the tester node can obtain the corresponding test tasks for testing, and the candidate manufacturer node can also be informed of the information of the selection test project in a timely manner.
[0062] It should be noted that in addition to the tester nodes, candidate manufacturer nodes and selection test platform nodes in the alliance chain, there can of course be other nodes that do not participate in the selection test but may use the selection test results later, such as the nodes of the procurement department, the nodes of the demand department, etc.
[0063] Optionally, in another embodiment of the present application, before executing step S201, it further includes screening out the tester nodes and candidate manufacturer nodes in the alliance chain. Figure 3 As shown, an embodiment of the present application provides a method for screening out tester nodes and candidate manufacturer nodes in a consortium chain, including:
[0064] S301. The selection test platform node receives a registration request sent by a user node.
[0065] The registration request includes the registration information of the user node.
[0066] It should be noted that in the embodiment of the present application, personnel or departments such as the selection test implementation personnel, candidate manufacturers, enterprise procurement departments, and enterprise demand departments who intend to participate in the selection test must register in advance through the selection test platform node. When registering, you need to submit registration information. Among them, the registration information includes at least the type of affiliation, which can be selected specifically through the drop-down box. Of course, it can also include information such as the affiliated organization, department, and personnel type. For manufacturer registration personnel, it is also necessary to upload relevant qualification documents.
[0067] S302: The selection test platform node stores the registration information of the user node in the user information table of the database.
[0068] After the user submits the registration information, the relevant information of the registered user is stored in the database, and each registered user's information generates a record in the user information table of the database.
[0069] It should be noted that after storing the user's registration information, it is necessary to verify whether the user has the qualifications to register, that is, to conduct a qualification review of the user node. Optionally, the selection test platform node can display the user node's registration information to the auditor for review and confirmation. For user nodes that fail the review, their registration information can be deleted, or a specific field in the registration information can be used to mark whether they are valid users. Valid users identify users who have passed the review. Once the user node passes the qualification review, it is necessary to screen whether the user node can join the alliance chain, that is, execute step S303.
[0070] S303. After the user node passes the qualification review, the selection test platform node determines whether the user node is qualified to participate in the selection test based on the registration information of the user node.
[0071] It should be noted that nodes from the enterprise's procurement department and demand department are not eligible to participate in the selection test process and therefore need to be screened out. Furthermore, some selection test implementers and candidate manufacturers may not meet the requirements. Therefore, after a user node registers, it is necessary to determine whether the user node is eligible to participate in the selection test based on pre-set rules. If the user node is determined to be eligible to participate in the selection test, step S304 is executed for the user node.
[0072] S304: Authorize the user node to join the alliance chain, and mark the user node as a tester node or a candidate manufacturer node according to the type of the user node.
[0073] S202. Each tester node broadcasts the test result data of the corresponding test task in the alliance chain.
[0074] It should be noted that during the selection test process, the selection test implementer of each tester node conducts the test according to the corresponding tester to obtain the test result data, and broadcasts the test result data to each node in the alliance chain through the tester node.
[0075] S203. Whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, each current target node writes the test result data as a block into its own test result blockchain.
[0076] Among them, the current target node includes each tester node, the selection test platform node and each candidate manufacturer node that meets the preset conditions. The preset condition is that the current test result data is the test result data of the candidate manufacturer's product corresponding to the candidate manufacturer node. That is to say, in the embodiment of the present application, each tester node and the selection test platform node need to store the test result data of all candidate manufacturers' products. For the candidate manufacturer node, only the test data of its own products can be stored, thereby avoiding obtaining the test data of the products of other candidate manufacturer nodes, ensuring the confidentiality of the information of each candidate manufacturer's products, and avoiding affecting the subsequent selection, etc.
[0077] Therefore, upon receiving the broadcasted test result data, each candidate manufacturer first determines whether the test result data is the test result data for its product. If so, the test result data is written as a block into its own test result blockchain.
[0078] It should be noted that in the embodiments of the present application, test result data is stored via blockchain, effectively ensuring that the test result data cannot be tampered with. Specifically, each node in the consortium chain has its own corresponding test result blockchain for storing test result data. Each test result data is stored as a block in the test result blockchain.
[0079] Specifically, each block consists of two main parts: a header and a body. The header primarily contains several key features of the current block, such as its generation time, the hash value of the block body, and the hash value of the previous block. This means that if the test results data in the current block body are tampered with, or if the hash value of the previous block changes, the hash value of the current block will inevitably change. If someone tampered with the test results data of a block, the hash value of that block would change. Since the header of the next block contains the hash value of the previous block, in order for the next block to be connected to the previous block, the tamperer must modify all subsequent blocks in sequence; otherwise, the altered block will be removed from the blockchain. This linkage mechanism ensures the blockchain's inherent reliability, making data tamper-proof once written.
[0080] The block body is mainly used to store test result data.
[0081] Optionally, in another embodiment of the present application, before each current target node writes the test result data as a block into its own test result blockchain, the process further includes:
[0082] Each current target node verifies whether the digital signature in the test result data is valid.
[0083] Among them, if the current target node verifies that the digital signature in the test result data is valid, it will execute and write the test result data as a block into its own test result blockchain.
[0084] Specifically, when broadcasting test results, the tester node can encrypt the data with its private key before broadcasting it to the consortium chain. Because the data contains a digital signature, the receiving node must verify the data. Only validated data is added to the recipient's blockchain. The receiving node verifies the data using the publishing node's public key to verify whether the data has been tampered with between the time the tester node publishes it and the time the receiving node collects it.
[0085] S204. When the selection test platform node receives the test end instruction, it calculates the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node based on the test result data in its own test result blockchain.
[0086] It should be noted that the selection test platform is a key node in the entire system and is responsible for processing complex logical calculations, etc. Therefore, after obtaining the data of each test result, the selection test platform node needs to perform summary calculations to obtain the final test results.
[0087] The specific test end instruction is triggered when the trigger conditions are met. Optionally, the trigger conditions can be divided into active triggering and passive triggering. Active triggering can be triggered by the user manually clicking the test end button. Passive triggering can be triggered when the test end time expires or after all test result data is broadcast.
[0088] Optionally, in another embodiment of the present application, the final test result includes the result of the passing case and the total score of the evaluation case. Accordingly, in the embodiment of the present application, the specific implementation of step S204 is as follows: Figure 4 As shown, including:
[0089] S401. Determine the results of each pass case for the product of the candidate manufacturer corresponding to each candidate manufacturer node based on the test results of each test step of each pass case in each test result data in its own test result blockchain.
[0090] It should be noted that a pass case refers to testing whether certain indicators pass or fail, meaning the test result is simply a pass or fail, with no high or low score. For example, chassis coating, switch operation, etc. A pass case includes at least one test step. For example, chassis coating includes whether the chassis coating is secure and whether the paint surface is uniform, free of peeling, rust, etc. Therefore, when conducting a pass case test, each test step needs to be tested in sequence and the test results of each step uploaded as test result data.
[0091] The selection test platform node determines whether the test results of each test step of a pass case are passed based on the test results of each test step of each pass case of the products of the candidate manufacturer corresponding to each candidate manufacturer node in the test result data. If so, the result of the pass case is set to passed; if any test step fails, the result of the pass case is set to failed.
[0092] S402. Based on the test results of the candidate manufacturer's products corresponding to each candidate manufacturer node in each test result data in its own test result blockchain on each evaluation case and the weight corresponding to each evaluation case, calculate the total score of the evaluation case corresponding to the candidate manufacturer node.
[0093] It should be noted that the evaluation case refers to the score of the tested product on a specific indicator, such as system efficiency or dynamic voltage transient range. The specific setting is based on the product type and requirements. In addition, the relative importance of each evaluation case is determined by its weight. Specifically, a weight score can be set. The final weight of an evaluation case is equal to the ratio of the weight score of the evaluation case to the sum of the weight scores of all evaluation cases. Therefore, the final weight multiplied by the total score is the corresponding score of the evaluation case.
[0094] Optionally, various evaluation cases that the products of the candidate manufacturer corresponding to the candidate manufacturer node meet may be determined based on the test result data, and the scores corresponding to these evaluation cases may be accumulated to obtain the total score of the evaluation cases corresponding to the candidate manufacturer node.
[0095] It should also be noted that an evaluation case can also be composed of multiple test steps, and the sum of the scores corresponding to each test step is the score corresponding to the evaluation case.
[0096] Optionally, in order to facilitate calculation of the results of passing cases and the total scores of evaluation cases, in the embodiment of the present application, before executing step S202, the following steps may be further included:
[0097] The selection test platform node receives the overview table and detail table of the passing cases and the overview table and detail table of the evaluation cases imported by the user, and calculates the score corresponding to each evaluation case based on the weight corresponding to each evaluation case step in the overview table of the evaluation case and whether the test result of the step is success or failure.
[0098] S205. The selection test platform node writes the final test result as a block into the final score blockchain.
[0099] The embodiment of the present application provides a product selection test method, which is applied to an alliance chain. The alliance chain includes a tester node, a candidate manufacturer node, and a selection test platform node. The selection test platform node initiates a selection test project in the alliance chain. Among them, the selection test project includes at least selection test project information and the test tasks corresponding to each tester node. Each tester node broadcasts the test result data of the corresponding test task in the alliance chain. Whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, each current target node writes the test result data as a block into its own test result blockchain, thereby storing the test result data through the blockchain to prevent the test result data from being tampered with. Among them, the current target node includes each tester node, the selection test platform node, and each candidate manufacturer node that meets the preset conditions. The preset condition is that the current test result data is the test result data of the product of the candidate manufacturer corresponding to the candidate manufacturer node, thereby preventing the test result data of the product of one candidate manufacturer from being obtained by other candidate manufacturers. Finally, when the selection test platform node receives the test end instruction, it calculates the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node based on the test result data in its own test result blockchain, and writes the final test results as a block into the final score blockchain. The final test results are also stored in the blockchain to avoid tampering, thereby ensuring the accuracy of the test results.
[0100] Another embodiment of the present application provides a selection test platform node, such as Figure 5 Shown, including:
[0101] The test project initialization unit 501 is used to initiate a selected test project in the alliance chain.
[0102] Among them, the alliance chain includes tester nodes, candidate manufacturer nodes and selection test platform nodes, and the selection test project at least includes selection test project information and the test tasks corresponding to each tester node.
[0103] The blockchain generation unit 502 is configured to write the test result data as a block into its own test result blockchain whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain.
[0104] The final result generation unit 503 is used for the selection test platform node to calculate the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node based on the various test result data in its own test result blockchain when receiving the test end instruction, and write the final test results as a block into the final score blockchain.
[0105] Optionally, in the selection test platform node provided in another embodiment of the present invention, you can also refer to Figure 1 , also includes:
[0106] The qualification screening unit 504 is used to store the composition information of the user node in the registration request into the user information table of the database whenever a registration request is received from the user node, and after the user node passes the qualification review, determine whether the user node is qualified to participate in the selection test based on the registration information of the user node.
[0107] Among them, if it is determined that the user node is qualified to participate in the selection test, the user node is authorized to join the alliance chain, and the user node is marked as a tester node or a candidate manufacturer node according to the type of the user node.
[0108] Optionally, in the selection test platform node provided in another embodiment of the present invention, the blockchain generation unit is further configured to:
[0109] Verify the validity of the digital signature in the test result data. If the digital signature in the test result data is verified to be valid, the test result data is written as a block to its own test result blockchain.
[0110] Optionally, in the selection test platform node provided in another embodiment of the present invention, the test item initialization unit is further configured to:
[0111] Receive the overview table and details table of the passing cases and the overview table and details table of the evaluation cases imported by the user, and calculate the score corresponding to each evaluation case based on the weight corresponding to each evaluation case in the overview table of the evaluation cases.
[0112] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0113] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A product selection test method, characterized in that: Applied to a consortium chain, wherein the consortium chain includes a tester node, a candidate manufacturer node, and a selection test platform node, the product selection test method includes: The selection test platform node initiates a selection test project in the alliance chain; wherein the selection test project at least includes selection test project information and test tasks corresponding to each of the tester nodes; Each of the tester nodes broadcasts the test result data of the corresponding test task in the alliance chain; Whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, each current target node writes the test result data as a block into its own test result blockchain; wherein the current target node includes each of the tester nodes, the selection test platform node, and each of the candidate manufacturer nodes that meet the preset conditions; the preset conditions are that the current test result data is the test result data of the product of the candidate manufacturer corresponding to the candidate manufacturer node; when the candidate manufacturer determines that the test result data is the test result data of its product, it writes the test result data into its own test result blockchain; Upon receiving the test end instruction, the selection test platform node calculates the final test results of the candidate manufacturer's products corresponding to each candidate manufacturer node based on the test result data in its own test result blockchain; wherein the final test results include the results of each pass case and the total score of the evaluation case of the candidate manufacturer's products; the pass case refers to the case in which the test indicator is passed; the evaluation case refers to the case in which the test product scores on the indicator; The selection test platform node writes the final test result as a block into the final score blockchain.
2. The method according to claim 1, characterized in that Before the selection test platform node initiates the selection test project in the alliance chain, it also includes: The selection test platform node receives a registration request sent by a user node; wherein the registration request includes registration information of the user node; The selection test platform node stores the registration information of the user node in the user information table of the database; After the user node passes the qualification review, the selection test platform node determines whether the user node is qualified to participate in the selection test based on the registration information of the user node; If it is determined that the user node is qualified to participate in the selection test, the user node is authorized to join the alliance chain, and the user node is marked as the tester node or the candidate manufacturer node according to the type of the user node.
3. The method according to claim 1, characterized in that Before each current target node writes the test result data as a block into its own test result blockchain, the process further includes: Each of the current target nodes verifies whether the digital signature in the test result data is valid; wherein, if the current target node verifies that the digital signature in the test result data is valid, it executes the step of writing the test result data as a block into its own test result blockchain.
4. The method according to claim 1, wherein The calculating, based on each of the test result data in the test result blockchain of the candidate manufacturer, the final test results of the products of the candidate manufacturers corresponding to each of the candidate manufacturer nodes includes: Determine the results of the candidate manufacturer's products corresponding to each candidate manufacturer node in each of the test result data in the test result blockchain based on the test results of each test step of each of the pass cases for the products of the candidate manufacturer corresponding to each candidate manufacturer node; Based on the test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node in each of the test result data in the test result blockchain itself on each of the evaluation cases and the weight corresponding to each of the evaluation cases, the total score of the evaluation case corresponding to the candidate manufacturer node is calculated.
5. The method according to claim 4, characterized in that After the selection test platform node initiates the selection test project in the alliance chain, it also includes: The selection test platform node receives the overview table and detail table of the passing cases and the overview table and detail table of the evaluation cases imported by the user; The selection test platform node calculates the score corresponding to each evaluation case based on the weight corresponding to each evaluation case in the overview table of the evaluation cases.
6. A consortium chain, characterized in that: include: Tester node, candidate manufacturer node, and selected test platform node; The selection test platform node is used to initiate a selection test project in the alliance chain, and whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, the test result data is written as a block into its own test result blockchain, and when a test end instruction is received, the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node are calculated based on each test result data in its own test result blockchain, and the final test results are written as a block into the final score blockchain; wherein, the selection test project at least includes the selection test project information and the test tasks corresponding to each tester node; wherein, the final test result includes the results of the candidate manufacturer's products in each pass case and the total score of the evaluation case; the pass case refers to the case of whether the test indicator is passed; the evaluation case refers to the case of the test product's score on the indicator; The tester node is used to broadcast the test result data of the corresponding test task in the alliance chain, and write the test result data as a block into its own test result blockchain; The candidate manufacturer node is used to write the test result data as a block into its own test result blockchain whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain, if it determines that it meets the preset conditions; wherein the preset conditions are that the current test result data is the test result data of the product of the candidate manufacturer corresponding to the candidate manufacturer node; when the candidate manufacturer determines that the test result data is the test result data of its product, the candidate manufacturer writes the test result data into its own test result blockchain.
7. A selection test platform node, characterized in that: include: A test project initialization unit is used to initiate a selection test project in the alliance chain; wherein the alliance chain includes a tester node, a candidate manufacturer node and the selection test platform node, and the selection test project includes at least selection test project information and test tasks corresponding to each of the tester nodes; a blockchain generation unit, configured to write the test result data of the corresponding test task into its own test result blockchain as a block whenever a tester node broadcasts the test result data of the corresponding test task in the alliance chain; The final result generation unit is used for the selection test platform node to calculate the final test results of the products of the candidate manufacturers corresponding to each candidate manufacturer node based on the test result data in its own test result blockchain when receiving the test end instruction, and write the final test results as a block into the final score blockchain; wherein, the final test results include the results of each pass case of the candidate manufacturer's products and the total score of the evaluation cases; the pass case refers to the case of whether the test indicator is passed; the evaluation case refers to the case of the test product's score on the indicator.
8. The selection test platform node according to claim 7, characterized in that: Also includes: A qualification screening unit is used to store the composition information of the user node in the registration request into the user information table of the database whenever a registration request sent by the user node is received, and after the user node passes the qualification review, determine whether the user node is qualified to participate in the selection test based on the registration information of the user node; wherein, if the user node is determined to be qualified to participate in the selection test, the user node is authorized to join the alliance chain, and the user node is marked as the tester node or the candidate manufacturer node according to the type of the user node.
9. The selection test platform node according to claim 7, characterized in that: The blockchain generation unit is further used to: Verify whether the digital signature in the test result data is valid; if the digital signature in the test result data is verified to be valid, write the test result data as a block into its own test result blockchain.
10. The selection test platform node according to claim 7, characterized in that: The test item initialization unit is further used to: Receive the overview table and details table of the passing cases and the overview table and details table of the evaluation cases imported by the user, and calculate the scores corresponding to each evaluation case based on the weights corresponding to each evaluation case in the overview table of the evaluation cases.
Citation Information
Patent Citations
Automatic testing method and device based on block chain and electronic device
CN109753433A
Block chain-based test method and device, storage medium and computer equipment
CN110598446A