Ticket #744: timeout_test

File timeout_test, 573 bytes (added by callan, 12 years ago)

Timeout test case

Line 
1#!/usr/bin/env python
2
3import time
4import datetime
5import omero
6
7PIXELS_ID = 9072
8
9def 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
16a = ["--Ice.Config=../../etc/omero.config"]
17c = omero.client(args=a)
18c.createSession()
19tstore = c.sf.createThumbnailStore()
20
21ping(tstore)
22ping(tstore, 15)
23ping(tstore, 30)
24ping(tstore, 60)
25ping(tstore, 120)
26ping(tstore, 240)
27ping(tstore, 360)
28ping(tstore, 480)
29ping(tstore, 600)
30ping(tstore, 720)

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.39509 sec.)

We're Hiring!