当前位置:网站首页>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
边栏推荐
- [vtk] source code interpretation of vtkpolydatatoimagestencil
- ASP.NET-酒店管理系统
- 2022 northeast four provinces match VP record / supplementary questions
- The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
- 同事写了一个责任链模式,bug无数...
- 量化计算调研
- PHP server interacts with redis with a large number of close_ Wait analysis
- How to mix embedded MCU, arm and DSP?
- Matlab extracts numerical data from irregular txt files (simple and practical)
- 如何将数字字符串转换为整数
猜你喜欢

Unity3D学习笔记5——创建子Mesh

Redis things

The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.

Modular programming of single chip microcomputer

DS90UB949

Yintai department store ignites the city's "night economy"

C language AES encryption and decryption

导师对帮助研究生顺利完成学业提出了20条劝告:第一,不要有度假休息的打算.....

多维度监控:智能监控的数据基础

Spl06-007 air pressure sensor (example of barometer)
随机推荐
After a month, I finally got Kingdee offer! Share tetrahedral Sutra + review materials
phpcms 提示信息頁面跳轉showmessage
MATLAB提取不規則txt文件中的數值數據(簡單且實用)
Mmc5603nj geomagnetic sensor (Compass example)
Redis things
Phpcms prompt message page Jump showmessage
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]
Visual Studio 2022下载及配置OpenCV4.5.5
Technical experts from large factories: how can engineers improve their communication skills?
Matlab extracts numerical data from irregular txt files (simple and practical)
Gut | 香港中文大学于君组揭示吸烟改变肠道菌群并促进结直肠癌(不要吸烟)
同事写了一个责任链模式,bug无数...
Multi dimensional monitoring: the data base of intelligent monitoring
Stm32hal library upgrades firmware based on flash analog U disk (detailed explanation)
STL教程9-容器元素深拷贝和浅拷贝问题
Spl06-007 air pressure sensor (example of barometer)
R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
typeScript
Analysis of EPS electric steering system
Encapsulate a koa distributed locking middleware to solve the problem of idempotent or repeated requests