Changeset 8672 for main/waeup.stress
- Timestamp:
- 11 Jun 2012, 10:17:33 (12 years ago)
- Location:
- main/waeup.stress/trunk
- Files:
-
- 2 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.stress/trunk/README.rst
r8658 r8672 67 67 Basically, you run a stresstest like this:: 68 68 69 (mysandbox) $ ./bin/ multimech-run <PROJECT>69 (mysandbox) $ ./bin/stress-run <PROJECT> 70 70 71 where ``<PROJECT>`` is one of the directories in here like 'kofa01'. 71 where ``<PROJECT>`` is the name of one of the directories in here like 72 'kofa01'. 72 73 73 74 So,:: 74 75 75 (mysandbox) $ ./bin/ multimech-run kofa0176 (mysandbox) $ ./bin/stress-run kofa01 76 77 77 78 should give some results. … … 82 83 run each test. 83 84 85 Generally, for each test project the configuration can be done in the 86 test project root. Here you will find at least a `config.cfg` for 87 ini-style configuration (required) and optionally a `pre_run.py` and 88 `post_run.py` to care for things like setting up an instance and 89 shutting it down afterwards. 90 84 91 Please keep in mind, that these tests normally require some local or 85 92 remote setup, for instance a running Kofa instance with certain -
main/waeup.stress/trunk/kofa01/config.cfg
r8656 r8672 9 9 post_run_script = kofa01/post_run.sh 10 10 11 kofa_instance = kofa 12 kofa_baseport = 8080 13 14 11 15 [user_group-1] 12 16 threads = 5 -
main/waeup.stress/trunk/kofa01/post_run.py
r8661 r8672 5 5 6 6 waeup.stress.stop_instance(instance) 7 waeup.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 3 3 #register_url = 'http://localhost:8080/uniben/applicants/putme2012/register' 4 4 register_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 folder13 waeup.stress.install_app(instance)14 15 ## starts an instance as daemon16 waeup.stress.start_instance(instance)17 waeup.stress.wait_for_startup('localhost', 8080) # wait until daemon is up18 ## after starting an instance, we have to wait for the instance to come up19 #time.sleep(3)20 21 ## we need a running instance, so leave this commented out.22 #waeup.stress.stop_instance(instance) -
main/waeup.stress/trunk/setup.py
r8654 r8672 86 86 [console_scripts] 87 87 bootstrap_instances = waeup.stress:bootstrap 88 stress-run = waeup.stress.run:main 88 89 """, 89 90 ) -
main/waeup.stress/trunk/src/waeup/stress/__init__.py
r8655 r8672 122 122 subprocess.call( 123 123 './bin/python-console %s' % script, shell=True) 124 125 124 os.chdir(old_cwd_) 125 126 def configure(): 127 import ConfigParser 128 from multimechanize.utilities.run import project_name, cmd_opts, args 129 print "Configure" 130 print "PROJECT NAME: ", project_name
Note: See TracChangeset for help on using the changeset viewer.