Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Visualize Test Status Distribution | Analyzing and Visualizing Test Data
Python for QA Engineers

bookChallenge: 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.

Tarea

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_statuses list.
  • 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.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 5
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

Suggested prompts:

What data should I use for the test statuses in the pie chart?

Can you guide me on how to create a pie chart for this scenario?

What tools or libraries do you recommend for making the pie chart?

close

bookChallenge: Visualize Test Status Distribution

Desliza para mostrar el menú

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.

Tarea

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_statuses list.
  • 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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 5
single

single

some-alt