connection.feature 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Feature: Connection
  2. Connecting to a jabber server
  3. Scenario: connect to jabber server
  4. Given Test connection adapter
  5. And Test response data for non-TLS
  6. When connecting
  7. Then should be connected
  8. And Stream start should be send
  9. When disconnecting
  10. Then Stream end should be send
  11. And should be disconnected
  12. Scenario: connect to jabber server with TLS support
  13. Given Test connection adapter
  14. And Test response data for TLS
  15. When connecting
  16. Then Starttls should be send
  17. And Stream start should be send 2 times
  18. Scenario: server closes connection
  19. Given Test connection adapter
  20. And Test response data for disconnect
  21. When connecting
  22. Then Stream end should be send
  23. And should be disconnected
  24. Scenario: a timeout is reached when connecting
  25. Given Socket connection adapter with address tcp://localhost:1234
  26. And timeout is set to 1 seconds
  27. And exceptions are catched when connecting
  28. When connecting
  29. Then socket exception should have been thrown
  30. Scenario: a timeout is reached while connected
  31. Given Test connection adapter
  32. And timeout is set to 1 seconds
  33. And exceptions are catched when connecting
  34. When connecting
  35. Then timeout exception should have been thrown