0
0
Testing Fundamentalstesting~10 mins

Continuous Delivery 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 the main goal of Continuous Delivery testing.

Testing Fundamentals
def continuous_delivery_goal():
    return "[1]"
Drag options to blanks, or click blank then click option'
ADeliver software changes quickly and safely
BWrite only manual tests
CAvoid automation
DDelay releases for months
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing options that suggest avoiding automation or delaying releases.
2fill in blank
medium

Complete the code to identify the type of tests most important in Continuous Delivery pipelines.

Testing Fundamentals
important_tests = "[1]"
Drag options to blanks, or click blank then click option'
AAutomated unit and integration tests
BOnly performance tests
CManual exploratory tests
DAd-hoc tests
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting manual or ad-hoc tests which slow down the pipeline.
3fill in blank
hard

Fix the error in the test automation step to correctly trigger tests in the pipeline.

Testing Fundamentals
def run_tests():
    if not [1]:
        print("Tests failed")
    else:
        print("Tests passed")
Drag options to blanks, or click blank then click option'
Atests_failed()
Btests_running()
Ctests_skipped()
Dtests_passed()
Attempts:
3 left
💡 Hint
Common Mistakes
Using tests_failed() which might not exist or invert logic incorrectly.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps test names to their pass status, filtering only passed tests.

Testing Fundamentals
passed_tests = {test[1]: status for test, status in test_results.items() if status [2] True}
Drag options to blanks, or click blank then click option'
A.upper()
B==
C!=
D.lower()
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' in the filter condition.
Not applying a string method to test names.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps test names in lowercase to their duration, filtering tests longer than 5 seconds.

Testing Fundamentals
long_tests = {test[1]: duration for test, duration in test_durations.items() if duration [2] 5 and test[3]
Drag options to blanks, or click blank then click option'
A.lower()
B>
Cisalpha()
D.upper()
Attempts:
3 left
💡 Hint
Common Mistakes
Using '.upper()' instead of '.lower()' for test names.
Using '<' instead of '>' for duration comparison.