Chapter 8 Configuration Testing

本文介绍了配置测试的重要性及其基本流程,包括如何确定所需的硬件配置、如何缩小测试范围以及如何设计和执行测试案例等内容。
Configuration Testing
Chapter 8
© attachmate 2004
Highlights
 Why configuration testing is necessary
 Why configuration testing can be a huge job
 A basic approach to configuration testing
 How to find the hardware you need to test
with
 What to do if you’re not testing software for a
desktop computer
© attachmate 2004
An Overview of Configuration Testing
 Configuration testing is the process of checking the
operation of the software you’re testing with all these
various types of hardware
 Different configuration possibilities
 The PC
 Components
 Peripherals
 Interfaces
 Options and memory
 Device drivers
© attachmate 2004
An Overview of Configuration Testing
(2)
 Which of the configuration areas would be
most closely tied to the program
 Graphical computer program
 A greeting card program
 A fax or communication program
 Why this all necessary?
 Standards aren’t always followed
 Software doesn’t work correctly with certain
hardware configurations
© attachmate 2004
Isolating Configuration Bugs
 The sure way to tell if a bug is a configuration
problem
 Perform the exact operation on another computer with
a different hardware setup
 Where the configuration problem lies
 Software may have a bug that appears under a broad
class of configurations
 Software may have a bug specific only to one
particular configuration
 Hardware device or its device drivers may have a bug
that only this software reveals
 Hardware device or its device drivers may have a bug
that can be seen with lots of other software
© attachmate 2004
Sizing Up the Job
 Configuration testing can be a huge
undertaking
 You may need to check every possible make
and model combination
 Too many to consider
 Example
© attachmate 2004
Approaching the Task
 Equivalence partitioning
 Reduce the huge set of possible
configurations to the ones that matter the most
 What makes the effort a success or not
 The information you use to make the decision
 Learn as much as you can and bring in other
experienced testers or programmers
© attachmate 2004
Decide the Types of Hardware You’ll
Need
 Look closely at your software feature set to
make sure that you cover everything
 Draw a table to summarize what hardware
pieces you need to put together to make it
work
 Online registration example
© attachmate 2004
Decide What Hardware Brands, Models,
and, Device Drivers Are Available
 Create a list of hardware to test with
 Check out recent equipment reviews
 PC Magazine or Mac World
 Research to see if some of the devices are
clones of each other
 Falling under the same equivalence partition
 Decide what device drivers you’re going to
test with
 Three approaches
© attachmate 2004
Decide Which Hardware Features,
Models, and Options Are Possible
 Software may not need to support all the
features of hardware
 If the configuration has less requirements,
simply not test these features
 Printer example
© attachmate 2004
Pare Down the Identified Hardware
Configurations to a Manageable Set
 Put all configuration into a spread sheet with
columns for the manufacturer, model, driver
versions and options
 Figure 8.7 example
 May test only the most popular printers or
ones that are less than 5 years old
 No right formula
© attachmate 2004
Identify Your Software’s Unique
Feature That Work with the Hardware
Configurations
 Test only those features that are different
from each other
 Different equivalence partitions
 Word pad printing example
© attachmate 2004
Design the Test Cases to Run on Each
Configuration
 Select and set up the next test configuration
from the list
 Start the software
 Load in the file configtest.doc
 Confirm that the file is displayed correctly
 Print the document
 Confirm that there are no error messages and
that the printed document matches the
standard
 Log any discrepancies as a bug
© attachmate 2004
Execute the Tests on Each
Configuration
 It’s often difficult and time-consuming to
identify the specific source
 Closely work with programmers and white-box
testers
 If the bug is specific to the hardware
 Consult the manufacturer's website for
information on reporting problems to them
© attachmate 2004
Return the Tests Until the Results
Satisfy Your Team
 It’s not uncommon for configuration testing to
run the entire course of a project
 An increment testing process
 Configuration test complete
 Get to a point where there are no known bugs
or to where the bugs that still exist are in
uncommon or unlikely test configurations
© attachmate 2004
Obtaining the Hardware
 Buy only the configurations that you can or will use
most often
 Always have different configurations available to test
on
 Contact the hardware manufacturers and ask if they
will lend or even give you the hardware
 Send a memo or email to everyone in your company
asking what hardware they have in their office or
even home
 If you have budget, work with your project manager
to contact out your test work to a professional
configuration and compatibility test lab
© attachmate 2004
Identifying Hardware Standards
 Knowing some details of the hardware
specifications can help you make more
informed equivalence partition decisions
 For Apple hardware
http://develper.apple.com/testing
 For PC
http://www.microsoft.com/whdc/system/platform
 A set of standards to receive the Windows logo
http://msdn.microsoft.com/certification
http://www.microsoft.com/whdc/whql
© attachmate 2004
Configuration Testing Other Hardware
 Testing other special software
 What external hardware will operate with this
software
 What models and versions of that hardware
are available
 What features or opinions does that hardware
support
 Then follow the same technique mentioned
above
在数字化环境中,线上票务获取已成为参与各类活动的主要途径。随着公众对热门演出需求的增长,票源往往在开放销售后迅速告罄,导致普通消费者难以顺利购得所需票券。为应对这一挑战,部分技术开发者借助编程手段构建了自动化购票辅助程序,旨在提升用户成功获取门票的概率。本文将以一个针对特定票务平台设计的自动化工具为例,系统阐述其设计理念、技术组成及具体实施流程。 秀动网作为国内知名的演出及体育赛事票务销售平台,因活动热度较高,常出现访问拥堵、瞬时抢购压力大等现象,使得常规购票过程面临困难。因此,开发一款能够协助用户更有效完成票务申购的辅助工具具有实际意义。 该工具主要具备以下几项关键功能:持续监控目标平台的票务信息更新;在票务释放时自动执行选座、添加至购物车及提交订单等系列操作;集成一定的异常处理机制,以应对网络延迟或服务器响应异常等情况。 在技术实现层面,选用Python作为开发语言,主要基于其语法简洁、标准库与第三方资源丰富,适合快速构建功能原型。同时,Python在网络通信与浏览器自动化方面拥有如requests、selenium等成熟支持库,为程序实现网页交互与数据抓取提供了便利。 开发过程主要包括以下环节:首先解析目标网站的页面结构,明确可通过程序操控的网页元素路径;随后编写监控模块,实时检测新票务信息的上线并及时触发后续操作;接着模拟用户操作流程,包括自动填写个人信息、选择座位偏好、完成购物车添加等步骤,并通过行为模拟降低被平台反爬虫机制识别的可能;最终实现订单自动提交,并在成功购票后向用户发送通知。 此外,该工具提供了可配置的操作界面,允许用户根据个人需求设定抢票时间、目标活动类型及座位选择等参数,从而在提升使用体验的同时,减少对票务平台服务器资源的非必要占用。 需指出的是,尽管此类工具能提高购票效率,但其使用可能涉及违反平台服务协议或相关法规的风险。各票务销售方通常对自动化抢票行为设有明确约束,因此开发与使用者均应遵守相应规定,确保技术应用的合法性。 综上所述,该基于Python的票务辅助工具是针对特定场景设计的自动化解决方案,通过技术手段改善用户购票体验,但同时也强调必须在法律与平台规则框架内合理使用此类技术。 资源来源于网络分享,仅用于学习交流使用,请勿用于商业,如有侵权请联系我删除!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值