summaryrefslogtreecommitdiff
path: root/java/testkit
Commit message (Collapse)AuthorAgeFilesLines
* QPID-3858: Updated branch - merged from trunk r.1333987Kim van der Riet2012-05-045-444/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1334037 13f79535-47bb-0310-9956-ffa450edef68
* This is related to rev 1032640Rajith Muditha Attapattu2010-11-085-962/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1032733 13f79535-47bb-0310-9956-ffa450edef68
* Moved the testkit scripts under the tools module.Rajith Muditha Attapattu2010-11-083-396/+0
| | | | | | | | | | I will be moving the source also into the tools module in subsequent commit. The goal is to have all tools in a single location. The perftest script and the testkit script are very good tools for release testing. These scripts will also be used in downstream packages for the same purpose. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1032640 13f79535-47bb-0310-9956-ffa450edef68
* The receiver was only counting messages if dups check was on.Rajith Muditha Attapattu2010-10-061-0/+5
| | | | | | | Therefore added logic to count messages even when we are not checking for dups. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1005024 13f79535-47bb-0310-9956-ffa450edef68
* Added more test cases to cover failover.Rajith Muditha Attapattu2010-10-051-12/+96
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1004496 13f79535-47bb-0310-9956-ffa450edef68
* Added the ability to load the store module via installed rpms or using an ↵Rajith Muditha Attapattu2010-09-302-122/+74
| | | | | | | | | | | explicitly specified location. Moved common functionality into base class and helper methods. Added several test cases for the ConcurrencyTest class. (Temporarily removed the FailoverTests.) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1002928 13f79535-47bb-0310-9956-ffa450edef68
* A connection listener is set to all connections, to catch any connection ↵Rajith Muditha Attapattu2010-09-301-2/+10
| | | | | | level exceptions and report them via the error handler. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1002927 13f79535-47bb-0310-9956-ffa450edef68
* Added a failover test case that uses durable subscriptions.Rajith Muditha Attapattu2010-09-291-1/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1002448 13f79535-47bb-0310-9956-ffa450edef68
* Improved the error handling and modified the parameters to pass in an ↵Rajith Muditha Attapattu2010-09-291-30/+47
| | | | | | address string when invoking a receiver or a sender. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1002447 13f79535-47bb-0310-9956-ffa450edef68
* Modified the Sender and Receiver to work with the new addressing strings.Rajith Muditha Attapattu2010-09-293-130/+103
| | | | | | | | | | | You could now invoke the sender or receiver by passing an addressing string as a program argument. The sender and receiver could now be utilised more easily as a building block for scripting test cases. Modified the TestLauncher to also work with addressing strings. The Receiver was also modified to work as a durable subscriber if specified via a JVM arg. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1002446 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2857 : Address issues found by running FindBugs against the Java codebaseRobert Godfrey2010-09-123-43/+98
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@996393 13f79535-47bb-0310-9956-ffa450edef68
* Changed README to README.txt throughout the project for consistency. Removed ↵Jonathan Robie2010-06-231-0/+0
| | | | | | gentools/README.txt, which described Velocity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957201 13f79535-47bb-0310-9956-ffa450edef68
* made minor changes to get testkit running again.Rajith Muditha Attapattu2010-06-081-26/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@952509 13f79535-47bb-0310-9956-ffa450edef68
* Moved the scripts and config files to the tools module as the Perf Producer ↵Rajith Muditha Attapattu2010-03-043-212/+2
| | | | | | and Consumer are now housed under the tools module. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918790 13f79535-47bb-0310-9956-ffa450edef68
* I have added the license header to the files included in this commit.Rajith Muditha Attapattu2010-02-121-0/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@909641 13f79535-47bb-0310-9956-ffa450edef68
* This is the first attempt at fixing QPID-2283Rajith Muditha Attapattu2009-12-161-11/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@891416 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2253 - Cluster node shuts down with inconsistent error.Alan Conway2009-12-091-6/+2
| | | | | | | | | | Add a missing memberUpdate on the transition to CATCHUP mode. The inconsistent error was caused because the newly updated member did not have its membership updated and so was missing an failover update message that the existing members sent to a new client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@888874 13f79535-47bb-0310-9956-ffa450edef68
* Added improved error handlingRajith Muditha Attapattu2009-12-011-13/+16
| | | | | | | | | Modified the script to adapt to changes made by Alan in brokertest.py The testkit can now receive and handle errors published by the JMS sender or receiver via an error queue. For example if the test detects and out of order message it will notify the test framework and it will use that information to throw an exception with the captured java stack trace. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@885635 13f79535-47bb-0310-9956-ffa450edef68
* Modified the script to use absoulte paths when creating the classpath as ↵Rajith Muditha Attapattu2009-12-011-1/+2
| | | | | | relative paths could create issues when running the script in automated build environments. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@885633 13f79535-47bb-0310-9956-ffa450edef68
* Uncommented the other two testsRajith Muditha Attapattu2009-11-193-8/+19
| | | | | | | | Modified the scripts to work out the errors. It's now in a reasonable state to start expanding the tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@882346 13f79535-47bb-0310-9956-ffa450edef68
* Added log4j config to the test launcherRajith Muditha Attapattu2009-11-185-332/+105
| | | | | | | | | Added shell script to run testkit.py Removed brokertest.py, instead using the version checked in under python/qpid folder by Alan. The shell scripts and the setup is work in progress, checking in now to help Alan reproduce an issue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881896 13f79535-47bb-0310-9956-ffa450edef68
* changed address syntax to permit more complex subjects, added escaping, ↵Rafael H. Schloming2009-11-131-2/+2
| | | | | | improved error reporting git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@835879 13f79535-47bb-0310-9956-ffa450edef68
* testkit.py provides the plumbing for running longer duration tests using the ↵Rajith Muditha Attapattu2009-11-112-0/+539
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multi-broker framework defined in brokertest.py For the time being testkit is carrying it's own copy of brokertest.py. The goal is to use the one available under the /python folder asap. Testkit is intended run as, 1) an ant target via "ant testkit" (to allow automated testing) 2) standalone against a release If running standalone you need to have the qpid/python files in the python path and $QP_CP should be set to the classpath that contains the qpid jars.Assuming $PYTHON_DIR points to the python folder you could run it as follows. $PYTHON_DIR/qpid-python-test -m testkit The ant target is currently not operational as there seems to be a few issues when running under jython. Tests ========= Currently only 3 tests are added. 1. test_multiplexing_con 2. test_multiplexing_con_tx 3. test_failover All tests are using the generic Sender and Receiver via the TestLauncher checked under the testkit module. Currently there are occasional test failures for test_multiplexing_con_tx The 'test_failover' test is currently failing due to a known bug. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834754 13f79535-47bb-0310-9956-ffa450edef68
* Moved MessageFactory to the tools module.Rajith Muditha Attapattu2009-11-116-64/+877
| | | | | | | | | | Added a Generic Sender and a Receiver. They can be run standalone or used as a building block to create more complex tests. TestLauncher is a utility to start a sender or receiver in multiple threads with some added plumbing. Please refer to each class to see the full set of options available. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834724 13f79535-47bb-0310-9956-ffa450edef68
* Added the LatencyTest and PerfTest kit under the tools modules alongside ↵Rajith Muditha Attapattu2009-11-111-1/+1
| | | | | | | | | QpidBench. Modified the testkit build.xml to add tools as build dependency as some of the classes in testkit will be using MessageFactory git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834722 13f79535-47bb-0310-9956-ffa450edef68
* Removed the following files as they will be replaced by a generic Sender and ↵Rajith Muditha Attapattu2009-11-1115-2211/+51
| | | | | | | | | Receiver. The bin files and the files under o/a/qpid/teskit/perf are moved under tools. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834721 13f79535-47bb-0310-9956-ffa450edef68
* Removed extra system out statements from PerfProducer.javaRajith Muditha Attapattu2009-05-273-12/+39
| | | | | | | | Added more test cases to the perf report Uncommented and added clientid and subscription props to the testTopicD destination. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@779212 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a minor bug in pre-creating the payload array used in random msg size ↵Rajith Muditha Attapattu2009-05-241-1/+5
| | | | | | | | | test. It now creates an array of payloads starting from zero bytes (empty payload) to msg_size-1 bytes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@778150 13f79535-47bb-0310-9956-ffa450edef68
* Marked all queues as auto-delete to allow clean up after a test exitsRajith Muditha Attapattu2009-05-231-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@777927 13f79535-47bb-0310-9956-ffa450edef68
* The default value for message cache is set to false.Rajith Muditha Attapattu2009-05-232-6/+52
| | | | | | | | | Added the functionality to support variable message sizes using -Drandom_msg_size=true. This will create an array of payloads from 1 byte to x bytes where x is configured by -Dmsg_size=x (default is 1024). The Random number generator works of the same seed so different test runs can be compared properly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@777922 13f79535-47bb-0310-9956-ffa450edef68
* Modified the default message size to 1024 - I missed the default value for ↵Rajith Muditha Attapattu2009-05-071-1/+1
| | | | | | the system property in the previous commit git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@772492 13f79535-47bb-0310-9956-ffa450edef68
* Modified the default message size to 1024 bytesRajith Muditha Attapattu2009-05-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@772491 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1479Rajith Muditha Attapattu2009-01-138-26/+153
| | | | | | | This commit contains themodifications done to the perf test classes to use the thread abstraction patch. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@734212 13f79535-47bb-0310-9956-ffa450edef68
* Appologies for the sudden checkin without notice, close to the release cycle.Rajith Muditha Attapattu2008-11-218-153/+26
| | | | | | | Reverting the changes back. Will attach a patch and commit after the release. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719657 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1479.Rajith Muditha Attapattu2008-11-218-26/+153
| | | | | | | | | | | | | | | For starters I have changed the IoSender.java IoReceiver.java and AMQSession.java#Dispatcher to use the Thread factory to create the threads they require. The ThreadFactory has two implimentations, the default being the java.lang.Threads. The other is the RealtimeThreadFactory which uses reflection to create threads with a specific priority. -Dqpid.thread_factory=<thread_factory_class> will decide which thread factory should be loaded. -Dqpid.rt_thread_priority=<int> specifies the gloabl real time thread priority and defaults to 20. You could also set individual thread priorities by adding the nessacery config+code changes. I have also changed the Testkit and QpidBench to use the Thread factory so you could use them for testing/benchmarking work on RT JVMs. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719628 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1161Rajith Muditha Attapattu2008-10-231-0/+332
| | | | | | | | | | | The objective of the latency test is to get latency sample after the system achives steady state. It sends X messages in warmup mode (and waits for confirmation) before sending Y messages which it uses to takes measurements. It measures std dev, min, max and avg latency. The value for X should be sufficiently large to ensure that the system is in steady state to get a more acurate representation. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707232 13f79535-47bb-0310-9956-ffa450edef68
* Add ASL to everywhere, to everything.Aidan Skinner2008-08-281-0/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@689937 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1072: renamed org.apache.qpidity -> org.apache.qpidRafael H. Schloming2008-07-291-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680803 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1161.Rajith Muditha Attapattu2008-07-081-4/+8
| | | | | | | Added the ability to pass in JVM ARGs. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674976 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1162Rajith Muditha Attapattu2008-07-075-5/+162
| | | | | | | | Added a README file to describe what the tests are and how they can be run. Modified to consumers to print the iteration number instead of the message id. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674622 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPId-1161.Rajith Muditha Attapattu2008-07-0712-25/+289
| | | | | | | | | | | Modified the soak tests to print latency samples and throughput rates for every iteration. Added run_soak_client.sh soak_report.sh as an example of how to use soak test and produce a report. Modified other scripts to add comments. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674569 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1161.Rajith Muditha Attapattu2008-07-072-2/+2
| | | | | | | | Added the absolute path to setevn.sh, so that the following scripts can be called from any location. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674392 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1161.Rajith Muditha Attapattu2008-07-075-33/+50
| | | | | | | | | Made minor modifications to the scripts and added a log4j file for the tests. The scripts are now modified to use the JAVA_HOME. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674391 13f79535-47bb-0310-9956-ffa450edef68
* This commit is related to QPID-1161.Rajith Muditha Attapattu2008-06-3017-0/+1882
Please refer to the JIRA for complete details. In Summary this contains a simple test kit comprising of perf and soak tests. The focus is on producing a packaged set of tests that can be easily deployed on target environment. For Quick perf report for a particular release, please run perf_report.sh which will show results for 8 common use cases in a tabular format. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@672810 13f79535-47bb-0310-9956-ffa450edef68