当前位置:网站首页>OpenStack中的测试分类
OpenStack中的测试分类
2022-07-03 11:02:00 【星哥玩云】
OpenStack中的测试分类可以分为以下的类型:
1) 单元测试 (small test / unit tests)
- 单元测试存放在每个组件的代码库中, 比如 nova的单元测试都放在 nova/tests 目录
- 单元测试主要是针对与源码级别的测试. 测试的是函数级别的代码
- 需要数据或者模拟环境? 使用Mock进行模拟
- unit test一般只针对于public级别的函数
2) 功能测试(Medium Tests)
- 功能测试也存放在每个组件的代码库中, 比如 nova的单元测试都放在 nova/tests 目录
- 和单元测试相比, 功能测试要基于真实的的依赖环境 (数据库, 文件IO系统, Hypvervisor等等)
3) 集成测试 (Large Tests)
集成测试工具 -- SmokeStack (基于UI的集成测试工具)
https://wiki.openstack.org/wiki/Smokestack
基于Ruby的集成测试工具
https://github.com/dprince/torpedo
集成测试工具 -- Tempest
http://docs.openstack.org/developer/tempest/
- 集成测试的代码放在独立的项目比如 tempest 中
- 集成测试要运行在一个完整的部署环境中, 比如一个完整的部署了OpenStack的环境
- 集成测试专注在系统功能, 完整性, 以及和真实硬件环境的集成
- 集成测试代码中一般不会使用fake / mock
4) 界面测试 (UI tests)
社区有一个项目, 是针对于Horizon的界面进行自动化测试的
https://wiki.openstack.org/wiki/Horizon/Testing/UI
- 这个测试工具使用了selenium 对Horizon进行了集成测试
- 在运行测试前, 要先启动OpenStack Server, 并确保Horizon运转正常.
5) 性能测试 (stress tests / performance tests)
社区有一个项目Rally, 是针对于性能测试的
https://wiki.openstack.org/wiki/Rally
- Rally 会自动部署一个OpenStack的环境, 并运行tempest来验证环境
- Rally会模拟生成用户负载, 来观测性能测试问题
- Rally通过Ceilomter来收集 Hypervisor 和VM的数据, 并放在Rally的数据库中
- Rally 最终会生成 性能测试报告
6) 国际化测试 (globalization tests)
https://launchpad.net/openstack-i18n
- Globalization 会测试文字翻译是否可以正常切换, 并且语法正确
- Globalization 要确保文字是正确编码, 并且符合不同语言的阅读习惯 (比如阿拉伯语是从右向左的阅读习惯)
7) 升级测试 (upgrade tests)
使用DevStack, 对OpenStack进行升级测试
https://wiki.openstack.org/wiki/Grenade
边栏推荐
- Xml的(DTD,xml解析,xml建模)
- R language uses the aggregate function to calculate the mean value (sum) of dataframe data grouping aggregation without setting na The result of RM calculation. If the group contains the missing value
- Stm32hal library upgrades firmware based on flash analog U disk (detailed explanation)
- C语言 AES加解密
- Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.
- C language log base zlog basic use
- Numpy np.max和np.maximum实现relu函数
- 聊聊Flink框架中的状态管理机制
- Understand go language context in one article
- Hongmeng third training (project training)
猜你喜欢

Web security summary

STL教程9-容器元素深拷贝和浅拷贝问题

Spl06-007 air pressure sensor (example of barometer)

Hongmeng third training (project training)

用了这么久线程池,你真的知道如何合理配置线程数吗?

Excel quick cross table copy and paste

Numpy np.max和np.maximum实现relu函数

Analysis of EPS electric steering system

Gut | Yu Jun group of the Chinese University of Hong Kong revealed that smoking changes intestinal flora and promotes colorectal cancer (do not smoke)

C语言 AES加解密
随机推荐
STL教程9-容器元素深拷贝和浅拷贝问题
uniapp实现点击加载更多
R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
Web security summary
P3250 [hnoi2016] Network + [necpc2022] f.tree path tree section + segment tree maintenance heap
Hongmeng fourth training
mysql使用update联表更新的方法
.\vmware-vdiskmanager.exe -k “c:\\xxxxx.vmdk”
Matlab extracts numerical data from irregular txt files (simple and practical)
ASP. Net hotel management system
Phpcms prompt message page Jump to showmessage
并发编程-单例
How PHP solves the problem of high concurrency
How to: configure ClickOnce trust prompt behavior
R语言使用data.table包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组中位数(median)并合并生成的统计数据到原数据集中
Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.
R language uses grid of gridextra package The array function combines multiple visual images of the lattice package horizontally, and the ncol parameter defines the number of columns of the combined g
The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
This article explains the complex relationship between MCU, arm, MCU, DSP, FPGA and embedded system
[OBS] encapsulate the basic process of OBS acquisition