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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!