当前位置:网站首页>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
边栏推荐
- C language utf8toutf16 (UTF-8 characters are converted to hexadecimal encoding)
- 多维度监控:智能监控的数据基础
- C language two-dimensional array
- 聊聊Flink框架中的状态管理机制
- [OBS] configFile in ini format of OBS
- R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA
- 按键切换:按F1-F12都需要按Fn
- [vtk] interpretation of source code comments of vtkwindowedsincpolydatafilter
- [OBS] encapsulate the basic process of OBS acquisition
- 活动预告 | 直播行业“内卷”,以产品力拉动新的数据增长点
猜你喜欢

PHP server interacts with redis with a large number of close_ Wait analysis

Based on MCU, how to realize OTA differential upgrade with zero code and no development?

MATLAB提取不規則txt文件中的數值數據(簡單且實用)

ftp登录时,报错“530 Login incorrect.Login failed”

ASP.NET-酒店管理系統

STL教程10-容器共性和使用场景

Excel表格转到Word中,表格不超边缘纸张范围

银泰百货点燃城市“夜经济”

MATLAB extrait les données numériques d'un fichier txt irrégulier (simple et pratique)

The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
随机推荐
ORACLE进阶(一) 通过EXPDP IMPDP命令实现导dmp
Program process management tool -go Supervisor
Abandon the Internet after 00: don't want to enter a big factory after graduation, but go to the most fashionable Web3
MySQL union和union all区别
How to mix embedded MCU, arm and DSP?
一文搞懂Go语言Context
How to: configure ClickOnce trust prompt behavior
Incremental database backup - DB incr DB full
DS90UB949
聊聊Flink框架中的状态管理机制
ftp登录时,报错“530 Login incorrect.Login failed”
The tutor put forward 20 pieces of advice to help graduate students successfully complete their studies: first, don't plan to take a vacation
MATLAB extrait les données numériques d'un fichier txt irrégulier (simple et pratique)
How to get started embedded future development direction of embedded
The world's most popular font editor FontCreator tool
. \vmware-vdiskmanager. exe -k “c:\\xxxxx.vmdk”
Xml的(DTD,xml解析,xml建模)
Nestjs configuration service, configuring cookies and sessions
抓包整理外篇fiddler———— 会话栏与过滤器[二]
Phpcms prompt message page Jump showmessage