Skip to content

探索性测试

一句话解释

探索性测试是无脚本的、同时学习和测试——测试者创造性探索应用以发现意外 bug。

用大白话说

探索性测试不是按脚本——而是像好奇用户一样探索应用,学习它如何工作,发现自动化测试会遗漏的 bug。关键特征:1. 同时进行——学习、测试设计和执行同时发生

  1. 无脚本——没有预写测试用例;测试者凭直觉
  2. 人驱动——利用人类创造力、好奇心和直觉
  3. 章程引导——通常由「章程」引导(任务:用边界情况探索结账)

为什么探索性测试能发现脚本遗漏的 bug:

  • 脚本测试你想到的——探索发现你没想到的
  • 人注意到视觉问题、混乱的 UX、意外交互
  • 人能跟进「这很奇怪」的观察
  • 脚本不测试功能组合;人自然这样做流程:1. 定义章程(如「用异常输入探索支付流程」)
  1. 时间盒会话(60-90 分钟)
  2. 自由探索,记笔记和截图
  3. 总结:记录发现的 bug、覆盖区域、识别的风险探索性测试补充自动化测试——不替代它们。

示例

text
Exploratory Testing Session Charter
=====================================
Mission: Explore the shopping cart with edge cases
Duration: 90 minutes

Session notes:
- Added 0 quantity of an item → cart showed $0 total ✓
- Added negative quantity (-5) → BUG! Total went negative
- Added 999999 items → page crashed (no limit check)
- Added item, removed it, added again → count showed 2 not 1 (BUG)
- Tried checkout with empty cart → "undefined" error message
- Rapidly clicked "Add" 20 times → race condition, count = 15 not 20
- Added item in tab A, removed in tab B → tabs out of sync

Bugs found: 4
Areas covered: cart add/remove, quantity validation, checkout, multi-tab
Risk: cart state management is fragile

→ Write regression tests for each bug found
→ Add these scenarios to automated test suite

探索性测试使用章程(任务)和时间盒。测试者自由探索,发现脚本遗漏的 bug。每个发现的 bug 应成为回归测试。

常见混淆

  • 容易混淆的对象: ad hoc testing

    关键区别: 临时测试是随机、无计划的测试,无结构或文档。探索性测试是结构化但灵活的——它使用章程(任务)、时间盒,并产生有文档的发现。临时测试是「随便试试」;探索性测试是「有目的的探索加文档」。

相关术语

相关资源

相关课程

解读错误信息

用大白话解释常见错误——什么意思、为什么发生、如何修复。

查看错误

← 返回术语表