From the course: Scripting for Testers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Simple test report webpage - Python Tutorial
From the course: Scripting for Testers
Solution: Simple test report webpage
- [Instructor] So, this challenge was pretty tough, so hopefully you were able to figure it out. If you did, congratulations. If you ended up getting stuck, don't worry about it too much. This was a complicated example, pulling together almost everything that we've learned so far. Getting stuck is part of the learning process. If you stick with it, you'll only find that it gets easier and easier to figure things out. So, let's just take a minute to walk through my solution to see how I solve this. So, the first thing that we needed to do was to read in the data from the spreadsheet. We can do that, of course, using the get all values command. So, here we have sheet.get_all_values. And, that reads the data into our spreadsheet data. Now, so since we weren't interested in the first two columns of the spreadsheet, we can just delete them from the data. So, we'll loop over our spreadsheet data, and we'll delete row zero and row one, to delete the first two columns, and then we'll add that…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Gathering data9m 14s
-
Using Google Chart API6m 17s
-
(Locked)
Challenge: Create column chart1m 20s
-
(Locked)
Solution: Create column chart4m 12s
-
(Locked)
Create a Google Sheets service account3m 27s
-
(Locked)
Using Google Sheets API8m 26s
-
(Locked)
Challenge: Simple test report webpage4m 38s
-
(Locked)
Solution: Simple test report webpage5m 26s
-
(Locked)
-
-
-