Smoke testing

烟雾测试是一种初步测试,旨在揭示严重足以拒绝潜在软件发布的问题。它通过选择并运行覆盖组件或系统最重要的功能性的子集测试用例,来确认程序的关键功能是否正确工作。例如,基本问题如程序是否运行、是否打开窗口、点击主按钮是否有反应等。如果关键功能不工作或关键错误尚未修复,团队将不会浪费时间进行安装或进一步测试。

In computer programming and software testingsmoke testing is a preliminary to further testing, intended to reveal simple failures severe enough to reject a prospective software release. In this case, the smoke is metaphorical. A subset of test cases that cover the most important functionality of a component or system are selected and run, to ascertain if the most crucial functions of a program work correctly.For example, a smoke test may ask basic questions like “Does the program run?”, “Does it open a window?”, or “Does clicking the main button do anything?” The purpose is to determine whether the application is so badly broken that further testing is unnecessary. As the book “Lessons Learned in Software Testing” puts it, “smoke tests broadly cover product features in a limited time … if key features don’t work or if key bugs haven’t yet been fixed, your team won’t waste further time installing or testing”.

Smoke testing performed on a particular build is also known as a build verification test.

A daily build and smoke test is among industry best practices. Smoke testing is also done by testers before accepting a build for further testing. Microsoft claims that after code reviews, “smoke testing is the most cost effective method for identifying and fixing defects in software”. In Microsoft’s case, a smoke test is the process of validating code changes before they are checked into source control.

Smoke tests can either be performed manually or using an automated tool. When automated tools are used, the tests are often initiated by the same process that generates the build itself.

Smoke tests can be broadly categorized as functional tests or unit tests. Functional tests exercise the complete program with various inputs. Unit tests exercise individual functions, subroutines, or object methods. Both functional testing tools and unit testing tools tend to be third-party products that are not part of the compiler suite. Functional tests may be a scripted series of program inputs, possibly even with an automated mechanism for controlling mouse movements. Unit tests may be separate functions within the code itself, or driver layer that links to the code without altering the code being tested.

通过Smoke testing – Wikipedia, the free encyclopedia.

 Posted by ian at 00:13  Tagged with: Test
transalte in english:冒烟测试(Smoke Testing)是一种软件测试类型,主要用于在正式全面测试之前,对软件的基本功能进行快速的验证,确保软件的主要功能能够正常工作,具备继续进行更深入测试的基本条件。其名称来源于硬件测试中对新硬件进行加电测试,如果硬件能够正常冒烟(即正常启动且没有出现灾难性故障),就可以进行后续更详细的测试。 在软件领域,冒烟测试通常在软件构建完成后立即执行,测试人员会运行一组基本的、关键的测试用例,这些用例覆盖了软件的主要功能流程。例如,对于一个电商应用,冒烟测试可能会包括用户登录、商品搜索、加入购物车、结算等核心功能的测试。如果这些基本功能都能正常运行,那么软件就通过了冒烟测试,可以进入后续更全面和细致的测试阶段;反之,如果在冒烟测试中发现了严重的问题,如系统崩溃、关键功能无法使用等,那么就需要及时修复这些问题,而不是继续进行其他测试,这样可以避免在有严重缺陷的软件版本上浪费过多的测试资源。 冒烟测试有助于快速识别软件中的重大缺陷,提高测试效率,降低测试成本,确保后续测试工作能够顺利进行。 ```python # 以下是一个简单的Python示例,模拟一个电商应用的冒烟测试 def login(): # 模拟登录功能 return True def search_product(): # 模拟商品搜索功能 return True def add_to_cart(): # 模拟加入购物车功能 return True def checkout(): # 模拟结算功能 return True # 执行冒烟测试 if login() and search_product() and add_to_cart() and checkout(): print("冒烟测试通过,可以进行后续测试") else: print("冒烟测试未通过,需要修复重大问题") ```
11-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值