Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to calculate the total manual testing cost.
Testing Fundamentals
manual_cost = test_cases * [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'automation_cost' instead of 'time_per_test'.
Using 'defect_rate' which is unrelated to time calculation.
✗ Incorrect
The total manual testing cost is the number of test cases multiplied by the time taken per test.
2fill in blank
mediumComplete the code to calculate the total automation cost.
Testing Fundamentals
automation_total = [1] + maintenance_cost Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'manual_cost' instead of 'automation_cost'.
Using 'test_cases' which is unrelated here.
✗ Incorrect
The total automation cost includes the initial automation cost plus maintenance cost.
3fill in blank
hardFix the error in the ROI calculation formula.
Testing Fundamentals
roi = (manual_cost - [1]) / manual_cost * 100
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Subtracting maintenance_cost instead of automation_cost.
Dividing by automation_cost instead of manual_cost.
✗ Incorrect
ROI is calculated by subtracting automation cost from manual cost, then dividing by manual cost.
4fill in blank
hardFill both blanks to calculate the payback period in months.
Testing Fundamentals
payback_period = [1] / [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using manual_cost instead of automation_cost in numerator.
Using maintenance_cost instead of monthly_savings in denominator.
✗ Incorrect
The payback period is the automation cost divided by monthly savings from automation.
5fill in blank
hardFill all three blanks to create a dictionary summarizing ROI details.
Testing Fundamentals
roi_summary = {"ROI": [1], "Payback": [2], "Cost": [3] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using manual_cost instead of automation_cost for 'Cost'.
Mixing payback_period and roi values.
✗ Incorrect
The dictionary holds ROI, payback period, and automation cost values for summary.