0
0
Testing Fundamentalstesting~10 mins

Root cause 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 identify the initial step in root cause analysis.

Testing Fundamentals
def root_cause_analysis(issue):
    # Step 1: [1] the problem clearly
    problem_statement = issue
    return problem_statement
Drag options to blanks, or click blank then click option'
Aignore
Bdefine
Cdelay
Dguess
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to fix the problem before understanding it.
Ignoring the problem or guessing the cause.
2fill in blank
medium

Complete the code to perform the next step: gathering information.

Testing Fundamentals
def root_cause_analysis(issue):
    problem = issue
    # Step 2: [1] data related to the problem
    data = collect_data(problem)
    return data
Drag options to blanks, or click blank then click option'
Ahide
Bignore
Cdelete
Dcollect
Attempts:
3 left
💡 Hint
Common Mistakes
Skipping data collection.
Deleting or ignoring important information.
3fill in blank
hard

Fix the error in the code to analyze causes correctly.

Testing Fundamentals
def analyze_causes(data):
    # Identify possible causes
    causes = []
    for item in data:
        if item == [1]:
            causes.append(item)
    return causes
Drag options to blanks, or click blank then click option'
ANone
BTrue
C0
DFalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using True or False instead of None.
Using 0 which is a number, not a missing value.
4fill in blank
hard

Fill both blanks to filter and report root causes.

Testing Fundamentals
def report_root_causes(causes):
    # Filter causes that are [1] and report them
    filtered = [c for c in causes if c [2] 'critical']
    return filtered
Drag options to blanks, or click blank then click option'
Acritical
B==
C!=
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '=='.
Using '>' which is not valid for strings here.
5fill in blank
hard

Fill all three blanks to create a summary report dictionary.

Testing Fundamentals
def summary_report(causes):
    report = [1]  # create dictionary
    for cause in causes:
        report[cause.[2]()] = cause.[3]()
    return report
Drag options to blanks, or click blank then click option'
A{}
Bget_name
Cget_severity
D[]
Attempts:
3 left
💡 Hint
Common Mistakes
Using list brackets [] instead of dictionary {}.
Mixing up method names for keys and values.