Ignore:
Timestamp:
11 Jun 2012, 10:17:33 (13 years ago)
Author:
uli
Message:

Decouple setup/teardown from multimechanize.

Location:
main/waeup.stress/trunk/kofa01
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.stress/trunk/kofa01/config.cfg

    r8656 r8672  
    99post_run_script = kofa01/post_run.sh
    1010
     11kofa_instance = kofa
     12kofa_baseport = 8080
     13
     14
    1115[user_group-1]
    1216threads = 5
  • main/waeup.stress/trunk/kofa01/post_run.py

    r8661 r8672  
    55
    66waeup.stress.stop_instance(instance)
     7waeup.stress.configure()
  • main/waeup.stress/trunk/kofa01/test_scripts/config.py

    r8657 r8672  
    1 import time
    2 import waeup.stress
     1## Shared configuration parameters
     2
    33#register_url = 'http://localhost:8080/uniben/applicants/putme2012/register'
    44register_url = 'http://localhost:8080/stress_app/@@index'
    5 print "RUN SETUP"
    6 
    7 instance = 'kofa'
    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 TracChangeset for help on using the changeset viewer.