[
https://issues.apache.org/jira/browse/DISPATCH-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15401344#comment-15401344
]
Jiri Danek edited comment on DISPATCH-416 at 7/31/16 8:42 PM:
--------------------------------------------------------------
Works for me in IE10 and latest Firefox and Chrome
was (Author: jdanek):
Works for me in IE10 and latest Firefox and Crome
> 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
> Assignee: Ernest Allen
> Fix For: 0.7.0
>
> Attachments: screen_wrong_ip_01.png, screen_wrong_ip_02.png
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]