Last change
on this file since 8672 was
8672,
checked in by uli, 12 years ago
|
Decouple setup/teardown from multimechanize.
|
File size:
605 bytes
|
Line | |
---|
1 | import waeup.stress |
---|
2 | |
---|
3 | print "RUN SETUP" |
---|
4 | |
---|
5 | instance='kofa' |
---|
6 | |
---|
7 | waeup.stress.configure() |
---|
8 | |
---|
9 | ## removes any existing ZODB (for a clean ZODB at start) |
---|
10 | waeup.stress.remove_zodb(instance) |
---|
11 | |
---|
12 | ## installs a University named 'stress_app' in root folder |
---|
13 | waeup.stress.install_app(instance) |
---|
14 | |
---|
15 | ## starts an instance as daemon |
---|
16 | waeup.stress.start_instance(instance) |
---|
17 | waeup.stress.wait_for_startup('localhost', 8080) # wait until daemon is up |
---|
18 | ## after starting an instance, we have to wait for the instance to come up |
---|
19 | #time.sleep(3) |
---|
20 | |
---|
21 | ## we need a running instance, so leave this commented out. |
---|
22 | #waeup.stress.stop_instance(instance) |
---|
Note: See
TracBrowser for help on using the repository browser.