Commit 007faf50 authored by Aurel's avatar Aurel Committed by Gabriel Monnerat

traverse when not http

parent 12e969e0
...@@ -56,9 +56,15 @@ ...@@ -56,9 +56,15 @@
"""\n """\n
test_list = []\n test_list = []\n
count = 0\n count = 0\n
portal = context.getPortalObject()\n
for url in url_list:\n for url in url_list:\n
count += 1\n count += 1\n
test_list.append((context.Zuite_urlRead(url, safe_return=1), \'%s %s\' % (count, url)),)\n if "http" not in url:\n
# local content\n
data = portal.restrictedTraverse(url).TestPage_viewSeleniumTest()\n
else:\n
data = context.Zuite_urlRead(url, safe_return=1)\n
test_list.append((data, \'%s %s\' % (count, url)),)\n
\n \n
return context.Zuite_createAndLaunchSeleniumTest(test_list=test_list,\n return context.Zuite_createAndLaunchSeleniumTest(test_list=test_list,\n
zuite_id=zuite_id)\n zuite_id=zuite_id)\n
......
66 67
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment