Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Frederic Thoma
erp5
Commits
c0624cdb
Commit
c0624cdb
authored
Mar 02, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use url list instead single url to run multiple tests at once.
parent
845246f9
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
288 additions
and
126 deletions
+288
-126
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_createAndLaunchSeleniumTest.xml
...s/erp5_ui_test_core/Zuite_createAndLaunchSeleniumTest.xml
+5
-6
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_runSeleniumTest.xml
.../portal_skins/erp5_ui_test_core/Zuite_runSeleniumTest.xml
+8
-12
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher.xml
...kins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher.xml
+1
-2
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher/your_description.xml
..._core/Zuite_viewZeleniumTestLauncher/your_description.xml
+260
-0
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher/your_test_id.xml
...test_core/Zuite_viewZeleniumTestLauncher/your_test_id.xml
+0
-101
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher/your_url_list.xml
...est_core/Zuite_viewZeleniumTestLauncher/your_url_list.xml
+13
-4
bt5/erp5_ui_test_core/bt/revision
bt5/erp5_ui_test_core/bt/revision
+1
-1
No files found.
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_createAndLaunchSeleniumTest.xml
View file @
c0624cdb
...
...
@@ -53,15 +53,14 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
"""\n
Generate a Zuite (if necessary), create/update the test and redirect to the selenium test created/updated
\n
url, web_page or web_page_reference must be set for it to work (or the context should be the Web Page in question)
\n
test_list is composed by [(full_test_html , title), ]
\n
\n
"""\n
\n
zuite = context.getPortalObject().portal_tests.Zuite_addZuite(zuite_id)\n
\n
test = zuite.Zuite_addTest(test_id, \n
title, \n
text)\n
for text, title in test_list:\n
zuite.Zuite_addTest(test_id, title, text)\n
\n
return zuite.Base_redirect("core/TestRunner.html?auto=true&test=..%2Ftest_suite_html&resultsUrl=..%2FpostResults")\n
...
...
@@ -70,7 +69,7 @@ return zuite.Base_redirect("core/TestRunner.html?auto=true&test=..%2Ftest_suite_
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
te
xt, title, zuite_id, test_id
</string>
</value>
<value>
<string>
te
st_list, zuite_id, test_id=None
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_runSeleniumTest.xml
View file @
c0624cdb
...
...
@@ -54,23 +54,19 @@
Generate a Zuite (if necessary), create/update the test and redirect to the selenium test created/updated\n
url, web_page or web_page_reference must be set for it to work (or the context should be the Web Page in question)\n
"""\n
test_list = []\n
count = 0\n
for url in url_list:\n
count += 1\n
test_list.append((context.Zuite_urlRead(url), \'url%s\' % count),)\n
\n
validation = context.Zuite_viewZeleniumTestLauncherValidator(editor=None, \n
request=context.REQUEST, \n
validator = False)\n
if not validation[\'result\']:\n
return context.Base_redirect(validation[\'form_id\'], \n
keep_items = dict(portal_status_message=validation[\'portal_status_message\']))\n
\n
return context.Zuite_createAndLaunchSeleniumTest(text=context.Zuite_urlRead(url),\n
title="Download From Web", \n
zuite_id=zuite_id,\n
test_id=test_id)\n
return context.Zuite_createAndLaunchSeleniumTest(test_list=test_list,\n
zuite_id=zuite_id)\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
url
, zuite_id = \'tutorial_zuite\', test_id = \'
\'
</string>
</value>
<value>
<string>
url
_list, zuite_id=\'tutorial_zuite
\'
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher.xml
View file @
c0624cdb
...
...
@@ -82,9 +82,8 @@
<value>
<list>
<string>
your_description
</string>
<string>
your_url
</string>
<string>
your_url
_list
</string>
<string>
your_zuite_id
</string>
<string>
your_test_id
</string>
</list>
</value>
</item>
...
...
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher/your_description.xml
0 → 100644
View file @
c0624cdb
This diff is collapsed.
Click to expand it.
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher/your_test_id.xml
deleted
100644 → 0
View file @
845246f9
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_test_id
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Enter the id of the generated test (this will overwrite any test with the same id)
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_string_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Test ID
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher/your_url.xml
→
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_viewZeleniumTestLauncher/your_url
_list
.xml
View file @
c0624cdb
...
...
@@ -11,8 +11,9 @@
<value>
<list>
<string>
description
</string>
<string>
display_width
</string>
<string>
height
</string>
<string>
title
</string>
<string>
width
</string>
</list>
</value>
</item>
...
...
@@ -26,7 +27,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_url
</string>
</value>
<value>
<string>
your_url
_list
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -91,19 +92,27 @@
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_
string
_field
</string>
</value>
<value>
<string>
my_
lines
_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
height
</string>
</key>
<value>
<int>
10
</int>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
External Url
</string>
</value>
<value>
<string>
External Urls
</string>
</value>
</item>
<item>
<key>
<string>
width
</string>
</key>
<value>
<int>
90
</int>
</value>
</item>
</dictionary>
</value>
...
...
bt5/erp5_ui_test_core/bt/revision
View file @
c0624cdb
52
\ No newline at end of file
53
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment