Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Visualize Test Suite Outcomes | System Interaction and Test Automation
Python for Automation Engineers

bookChallenge: Visualize Test Suite Outcomes

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 7
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you give me an example?

close

bookChallenge: Visualize Test Suite Outcomes

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 7
single

single

some-alt