1. ## Testing Technique

Hello every1,

Can any one tell me what technique one would use for validating a phone no. field. This was asked in one of the interviews &amp; the requirments were as follows
- the field should accept only 13 characters
- the first 3 characters should be +91 &amp; then the num.

2. ## Re: Testing Technique

I guess that they are after boundary value analysis, so you design your test cases based on the boundary values given.

For example you would test:
- no chars
- 12 chars
- 13 chars
- 14 chars

etc

3. ## Re: Testing Technique

And testing with characters numbers and special characters

4. ## Re: Testing Technique

Hi Prashant,

The question asked for techniques, not actual tests, so what technique would cover the tests you have listed above?

5. ## Re: Testing Technique

Thanks 4 de responses guys, but i m still confused.
we can use BVA if there is proper range, but in this case there is no proper range as the number should start with +91. can we use Keyword driven testing,if yes please explain
regards,
Amarrr

6. ## Re: Testing Technique

Keyword driven testing is not a technique for testing. It is an implementation of automated testing.

7. ## Re: Testing Technique

I am not sure why you think you can not use boundary testing? The question is below:

- the field should accept only 13 characters
- the first 3 characters should be +91 &amp; then the num

If you just wanted to test only the first statement you would test along the lines of:
- zero
- 12 chars
- 13 chars
- 14 chars

Just because the chars have to start with +91 does not change that, in fact it adds more boundarys. So you would test
- blank
- + (with 12 chars after)
- +9 (with 11 chars after)
- +91 (with 9 chars after)
- +91 (with 10 chars after)
- +91 (with 11 chars after)
- etc

(these are obviously just the starting point)

Does that make sense?

8. ## Re: Testing Technique

Here are some good tests that explains why boundary values are not just about integer values:

http://www.testinggeek.com/onofftest.asp http://www.testinggeek.com/boundaryTest.asp

9. ## Re: Testing Technique

Hey that was useful Richard.
Thanks a Ton

10. ## Re: Testing Technique

In my interview I was asked to test 2 text fields that accept characters from 0-9 in 3 tries. There sum is shown in another text field.

Page 1 of 2 12 Last

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.