0
0
Testing Fundamentalstesting~10 mins

Compatibility testing 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 compatibility testing as checking if software works on different {{BLANK_1}}.

Testing Fundamentals
def compatibility_testing():
    '''Check if software works on different [1].'''
    pass
Drag options to blanks, or click blank then click option'
Avariables
Bdatabases
Calgorithms
Dbrowsers
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing technical terms unrelated to platforms like 'algorithms' or 'variables'.
2fill in blank
medium

Complete the code to show compatibility testing includes checking software on different {{BLANK_1}} systems.

Testing Fundamentals
def test_os_compatibility():
    supported_os = ['Windows', 'macOS', 'Linux']
    for os in supported_os:
        print(f'Testing on {os} [1]')
Drag options to blanks, or click blank then click option'
Asystems
Bversion
Chardware
Dnetworks
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing hardware or network with operating systems.
3fill in blank
hard

Fix the error in the compatibility test function by completing the blank with the correct method to check browser compatibility.

Testing Fundamentals
def check_browser_compatibility(browser):
    supported = ['Chrome', 'Firefox', 'Safari']
    if browser [1] supported:
        return True
    else:
        return False
Drag options to blanks, or click blank then click option'
A!=
Bnot in
Cin
D==
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' which compares to the whole list, not membership.
4fill in blank
hard

Fill both blanks to create a compatibility test that runs only if the device is a supported {{BLANK_1}} and the OS version is {{BLANK_2}} or higher.

Testing Fundamentals
def run_compatibility_test(device, os_version):
    supported_devices = ['mobile', 'tablet']
    if device [1] supported_devices and os_version [2] 10:
        return 'Test run'
    else:
        return 'Test skipped'
Drag options to blanks, or click blank then click option'
Ain
B>=
C<
Dnot in
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>=' for version check.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps each browser to a boolean indicating if it is {{BLANK_1}} and its version is {{BLANK_2}} 80 or {{BLANK_3}}.

Testing Fundamentals
browsers = {'Chrome': 90, 'Firefox': 78, 'Safari': 85}
compatibility = {browser: (browser [1] ['Chrome', 'Safari'] and version [2] 80 or version [3] 80) for browser, version in browsers.items()}
Drag options to blanks, or click blank then click option'
Ain
B>=
C==
Dnot in
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'not in' or wrong comparison operators.