Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Carlos Ramos Carreño
slapos.core
Commits
ae3144be
Commit
ae3144be
authored
Nov 04, 2011
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add vifib_web_ui_test bt
parent
fcb5a781
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
971 additions
and
0 deletions
+971
-0
master/bt5/vifib_web_ui_test/PathTemplateItem/portal_tests/vifib_web_zuite.xml
...ui_test/PathTemplateItem/portal_tests/vifib_web_zuite.xml
+26
-0
master/bt5/vifib_web_ui_test/PathTemplateItem/portal_tests/vifib_web_zuite/TestKVM.xml
...PathTemplateItem/portal_tests/vifib_web_zuite/TestKVM.xml
+414
-0
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test.xml
..._test/SkinTemplateItem/portal_skins/vifib_web_ui_test.xml
+26
-0
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/ERP5Site_deleteTestDocument.xml
...l_skins/vifib_web_ui_test/ERP5Site_deleteTestDocument.xml
+87
-0
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/ERP5Site_getInstanceStatus.xml
...al_skins/vifib_web_ui_test/ERP5Site_getInstanceStatus.xml
+74
-0
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/ERP5Site_hasFinishedProcessingActivity.xml
...ib_web_ui_test/ERP5Site_hasFinishedProcessingActivity.xml
+77
-0
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/Vifib_testUserInfo.xml
...tem/portal_skins/vifib_web_ui_test/Vifib_testUserInfo.xml
+72
-0
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/Zuite_vifib_instanciation_macro_library.xml
...b_web_ui_test/Zuite_vifib_instanciation_macro_library.xml
+179
-0
master/bt5/vifib_web_ui_test/bt/change_log
master/bt5/vifib_web_ui_test/bt/change_log
+2
-0
master/bt5/vifib_web_ui_test/bt/copyright_list
master/bt5/vifib_web_ui_test/bt/copyright_list
+1
-0
master/bt5/vifib_web_ui_test/bt/dependency_list
master/bt5/vifib_web_ui_test/bt/dependency_list
+2
-0
master/bt5/vifib_web_ui_test/bt/description
master/bt5/vifib_web_ui_test/bt/description
+1
-0
master/bt5/vifib_web_ui_test/bt/license
master/bt5/vifib_web_ui_test/bt/license
+1
-0
master/bt5/vifib_web_ui_test/bt/maintainer_list
master/bt5/vifib_web_ui_test/bt/maintainer_list
+2
-0
master/bt5/vifib_web_ui_test/bt/revision
master/bt5/vifib_web_ui_test/bt/revision
+1
-0
master/bt5/vifib_web_ui_test/bt/template_format_version
master/bt5/vifib_web_ui_test/bt/template_format_version
+1
-0
master/bt5/vifib_web_ui_test/bt/template_path_list
master/bt5/vifib_web_ui_test/bt/template_path_list
+2
-0
master/bt5/vifib_web_ui_test/bt/template_skin_id_list
master/bt5/vifib_web_ui_test/bt/template_skin_id_list
+1
-0
master/bt5/vifib_web_ui_test/bt/title
master/bt5/vifib_web_ui_test/bt/title
+1
-0
master/bt5/vifib_web_ui_test/bt/version
master/bt5/vifib_web_ui_test/bt/version
+1
-0
No files found.
master/bt5/vifib_web_ui_test/PathTemplateItem/portal_tests/vifib_web_zuite.xml
0 → 100644
View file @
ae3144be
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Zuite"
module=
"Products.Zelenium.zuite"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
vifib_web_zuite
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Instanciation tests
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web_ui_test/PathTemplateItem/portal_tests/vifib_web_zuite/TestKVM.xml
0 → 100644
View file @
ae3144be
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<!-- Tested with chromium 12 and --ignore-certificate-errors --disable-translate --disable-web-security options -->
\n
<html
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
\n
xmlns:metal=
"http://xml.zope.org/namespaces/metal"
>
\n
<head>
\n
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
\n
<title>
Test KVM
</title>
\n
</head>
\n
<body>
\n
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
\n
<thead>
\n
<tr><td
rowspan=
"1"
colspan=
"3"
>
testkvm
</td></tr>
\n
</thead><tbody>
\n
<tal:block
metal:use-macro=
"container/Zuite_vifib_instanciation_macro_library/macros/init_environment"
/>
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
/home/darthabel/screen/webrequest1.png
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//img[@alt="My Services"]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
//img[@alt="My Services"]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
/home/darthabel/screen/webrequest2.png
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
link=New service
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
link=New service
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//td[contains(.,"KVM")]/input
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
storeAttribute
</td>
\n
<td>
//td[contains(.,"KVM")]/input@value
</td>
\n
<td>
value
</td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
id=listbox_cb_${value}
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=field_your_service_title
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
id=listbox_cb_${value}
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
store
</td>
\n
<td>
javascript{"kvm_test_" + new Date().getTime();}
</td>
\n
<td>
kvm
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
name=field_your_service_title
</td>
\n
<td>
${kvm}
</td>
\n
</tr>
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
/home/darthabel/screen/webrequest3.png
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//td[contains(.,"KVM")]/input
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
storeAttribute
</td>
\n
<td>
//td[contains(.,"KVM")]/input@value
</td>
\n
<td>
value
</td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
id=listbox_cb_${value}
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//tr[contains(.,"KVM")][last()]/td[contains(.,"KVM")]/input
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
storeAttribute
</td>
\n
<td>
//tr[contains(.,"KVM")][last()]/td[contains(.,"KVM")]/input@value
</td>
\n
<td>
value
</td>
\n
</tr>
\n
<tr>
\n
<td>
click
</td>
\n
<td>
id=listbox_cb_${value}
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
/home/darthabel/screen/webrequest4.png
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=field_your_last_name
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=field_your_first_name
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=field_your_default_email_text
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=field_your_default_address_city
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=field_your_default_address_zip_code
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=field_your_default_address_street_address
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
name=field_your_last_name
</td>
\n
<td>
Last Name
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
name=field_your_first_name
</td>
\n
<td>
First Name
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
name=field_your_default_email_text
</td>
\n
<td>
mail@domain.com
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
name=field_your_default_address_city
</td>
\n
<td>
City
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
name=field_your_default_address_zip_code
</td>
\n
<td>
12345
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
<td>
name=field_your_default_address_street_address
</td>
\n
<td>
Address
</td>
\n
</tr>
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
/home/darthabel/screen/webrequest5.png
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
/home/darthabel/screen/webrequest6.png
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//img[@alt="My Services"]
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
//img[@alt="My Services"]
</td>
\n
<td></td>
\n
</tr>
\n
<!--tr>\n
<td>assertTextPresent</td>\n
<td>Unimplemented: Can\'t fetch the reference of the software instance</td>\n
<td></td>\n
</tr>-->
\n
<span
metal:use-macro=
"container/Zuite_vifib_instanciation_macro_library/macros/finished_processing_activities"
/>
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
/home/darthabel/screen/webrequest7.png
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
10000
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
link=${kvm}
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
link=${kvm}
</td>
\n
<td></td>
\n
</tr>
\n
<span
metal:use-macro=
"container/Zuite_vifib_instanciation_macro_library/macros/finished_processing_activities"
/>
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
link=${kvm}
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
link=${kvm}
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
/home/darthabel/screen/webrequest8.png
</td>
\n
<td></td>
\n
</tr>
\n
<span
metal:use-macro=
"container/Zuite_vifib_instanciation_macro_library/macros/check_for_started_instance"
/>
\n
<!-- This part only work with chromium for now -->
\n
<!--<tr>\n
<td>pause</td>\n
<td>120000</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>storeText</td>\n
<td>//div[@class="inline"]</td>\n
<td>xml</td>\n
</tr>\n
<tr>\n
<td>store</td>\n
<td>javascript{storedVars[\'xml\'].split(\'<parameter\n
id="url">\')[1].split(\'</parameter>\')[0];}</td>\n
<td>ip</td>\n
</tr>\n
<tr>\n
<td>store</td>\n
<td>javascript{storedVars[\'xml\'].split(\'<parameter\n
id="password">\')[1].split(\'</parameter>\')[0];}</td>\n
<td>password</td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${ip}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//input[@id="VNC_password"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//input[@value="Connect"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//input[@id="VNC_password"]</td>\n
<td>${password}</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@value="Connect"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>pause</td>\n
<td>10000</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>phantomRender</td>\n
<td>/home/darthabel/screen/webrequest9.png</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//input[@value="Disconnect"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//input[@value="Disconnect"]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>openAndWait</td>\n
<td>${address}</td>\n
<td></td>\n
</tr>-->
\n
<span
metal:use-macro=
"container/Zuite_vifib_instanciation_macro_library/macros/destroy_instance"
/>
\n
</tbody>
\n
</table>
\n
</body>
\n
</html>
]]>
</unicode>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
TestKVM
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test.xml
0 → 100644
View file @
ae3144be
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
vifib_web_ui_test
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Skin Folder for Vifib Interface tests
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/ERP5Site_deleteTestDocument.xml
0 → 100644
View file @
ae3144be
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
#Couldn\'t make query work so feel free to modify this script\n
#from Products.ZSQLCatalog.SQLCatalog import Query\n
from Products.ERP5Type.DateUtils import createDateTimeFromMillis \n
\n
instance_list = [\'empty\']\n
time = DateTime().millis() - 1800000\n
#query = Query(**{\'delivery.start_date\':createDateTimeFromMillis(time), \'range\':\'ngt\'})\n
\n
for document in context.portal_catalog.searchResults(portal_type="Software Instance", client="First Name Last Name"):\n
instance = document.getObject()\n
instanceCreationDate = instance.getCreationDate()\n
if time >
= instanceCreationDate.millis():\n
if instance.SoftwareInstance_getStatus() not in ("Destroyed", "Destruction in progress", "Instanciation in progress"):\n
try:\n
instance.requestDestroyComputerPartition()\n
except:\n
instance_list.append(["Couldn\'t destroy instance %s with status %s" % (instance.getReference(), instance.SoftwareInstance_getStatus())])\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_deleteTestDocument
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/ERP5Site_getInstanceStatus.xml
0 → 100644
View file @
ae3144be
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""\n
Check if the instance has the right status\n
"""\n
request = context.REQUEST\n
instance_reference = request.get("instance_reference")\n
instance = context.portal_catalog.searchResults(portal_type="Software Instance", reference=instance_reference)[0].getObject()\n
\n
return instance.SoftwareInstance_getStatus()\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_getInstanceStatus
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/ERP5Site_hasFinishedProcessingActivity.xml
0 → 100644
View file @
ae3144be
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
"""\n
We wait until all activities are finished\n
"""\n
if len(context.portal_activities.getMessageList()) >
0:\n
return \'False.\'\n
else:\n
return \'True.\'\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ERP5Site_hasFinishedProcessingActivity
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/Vifib_testUserInfo.xml
0 → 100644
View file @
ae3144be
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""\n
Storage for the login and password of the test user\n
"""\n
\n
return {\'test_user_login\' :\'test_customer_vifib_web\',\n
\'test_user_password\': \'testuser\'}\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Vifib_testUserInfo
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/Zuite_vifib_instanciation_macro_library.xml
0 → 100644
View file @
ae3144be
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block metal:define-macro="init_environment">
\n
<!-- Initialize test environment -->
\n
<tr>
\n
<td>
setTimeout
</td>
\n
<td>
120000
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
store
</td>
\n
<td
tal:content=
"python:\n
context.REQUEST.get(\'URL\')[0:here.REQUEST.get(\'URL\').find(\'/portal_tests/\')]"
>
erp5
</td>
\n
<td>
base_url
</td>
\n
</tr>
\n
<tr>
\n
<td>
openAndWait
</td>
\n
<td>
${base_url}/web_site_module/hosting
</td>
\n
<td></td>
\n
</tr>
\n
</tal:block>
\n
\n
<tal:block
metal:define-macro=
"finished_processing_activities"
>
\n
<!-- We wait for zope to finish his activities processing -->
\n
<tr>
\n
<td>
storeAttribute
</td>
\n
<td>
//head/base@href
</td>
\n
<td>
address
</td>
\n
</tr>
\n
<tr>
\n
<td>
waitForCondition
</td>
\n
<td>
new Ajax.Request(\'ERP5Site_hasFinishedProcessingActivity\',\n
{asynchronous: false}).transport.responseText === "True."; var i;\n
for (i = 0; i
< 10000000
;
i++){};</td
>
\n
<td>
120000
</td>
\n
</tr>
\n
<tr>
\n
<td>
openAndWait
</td>
\n
<td>
${address}
</td>
\n
<td></td>
\n
</tr>
\n
</tal:block>
\n
\n
<tal:block
metal:define-macro=
"check_for_started_instance"
>
\n
<!-- Wait until the instance is Started -->
\n
<tr>
\n
<td>
storeAttribute
</td>
\n
<td>
//head/base@href
</td>
\n
<td>
address
</td>
\n
</tr>
\n
<tr>
\n
<td>
openAndWait
</td>
\n
<td>
${address}/getReference
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
storeText
</td>
\n
<td>
//body/pre
</td>
\n
<td>
instance_reference
</td>
\n
</tr>
\n
<tr>
\n
<td>
waitForCondition
</td>
\n
<td>
new\n
Ajax.Request(\'ERP5Site_getInstanceStatus?instance_reference=${instance_reference}\',\n
{asynchronous: false}).transport.responseText === "Started"; var i;\n
for (i = 0; i
< 10000000
;
i++){};</td
>
\n
<td>
600000
</td>
\n
</tr>
\n
<tr>
\n
<td>
openAndWait
</td>
\n
<td>
${address}
</td>
\n
<td></td>
\n
</tr>
\n
</tal:block>
\n
\n
<tal:block
metal:define-macro=
"destroy_instance"
>
\n
<!-- Order the destruction of the instance and check for it -->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=SoftwareInstance_requestDestroy:method
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
clickAndWait
</td>
\n
<td>
name=SoftwareInstance_requestDestroy:method
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
storeAttribute
</td>
\n
<td>
//head/base@href
</td>
\n
<td>
address
</td>
\n
</tr>
\n
<tr>
\n
<td>
openAndWait
</td>
\n
<td>
${address}/getReference
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<td>
storeText
</td>
\n
<td>
//body/pre
</td>
\n
<td>
instance_reference
</td>
\n
</tr>
\n
<tr>
\n
<td>
waitForCondition
</td>
\n
<td>
new\n
Ajax.Request(\'ERP5Site_getInstanceStatus?instance_reference=${instance_reference}\',\n
{asynchronous: false}).transport.responseText === "Destroyed"; var\n
i; for (i = 0; i
< 10000000
;
i++){};</td
>
\n
<td>
600000
</td>
\n
</tr>
\n
<tr>
\n
<td>
openAndWait
</td>
\n
<td>
${address}
</td>
\n
<td></td>
\n
</tr>
\n
</tal:block>
]]>
</unicode>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Zuite_vifib_instanciation_macro_library
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
iso-8859-15
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web_ui_test/bt/change_log
0 → 100644
View file @
ae3144be
2011-11-01 Cedric
* Initial version
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/copyright_list
0 → 100644
View file @
ae3144be
Nexedi SA 2011
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/dependency_list
0 → 100644
View file @
ae3144be
vifib_web
erp5_ui_test
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/description
0 → 100644
View file @
ae3144be
Selenium tests for Vifib web interface
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/license
0 → 100644
View file @
ae3144be
GPL
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/maintainer_list
0 → 100644
View file @
ae3144be
Vivien Alger
Cedric de Saint Martin
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/revision
0 → 100644
View file @
ae3144be
5
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/template_format_version
0 → 100644
View file @
ae3144be
1
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/template_path_list
0 → 100644
View file @
ae3144be
portal_tests/vifib_web_zuite
portal_tests/vifib_web_zuite/**
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/template_skin_id_list
0 → 100644
View file @
ae3144be
vifib_web_ui_test
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/title
0 → 100644
View file @
ae3144be
vifib_web_ui_test
\ No newline at end of file
master/bt5/vifib_web_ui_test/bt/version
0 → 100644
View file @
ae3144be
001
\ 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