To solve the problems of poor readability of the source codes of TMN interface test code generator brought by traditional generation mode, an extended macro block preprocessing technology in automatic code generation is introduced, which can be used to effectively separate target codes from generating codes in the source file of the generator.
在网络管理接口测试的代码自动生成技术中,针对由传统生成模式所导致的源代码可读性差等问题,提出了一种代码自动生成的扩展宏模块预处理技术,将生成器程序和目标程序代码进行有效的分离,并给出了扩展宏模块的范式定义,以及相应预处理方法中的转换规则和应用举例。