[1LP][RFR] Automate test: Create schedule for base report #7904
Conversation
216c34a
to
88a3d05
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Already we have
Create
method for Schedule - The test should name like
test_base_report_crud
in which you perform create and delete operation.
@digitronik
About the name change, I chose this test name, because a polarion test case with the same name already exists. If you think it's necessary, I'll change the name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions and suggestions.
@@ -264,3 +263,26 @@ def test_reports_delete_saved_report(appliance, request): | |||
view.configuration.item_select( | |||
item='Delete selected Saved Reports', handle_alert=True) | |||
assert not report.exists | |||
|
|||
|
|||
def test_reports_create_schedule_for_base_report_once(appliance, request): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required:
This should be a crud operation.
Please create and delete this scheduled report properly and assert for both
remove finalizer
def step(self): | ||
self.prerequisite_view.reports.tree.click_path( | ||
"All Reports", | ||
self.obj.type or self.obj.company_name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am suspect about these or. are those required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is required to navigate to the details page of the report and then select Add a new Schedule
from the configuration menu.
…dule method for Report entity
060d100
to
0df8a4a
Compare
@digitronik I have added a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hate to say it but I think these views and objects already exist? maybe I missed some nuance between the two?
https://github.com/ManageIQ/integration_tests/blob/master/cfme/intelligence/reports/schedules.py
Hey @mshriver, we have views and objects to create a completely new schedule, but as far as I know, there is no way to create a schedule for an existing report. Take this for example:
Take a look at this. And the test case is similar to But, there is one drawback I hadn't noticed before. The method Let me know what you think. |
This PR adds a test case, which creates a schedule for a base report and asserts the schedule was created without any error.
{{pytest: cfme/tests/intelligence/reports/test_crud.py::test_reports_crud_schedule_for_base_report_once --use-template-cache -sqvvv}}