From the course: Advanced Scripting for Testers: Local Data, Spreadsheets, and Reporting

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Challenge: Creating an HTML report

Challenge: Creating an HTML report

(upbeat music) - You've seen how to use Jinja templating to automate the creating of static webpages. Now it's your turn to try it out on your own. I have this simple starting file here that you can get from the exercise files for this course, and it will generate a list of test cases using some kind of pseudo-random data. And I want you to use this list of test cases here and create a chart for it. So what I want you to do is create a pie chart that has the following slices on it. So it should have an automated passes, manual passes, automated failures, manual failures, and then combined all together for the skipped. So what I want you to do is first create a template file. You know, you create one of those HDL template files that we've been working with, and then use Jinja to populate the data that you get from here into that template. And you can figure out the data for your automated passes and failures and so on by looking at this. You're going to have true or false for…

Contents