摘要
云测试用于云上管理和执行测试任务。由于云上的计算资源能够较为方便的扩展,而负载测试通常需要大量计算资源,因此负载测试非常契合基于云的测试方法。为了保证负载测试能够按照测试计划成功发起,并且不会出现资源不足或闲置,需要在测试执行前确定云上虚拟主机数目,而现有的研究还缺少此类技术。为此,提出了一种面向脚本化负载测试的云主机预测技术,在负载测试开始前执行小规模的负载测试,收集计算资源与测试负载的基础数据,在此基础上使用机器学习方法进行数据训练并预测主机数量。结果表明:提出的主机预测方法能够较好地预测出负载测试所需主机数目。
Cloud testing refers to manage and perform testing activities on the cloud.Since computing resources in a cloud can be elastically allocated and load testing often needs large computing resources,it is very suitable for cloud-based methods.In cloud-based load testing,in order to ensure that the loads can be successfully launched according to a test plan without insufficient computing resources and avoid unnecessary wastes on such resources,it is necessary to determine the number of virtual hosts in the cloud used for creating test clients before the testing is performed.However,there lack such technique in the existing research.Therefore,this paper proposes a cloud host number prediction technique for scripted-based load testing.The new approach does small-scale load testing to gather basic data.Then,machine learning methods will be applied to train data and predict the required number of hosts.The results show that the proposed approach is effective for cloud-based load testing.
作者
李昌建
刘坤
晋文明
钱巨
LI Chang-jian;LIU Kun;JIN Wen-ming;QIAN Ju(College of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing,Jiangsu 211106,China;Collaborative Innovation Center of Novel Software Technology and Industrialization,Nanjing,Jiangsu 210023,China)
出处
《计算技术与自动化》
2020年第2期150-154,共5页
Computing Technology and Automation
基金
国防基础科研计划(JCKY2016206B001,JCKY2014206C002)
江苏省政策引导类计划(产学研合作)项目(BY2016003-02)。
关键词
云测试
负载测试
测试脚本
主机预测
cloud testing
load testing
test script
host prediction