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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos
Commits
7a91e3f2
Commit
7a91e3f2
authored
Sep 20, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run-zelenium-test: remove failed activities and reindex
parent
3c56c310
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
2 deletions
+43
-2
stack/erp5/template/run-zelenium-test.py.in
stack/erp5/template/run-zelenium-test.py.in
+43
-2
No files found.
stack/erp5/template/run-zelenium-test.py.in
View file @
7a91e3f2
...
...
@@ -109,6 +109,47 @@ def main():
"&__ac_name=%s" \
"&__ac_password=%s" % (args.remote_access_url, {{ repr(user) }}, {{ repr(password) }})
#wait for bt5 to be installed
wait_url = args.remote_access_url + ('/erp5/portal_skins/erp5_ui_test_core?&__ac_name=%s&__ac_password=%s' %( {{ repr(user) }}, {{ repr(password) }}))
while 1:
try:
response = urlopen(wait_url)
try:
if response.code == 200:
break
finally:
response.close()
except Exception:
traceback.print_exc()
time.sleep(100)
#clean activities and reindex to remove failed activities
wait_url = args.remote_access_url + ('/erp5/portal_activities/manageClearActivities?&__ac_name=%s&__ac_password=%s' %( {{ repr(user) }}, {{ repr(password) }}))
while 1:
try:
response = urlopen(wait_url)
try:
if response.code == 200:
break
finally:
response.close()
except Exception:
traceback.print_exc()
time.sleep(100)
wait_url = args.remote_access_url + ('/erp5/ERP5Site_reindexAll?clear_catalog=1?&__ac_name=%s&__ac_password=%s' %( {{ repr(user) }}, {{ repr(password) }}))
while 1:
try:
response = urlopen(wait_url)
try:
if response.code == 200:
break
finally:
response.close()
except Exception:
traceback.print_exc()
time.sleep(100)
# Wait until all activities are finished...
wait_url = args.remote_access_url + '/erp5/Zuite_waitForActivities'
while 1:
...
...
@@ -123,7 +164,7 @@ def main():
response.close()
except Exception:
traceback.print_exc()
time.sleep(10)
time.sleep(10
0
)
tool = taskdistribution.TaskDistributor(portal_url=args.master_url)
browser = webdriver.Remote(appium_url, capabilities)
...
...
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