0
0
Testing Fundamentalstesting~10 mins

Boundary value analysis in Testing Fundamentals - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the minimum boundary value for testing.

Testing Fundamentals
min_value = [1]
Drag options to blanks, or click blank then click option'
A1
B0
C-1
D100
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 0 which might be invalid for this test case.
Choosing a negative number when only positive inputs are valid.
2fill in blank
medium

Complete the code to define the maximum boundary value for testing.

Testing Fundamentals
max_value = [1]
Drag options to blanks, or click blank then click option'
A99
B100
C101
D50
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 101 which is outside the valid range.
Choosing 99 which is just below the maximum boundary.
3fill in blank
hard

Fix the error in the test case that checks the value just below the minimum boundary.

Testing Fundamentals
test_value = [1]
Drag options to blanks, or click blank then click option'
A0
B1
C-1
D2
Attempts:
3 left
💡 Hint
Common Mistakes
Using -1 which might be out of expected input domain.
Using 1 which is the minimum boundary, not below it.
4fill in blank
hard

Fill both blanks to create a test case dictionary with boundary values and their expected results.

Testing Fundamentals
test_cases = [1]: [2]
Drag options to blanks, or click blank then click option'
A{'min': 1, 'max': 100}
B{'min': 0, 'max': 101}
C{'pass', 'fail'}
D{'valid', 'invalid'}
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing keys and values incorrectly.
Using invalid boundary values in the keys.
5fill in blank
hard

Fill all three blanks to complete the function that returns True if input is within boundary values.

Testing Fundamentals
def is_within_boundary(value):
    return [1] <= value [2] [3]
Drag options to blanks, or click blank then click option'
A1
B<=
C100
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' instead of '<=' for the upper boundary.
Swapping the boundary values.