| Because of ever-increasing demands from services,as well as many other reasons,large enterprises may generate new business almost every day,which requires that the database can quickly adapt to such changes in demand.Nowadays,IT application contains a large number of components,and in order to ensure the correctness of an application,the database component of the application should not have any impact on other application components and operations of altering database are strictly controlled and tested.The paper attempts to design and implement a model testing system about the consistency between the database model definition and concrete database implementation,trying to minimize the impact of each database change or upgrade.This paper first discusses the method and design of a representation for database information model’s definition based on the JSON data format,which adds some constraints,to achieve a unified the representation of data model definition.Meanwhile,on this basis,this paper attempts to design and implement a database model testing system,which can achieve conformance testing of a concrete database model implementation.The system can validate the core requirements of database model’s definition,such data format and data validation constraints,and output the corresponding model validation results,reaching an automated or semi-automated behavior.By completing such a task,in the upgrade process of enterprise data models,one can draw reference to this task,achieve the goal of the consistency validation between the representation and implementation of a data model,and reduce the impact of human factors on the business upgrade. |