-
Notifications
You must be signed in to change notification settings - Fork 165
[RFR] Automate test_utilization_utilization_graphs #10194
Conversation
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.
Could you help me understand why the candu_db_restore fixture can't be used as is ?
It's being used by other tests. Since you've updated the fixture, all the tests that use the fixture would have to be updated as well.
@nachandr Here in fixture |
a918c47
to
46df4b7
Compare
3. Verify that all graphs shows correctly | ||
""" | ||
view = navigate_to(entity, "UtilTrendSummary") | ||
|
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.
Since entity
is set up on the temporary appliance, the test should run navigate_to
and the view
methods within a with temp_appliance_extended_db
context block so that the browser actually points to the temp appliance.
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.
Yes, it will make more sense, and this will make execution faster, as for every entity it was refreshing a browser for pointing to a temp_appliance again, thanks @tpapaioa :)
0e0b308
to
6deca5a
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.
Please move this fixture to cfme/fixtures/candu.py .
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.
@nachandr DONE
assert view.details.disk_chart.is_displayed | ||
assert view.report.disk_table.is_displayed | ||
assert view.report.cpu_table.is_displayed | ||
assert view.report.memory_table.is_displayed |
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.
1)Please move this test to a new file in the tests/candu folder.
2)I would add a comment staing that this test automates the testing of the Overview->Utilization tab .
3)I would also rename the test to something like : test_utilization_trend()
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.
Thanks @nachandr , Done :)
ff416d8
to
702ce81
Compare
Signed-off-by: Gaurav Talreja <[email protected]>
702ce81
to
09b9583
Compare
I detected some fixture changes in commit 09b9583 The global fixture
The global fixture
Please, consider creating a PRT run to make sure your fixture changes do not break existing usage 😃 |
Signed-off-by: Gaurav Talreja [email protected]
Purpose or Intent
PRT Run
{{ pytest: cfme/tests/candu/test_utilization.py::test_utilization_trends --long-running }}