大话测试数据(二):概念测试数据的获取

news2024/12/26 21:24:07

在大话测试数据(一)文章中,我提到,获取数据的第一步是获取概念上数据。这一步看起来简单,其实不是那么容易。获取概念数据和获取需求的过程是交织在一起的,事实上,它们其实是一个事儿,因为数据是需求中最重要的组成部分。
需求工程是个大话题,目前有很多种流派和实践方式来来搞定需求,但它们的思想都比较一致,那就是:不断的由粗到精的迭代(如下图)。关于需求这里不再展开,如果大家有兴趣的话,推荐两本我觉得还不错的书:德国人写的《需求工程,基础原理和技术》和国人写的《软件需求最佳实践》,大家读后结合工作实践会很有收获。

1080×554 47.2 KB


由上述文字可知,(测试)数据获取也是一个迭代的过程。实际上在项目早期,我们就能获得概念数据。概念数据是什么呢?用大白话说就是:这种数据叫什么,大体啥样子,是干嘛用的。举个例子:
如果你的项目是一个信用卡项目,项目有一个功能就是,每月给用户发送“电子对账单”。对于80后,甚至90后的你,一秒钟你就知道这个“电子对账单”大概将会是个什么东西了。“不就是一封电子邮件里放一个网页,里边告诉用户:尊敬的某某先生/小姐!您本月消费了几笔,每笔多少钱,都是哪一天花的。最重要的是,您在本月X日前必须把钱还了。“这样你就建立了对“电子对账单”这种测试数据的概念,也就是说得到了“电子对账单”这种概念的测试数据。
Pretty easy?事实没有那么简单的。事情的本质是:你有一个超级聪明的大脑,能瞬间把你的经验综合起来对需要识别的东西作一判断,并给出一个大致的评估。但如果你大脑没有相关的知识,你就没有那么幸运了。不信,请读一下下图中的文字:

1080×1915 176 KB


脂多糖是神马?膜蛋白复合体是神马?神马是beta链?桶壁是神马????这特么的都是神马?如果你没有一些生物学知识、高中生物又不幸光睡觉了的话,这段选自《环球科学》的文字不会让你觉得比读日文简单。
因此识别概念上的测试数据,你脑子里还得有点儿货才行,这些货是:“技术层面的知识”,“业务层面的知识(领域知识)”,“对于产品本身的认识”,还有“你的常识”。这四点的总结是从测试大师 James Bach 的课程中获取的,你可以尝试获取他关于快速软件测试的 PDF 文件。
你说了,没有这些知识怎么办?答案特别简单,“学啊”!。勤学勤问勤练勤观察,入行几年后,如果不是特别懒惰,前三项都会提高到一个不错的高度。这些都变成了你的价值。经过一段时间爬坡,你就可以很快的获取概念测试数据了。
你说了,废话,我也知道要学,但有没有更具体点儿的?干货,有么?要能咯掉牙的!
好吧,可以参考下面的干货资料(英文版,也正好练习下英文),你就当它是个 checklist,按图索骥吧:关于测试数据的获取(不仅仅是概念测试数据的获取),测试思路的获取,甚至是需求的获取,你一定会有收获。
We recommend collecting test ideas continuously from a variety of information sources.
Consider the following, and think about values, risks, opportunities; find shortcuts to cover what is important.
1.Capabilities.
The first and obvious test ideas deal with what the product is supposed to do. A good start is requirements, examples and other specifications, or a function list created from actual software. But also try to identify implicit requirements, things users expect that haven’t been documented. Be alert to unwanted capabilities.
2.Failure Modes.
Software can fail in many ways, so ask “what if” questions to formulate test ideas that expose the handling of internal/external, anticipated/unexpected, (un)intentional, realistic/provoked failures. Challenge the fault tolerance of the system; any object or component can break.
3.Quality Characteristics.
Quality characteristics are always important for the project to be successful, although the OK zone can be easy to reach, or difficult and critical. Our definition includes capability, reliability, usability, charisma, security, performance, IT-bility, compatibility, supportability, testability, maintainability, portability, and a plethora of sub-categories.
Many of these can be used as ongoing test ideas in the back of your head, executed for free, but ready to identify violations.
4.Usage Scenarios.
Users want to accomplish or experience something with software, so create tests that in a variety of ways simulate sequences of product behavior, rather than features in isolation.
The more credible usage patterns you know of, the more realistic tests you can perform. Eccentric soap opera tests broaden coverage.
5.Creative Ideas.
All products are unique, and require some test ideas not seen before. Try lateral thinking techniques (e.g. Edward De Bono’s Six Thinking Hats, provocative operators, the opposite, random stimulation, Google Goggles) to come up with creative test ideas.
Metaphors and analogies is a good way to get you started in new directions.
6.Models.
A state model helps identify test ideas around states, transitions and paths. A system anatomy map shows what can be tested, and can highlight interactions. Create a custom model using structures like SFDPOT from Heuristic Test Strategy Model.
A visual model is easier to communicate, and the modeling activity usually brings understanding and new ideas.
7.Data.
By identifying intentional and unintentional data (there is always noise), you have a good start for a bunch of test ideas. Follow easy and tricky data through the application, be inside and outside boundaries, use CRUD (Create, Read, Update, Delete), exploit dependencies, and look at the data in many places.
8.Surroundings.
Environment compatibility (hardware, OS, applications, configurations, languages) is an important testing problem, but also investigate nearby activities to your product. By understanding the big system you can get credible test ideas that are far-fetched when looking at functionality in isolation.
9.White Box.
By putting a tester’s destructive mindset on developers’ perspective of architecture, design and code, you can challenge assumptions, and also find mistakes. Pay special attention to decisions and paths you might not understand from a black-box perspective. Code coverage is not worthless, it can be used to find things not yet tested.
10.Public collections.
Take advantage of generic or specific lists of bugs, coding errors, or testing ideas. As you are building your own checklist suitable for your situation, try these:
• Appendix A of Testing Computer Software (Kaner, Falk, and Nguyen)
• Boris Beizer Taxonomy (Otto Vinter)
• Shopping Cart Taxonomy (Giri Vijayaraghavan)
• Testing Heuristics Cheat Sheet (Elisabeth Hendrickson)
• You Are Not Done Yet (Michael Hunter)
Learn some testing tricks or techniques from books, blogs, conferences; search for test design heuristics, or invent the best ones for you.
11.Internal Collections.
Use or create lists of things that often are important in your context, some call these quality/test patterns.
12.Business Objectives.
What are the top objectives for the company (and department break-downs) ? Are there any requirements that contradict those objectives? Do you know the big picture, the product vision and value drivers?
13.Information Objectives.
Explicit and implicit purposes of the testing are important guides to your effort. If you don’t have them, you can create quality objectives that steer test ideas for any feature.
14.Product Image.
The behavior and characteristics the product is intended to display might be explicit or implicit, inside the walls and minds of the people producing or consuming the software.
You will be able to write compelling problem reports if you know and can show threats to the product’s image, e.g. by pointing to a violation of marketing material.
15.Product Fears.
Things that stakeholders are really worried about are much stronger than risks, they don’t need prioritization, they need testing. Typical hard-to-verify, but useful-for-testing fears are: loss of image, wrong decisions, damage, people won’t like the software. Different people have different fears; find out which matters most.
16.Project Risks.
Some of the difficult things in a project can be addressed by testing. You want to know about which functionality developers are having trouble with, and you will adjust your schedule depending on risks that need mitigation first.
17.Rumors.
There are usually lots of talk about quality and problems floating around. Some hurt the product and the organization. Use the rumors themselves as test ideas. It is your mission to kill them or prove them right.
18.Product History.
Old problems are likely to appear in new shapes. Search your bug/support system or create an error catalogue, remember critical failures and root cause analysis. Use old versions of your software as inspiration and oracle.
19.Test Artifacts.
Not only your own test ideas, logs and results can be used for sub-sequent tests, also try out test results from other projects, Beta testing reports, usability evaluations, 3rd party test results etc. What questions do you want to be able to answer in future
status reports?
20.Debt.
The idea that a debt is constantly growing because of all the shortcuts being made. This could be project debt, managerial debt, technical debt, software debt, testing debt or whatever you wish to call it. If the team keep track on what is on the debt list, you can map a set of test ideas against those items.
21.Business Knowledge.
If you know the purpose of the software, and the context it operates in, you can understand if it will provide vale to customers. If you can’t acquire this knowledge, co-operate with someone who knows the needs, logic and environment.
22.Field Information.
Besides knowledge about customer failures, their environments, needs and feelings, you can take the time to understand your customers both in error and success mode. Interview pre-sales, sales, marketing, consultants, support people, or even better: work there for a while.
23.Users.
Think about different types of users (people you know, personas), different needs, different feelings, and different situations.
Find out what they like and dislike, what they do next to your software. Setup a scene in the test lab where you assign the testers to role play different users, what test ideas are triggered from that? Best is of course unfiltered information directly from users, in their context.
Remember that two similar users might think very differently about the same area.
24.Conversations.
The informal information you get from people may contain things that are more important than what’s included in specifications. Many people can help you with your test design, some are better judges of importance, what can you gain from MIP:s(Mention In Passing)?
If developers know you can find interesting stuff, they might give you insider information about dubious parts of the software. A set of questions to a developer might be an innocent “what do you think we should test?” or “what part of your code would you have liked to do better?”
25.Actual Software.
By interacting with the software, you will get a lot of ideas about what is error-prone, connected, interesting. If you can eat your own dog food (euphemism: sip your own champagne), you are in much better position to understand what is important about the software. If “Quality is value to some person”, it is pretty good if that person is “me”.
26.Technologies.
By knowing the inner workings of the technology your software operates in, you can see problematic areas and things that tend to go wrong; understand possibilities and security aspects; which parameters to change, and when. You can do the right variations, and have technical discussions with developers.
27.Standards.
Dig up relevant business standards, laws and regulations. Read and understand user interface standards, security compliance, policies. There are articles out there that describe how you can break something even if it adheres to the standards, can you include their test ideas in yours?
28.References.
Reference material of various kinds is a good source for oracles and testing inspiration, e.g. an atlas for a geographic product. General knowledge of all types can be handy, and Wikipedia can be enough to get a quick understanding of a statistical method.
29.Competitors.
By looking at different solutions to similar problems you can get straightforward test ideas, but also a feeling of which characteristics end users might focus on. There might be in-house solutions (e.g. Excel sheets) to be inspired by, and often there exists analogue solutions for similar purposes. Can you gain any insightful test ideas from your competitors support, FAQ or other material?
30.Tools.
If something can be done very fast, it is a good idea to try it. Tools are not only the means to an end, they can also be used as the starting point for exploration.
31.Context Analysis.
What else in the current situation should affect the things you test, and how? Do you know about the market forces and project drivers? Is there anything that has changed that should lead to new ways of testing? What is tested by others?
32.Legal aspects.
Do you need to consider contracts, penalties or other legal obligations? What would cost the company the most in a legal issue? Do you have lawyer that can give you hints on what must be avoided?
33.Many Deliverables.
There are many things to test: the executable, the installation kit, programming interfaces, extensions, code & comments, file properties, Help, other documentation, Release Notes, readme:s, marketing, training material, demos etc. All of these also contain information you can use as inspiration.
34.YOU!
Your experience, knowledge, skills, feelings, subjectivity, and familiarity with problems. What do you want to test?
btw,在接下来的文章中,我将会着重讲解如何获取细化的测试数据。

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/144346.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Ribbon、Feign、Hystrix超时重试熔断问题

文章目录问题描述重试次数不生效开启熔断后重试次数生效fallbackFactory回退降级异常为空问题1分析问题2、3分析总结feign请求次数计算Hystrix超时时间设置公式问题描述 在使用Ribbon、Feign、Hystrix组合时,因为配置的问题出现以下现象,让我的大脑CPU烧…

[SWPU2019]Web1

目录 [SWPU2019]Web1 无列名查看表数据 不使用列名查询表中数据 [SWPU2019]Web1 首先我们先注册,登录进来后看到如下界面: 我们点击申请发布广告,并发送: 查看广告详情,发现疑似存在注入点: 于是我们在发…

Docker 应用篇 | Docker 学习笔记总结

Docker 视频内容可以参考黑马程序员的Docker篇 详细完整内容可以查询菜鸟教程:Docker 教程 本篇博文主要让读者对Docker有一个基本理解并可以借助Docker发布自己的项目 一、初识Docker 1.1 Docker概述 Docker是一个集装箱式的思想 Docker可以让开发者打包他们的…

招聘求职系统|基于Springboot+Vue+Nodejs实现求职招聘系统

作者主页:编程指南针 作者简介:Java领域优质创作者、CSDN博客专家 、掘金特邀作者、多年架构师设计经验、腾讯课堂常驻讲师 主要内容:Java项目、毕业设计、简历模板、学习资料、面试题库、技术互助 收藏点赞不迷路 关注作者有好处 文末获取源…

电脑系统更新后桌面的文件全部不见了怎么恢复?

电脑系统更新是很常见的一种情况,自动更新电脑系统后我们可以进行更优质的使用体验,但是最近有位小伙伴,出现了win10电脑系统更新后桌面文件丢失情况,那么电脑系统更新桌面文件没了怎么办?电脑系统更新桌面文件不见了怎…

实验二十三 基于时间的ACL配置及策略

实验二十三 基于时间的ACL配置及策略实验要求: 某公司通过router实现各部门之间的互连。公司要求禁止销售部门在上班时间(8:00 至18:00)访问工资查询服务器(IP地址为192.168.10.10),财务部门不受限制,可以 随时访问。网络拓扑图:实…

如何定义算法?10分钟带你弄懂算法的基本概念

算法是指完成一个任务所需要的具体步骤和方法。也就是说给定初始状态或输入数据,经过计算机程序的有限次运算,能够得出所要求或期望的终止状态或输出数据。 编程界的“Pascal之父”Nicklaus Wirth有一句人尽皆知的名言:“算法数据结构程序”…

【目标检测】G-GhostNet

1、论文 论文题目:《GhostNets on Heterogeneous Devices via Cheap Operations》 论文地址: https://arxiv.org/pdf/2201.03297.pdf 代码地址: https://github.com/huawei-noah/CV-Backbones 2、引言 本文针对网络部署时面临的内存和资源…

python提取excel文本框内容

就提取excel文本框的内容,提供两种方法 一、 转成pdf,识别pdf文字 该方法需要注意两点: 1.似乎只能识别选中的文字(图片不行) 2.会受到精度影响(即有可能识别出错字) 以下是代码 先转存为pdf格…

IB中文解析,助力冲7分

我们知道,IB、AP、A Level三大国际课程体系都有中文,尤其IB学生,由于必选一门母语与语言,中文成了必选项。IB中文可以说是很多IB学子的心头大患了,引发焦虑的文章比比皆是。 不少家长看到这可能会问,中国学…

【Linux 进程地址空间】

1.程序地址空间的概率&#xff08;C/C的说法不够准确&#xff09;写一段代码来来证明C/C程序地址空间是按上图分布的&#xff1a;#include<stdio.h> #include<string.h> #include<stdlib.h> int uninit; int init100; int main() {printf("code addr:%p…

Anaconda中安装CUDA版本的PyTorch

Question: GPU是一种擅长处理专业计算的处理器。这与中央处理器&#xff08;CPU&#xff09;形成鲜明对比&#xff0c;中央处理器是一种擅长处理一般计算的处理器。CPU是为我们电子设备上大多数典型计算提供动力的处理器。GPU的计算速度比CPU快得多。但是&#xff0c;情况并非…

经验证短视频账号每天最多发3个视频,超过的不予推荐

经验证短视频账号每天最多发3个视频&#xff0c;超过的不予推荐 前两天我在刷短视频的时候&#xff0c;看到一个博主推荐一天可以发几十个视频&#xff0c;感觉有点不对&#xff0c;决定还是自己试一下。 于是&#xff0c;在死亡边缘疯狂试探了好几天&#xff0c;终于得到想要…

在ESXi系统上安装pve

pve是基于debian的&#xff0c;在ESXi上选择系统时建议选择debian并开启虚拟化一、下载下载&#xff1a;https://www.proxmox.com/en/downloads点进下载网站后选择 Proxmox Virtual Environment-->ISO Images-->Proxmox VE 7.3 ISO Installer 下的download按钮二、安装系…

React组件

React组件1.组件基本介绍2.React创建组件的两种方式2.1 函数组件2.2 类与继承2.2.1 class 基本语法2.2.2 extends 实现继承1.组件基本介绍 组件是React中最基本的内容&#xff0c;使用React就是在使用组件组件表示页面中的部分功能多个组件可以实现完整的页面功能组件特点&…

【无人机路径规划】基于IRM和RRTstar进行无人机路径规划(Matlab代码实现)

&#x1f4a5;&#x1f4a5;&#x1f49e;&#x1f49e;欢迎来到本博客❤️❤️&#x1f4a5;&#x1f4a5; &#x1f3c6;博主优势&#xff1a;&#x1f31e;&#x1f31e;&#x1f31e;博客内容尽量做到思维缜密&#xff0c;逻辑清晰&#xff0c;为了方便读者。 ⛳️座右铭&a…

java后端第二阶段:JavaWeb

一、Mysql 定义&#xff1a;关系型数据库&#xff0c;存储在硬盘数据安全。 1.SQL通用语法 注释&#xff1a; 单行注释 -- 注释内容 或 #注释内容&#xff08;MySQL特有&#xff09; 多行注释 /* 注释 */ DDL&#xff1a;操作数据库&#xff0c;表等 DML&#xff1…

PCB设计如何防止阻焊漏开窗

PCB的阻焊层&#xff08;solder mask&#xff09;&#xff0c;是指印刷电路板子上要上绿油的部分。阻焊开窗的位置是不上油墨的&#xff0c;露出来的铜做表面处理后焊接元器件的位置&#xff0c;不开窗的位置都是印上油墨的防止线路氧化、漏电。 PCB阻焊层开窗的三个原因 1.孔…

【架构设计】如何让你的应用做到高内聚、低耦合?

前言 最近review公司的代码&#xff0c;发现代码耦合程度特别高&#xff0c;修改一处&#xff0c;不知不觉就把其他地方影响到了&#xff0c;这就让我思考该如何让我们写的代码足够内聚&#xff0c;减少耦合呢&#xff1f; "高内聚、松耦合"是一个非常重要的设计思…

Idea插件之日志管理神器(Grep Console)

1.简介Grep Console是一款方便开发者对idea控制台输出日志进行个性化管理的插件。2.功能特性Grep Console的主要功能特性&#xff1a;支持自定义规则来过滤日志信息&#xff1b;支持不同级别的日志的输出样式的个性化配置&#xff1b;总结&#xff1a;通过过滤功能、输出日志样…