[Define]
SERVER talk.google.com
USERNAME nokiaprima@gmail.com
PASSWORD nokianokia
RECIPIENT donna.prima@gmail.com
MESSAGE Hello
RESOURCE mytesds5rt123
UnexistGizmoJID testlmnokia1111@chat.gizmoproject.com
UnexistGTalkJID abcd123_mk@gmail.com
OnlyDomainofJID @gmail.com
BadGizmoDomain prima@chat.gizmoooproject.com
BadGtalkDomain nokiaprima@gmaiiil.com
badpassword 12345
badserver talk.goo456gly.com
SpecialUSERNAME im:here%27s_a_wild_%26_%2Fcr%zy%2F_address@gmail.com
LONGUSERNAME im:here%27s_a_wild_%26_%2Fr%zy%2F_address_here%27s_a_wild_%26_%2Fcr%zy%2F_address_here%27s_a_wild_%26_%2Fcr%zy%2F_address@gmail.com
LONGMESSAGE HelloworldHelloworldHelloworldHelloworldHelloworldHelloworldHelloworldHelloworldHelloworlsfsdfdgdfgdfgdfgdfgdf
REPEATEDMESSAGE RepeatingHello
SMILEYMESSAGE :):-);-):-D:D:-(:(
GIZMOCONTACT harsh_rakesh@chat.gizmoproject.com
LONGPASSWORD thisisawrongpasswordandthetestcaseshouldnotfail
SPECIALMESSAGE hello&*&*^#^*)%)@$)*@)(*%%(*!^%@^#%
EMPTYCONTACT Emptycontact@gmail.com
EMPTYPASSWORD testtesttest
EMPTYDOMAIN nokiaprima
LONGGMAILUSERID abcd123456abcd123456abcd123456@gmail.com
GMAILPWD nokia123
UsernameWithBadServer prima@talk.goo456gly.com
PROXY_SERVER 172.16.42.135
PROXY_PORT 8080
[Enddefine]
[Test]
title 1. lm_connection_new
create tstlm LmObj
LmObj lm_connection_new SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 2. lm_connection_send
create tstlm LmObj
LmObj lm_connection_send SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 3. lm_fetching_contactlist
create tstlm LmObj
LmObj lm_fetching_contactlist SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 4. lm_fetching_presence
create tstlm LmObj
LmObj lm_fetching_presence SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 5. lm_connection_new_with_context
create tstlm LmObj
LmObj lm_new_with_context
delete LmObj
[Endtest]
[Test]
title 6. lm_connection_open
create tstlm LmObj
LmObj lm_connection_open SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 7. lm_connection_closeWhenNotOpen
create tstlm LmObj
LmObj lm_connection_closeWhenNotOpen SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 8. lm_connection_authenticate
create tstlm LmObj
LmObj lm_authenticate SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 9. lm_connection_is_open
create tstlm LmObj
LmObj lm_connection_is_open SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 10. lm_connection_authenticate_withbadpassword
create tstlm LmObj
LmObj lm_authenticate_badpassword SERVER USERNAME badpassword RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 11. lm_connection_authenticate when connection is closed
create tstlm LmObj
LmObj lm_authenticate_connectionisnotcreated SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 12. lm_connection_is_open_WhenConnectionIsClosed
create tstlm LmObj
LmObj lm_connection_is_open_WhenConnectionIsClosed SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 13. lm_connection_close
create tstlm LmObj
LmObj lm_connection_close SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 14. lm_connection_is_authenticated
create tstlm LmObj
LmObj lm_is_authenticated SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 15. lm_connection_is_authenticated_WhenNot_Authenticated
create tstlm LmObj
LmObj lm_connection_is_authenticated_WhenNot_Authenticated SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 16. lm_connection_set_get_server
create tstlm LmObj
LmObj lm_connection_set_get_server SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 17. lm_connection_set_get_port
create tstlm LmObj
LmObj lm_connection_set_get_port
delete LmObj
[Endtest]
[Test]
title 18. lm_connection_set_get_ssl
create tstlm LmObj
LmObj lm_connection_set_get_ssl
delete LmObj
[Endtest]
[Test]
title 19. lm_connection_set_get_proxy
create tstlm LmObj
LmObj lm_connection_set_get_proxy
delete LmObj
[Endtest]
[Test]
title 20. lm_connection_set_get_jid
create tstlm LmObj
LmObj lm_connection_set_get_jid SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 21. lm_connection_set_jid_WithNull
create tstlm LmObj
LmObj lm_connection_set_jid_WithNull SERVER \0 PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 22. lm_connection_set_port_WithNULL
create tstlm LmObj
LmObj lm_connection_set_port_WithNULL
delete LmObj
[Endtest]
[Test]
title 23. lm_connection_set_server_withNULL
create tstlm LmObj
LmObj lm_connection_set_server_withNULL \0 USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 24. lm_connection_set_disconnect_function
create tstlm LmObj
LmObj set_disconnect_function SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 25. lm_connection_send_with_reply
create tstlm LmObj
LmObj lm_send_with_reply SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 26. lm_proxy_set_get_port
create tstlm LmObj
LmObj lm_proxy_set_get_port
delete LmObj
[Endtest]
[Test]
title 27. lm_proxy_set_get_type
create tstlm LmObj
LmObj lm_proxy_set_get_type
delete LmObj
[Endtest]
[Test]
title 28. lm_proxy_set_get_server
create tstlm LmObj
LmObj lm_proxy_set_get_server
delete LmObj
[Endtest]
[Test]
title 29. lm_proxy_set_get_username
create tstlm LmObj
LmObj lm_proxy_set_get_username
delete LmObj
[Endtest]
[Test]
title 30. lm_proxy_set_get_password
create tstlm LmObj
LmObj lm_proxy_set_get_password
delete LmObj
[Endtest]
[Test]
title 31. lm_proxy_new
create tstlm LmObj
LmObj lm_proxy_new
delete LmObj
[Endtest]
[Test]
title 32. lm_proxy_new_with_server
create tstlm LmObj
LmObj lm_proxy_new_with_server
delete LmObj
[Endtest]
[Test]
title 33. lm_proxy_ref
create tstlm LmObj
LmObj lm_proxy_ref
delete LmObj
[Endtest]
[Test]
title 34. lm_proxy_unref
create tstlm LmObj
LmObj lm_proxy_unref
delete LmObj
[Endtest]
[Test]
title 35. lm_ssl_new
create tstlm LmObj
LmObj lm_ssl_new
delete LmObj
[Endtest]
[Test]
title 36. lm_ssl_is_supported
create tstlm LmObj
LmObj lm_ssl_is_supported
delete LmObj
[Endtest]
[Test]
title 37. lm_ssl_get_fingerprint
create tstlm LmObj
LmObj lm_ssl_get_fingerprint
delete LmObj
[Endtest]
[Test]
title 38. lm_ssl_ref
create tstlm LmObj
LmObj lm_ssl_ref
delete LmObj
[Endtest]
[Test]
title 39. lm_ssl_unref
create tstlm LmObj
LmObj lm_ssl_unref
delete LmObj
[Endtest]
[Test]
title 40. lm_message_node_ref
create tstlm LmObj
LmObj lm_message_node_ref
delete LmObj
[Endtest]
[Test]
title 41. lm_message_node_unref
create tstlm LmObj
LmObj lm_message_node_unref
delete LmObj
[Endtest]
[Test]
title 42. lm_message_node_to_string
create tstlm LmObj
LmObj lm_message_node_to_string
delete LmObj
[Endtest]
\\failed when run together. passed independantly
[Test]
title 43. lm_message_node_set_get_attributes
create tstlm LmObj
LmObj lm_message_node_set_get_attributes
delete LmObj
[Endtest]
[Test]
title 44. lm_message_node_set_get_raw_mode
create tstlm LmObj
LmObj lm_message_node_set_get_raw_mode
delete LmObj
[Endtest]
\\failed when run together. passed independantly
[Test]
title 45. lm_message_node_add_child
create tstlm LmObj
LmObj lm_message_node_add_child
delete LmObj
[Endtest]
[Test]
title 46. lm_message_node_get_child
create tstlm LmObj
LmObj lm_message_node_get_child
delete LmObj
[Endtest]
[Test]
title 47. lm_message_node_find_child
create tstlm LmObj
LmObj lm_message_node_find_child
delete LmObj
[Endtest]
[Test]
title 48. lm_message_node_set_get_value
create tstlm LmObj
LmObj lm_message_node_set_get_value
delete LmObj
[Endtest]
[Test]
title 49. lm_message_handler_new
create tstlm LmObj
LmObj lm_message_handler_new SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 50. lm_message_handler_invalidate
create tstlm LmObj
LmObj lm_message_handler_invalidate
delete LmObj
[Endtest]
[Test]
title 51. lm_message_handler_is_valid
create tstlm LmObj
LmObj lm_message_handler_is_valid
delete LmObj
[Endtest]
[Test]
title 52. lm_message_handler_ref
create tstlm LmObj
LmObj lm_message_handler_ref
delete LmObj
[Endtest]
[Test]
title 53. lm_message_handler_unref
create tstlm LmObj
LmObj lm_message_handler_unref
delete LmObj
[Endtest]
[Test]
title 54. lm_message_new
create tstlm LmObj
LmObj lm_message_new SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 55. lm_message_new_with_sub_type
create tstlm LmObj
LmObj lm_message_new_with_sub_type SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 56. lm_message_get_type
create tstlm LmObj
LmObj lm_message_get_type
delete LmObj
[Endtest]
[Test]
title 57. lm_message_get_sub_type
create tstlm LmObj
LmObj lm_message_get_sub_type
delete LmObj
[Endtest]
[Test]
title 58. lm_message_get_node
create tstlm LmObj
LmObj lm_message_get_node
delete LmObj
[Endtest]
[Test]
title 59. lm_message_ref
create tstlm LmObj
LmObj lm_message_ref
delete LmObj
[Endtest]
[Test]
title 60. lm_message_unref
create tstlm LmObj
LmObj lm_message_unref
delete LmObj
[Endtest]
[Test]
title 61. lm_connection_get_state
create tstlm LmObj
LmObj lm_connection_get_state SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 62. lm_connection_ref
create tstlm LmObj
LmObj lm_connection_ref
delete LmObj
[Endtest]
[Test]
title 63. lm_connection_unref
create tstlm LmObj
LmObj lm_connection_unref
delete LmObj
[Endtest]
[Test]
title 64. lm_connection_send_raw
create tstlm LmObj
LmObj lm_connection_send_raw SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 65. lm_register_message_handler
create tstlm LmObj
LmObj register_message_handler SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 66. lm_set_ssl_WithNULL
create tstlm LmObj
LmObj lm_connection_set_ssl_WithNULL
delete LmObj
[Endtest]
[Test]
title 67. lm_connection_authenticate_withUnexistJID
create tstlm LmObj
LmObj lm_authenticate_unexistjid SERVER UnexistGtalkJID PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 68. lm_login_test_with_SpecialChar_JID
create tstlm LmObj
LmObj lm_login_test SERVER SpecialUSERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 69. lm_login_test_with_Long_JID
create tstlm LmObj
LmObj lm_login_test SERVER LONGGMAILUSERID GMAILPWD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 70. lm_login_test_with_Long_PASSWORD
create tstlm LmObj
LmObj lm_login_test SERVER USERNAME LONGPASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 71. lm_send_long_message
create tstlm LmObj
LmObj lm_connection_send SERVER USERNAME PASSWORD RECIPIENT LONGMESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 72. lm_send_400chars
create tstlm LmObj
LmObj lm_connection_send400char SERVER USERNAME PASSWORD RECIPIENT MESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 73. lm_send_repeated
create tstlm LmObj
LmObj lm_connection_send_repeated SERVER USERNAME PASSWORD RECIPIENT REPEATEDMESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]
[Test]
title 74. lm_send_smiley
create tstlm LmObj
LmObj lm_connection_send SERVER USERNAME PASSWORD RECIPIENT SMILEYMESSAGE RESOURCE PROXY_SERVER PROXY_PORT
delete LmObj
[Endtest]