Fwd: test code for windmill that seems to thwart the forwarding/redirect logic

0 views
Skip to first unread message

Adam Christian

unread,
Nov 23, 2009, 5:23:46 PM11/23/09
to Windmill-dev
It looks like what is happening is that xmarks is returning something even though the right page isn't being found. I suggested he start at login.xmarks.com and then do an open, which appears to make things behave correctly, however I believe the syntax to append retry domains has changed recently and was wondering what that was as another approach to solving the problem..

Mikeal can you chime in on that one? And any other ideas?

Adam

Begin forwarded message:

From: Jon Rogers <j...@xmarks.com>
Date: November 23, 2009 2:06:30 PM PST
Subject: test code for windmill that seems to thwart the forwarding/redirect logic

hey adam

here is my little code snippet.

If you point this to www.xmarks.com (which is the TEST_URL), you'll see the issue.

basically www.xmarks.com should become login.xmarks.com when you click the login link.  when it runs under windmill, the url stays as www.xmarks.com (which we talked about over the irc).  That page looks fine.  But the link which is "Sign in!" is a relative link (<a href="/?referrer...">) .  When you click on that site, it ends up back at www.xmarks.com but it should have ended up on login.xmarks.com/?referrer...

Get it?

Thanks for the help

Jon


# Generated by the windmill services transformer
from windmill.authoring import WindmillTestClient
import windmill

def test_topic_alerts():
   client = WindmillTestClient(__name__)
   client.open(url=windmill.settings["TEST_URL"])
   client.waits.forPageLoad(timeout=u'20000')
   client.waits.forElement(link=u'Log In', timeout=u'8000')
   client.click(link=u'Log In')
   client.waits.forPageLoad(timeout=u'20000')
   client.waits.forElement(link=u'Sign in!', timeout=u'8000')
   client.click(link=u'Sign in!')
   client.waits.sleep(timeout=u'5000')
   client.waits.forPageLoad(timeout=u'20000')
   client.asserts.assertNode(id=u'username')
   client.asserts.assertNode(id=u'password')


Reply all
Reply to author
Forward
0 new messages