Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Visualize Test Suite Outcomes | System Interaction and Test Automation
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Automation Engineers

bookChallenge: Visualize Test Suite Outcomes

Oppgave

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.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 7
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

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

Sveip for å vise menyen

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 7
single

single

some-alt