-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] New Test:: Testing start EVM command #9782
[1LP][RFR] New Test:: Testing start EVM command #9782
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.
One question otherwise LGTM :)
wait_for(lambda: appliance.is_web_ui_running(), delay=30, num_sec=10) | ||
logged_in_page = appliance.server.login() | ||
assert logged_in_page.is_displayed, "UI is not working after starting the EVM service." | ||
logged_in_page.logout() | ||
|
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.
@dgaikwad
If assertion gets failed then this line(logged_in_page.logout()
) will not execute. So is it okay if we add this in request.addfinalizer
above the assertion. Thus it will act as teardown for this test case.
ac529eb
to
8d8de9e
Compare
8d8de9e
to
31c7713
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.
Travis-CI is failing. Please have a look :)
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.
Nice PR 👍
appliance.appliance_console.run_commands(start_evm_command, timeout=300) | ||
wait_for(lambda: appliance.is_web_ui_running(), delay=30, num_sec=10) | ||
logged_in_page = appliance.server.login() | ||
request.addfinalizer(logged_in_page.logout) |
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 would use appliance.server.logout
31c7713
to
9f95aef
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.
Thanks for PR 👍
Purpose or Intent
PRT Run