Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] New Test:: Testing start EVM command #9782

Merged

Conversation

dgaikwad
Copy link
Contributor

@dgaikwad dgaikwad commented Dec 18, 2019

Purpose or Intent

  • Testing start evm command using remote console and verifying output using API and UI

PRT Run

  • {{pytest: cfme/tests/cli/test_appliance_console.py::test_appliance_console_evm_start -vvvvv}}

@dgaikwad dgaikwad changed the title New Test:: Testing start EVM command [WIPTEST] New Test:: Testing start EVM command Dec 18, 2019
@dgaikwad dgaikwad changed the title [WIPTEST] New Test:: Testing start EVM command [RER] New Test:: Testing start EVM command Dec 18, 2019
@ganeshhubale ganeshhubale added the test-automation To be applied on PR's which are automating existing manual cases label Dec 19, 2019
Copy link
Member

@ganeshhubale ganeshhubale left a 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()

Copy link
Member

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.

@dgaikwad dgaikwad force-pushed the test_appliance_console_evm_start branch 2 times, most recently from ac529eb to 8d8de9e Compare December 19, 2019 10:44
@ganeshhubale ganeshhubale changed the title [RER] New Test:: Testing start EVM command [WIPTEST] New Test:: Testing start EVM command Dec 19, 2019
@dgaikwad dgaikwad force-pushed the test_appliance_console_evm_start branch from 8d8de9e to 31c7713 Compare December 19, 2019 12:14
Copy link
Member

@ganeshhubale ganeshhubale left a 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 :)

@dgaikwad dgaikwad changed the title [WIPTEST] New Test:: Testing start EVM command [RFR] New Test:: Testing start EVM command Dec 24, 2019
@ganeshhubale ganeshhubale changed the title [RFR] New Test:: Testing start EVM command [1LP][RFR] New Test:: Testing start EVM command Dec 24, 2019
Copy link
Contributor

@digitronik digitronik left a 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)
Copy link
Contributor

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

Copy link
Contributor

@digitronik digitronik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for PR 👍

@digitronik digitronik merged commit 92aa330 into ManageIQ:master Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lint-ok test-automation To be applied on PR's which are automating existing manual cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants