qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-416) Connecting the dispatch-console to wrong host displays incomplete error message
Date Thu, 07 Jul 2016 16:47:11 GMT

    [ https://issues.apache.org/jira/browse/DISPATCH-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15366379#comment-15366379
] 

ASF subversion and git services commented on DISPATCH-416:
----------------------------------------------------------

Commit c3c557a913e3fc9060ec07fe6e835a4796eb9cd7 in qpid-dispatch's branch refs/heads/master
from [~eallen]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=c3c557a ]

DISPATCH-416 Cleanup disconnected error message. Also some unrelated css cleanup


> 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
>         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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message