source: main/waeup.stress/trunk/kofa01/test_scripts/config.py @ 8664

Last change on this file since 8664 was 8657, checked in by uli, 13 years ago

Use new function and clean up a bit.

File size: 727 bytes
RevLine 
[8657]1import time
[8654]2import waeup.stress
3#register_url = 'http://localhost:8080/uniben/applicants/putme2012/register'
4register_url = 'http://localhost:8080/stress_app/@@index'
5print "RUN SETUP"
6
7instance = 'kofa'
8
9## removes any existing ZODB (for a clean ZODB at start)
10waeup.stress.remove_zodb(instance)
11
12## installs a University named 'stress_app' in root folder
13waeup.stress.install_app(instance)
14
[8657]15## starts an instance as daemon
[8654]16waeup.stress.start_instance(instance)
[8657]17waeup.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.
[8654]22#waeup.stress.stop_instance(instance)
Note: See TracBrowser for help on using the repository browser.