The embodiment of the invention discloses a NLP based server test method, including using IPMI's sol login system to take screenshots; converting the screenshots into text based on OCR; analyzing the text based on NLP, comparing the current BIOS function configuration with NLP learning function, and selecting test script based on BIOS options; comparing the current log with NLP learning Learn the test program, determine the test rules, and form a common test program for multiple servers. Through the sol login system of IPMI, the screenshot can be automatically obtained, which saves time without the need for human to take screenshots one by one; through NLP, the transformed text is analyzed in sentence meaning, and NLP learns the corresponding test strategies in different scenarios, so as to give the corresponding test strategies for the current sentence meaning analysis results, and increase the compatibility of the test. Developers don't need to spend a lot of time to develop the corresponding test program because of different server models, which saves the test cost.
【技术实现步骤摘要】
一种基于NLP的伺服器测试方法
本专利技术涉及计算机测试
,具体地说是一种基于NLP(NaturalLanguageProcessing,自然语言处理)的伺服器测试方法。
技术介绍
伺服器也称服务器,是提供计算服务的设备。伺服器需要相应服务请求并进行处理,需要提供高可靠的服务,在处理能力、稳定性、可靠性、安全性等方面要求较高。因此需要出产的伺服器进行全面测试,以满足各种需求。伺服器在开发中会使用VGA(VideoGraphicsArray,视频传输标准)Textmode作为BMC(BaseboardManagementController,基板管理控制器)的输出功能,现有测试中需要人为获取每个VGATextmode的截图,再通过底层向量来做分类,从而对应测试脚本。这样人工标记图片的内容需要耗费大量的时间,有时因为增加新选项需要重新截图,花费的时间就会翻倍。
技术实现思路
本专利技术实施例中提供了一种基于NLP的伺服器测试方法,以解决现有技术中进行伺服器测试耗时久的问题。为了解 ...
【技术保护点】
1.一种基于NLP的伺服器测试方法,其特征是,包括以下步骤:/n使用IPMI的sol登入系统,进行屏幕截图;/n基于OCR,将所述屏幕截图转化为文字;/n基于NLP,对所述文字进行具意分析,比较当前BIOS的功能配置与NLP学习的功能,并根据BIOS的选项选择测试脚本;/n比较当前log与NLP学习的测试程式,决定测试规则,形成多伺服器通用的测试程式。/n
【技术特征摘要】
1.一种基于NLP的伺服器测试方法,其特征是,包括以下步骤:
使用IPMI的sol登入系统,进行屏幕截图;
基于OCR,将所述屏幕截图转化为文字;
基于NLP,对所述文字进行具意分析,比较当前BIOS的功能配置与NLP学习的功能,并根据BIOS的选项选择测试脚本;
比较当前log与NLP学习的测试程式,决定测试规则,形成多伺服器通用的测试程式。
2.根据权利要求1所述的一种基于NLP的伺服器测试方法,其特征是,所述屏幕截图包括BIOS屏幕截图和BMC的SELlog屏幕截图。
3.根据权利要求2所述的一种基于NLP的伺服器测试方法,其特征是,所述比较当前BIOS的功能配置与NLP学习的功能之前还包括步骤:
NLP对BIOS屏幕截图进行监督式学习,形成BIOS的NLP模型。
4.根据权利要求3所述的一种基于NLP的伺服器测试方法,其特征是,所述NLP对BIOS屏幕截图进行监督式学习,形成BIOS的NLP模型的具体过程为:
标记要学习的信息,包括关键字和/或关键字关联的字眼;
根据OCR对BIOS屏幕截图转化的文字结果,NLP基于标记信息进行学习,形成BIOS的NLP模型。
5.根据权利要求4所述的一种基于NLP的伺服器测试方法,其特征是,所述BIOS的NLP模型包括根据BIOS的配置描述得到BIOS的功能,及所述功能对应的测试脚本。
6.根据权利要求5所述的一种基于NLP的伺服器测试方法,其特征是,所述比较当前BIOS的功能配置与NLP...
【专利技术属性】
技术研发人员:王钧弘,
申请(专利权)人:苏州浪潮智能科技有限公司,
类型:发明
国别省市:江苏;32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。