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
Yusei Tahara
erp5
Commits
f9391847
Commit
f9391847
authored
Aug 31, 2016
by
Hardik Juneja
Committed by
Cédric Le Ninivin
Sep 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_dms_ui_test: Add selenium tests
parent
f3de1416
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
325 additions
and
0 deletions
+325
-0
bt5/erp5_dms_ui_test/PathTemplateItem/document_module/test_pdf.xml
...dms_ui_test/PathTemplateItem/document_module/test_pdf.xml
+254
-0
bt5/erp5_dms_ui_test/PathTemplateItem/portal_tests/dms_zuite/testPDFJS.zpt
...est/PathTemplateItem/portal_tests/dms_zuite/testPDFJS.zpt
+70
-0
bt5/erp5_dms_ui_test/bt/template_path_list
bt5/erp5_dms_ui_test/bt/template_path_list
+1
-0
No files found.
bt5/erp5_dms_ui_test/PathTemplateItem/document_module/test_pdf.xml
0 → 100644
View file @
f9391847
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PDF"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts68329727.44
</string>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_content_information
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
ArtBox
</string>
</key>
<value>
<string>
0.00 0.00 595.24 841.84
</string>
</value>
</item>
<item>
<key>
<string>
BleedBox
</string>
</key>
<value>
<string>
0.00 0.00 595.24 841.84
</string>
</value>
</item>
<item>
<key>
<string>
CreationDate
</string>
</key>
<value>
<string>
Wed Jun 11 16:56:03 2008
</string>
</value>
</item>
<item>
<key>
<string>
CropBox
</string>
</key>
<value>
<string>
0.00 0.00 595.24 841.84
</string>
</value>
</item>
<item>
<key>
<string>
Encrypted
</string>
</key>
<value>
<string>
no
</string>
</value>
</item>
<item>
<key>
<string>
File size
</string>
</key>
<value>
<string>
4001 bytes
</string>
</value>
</item>
<item>
<key>
<string>
Form
</string>
</key>
<value>
<string>
none
</string>
</value>
</item>
<item>
<key>
<string>
JavaScript
</string>
</key>
<value>
<string>
no
</string>
</value>
</item>
<item>
<key>
<string>
MediaBox
</string>
</key>
<value>
<string>
0.00 0.00 595.24 841.84
</string>
</value>
</item>
<item>
<key>
<string>
ModDate
</string>
</key>
<value>
<string>
Wed Jun 11 16:56:03 2008
</string>
</value>
</item>
<item>
<key>
<string>
Optimized
</string>
</key>
<value>
<string>
no
</string>
</value>
</item>
<item>
<key>
<string>
PDF version
</string>
</key>
<value>
<string>
1.4
</string>
</value>
</item>
<item>
<key>
<string>
Page rot
</string>
</key>
<value>
<string>
0
</string>
</value>
</item>
<item>
<key>
<string>
Page size
</string>
</key>
<value>
<string>
595.238 x 841.836 pts (A4)
</string>
</value>
</item>
<item>
<key>
<string>
Pages
</string>
</key>
<value>
<string>
1
</string>
</value>
</item>
<item>
<key>
<string>
Producer
</string>
</key>
<value>
<string>
Ibex PDF Creator 4.3.6.4/5025 [.NET 2.0]
</string>
</value>
</item>
<item>
<key>
<string>
Suspects
</string>
</key>
<value>
<string>
no
</string>
</value>
</item>
<item>
<key>
<string>
Tagged
</string>
</key>
<value>
<string>
no
</string>
</value>
</item>
<item>
<key>
<string>
TrimBox
</string>
</key>
<value>
<string>
0.00 0.00 595.24 841.84
</string>
</value>
</item>
<item>
<key>
<string>
UserProperties
</string>
</key>
<value>
<string>
no
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
_count
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_mt_index
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
_tree
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<string>
47d0d61fb76a0ec08f930b017f54a238
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/pdf
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
filename
</string>
</key>
<value>
<string>
hello-world.pdf
</string>
</value>
</item>
<item>
<key>
<string>
height
</string>
</key>
<value>
<int>
-1
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test_pdf
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
PDF
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<string>
PDF to be used for selenium tests
</string>
</value>
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
4001
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
test pdf
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
width
</string>
</key>
<value>
<int>
-1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Length"
module=
"BTrees.Length"
/>
</pickle>
<pickle>
<int>
0
</int>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"OOBTree"
module=
"BTrees.OOBTree"
/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
bt5/erp5_dms_ui_test/PathTemplateItem/portal_tests/dms_zuite/testPDFJS.zpt
0 → 100644
View file @
f9391847
<html
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
xmlns:metal=
"http://xml.zope.org/namespaces/metal"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
Test PDF JS
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test PDF JS
</td></tr>
</thead><tbody>
<!-- First, try object creation using the "Action ..." menu -->
<!-- from list mode -->
<tr>
<td>
open
</td>
<td
tal:content=
"string: ${here/portal_url}/document_module/view"
>
/erp5/document_module/view
</td>
<td></td>
</tr>
<tr>
<td>
selectAndWait
</td>
<td>
select_action
</td>
<td>
Add PDF
</td>
</tr>
<tr>
<td>
assertTextNotPresent
</td>
<td>
No Site Error
</td>
<td></td>
</tr>
<tr>
<td>
verifyPortalStatusMessage
</td>
<td>
Object created.
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td
tal:content=
"string: ${here/portal_url}/document_module/test_pdf"
>
/erp5/document_module/test_pdf
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//*[@id="master"]/div/div[1]/ul/li[4]/a
</td>
<td></td>
</tr>
<tr>
<td>
pause
</td>
<td>
3000
</td>
<td></td>
</tr>
<tr>
<td>
clickAndWait
</td>
<td>
//*[@id="master"]/div/div[1]/button
</td>
<td></td>
</tr>
<tr>
<td>
selectFrame
</td>
<td>
index=0
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//*[@id="pageContainer1"]/div[2]/div[1]
</td>
<td></td>
</tr>
<tr>
<td>
assertText
</td>
<td>
//*[@id="pageContainer1"]/div[2]/div[1]
</td>
<td>
hello world
</td>
</tr>
</body>
</html>
\ No newline at end of file
bt5/erp5_dms_ui_test/bt/template_path_list
View file @
f9391847
document_module/test_pdf
portal_categories/classification
portal_categories/classification/**
portal_tests/dms_zuite
...
...
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