0
0
Testing Fundamentalstesting~10 mins

Why testing approaches guide strategy in Testing Fundamentals - Test Your Understanding

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

Complete the code to print the main testing approach used.

Testing Fundamentals
testing_approach = '[1]'
print(f"Current testing approach: {testing_approach}")
Drag options to blanks, or click blank then click option'
AUnit
BPerformance
CExploratory
DSecurity
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing an approach that tests the whole system instead of parts.
2fill in blank
medium

Complete the code to check if the testing strategy includes automation.

Testing Fundamentals
strategy = 'manual'
if strategy == '[1]':
    print('Automation is part of the strategy')
else:
    print('Manual testing only')
Drag options to blanks, or click blank then click option'
Aexploratory
Bsecurity
Cperformance
Dautomation
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'manual' which is the opposite of automation.
3fill in blank
hard

Fix the error in the code that decides the testing approach based on input.

Testing Fundamentals
def choose_approach(input):
    if input == '[1]':
        return 'Exploratory Testing'
    else:
        return 'Other Testing'

print(choose_approach('exploratory'))
Drag options to blanks, or click blank then click option'
Aexploratory
BEXPLORATORY
CExploratory
Dexplore
Attempts:
3 left
💡 Hint
Common Mistakes
Using capitalized or uppercase strings that don't match input.
4fill in blank
hard

Fill both blanks to create a test plan dictionary with approach and priority.

Testing Fundamentals
test_plan = {
    'approach': '[1]',
    'priority': '[2]'
}
Drag options to blanks, or click blank then click option'
ARisk-based
BLow
CHigh
DExploratory
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing approach and priority values.
5fill in blank
hard

Fill all three blanks to create a function that returns a testing strategy summary.

Testing Fundamentals
def strategy_summary(approach, level, focus):
    return {
        'approach': [1],
        'level': [2],
        'focus': [3]
    }

summary = strategy_summary('Exploratory', 'Medium', 'User Experience')
print(summary)
Drag options to blanks, or click blank then click option'
Aapproach
Blevel
Cfocus
DExploratory
Attempts:
3 left
💡 Hint
Common Mistakes
Using keys as values or vice versa.