[KSS-checkins] r53879 - in kukit/kss.demo/branch/1.4-kss-test/kss/demo: . browser
reebalazs at codespeak.net
reebalazs at codespeak.net
Sat Apr 19 17:33:32 CEST 2008
Author: reebalazs
Date: Sat Apr 19 17:33:30 2008
New Revision: 53879
Modified:
kukit/kss.demo/branch/1.4-kss-test/kss/demo/browser/kss-selenium-create-sandbox-test.pt
kukit/kss.demo/branch/1.4-kss-test/kss/demo/browser/kss-selenium-create-sandbox-ui.pt
kukit/kss.demo/branch/1.4-kss-test/kss/demo/resource.py
kukit/kss.demo/branch/1.4-kss-test/kss/demo/selenium_testcases.txt
Log:
Make the sandbox creation ui more generic
Modified: kukit/kss.demo/branch/1.4-kss-test/kss/demo/browser/kss-selenium-create-sandbox-test.pt
==============================================================================
--- kukit/kss.demo/branch/1.4-kss-test/kss/demo/browser/kss-selenium-create-sandbox-test.pt (original)
+++ kukit/kss.demo/branch/1.4-kss-test/kss/demo/browser/kss-selenium-create-sandbox-test.pt Sat Apr 19 17:33:30 2008
@@ -6,19 +6,20 @@
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
-<title>test-create-site-suite</title>
+<title>create-sandbox-test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">test-create-site-suite</td></tr>
+<tr><td rowspan="1" colspan="3">create-sandbox-test</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td tal:define="method_name request/method_name | nothing;
+ <td tal:define="application request/application | nothing;
+ method_name request/method_name | nothing;
admin_username request/admin_username | nothing;
admin_password request/admin_password | nothing"
- tal:content="string: ${context/@@absolute_url}/@@kss-selenium-create-sandbox-ui.html?method_name=${method_name}&admin_username=${admin_username}&admin_password=${admin_password}">
+ tal:content="string: ${context/@@absolute_url}/@@kss-selenium-create-sandbox-ui.html?application=${application}&method_name=${method_name}&admin_username=${admin_username}&admin_password=${admin_password}">
</td>
<td></td>
</tr>
Modified: kukit/kss.demo/branch/1.4-kss-test/kss/demo/browser/kss-selenium-create-sandbox-ui.pt
==============================================================================
--- kukit/kss.demo/branch/1.4-kss-test/kss/demo/browser/kss-selenium-create-sandbox-ui.pt (original)
+++ kukit/kss.demo/branch/1.4-kss-test/kss/demo/browser/kss-selenium-create-sandbox-ui.pt Sat Apr 19 17:33:30 2008
@@ -13,18 +13,26 @@
tal:attributes="href string:${context/@@absolute_url}/@@kss_devel_mode/ui_css"/>
</head>
- <body tal:define="method_name request/method_name | nothing;
+ <body tal:define="application request/application | nothing;
+ method_name request/method_name | nothing;
admin_username request/admin_username | nothing;
admin_password request/admin_password |nothing;
has_credentials python: admin_username and admin_password">
- <h2>Creation of Plone test site (SETUP)</h2>
+ <h2>Sandbox creation for application "<span tal:replace="application">SETUP</span>"
+ by method <code tal:replace="method_name">@@testmethod</code></h2>
<tal:condition condition="has_credentials">
<p>
- By clicking of the following button, the <code>ksstestportal</code> will be
- created in the Zope root. If there is an existing site (or object) with this id,
+ When the test runner clicks of the following button, sandbox content
+ will be created in the Zope root.
+ </p>
+
+ <p>
+ As a convention, all creator scripts prefix the id of their created content
+ with <code>ksstest</code>.
+ If there is an existing content with this id,
it will be removed first, without any further question.
</p>
Modified: kukit/kss.demo/branch/1.4-kss-test/kss/demo/resource.py
==============================================================================
--- kukit/kss.demo/branch/1.4-kss-test/kss/demo/resource.py (original)
+++ kukit/kss.demo/branch/1.4-kss-test/kss/demo/resource.py Sat Apr 19 17:33:30 2008
@@ -145,7 +145,8 @@
return ()
def get_relative_urls(self, view, tree=None):
- relative_url = "@@kss-selenium-create-sandbox-test.html?method_name=%s&admin_username=%s&admin_password=%s" % (
+ relative_url = "@@kss-selenium-create-sandbox-test.html?application=%s&method_name=%s&admin_username=%s&admin_password=%s" % (
+ view.request.get('application', ''),
self.method_name,
view.request.get('admin_username', ''),
view.request.get('admin_password', ''))
Modified: kukit/kss.demo/branch/1.4-kss-test/kss/demo/selenium_testcases.txt
==============================================================================
--- kukit/kss.demo/branch/1.4-kss-test/kss/demo/selenium_testcases.txt (original)
+++ kukit/kss.demo/branch/1.4-kss-test/kss/demo/selenium_testcases.txt Sat Apr 19 17:33:30 2008
@@ -229,7 +229,7 @@
>>> case6 = Suite6.tests
>>> tuple(case6.get_relative_urls(fake_view))
- ('@@kss-selenium-create-sandbox-test.html?method_name=@@kss_create_my_sandbox&admin_username=admin&admin_password=admin',)
+ ('@@kss-selenium-create-sandbox-test.html?application=&method_name=@@kss_create_my_sandbox&admin_username=admin&admin_password=admin',)
This view will generate a testcase which is an informational form
with a button. If this button is pressed, the view specified with
More information about the Kukit-checkins
mailing list