Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
52647b09
Commit
52647b09
authored
Jan 18, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update KVM instantiation test
parent
e775f4d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
23 deletions
+33
-23
master/bt5/vifib_web_ui_test/PathTemplateItem/portal_tests/vifib_web_zuite/TestKVM.xml
...PathTemplateItem/portal_tests/vifib_web_zuite/TestKVM.xml
+30
-21
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
+2
-1
master/bt5/vifib_web_ui_test/bt/revision
master/bt5/vifib_web_ui_test/bt/revision
+1
-1
No files found.
master/bt5/vifib_web_ui_test/PathTemplateItem/portal_tests/vifib_web_zuite/TestKVM.xml
View file @
52647b09
...
...
@@ -149,14 +149,15 @@
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
<!-- XXX : vifib UI should automatically propose the latest version of KVM.-->
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
//tr[contains(.,"
KVM
")][last()]/td[contains(.,"KVM")]/input
</td>
\n
<td>
//tr[contains(.,"
001
")][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>
//tr[contains(.,"
001
")][last()]/td[contains(.,"KVM")]/input@value
</td>
\n
<td>
value
</td>
\n
</tr>
\n
<tr>
\n
...
...
@@ -174,6 +175,7 @@
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
assertElementPresent
</td>
\n
<td>
name=field_your_last_name
</td>
\n
...
...
@@ -222,7 +224,7 @@
<tr>
\n
<td>
type
</td>
\n
<td>
name=field_your_default_email_text
</td>
\n
<td>
mail@domain.com
</td>
\n
<td>
e
mail@domain.com
</td>
\n
</tr>
\n
<tr>
\n
<td>
type
</td>
\n
...
...
@@ -249,6 +251,7 @@
<td>
id=dialog_submit_button
</td>
\n
<td></td>
\n
</tr>
\n
\n
<tr>
\n
<td>
phantomRender
</td>
\n
<td>
webrequest6.png
</td>
\n
...
...
@@ -259,25 +262,32 @@
<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
</tr>\n
<span metal:use-macro="container/Zuite_vifib_instanciation_macro_library/macros/finished_processing_activities" />\n
<tr>\n
<td>
p
hantomRender
</td>
\n
<td>
webrequest7.png
</td>
\n
<td>p
ause
</td>\n
<td>
30000
</td>\n
<td></td>\n
</tr>
\n
</tr>-->
\n
<!-- Here we wait 5 minutes too see if vifib has calculated everything and\n
instance is "instantiation in progress". More is not acceptable. -->
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
30000
</td>
\n
<td>
900000
</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>
webrequest7.png
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
...
...
@@ -290,7 +300,7 @@
<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
<
!--<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
...
...
@@ -308,7 +318,8 @@
</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
<!---->
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
90000
</td>
\n
<td></td>
\n
...
...
@@ -320,14 +331,12 @@
</tr>
\n
<tr>
\n
<td>
store
</td>
\n
<td>
javascript{storedVars[\'xml\'].split(\'
<
parameter\n
id=
"
url
">
\')[1].split(\'
<
/parameter
>
\')[0];}
</td>
\n
<td>
javascript{storedVars[\'xml\'].split(\'
<
parameter 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>
javascript{storedVars[\'xml\'].split(\'
<
parameter id=
"
password
">
\')[1].split(\'
<
/parameter
>
\')[0];}
</td>
\n
<td>
password
</td>
\n
</tr>
\n
<tr>
\n
...
...
@@ -355,7 +364,7 @@
<td>
id=password_input
</td>
\n
<td>
13
</td>
\n
</tr>
\n
<tr>
\n
<
!--<
tr>\n
<td>pause</td>\n
<td>1000</td>\n
<td></td>\n
...
...
@@ -364,7 +373,7 @@
<td>submit</td>\n
<td>//input[@id="password_input"]/..</td>\n
<td>\\13</td>\n
</tr>
\n
</tr>
-->
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
10000
</td>
\n
...
...
master/bt5/vifib_web_ui_test/SkinTemplateItem/portal_skins/vifib_web_ui_test/Zuite_vifib_instanciation_macro_library.xml
View file @
52647b09
...
...
@@ -138,9 +138,10 @@
</tr>
\n
<tr>
\n
<td>
waitForCondition
</td>
\n
<!-- XXX-Cedric : should be "Destroyed". -->
\n
<td>
new\n
Ajax.Request(\'ERP5Site_getInstanceStatus?instance_reference=${instance_reference}\',\n
{asynchronous: false}).transport.responseText === "Destr
oyed
"; var\n
{asynchronous: false}).transport.responseText === "Destr
uction in progress
"; var\n
i; for (i = 0; i
< 10000000
;
i++){};</td
>
\n
<td>
600000
</td>
\n
</tr>
\n
...
...
master/bt5/vifib_web_ui_test/bt/revision
View file @
52647b09
9
\ No newline at end of file
10
\ 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