Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
Matevz Golob
wendelin
Commits
f83ac46d
Commit
f83ac46d
authored
Sep 26, 2019
by
Matevz Golob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify test
parent
b000511c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
456 deletions
+8
-456
bt5/erp5_wendelin_tutorial_test/PathTemplateItem/portal_tests/wendelin_tutorial_zuite/testWendelinTutorial.zpt
...al_tests/wendelin_tutorial_zuite/testWendelinTutorial.zpt
+8
-456
No files found.
bt5/erp5_wendelin_tutorial_test/PathTemplateItem/portal_tests/wendelin_tutorial_zuite/testWendelinTutorial.zpt
View file @
f83ac46d
...
...
@@ -61,11 +61,6 @@
<td>
3000
</td>
<td></td>
</tr>
<!-- <tr>
<td>verifyTextPresent</td>
<td>Ingestion Policy added.</td>
<td></td>
</tr> -->
<!-- (2) Present data on Web Site -->
<!-- (2.1) Create Web Site -->
<tr>
...
...
@@ -155,7 +150,7 @@
</tr>
<tr>
<td>
pause
</td>
<td>
5
000
</td>
<td>
3
000
</td>
<td></td>
</tr>
<tr>
...
...
@@ -173,11 +168,6 @@
<td>
//button[@name="Base_edit:method" and @title="Save"]
</td>
<td></td>
</tr>
<!-- <tr>
<td>verifyTextPresent</td>
<td>Data updated.</td>
<td></td>
</tr> -->
<tr>
<td>
selectAndWait
</td>
<td>
select_action
</td>
...
...
@@ -332,12 +322,12 @@
</tr>
<tr>
<td>
pause
</td>
<td>
5
000
</td>
<td>
3
000
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//*[@data-gadget-editable="field_my_text_content"]
</td>
<td>
//*[@data-gadget-editable="field_my_text_content"]
/div
</td>
<td
tal:content=
"python: '%s' % ('''<!DOCTYPE html>
<html>
<head>
...
...
@@ -472,12 +462,12 @@
</tr>
<tr>
<td>
pause
</td>
<td>
5
000
</td>
<td>
3
000
</td>
<td></td>
</tr>
<tr>
<td>
type
</td>
<td>
//*[@data-gadget-editable="field_my_text_content"]
</td>
<td>
//*[@data-gadget-editable="field_my_text_content"]
/div
</td>
<td>
/*global window, rJS, console, RSVP, Dygraph */
/*jslint indent: 2, maxerr: 3 */
(function (rJS) {
...
...
@@ -564,7 +554,7 @@
option_dict = {},
url;
url = "${base_url}/web_site_module/pydata_runner/hateoas/data_array_module/
12
";
url = "${base_url}/web_site_module/pydata_runner/hateoas/data_array_module/
wendelin-Tutorial.Installation.Usage.Test.Spectrum
";
return new RSVP.Queue()
.push(function () {
...
...
@@ -637,154 +627,7 @@
<td>
Data updated.
</td>
<td></td>
</tr>
<!-- <tr>
<td>open</td>
<td>${base_url}</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>select_module</td>
<td>label=Web Pages</td>
</tr>
<tr>
<td>type</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/thead/tr[2]/th[2]/input</td>
<td>gadget_erp5_page_pydata.html</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/thead/tr[2]/th[1]/input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/tbody/tr/td[2]/a</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>//*[@name="form_id" and @value="WebPage_view"]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/div/div[1]/ul/li[2]/a</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//*[@id="master"]/div/div[2]/fieldset[2]/div/div/div/textarea</td>
<td tal:content="python: '%s' % ('''<html>
<head>
<meta http-equiv='Content-type' content='text/html; charset=utf-8' />
<meta name='viewport' content='width=device-width, user-scalable=no' />
<title>PyData Graph</title>
<script src='rsvp.js' type='text/javascript'></script>
<script src='renderjs.js' type='text/javascript'></script>
<script src='gadget_global.js' type='text/javascript'></script>
<script src='gadget_erp5_page_pydata.js' type='text/javascript'></script>
</head>
<body>
</body>
</html>''')"> </td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//button[@name="Base_edit:method" and @title="Save"]</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Data updated.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>select_module</td>
<td>label=Web Pages</td>
</tr>
<tr>
<td>type</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/thead/tr[2]/th[2]/input</td>
<td>gadget_erp5_page_pydata.js</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/thead/tr[2]/th[1]/input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/tbody/tr/td[2]/a</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>//*[@name="form_id" and @value="WebPage_view"]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/div/div[1]/ul/li[2]/a</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//*[@id="master"]/div/div[2]/fieldset[2]/div/div/div/textarea</td>
<td>/*global window, rJS, RSVP, URI */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP, URI) {
"use strict";
rJS(window)
// Init local properties
.ready(function (g) {
g.props = {};
})
// Assign the element to a variable
.ready(function (g) {
return g.getElement()
.push(function (element) {
g.props.element = element;
});
})
// Acquired methods
.declareAcquiredMethod("updateHeader", "updateHeader")
// declared methods
.declareMethod("render", function () {
var gadget = this;
return gadget.updateHeader({
page_title: 'PyData'
})
});
}(window, rJS, RSVP, URI));</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//button[@name="Base_edit:method" and @title="Save"]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Data updated.</td>
<td></td>
</tr> -->
<!-- (2.3) Open Web Site -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/pydata_runner/
</td>
...
...
@@ -795,302 +638,11 @@
<td>
15000
</td>
<td></td>
</tr>
<tr>
<td>
verifyTextPresent
</td>
<td>
PyData
</td>
<td></td>
</tr>
<!-- <tr>
<td>open</td>
<td>${base_url}</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>select_module</td>
<td>label=Web Pages</td>
</tr>
<tr>
<td>type</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/thead/tr[2]/th[2]/input</td>
<td>gadget_erp5_page_pydata.html</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/thead/tr[2]/th[1]/input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/tbody/tr/td[2]/a</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>//*[@name="form_id" and @value="WebPage_view"]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/div/div[1]/ul/li[2]/a</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//*[@id="master"]/div/div[2]/fieldset[2]/div/div/div/textarea</td>
<td tal:content="python: '%s' % ('''<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-type' content='text/html; charset=utf-8' />
<meta name='viewport' content='width=device-width, user-scalable=no' />
<title>PyData Graph</title>
<script src='rsvp.js' type='text/javascript'></script>
<script src='renderjs.js' type='text/javascript'></script>
<script src='dygraph.js' type='text/javascript'></script>
<script src='gadget_global.js' type='text/javascript'></script>
<script src='gadget_erp5_page_pydata.js' type='text/javascript'></script>
</head>
<body>
<div class='custom-grid-wrap'>
<div class='custom-grid ui-corner-all ui-body-inherit ui-shadow ui-corner-all'></div>
</div>
<div data-gadget-url='gadget_ndarray.html'
data-gadget-scope='ndarray'
data-gadget-sandbox='public'>
</div>
</body>
</html>''')"> </td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//button[@name="Base_edit:method" and @title="Save"]</td>
<td>
//*[@data-gadget-url="https://softinst116522.host.vifib.net/erp5/web_site_module/pydata_runner/gadget_jio.html"]
</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Data updated.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}</td>
<td></td>
</tr>
<tr>
<td>selectAndWait</td>
<td>select_module</td>
<td>label=Web Pages</td>
</tr>
<tr>
<td>type</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/thead/tr[2]/th[2]/input</td>
<td>gadget_erp5_page_pydata.js</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/thead/tr[2]/th[1]/input</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/fieldset/div/div/div/div[2]/div[2]/table/tbody/tr/td[2]/a</td>
<td></td>
</tr>
<tr>
<td>verifyElementPresent</td>
<td>//*[@name="form_id" and @value="WebPage_view"]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//*[@id="master"]/div/div[1]/ul/li[2]/a</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>5000</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//*[@id="master"]/div/div[2]/fieldset[2]/div/div/div/textarea</td>
<td>/*global window, rJS, console, RSVP, Dygraph */
/*jslint indent: 2, maxerr: 3 */
(function (rJS) {
"use strict";
var ARRAY_VALUE_LENGTH = 8,
OPTION_DICT = {
start_date: 0,
time_factor: 1000,
resolution: 1,
xlabel: 'x',
ylabel: 'y',
key_list: ["Channel 1", "Date"],
label_list: ["Date", "Channel 1"],
series_dict: {
"Channel 1": {
axis : "y",
color: "#00884B",
pointSize: 1,
visible : true,
connectSeparatedPoints: true
}
},
axis_dict: {
y: {
position : "left",
axisLabelColor: "grey",
axisLabelWidth : 40,
pixelsPerLabel : 30
},
x: {
drawAxis : true,
axisLabelWidth : 60,
axisLabelColor: "grey",
pixelsPerLabel : 30
}
},
connectSeparatedPoints: true
};
function generateInitialGraphData(label_list) {
var i,
data = [[]];
for (i = 0; i < label_list.length; i += 1) {
data[0].push(0);
}
return data;
}
function convertDateColToDate(gadget, array) {
var label_list = gadget.property_dict.option_dict.label_list,
time_factor = gadget.property_dict.option_dict.time_factor,
time_offset = gadget.property_dict.option_dict.time_offset || 0,
i,
k;
for (k = 0; k < label_list.length; k += 1) {
if (label_list[k] === "Date") {
for (i = 0; i < array.length; i += 1) {
array[i] = [i, array[i]];
}
}
}
return array;
}
rJS(window)
.ready(function (gadget) {
gadget.property_dict = {};
return gadget.getElement()
.push(function (element) {
gadget.property_dict.element = element;
gadget.property_dict.option_dict = OPTION_DICT;
});
})
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
// render gadget
.declareMethod('render', function () {
var gadget = this,
interaction_model = Dygraph.Interaction.defaultModel,
option_dict = {},
url;
url = "${base_url}/web_site_module/pydata_runner/hateoas/data_array_module/12";
return new RSVP.Queue()
.push(function () {
return gadget.jio_getAttachment("erp5", url, {
start : 0,
format : "array_buffer"
});
})
.push(function (buffer) {
var array_length,
length,
array,
array_width = 1;
array_length = Math.floor(
buffer.byteLength / array_width / ARRAY_VALUE_LENGTH
);
length = buffer.byteLength - (buffer.byteLength % ARRAY_VALUE_LENGTH);
if (length === buffer.byteLength) {
array = new Float64Array(buffer);
} else {
array = new Float64Array(buffer, 0, length);
}
return nj.ndarray(array, [array_length, array_width]);
})
.push(function (result) {
var i,
data = [],
ndarray = result,
label_list = gadget.property_dict.option_dict.label_list,
key_list = gadget.property_dict.option_dict.key_list;
for (i = 1; i < label_list.length; i += 1) {
data = data.concat(
nj.unpack(
ndarray.pick(
null,
key_list.indexOf(label_list[i])
)
)
);
}
data = convertDateColToDate(gadget, data);
gadget.property_dict.data = data;
return gadget
});
})
.declareService(function () {
var gadget = this;
return gadget.property_dict.graph = new Dygraph(
gadget.property_dict.element,
gadget.property_dict.data,
gadget.property_dict.option_dict
);
});
}(rJS));</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//button[@name="Base_edit:method" and @title="Save"]</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Data updated.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/pydata_runner/</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>15000</td>
<td></td>
</tr> -->
</tbody>
</table>
...
...
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