| File timeout_test,
573 bytes
(added by callan, 12 years ago) |
|
Timeout test case
|
| Line | |
|---|
| 1 | #!/usr/bin/env python |
|---|
| 2 | |
|---|
| 3 | import time |
|---|
| 4 | import datetime |
|---|
| 5 | import omero |
|---|
| 6 | |
|---|
| 7 | PIXELS_ID = 9072 |
|---|
| 8 | |
|---|
| 9 | def ping(tstore, sleep=0): |
|---|
| 10 | print "Sleeping for %d seconds..." % sleep |
|---|
| 11 | time.sleep(sleep) |
|---|
| 12 | print "Ping at: %s" % datetime.datetime.now() |
|---|
| 13 | tstore.setPixelsId(PIXELS_ID) |
|---|
| 14 | tstore.resetDefaults() |
|---|
| 15 | |
|---|
| 16 | a = ["--Ice.Config=../../etc/omero.config"] |
|---|
| 17 | c = omero.client(args=a) |
|---|
| 18 | c.createSession() |
|---|
| 19 | tstore = c.sf.createThumbnailStore() |
|---|
| 20 | |
|---|
| 21 | ping(tstore) |
|---|
| 22 | ping(tstore, 15) |
|---|
| 23 | ping(tstore, 30) |
|---|
| 24 | ping(tstore, 60) |
|---|
| 25 | ping(tstore, 120) |
|---|
| 26 | ping(tstore, 240) |
|---|
| 27 | ping(tstore, 360) |
|---|
| 28 | ping(tstore, 480) |
|---|
| 29 | ping(tstore, 600) |
|---|
| 30 | ping(tstore, 720) |
|---|
Download in other formats:
1.3.13-PRO © 2008-2011
Agilo Software all
rights reserved
(this page was served in: 0.39509 sec.)