当前位置:网站首页>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 AES encryption and decryption
- Double linked list of linear list
- P3250 [HNOI2016] 网络 + [NECPC2022] F.Tree Path 树剖+线段树维护堆
- 软件测试周刊(第78期):你对未来越有信心,你对现在越有耐心。
- 优化接口性能
- Excel quick cross table copy and paste
- How to become a senior digital IC Design Engineer (1-5) Verilog coding syntax: operand
- 2022 东北四省赛 VP记录/补题
- Xml的(DTD,xml解析,xml建模)
- VPP three-layer network interconnection configuration
猜你喜欢
MATLAB提取不規則txt文件中的數值數據(簡單且實用)
Gut | Yu Jun group of the Chinese University of Hong Kong revealed that smoking changes intestinal flora and promotes colorectal cancer (do not smoke)
The world's most popular font editor FontCreator tool
Leetcode 46: full arrangement
The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
抓包整理外篇fiddler———— 会话栏与过滤器[二]
基于turtlebot3实现SLAM建图及自主导航仿真
Web安全总结
Multi dimensional monitoring: the data base of intelligent monitoring
Cuiyusong, CTO of youzan: the core goal of Jarvis is to make products smarter and more reliable
随机推荐
How to become a senior digital IC Design Engineer (1-4) Verilog coding syntax: expression
ftp登录时,报错“530 Login incorrect.Login failed”
Processes and threads
DS90UB949
优化接口性能
C language log base zlog basic use
机器学习 3.2 决策树模型 学习笔记(待补)
R language ggplot2 visualization: gganimate package creates dynamic line graph animation (GIF) and uses transition_ The reveal function displays data step by step along a given dimension in the animat
Gut | 香港中文大学于君组揭示吸烟改变肠道菌群并促进结直肠癌(不要吸烟)
Qt+VTK+OCCT读取IGES/STEP模型
Mmc5603nj geomagnetic sensor (Compass example)
Encapsulate a koa distributed locking middleware to solve the problem of idempotent or repeated requests
量化计算调研
MCDF实验1
VS2015的下载地址和安装教程
How to become a senior digital IC Design Engineer (1-3) Verilog coding syntax: Verilog behavior level, register transfer level, gate level (abstract level)
Double linked list of linear list
After setting up ADG, instance 2 cannot start ora-29760: instance_ number parameter not specified
Program process management tool -go Supervisor
repo ~ 常用命令