Challenge: Visualize Test Status Distribution
In QA engineering, visual summaries such as charts are powerful tools for quickly communicating the outcomes of test executions to both technical and non-technical stakeholders. Pie charts, in particular, are effective for illustrating the proportion of passed and failed tests, making it easy to spot issues at a glance and prioritize further investigation. In this challenge, you will practice your data visualization skills by creating a pie chart that displays the distribution of test statuses from a static list.
Swipe to start coding
Create a function that generates a pie chart visualizing the distribution of test statuses from a hardcoded list. The goal is to provide a clear summary of passed and failed test proportions.
- Count the number of "passed" and "failed" values in the
test_statuseslist. - Generate a pie chart using
matplotlib.pyplot.pie, with labels for "Passed" and "Failed". - Use different colors for each status.
- Display the percentage of each status on the chart.
- Set the chart title to "Test Status Distribution".
- Ensure the chart is displayed with equal aspect ratio.
Oplossing
Bedankt voor je feedback!
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 4.76
Challenge: Visualize Test Status Distribution
Veeg om het menu te tonen
In QA engineering, visual summaries such as charts are powerful tools for quickly communicating the outcomes of test executions to both technical and non-technical stakeholders. Pie charts, in particular, are effective for illustrating the proportion of passed and failed tests, making it easy to spot issues at a glance and prioritize further investigation. In this challenge, you will practice your data visualization skills by creating a pie chart that displays the distribution of test statuses from a static list.
Swipe to start coding
Create a function that generates a pie chart visualizing the distribution of test statuses from a hardcoded list. The goal is to provide a clear summary of passed and failed test proportions.
- Count the number of "passed" and "failed" values in the
test_statuseslist. - Generate a pie chart using
matplotlib.pyplot.pie, with labels for "Passed" and "Failed". - Use different colors for each status.
- Display the percentage of each status on the chart.
- Set the chart title to "Test Status Distribution".
- Ensure the chart is displayed with equal aspect ratio.
Oplossing
Bedankt voor je feedback!
single