You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Danek (JIRA)" <ji...@apache.org> on 2016/06/29 14:59:17 UTC
[jira] [Created] (DISPATCH-416) Connecting the dispatch-console to
wrong host displays incomplete error message
Jiri Danek created DISPATCH-416:
-----------------------------------
Summary: Connecting the dispatch-console to wrong host displays incomplete error message
Key: DISPATCH-416
URL: https://issues.apache.org/jira/browse/DISPATCH-416
Project: Qpid Dispatch
Issue Type: Bug
Components: Console
Affects Versions: 0.6.1
Reporter: Jiri Danek
If I fill a nonsensical value as the Address (and leave Port empty), I get error message 'There was a connection error:' which looks incomplete. If I hit the Connect button again, I get 'There was a connection error: Error: Connection failed' which has too many colons in it, I think.
I wrote the following Webdriver test in Python for this. The following test passes (and I think it should not pass)
{code}
def test_wrong_ip(self, base_url, selenium: webdriver.Remote):
ConnectPage.open(base_url, selenium)
page = ConnectPage(base_url, selenium)
page.connect_to('111222', None)
page.wait_for_frameworks()
# first click displays incomplete message, ends with a colon
error = selenium.find_element(By.CSS_SELECTOR, 'p.ng-binding')
assert error.text == 'There was a connection error:'
assert error.is_displayed()
selenium.get_screenshot_as_file('/home/jdanek/screen_wrong_ip_01.png')
# second click prints complete message, somewhat redundant, too many colons
page.connect.click()
page.wait_for_frameworks()
error = selenium.find_element(By.CSS_SELECTOR, 'p.ng-binding')
assert error.text == 'There was a connection error: Error: Connection failed'
assert error.is_displayed()
selenium.get_screenshot_as_file('/home/jdanek/screen_wrong_ip_02.png')
{code}
Screenshots are attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org