@maaretp http://maaretp.com
How Would You Test
a Text Field
by Maaret Pyhäjärvi
@maaretp http://maaretp.com
Situation:You are in a real job interview for a QE/
SQE/Tester position and they ask you following
question. Do not use several minutes to think the
answer, instead try to answer as you would answer
in real interview situation (start answering in some
10-20 seconds).You can spend longer in writing the
answer, but don't change the answer anymore.
@maaretp http://maaretp.com
How WouldYou Test
a Text Field?
@maaretp http://maaretp.com
This_box Text Field
@maaretp http://maaretp.com
Junior tester or not a tester
Category definition:They know little or nothing about testing
Example answer types:
•  Would give less that 5 type of inputs: e.g. only characters, numbers and funny
character like "%&$
•  Would assume that this is a unit test
•  Would test it Automatically (and nothing else is said)
•  Would talk about hardware requirements
•  Would separate test design and executions as own tasks and even to dedicated
people
•  Would think this is really big task and requires several people to do it
•  Would think that text field is only for showing the text (not looking like field on
screen)
@maaretp http://maaretp.com
Tester / QE with functional testing
experience
Category definition: They can quickly list basic things that need to be
covered, but stop there and They can follow given tasks and
requirements, but don't really search for all the facts
Example answer types:
Lists 5 or more things from following testing
ideas:
alphabetic + number; special characters;
double-byte characters
fill up the field
try to copy/paste to and from the field
character limit
correct character's shown
erasing text
does text fit to the field
leave blank?
line change with Enter?
HTML
SQL
Lists 5 from above and then starts talking about
processes (which this question was not about) like:
Returning things to developers
Entering bugs
Retesting after developer has fixed the bugs
@maaretp http://maaretp.com
Excellent functional tester / close to
real senior QE
Category definition: They can come up with huge amount of different
ideas that would need to be tested, and they realize that there isn't
necessarily time to do it AND They at some point notice that they
actually want to know what this text field is?
Example answer types:
Instead of just listing the things in above category
also understands things like:
equivalence classes, boundary tests, positive and
negative testing, fractions, ...
finding requirements and limitations
is there time/value/reason to test it more?
different testing levels (e.g. for unit testing they
would need to see the code)
Security testing (e.g. SQL injections, XSS, ...)
Very long answers (almost like a book) that covers
everything (well good that you know that, but there is
shorter and better answer there)
Answer includes talking to developers, product owners,
customers, ...
In addition to one or more of the 3 above, they at some
point noticed that they actually need to figure out what this
text field is all about
@maaretp http://maaretp.com
The real senior QE
Category definition: They answer back with questions and they
can question everything first: ideas, requirements, business needs,
assumptions, …
Example answer types:
•  What is this text field about?
•  My first thought would be "With the information given - in no way".
But as this wouldn't be a very polite answer, I would start asking for
more information about the context
@maaretp http://maaretp.com
This_box Text Field
http://maaretp.com/TestThisBox.html
@maaretp http://maaretp.com
https://github.com/minimaxir/big-list-of-naughty-strings
Google: Naughty Strings Github
for one useful tool
@maaretp http://maaretp.com
This_box Text Field
Text Field without Functionality
@maaretp http://maaretp.com
DFEditor Text Field
http://darkfunction.com/editor/
@maaretp http://maaretp.com
DFEditor Text Field
Text Field in product context through UI
and filesystem
@maaretp http://maaretp.com
Gilded Rose Text Field
https://github.com/emilybache/GildedRose-Refactoring-Kata/
@maaretp http://maaretp.com
Gilded Rose Text Field
Text Field in code context through API
with automation
@maaretp http://maaretp.com
Text Analytics Text Field
https://azure.microsoft.com/en-us/services/cognitive-services/text-analytics/
@maaretp http://maaretp.com
Text Analytics Text Field
Text Field that is more than a text field
with machine learning functionality
@maaretp http://maaretp.com
Summary
QA = question asker
Test around your assumptions
More interfaces than what
meets the eye
@maaretp http://maaretp.com
Maaret Pyhäjärvi
Email: maaret@iki.fi
Twitter: @maaretp
Web: maaretp.com
Blog: visible-quality.blogspot.fi
(please connect with me through
Twitter or LinkedIn)

CraftConf: How Would You Test a Test Field?

  • 1.
    @maaretp http://maaretp.com How WouldYou Test a Text Field by Maaret Pyhäjärvi
  • 2.
    @maaretp http://maaretp.com Situation:You arein a real job interview for a QE/ SQE/Tester position and they ask you following question. Do not use several minutes to think the answer, instead try to answer as you would answer in real interview situation (start answering in some 10-20 seconds).You can spend longer in writing the answer, but don't change the answer anymore.
  • 3.
  • 4.
  • 5.
    @maaretp http://maaretp.com Junior testeror not a tester Category definition:They know little or nothing about testing Example answer types: •  Would give less that 5 type of inputs: e.g. only characters, numbers and funny character like "%&$ •  Would assume that this is a unit test •  Would test it Automatically (and nothing else is said) •  Would talk about hardware requirements •  Would separate test design and executions as own tasks and even to dedicated people •  Would think this is really big task and requires several people to do it •  Would think that text field is only for showing the text (not looking like field on screen)
  • 6.
    @maaretp http://maaretp.com Tester /QE with functional testing experience Category definition: They can quickly list basic things that need to be covered, but stop there and They can follow given tasks and requirements, but don't really search for all the facts Example answer types: Lists 5 or more things from following testing ideas: alphabetic + number; special characters; double-byte characters fill up the field try to copy/paste to and from the field character limit correct character's shown erasing text does text fit to the field leave blank? line change with Enter? HTML SQL Lists 5 from above and then starts talking about processes (which this question was not about) like: Returning things to developers Entering bugs Retesting after developer has fixed the bugs
  • 7.
    @maaretp http://maaretp.com Excellent functionaltester / close to real senior QE Category definition: They can come up with huge amount of different ideas that would need to be tested, and they realize that there isn't necessarily time to do it AND They at some point notice that they actually want to know what this text field is? Example answer types: Instead of just listing the things in above category also understands things like: equivalence classes, boundary tests, positive and negative testing, fractions, ... finding requirements and limitations is there time/value/reason to test it more? different testing levels (e.g. for unit testing they would need to see the code) Security testing (e.g. SQL injections, XSS, ...) Very long answers (almost like a book) that covers everything (well good that you know that, but there is shorter and better answer there) Answer includes talking to developers, product owners, customers, ... In addition to one or more of the 3 above, they at some point noticed that they actually need to figure out what this text field is all about
  • 8.
    @maaretp http://maaretp.com The realsenior QE Category definition: They answer back with questions and they can question everything first: ideas, requirements, business needs, assumptions, … Example answer types: •  What is this text field about? •  My first thought would be "With the information given - in no way". But as this wouldn't be a very polite answer, I would start asking for more information about the context
  • 9.
    @maaretp http://maaretp.com This_box TextField http://maaretp.com/TestThisBox.html
  • 10.
  • 11.
    @maaretp http://maaretp.com This_box TextField Text Field without Functionality
  • 12.
    @maaretp http://maaretp.com DFEditor TextField http://darkfunction.com/editor/
  • 13.
    @maaretp http://maaretp.com DFEditor TextField Text Field in product context through UI and filesystem
  • 14.
    @maaretp http://maaretp.com Gilded RoseText Field https://github.com/emilybache/GildedRose-Refactoring-Kata/
  • 15.
    @maaretp http://maaretp.com Gilded RoseText Field Text Field in code context through API with automation
  • 16.
    @maaretp http://maaretp.com Text AnalyticsText Field https://azure.microsoft.com/en-us/services/cognitive-services/text-analytics/
  • 17.
    @maaretp http://maaretp.com Text AnalyticsText Field Text Field that is more than a text field with machine learning functionality
  • 18.
    @maaretp http://maaretp.com Summary QA =question asker Test around your assumptions More interfaces than what meets the eye
  • 19.
    @maaretp http://maaretp.com Maaret Pyhäjärvi Email:maaret@iki.fi Twitter: @maaretp Web: maaretp.com Blog: visible-quality.blogspot.fi (please connect with me through Twitter or LinkedIn)