Author |
Message
|
marcin.kasinski |
Posted: Thu Apr 19, 2007 12:41 pm Post subject: Little JAVA application which tests HTTP flows |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Hello,
I wrote little JAVA application (beta version) which help me with stress tests my HTTP flows and other Web Services.
This application reads conf file.
Example of this file below:
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<conf>
<host>localhost</host>
<port>7080</port>
<loopsize>8</loopsize>
<mindelay>1000</mindelay>
<maxdelay>4000</maxdelay>
<threadcount>10</threadcount>
<data><![CDATA[POST /service/math HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-length: 381
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:q0="http://www.server.pl/service/math"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<q0:addInt>
<q0:intPair v1="4" v2="3" />
</q0:addInt>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
]]></data>
</conf> |
This application opens <threadcount> threads.
Every thread in loop (<loopsize> times) connects to <host>:<port> and sends http headers and soap message (<data> field) .
After every request there is random delay between <mindelay> and <maxdelay> miliseconds.
Example output of this application is
Code: |
Starting 10 Tester Threads
Starting Thread 0 localhost:7080
Starting Thread 1 localhost:7080
Starting Thread 2 localhost:7080
Starting Thread 3 localhost:7080
Starting Thread 4 localhost:7080
Starting Thread 5 localhost:7080
Starting Thread 6 localhost:7080
Starting Thread 7 localhost:7080
Starting Thread 8 localhost:7080
Starting Thread 9 localhost:7080
Thread 2 ended. Execute time 8162 ms, loop:8 socketTimeout 0
Thread 8 ended. Execute time 8142 ms, loop:8 socketTimeout 0
Thread 1 ended. Execute time 8182 ms, loop:8 socketTimeout 0
Thread 7 ended. Execute time 8162 ms, loop:8 socketTimeout 0
Thread 3 ended. Execute time 8202 ms, loop:8 socketTimeout 0
Thread 0 ended. Execute time 8222 ms, loop:8 socketTimeout 0
Thread 9 ended. Execute time 8172 ms, loop:8 socketTimeout 0
Thread 4 ended. Execute time 8242 ms, loop:8 socketTimeout 0
Thread 6 ended. Execute time 8212 ms, loop:8 socketTimeout 0
Thread 5 ended. Execute time 8232 ms, loop:8 socketTimeout 0 |
I know that this tool is not very user friendly but if you are interested in this tool let me know.
If you have additional requirements for this tool let me know too. _________________ Marcin
Last edited by marcin.kasinski on Sat Apr 28, 2007 12:17 pm; edited 2 times in total |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 19, 2007 1:06 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Have you seen nettool? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Apr 19, 2007 1:29 pm Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
jefflowrey wrote: |
Have you seen nettool? |
To tell you the truth no.
Quite nice tool (seeing screenshots).
Brother of TCPMonitor from apache
Does it have batch operatins ?
I will have to try it. _________________ Marcin |
|
Back to top |
|
 |
vsr |
Posted: Thu Apr 19, 2007 2:03 pm Post subject: |
|
|
Centurion
Joined: 04 Apr 2006 Posts: 104
|
That sounds awesome Marcin,
I am using webservice flows ( both flows exposed as webservice and webservice client flow ) too. We are now trying to stress test using LoadRunner which is causing some problems with sending http posts .
I am interested in your tool though , where can it be found ; is there any your own website ?Let us know !
Thanks |
|
Back to top |
|
 |
billybong |
Posted: Thu Apr 19, 2007 2:09 pm Post subject: |
|
|
 Disciple
Joined: 22 Jul 2005 Posts: 150 Location: Stockholm, Sweden
|
jefflowrey wrote: |
Have you seen nettool? |
Can you really use nettool to stress test HTTP connections?
I've only used it to invoke services one at a time, not a whole batch at the same time. _________________ IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Integration Developer V6.0
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere DataPower |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 19, 2007 2:16 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It may not be explicitly useful for stress testing. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri Apr 20, 2007 12:20 pm Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Application (still beta version) and little description is placed here:
http://itzone.com.pl/download/wstester/
I will try to prepare more detailed description soon.
Please try it.
Any requirements ? _________________ Marcin |
|
Back to top |
|
 |
|