To test XMPP Messages without deploying to google server

401 views
Skip to first unread message

gaurav

unread,
Mar 23, 2010, 1:08:07 AM3/23/10
to Google App Engine
Is there a way to test my application without uploading the
application to server.
I want to test reply to XMPP Messages

Ikai L (Google)

unread,
Mar 24, 2010, 2:34:58 PM3/24/10
to google-a...@googlegroups.com
You could probably wire up a Jabber server and fake out the calls to
and from your servlets, but we don't ship this functionality out of
the box.

Instead, what you should probably do is take a look at our Unit
Testing guide and mock/stub your way through XMPP:

http://code.google.com/appengine/docs/java/tools/localunittesting.html

(I guess there are no code samples for XMPP unit testing, we'll have
to add those at some point in the future).

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>

--
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

Gaurav

unread,
Mar 25, 2010, 12:14:19 PM3/25/10
to google-a...@googlegroups.com
I am using python coding for that.

Wesley C (Google)

unread,
Mar 27, 2010, 4:02:28 AM3/27/10
to google-a...@googlegroups.com
i don't believe there is any way to test XMPP in either Java or Python
from the development server. here is the quote from the documentation:

"When an app running in the development server sends an XMPP message,
the fields of the message are printed to the console, and no message
is sent. The development server cannot send XMPP messages on behalf of
the app."

http://code.google.com/appengine/docs/python/xmpp/overview.html#Sending_Instant_Messages
(same goes for the java page)

as ikai has suggested, it may be possible if you implemented an
XMPP/Jabber server in your dev environment and hooked it up to the
development SDK.

has anyone done this by any chance or able to create robust mock
objects adequate enough to test the XMPP service?

-- wesley

ps. yes, i confirmed that it only posts msgs to the console in the dev env
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wesc...@google.com
developer relations :: google app engine

Tim Hoffman

unread,
Mar 27, 2010, 4:35:29 AM3/27/10
to Google App Engine
Have a look at Typhoonae - its does have support for xmpp

http://code.google.com/p/typhoonae/

T

On Mar 27, 4:02 pm, "Wesley C (Google)" <wesc+...@google.com> wrote:
> i don't believe there is any way to test XMPP in either Java or Python
> from the development server. here is the quote from the documentation:
>
> "When an app running in the development server sends an XMPP message,
> the fields of the message are printed to the console, and no message
> is sent. The development server cannot send XMPP messages on behalf of
> the app."
>

> http://code.google.com/appengine/docs/python/xmpp/overview.html#Sendi...


> (same goes for the java page)
>
> as ikai has suggested, it may be possible if you implemented an
> XMPP/Jabber server in your dev environment and hooked it up to the
> development SDK.
>
> has anyone done this by any chance or able to create robust mock
> objects adequate enough to test the XMPP service?
>
> -- wesley
>
> ps. yes, i confirmed that it only posts msgs to the console in the dev env
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>    http://corepython.com
>

> wesley.j.chun :: wesc+...@google.com

Reply all
Reply to author
Forward
0 new messages