CN-114490389-B - Verification method, verification device, electronic equipment and storage medium
Abstract
The embodiment of the disclosure discloses a verification method and device, electronic equipment and a storage medium, wherein the method comprises the steps of obtaining a first verification case, creating a corresponding verification environment according to the first verification case, wherein the verification environment is provided with a corresponding first parameter configuration tree, the first parameter configuration tree at least comprises parameter nodes corresponding to all environment components, verifying an object to be tested based on the verification environment and the corresponding first parameter configuration tree, and obtaining a verification result of the object to be tested under the first verification case, wherein parameters required by all environment components in the verification environment are obtained from the parameter nodes corresponding to all environment components in the verification process. According to the embodiment of the disclosure, the parameters of the verification environment are uniformly managed through the parameter configuration tree, the parameters of the environment components of the verification environment are uniformly obtained from the corresponding parameter nodes, the parameters of the environment components are separated from the environment, the parameter readability and the management efficiency are effectively improved, and the verification work efficiency is further improved.
Inventors
- LI ZHENGYU
- JIANG WEIWEI
- HU XU
Assignees
- 地平线(上海)人工智能技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20220126
Claims (11)
- 1. A method of authentication, comprising: acquiring a first verification case; Creating a corresponding verification environment according to the first verification case, wherein the verification environment comprises a plurality of environment components required by the first verification case, the verification environment is provided with a corresponding first parameter configuration tree, the first parameter configuration tree at least comprises parameter nodes corresponding to the environment components, each parameter node comprises a parameter related variable and a corresponding variable value required by the environment components corresponding to the parameter nodes, the verification environment is created according to node attribute values of the parameter nodes in the first parameter configuration tree and a mapping relation between the parameter nodes and the environment components, and the node attribute values represent whether the parameter nodes are enabled under the first verification case; And verifying the object to be tested based on the verification environment and the corresponding first parameter configuration tree to obtain a verification result of the object to be tested under the first verification case, wherein parameters required by each environment component in the verification environment are obtained from parameter nodes corresponding to each environment component in the verification process, and each environment component cooperates to obtain the verification result.
- 2. The method of claim 1, wherein the creating a corresponding verification environment from the first verification use case comprises: Acquiring parameter configuration information according to the first verification case, wherein the parameter configuration information comprises variables and corresponding variable values included in each parameter node of the first parameter configuration tree to be established; Determining the first parameter configuration tree according to the parameter configuration information; And creating the verification environment according to the first parameter configuration tree.
- 3. The method of claim 2, wherein the variables and corresponding variable values included by each parameter node of the first parameter configuration tree include node attribute variables and corresponding node attribute values, environment parameter variables and corresponding parameter values; The determining the first parameter configuration tree according to the parameter configuration information includes: Updating the parameter nodes of the initial parameter configuration tree according to the node attribute values of the parameter nodes and the parameter values corresponding to the environment parameter variables included in the parameter nodes to obtain the first parameter configuration tree, wherein the initial parameter configuration tree comprises a preset number of initial parameter nodes and inheritance inclusion relations among the initial parameter nodes.
- 4. A method according to claim 3, wherein said creating said verification environment from said first parameter configuration tree comprises: And creating the verification environment according to the node attribute values of the parameter nodes in the first parameter configuration tree and a preset mapping relation, wherein the preset mapping relation comprises the mapping relation between the parameter nodes and an environment component.
- 5. The method of claim 4, wherein the creating the verification environment according to the node attribute values of the parameter nodes in the first parameter configuration tree and the preset mapping relationship comprises: And aiming at a first parameter node with the node attribute value being enabled in the first parameter configuration tree, establishing a first environment component corresponding to the first parameter node according to the preset mapping relation, acquiring a first parameter required in the first environment component and related to the establishment of a sub-component from the first parameter node, establishing the sub-component according to the first parameter when the node attribute value of the parameter node corresponding to the sub-component is enabled, and the like until the environment component tree corresponding to the first verification case is established, and obtaining the verification environment.
- 6. A method according to claim 3, wherein prior to said obtaining the first verification use-case, further comprising: Establishing an initial environment according to preset requirements, wherein the initial environment comprises a preset number of environment components and inheritance containing relations among the environment components; The method comprises the steps of establishing a first configuration tree according to an initial environment, wherein the first configuration tree comprises original parameter nodes corresponding to all environment components in the initial environment, and the original parameter nodes comprise node attribute variables and environment parameter variables required by the corresponding environment components; Initializing the first configuration tree based on a basic use case to obtain the initial parameter configuration tree, wherein the basic use case comprises initial node attribute values corresponding to node attribute variables in all original parameter nodes and initial parameter values corresponding to environment parameter variables; And establishing a mapping relation between the parameter nodes of the initial parameter configuration tree and the environment components in the initial environment as a preset mapping relation.
- 7. The method of claim 6, wherein after establishing a mapping relationship between the parameter nodes of the initial parameter configuration tree and the environment components in the initial environment as a preset mapping relationship, further comprising: acquiring a registration instruction of a newly added environment component; Establishing a new environment component in the initial environment according to the new environment component registration instruction, and establishing a new parameter node corresponding to the new environment component in the initial parameter configuration tree; And adding the mapping relation between the newly added environment component and the newly added parameter node in the preset mapping relation.
- 8. The method according to any one of claims 1-7, wherein the verifying the object to be tested based on the verification environment and the corresponding first parameter configuration tree to obtain a verification result corresponding to the first verification use case includes: Based on the environment components in the verification environment and the parameters required by the environment components included in the parameter nodes of the first parameter configuration tree, generating excitation information corresponding to the first verification case, and transmitting the excitation information to the object to be tested, so that the object to be tested processes the excitation information to obtain a processing result; And determining a verification result of the object to be tested under the first verification case based on the processing result.
- 9. An authentication apparatus comprising: The first acquisition module is used for acquiring a first verification case; The system comprises a first verification case, a first processing module, a verification environment, a node attribute value, a first processing module and a second processing module, wherein the verification case is used for creating a corresponding verification environment according to the first verification case, the verification environment comprises a plurality of environment components required by the first verification case, the verification environment is provided with a corresponding first parameter configuration tree, the first parameter configuration tree at least comprises parameter nodes corresponding to the environment components, each parameter node comprises a parameter related variable and a corresponding variable value required by the environment components corresponding to the parameter nodes, and the verification environment is created according to the node attribute value of each parameter node in the first parameter configuration tree and the mapping relation between the parameter node and the environment components, and the node attribute value represents whether the parameter node is enabled under the first verification case; And the second processing module is used for verifying the object to be tested based on the verification environment and the corresponding first parameter configuration tree to obtain a verification result of the object to be tested under the first verification case, wherein parameters required by all environment components in the verification environment are obtained from parameter nodes corresponding to all environment components in the verification process, and all environment components work cooperatively to obtain the verification result.
- 10. A computer readable storage medium storing a computer program for executing the authentication method according to any one of the preceding claims 1-8.
- 11. An electronic device, the electronic device comprising: A processor; A memory for storing the processor-executable instructions; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the verification method of any one of the preceding claims 1-8.
Description
Verification method, verification device, electronic equipment and storage medium Technical Field The present disclosure relates to chip technology, and more particularly, to an authentication method and apparatus, an electronic device, and a storage medium. Background In the field of chip front-end verification, the configurable verification environment is one of important means for improving the universality of the verification environment, and the verification environment is often complicated in parameters and difficult to maintain. Disclosure of Invention The present disclosure has been made in order to solve the above technical problems. The embodiment of the disclosure provides a verification method, a verification device, electronic equipment and a storage medium. According to one aspect of the embodiment of the disclosure, a verification method is provided, which comprises the steps of obtaining a first verification case, creating a corresponding verification environment according to the first verification case, wherein the verification environment comprises environment components needed by the first verification case, the verification environment is provided with a corresponding first parameter configuration tree, the first parameter configuration tree at least comprises parameter nodes corresponding to the environment components, verifying an object to be tested based on the verification environment and the corresponding first parameter configuration tree, and obtaining a verification result of the object to be tested under the first verification case, wherein parameters needed by the environment components in the verification environment are obtained from the parameter nodes corresponding to the environment components in the verification process. According to another aspect of an embodiment of the present disclosure, there is provided an authentication apparatus including: the system comprises a first acquisition module, a first processing module and a second processing module, wherein the first acquisition module is used for acquiring a first verification case, the first processing module is used for creating a corresponding verification environment according to the first verification case, the verification environment comprises environment components required by the first verification case, the verification environment is provided with a corresponding first parameter configuration tree, the first parameter configuration tree at least comprises parameter nodes corresponding to the environment components, the second processing module is used for verifying an object to be tested based on the verification environment and the corresponding first parameter configuration tree, and a verification result of the object to be tested under the first verification case is obtained, wherein parameters required by the environment components in the verification environment are obtained from the parameter nodes corresponding to the environment components in the verification process. According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for executing the authentication method according to any one of the above embodiments of the present disclosure. According to yet another aspect of the disclosed embodiments, there is provided an electronic device including a processor, a memory for storing executable instructions of the processor, and the processor for reading the executable instructions from the memory and executing the instructions to implement the verification method according to any of the above embodiments of the disclosure. Based on the verification method and device, the electronic device and the storage medium provided by the embodiments of the present disclosure, corresponding parameter configuration trees are set for verification environments of verification cases, parameters of the verification environments are managed in a unified manner, and parameters of environment components of the verification environments are obtained from corresponding parameter nodes in a unified manner during verification, so that parameters of the environment components are separated from the environments, and only parameters in the parameter configuration trees need to be updated for different verification cases, the environment does not need to be modified, and the parameter readability and management efficiency are effectively improved, so that the verification work efficiency is improved. The technical scheme of the present disclosure is described in further detail below through the accompanying drawings and examples. Drawings The above and other objects, features and advantages of the present disclosure will become more apparent by describing embodiments thereof in more detail with reference to the accompanying drawings. The accompanying drawings are included to provide a further understanding of embodiments of the