Question
Create an excel that contains 2 columns and, each columns have 20 different rows with random float numbers. A) Create a simple test platform with
Create an excel that contains 2 columns and, each columns have 20 different rows with random float numbers.
A) Create a simple test platform with pytest.
B) Create a PDFCreator class inside a seperate python file that takes 2 array input for line charts , and 4 input for line charts thresholds (Minimum and maximum limits)
C) Create one test case inside pytest. Pytest test case should be able to run with pytest command. (python -m pytest .)
D) Read the excel sheet inside the testcase. Check for each row values are within the pre-determined min/max ranges.
E) Test case should fail if values are not within the thresholds.
D) End of the test case execution, imported class PDFCreator should export one pdf file with 2 visualized graphs with threshold horizontal lines.
Note that : For visualization, matplotlib or seaborn libraries can be used.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started