Challenge: Visualize Test Suite Outcomes
Task
Swipe to start coding
You are given a dictionary containing test names as keys and their outcomes ("passed" or "failed") as values. Your goal is to analyze and visualize the results using a bar chart. This exercise builds on your understanding of reporting and visualization for automation.
- Count how many tests have the outcome "passed".
- Count how many tests have the outcome "failed".
- Plot a bar chart with the counts for "Passed" and "Failed".
- Label the x-axis as "Test Outcome" and the y-axis as "Number of Tests".
- Add the title "Test Suite Outcomes" to the chart.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 7
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.76
Challenge: Visualize Test Suite Outcomes
Swipe to show menu
Task
Swipe to start coding
You are given a dictionary containing test names as keys and their outcomes ("passed" or "failed") as values. Your goal is to analyze and visualize the results using a bar chart. This exercise builds on your understanding of reporting and visualization for automation.
- Count how many tests have the outcome "passed".
- Count how many tests have the outcome "failed".
- Plot a bar chart with the counts for "Passed" and "Failed".
- Label the x-axis as "Test Outcome" and the y-axis as "Number of Tests".
- Add the title "Test Suite Outcomes" to the chart.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 7
single