Hi,

wt.parallel.nbWorkers wasn't intended to perform load testing but just
to run functional tests faster. For load testing I'm working on the
integration with JMeter. You can contact me off list if you're
interested by more details.

If <dataDriven/> is called within <webtest/>, you'll have only one
<webtest/>, and therefore it can be executed only by one thread.

I personally don't know the dataDriven with directories of .properties.
Can you investigate on the cause of the NPE?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


[EMAIL PROTECTED] wrote:
> Dear all!
> 
> I have problems using wt.parallel.nbWorkers together with <dataDriven/>.
> 
> Originally I tried to simulate 100 users that submit thousands of different
> sets of data to our webapp simultaneously by nested <dataDriven/> loops.
> However, I could only run the test without the -Dwt.parallel.nbWorkers=100
> option.  Even -Dwt.parallel.nbWorkers=1 failed.  As a load test, this has
> not
> been too much help.  Apart from that, I really like WebTest!
> 
> 
> The problem seems to appear when <dataDriven/> is called within <webtest/>.
> The result is an org.apache.tools.ant.BuildException.
> 
> Further down the stacktrace a java.lang.NullPointerException is raised
> right
> after the start tag of <dataDriven></dataDriven>:
> 
> [...]
> Caused by: java.lang.NullPointerException
>  at com.canoo.ant.table.APropertyTable.getDepth(APropertyTable.java:39)
>  at
>  com.canoo.ant.table.APropertyTable.getPropertiesList(APropertyTable.java:81)
> 
>  at
>  com.canoo.ant.task.PropertyTableTask.execute(PropertyTableTask.java:125)
>  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>  at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>  at
>  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at
>  org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> 
>  ... 62 more
> [...]
> 
> Yep, I am using directories of .properties files to store my <dataDriven/>
> data.  The rest of stacktrace seems to be unrelated.
> 
> 
> Further testing has shown a difference between different nestings and
> different N for -Dwt.parallel.nbWorkers=N for a test that starts 4
> <webtests/>
> overall:
> 
> when I nest two <dataDriven/> *inside* a <webtest/> then
> - N=1 is o.k. (all successful)
> - N=4 fails 3 out of 4 times
>   with BuildException/NullPointerException after the *outer* <dataDriven/>
> 
> when I nest two <dataDriven/> and one is *outside* a <webtest/> then
> - N=1 and N=4 both fail 4 out of 4 times
>   with BuildException/NullPointerException after the *inner* <dataDriven/>
> 
> 
> Does anyone have a clue what goes wrong here?  Any help would be
> appreciated.
> 
> 
>  Best,
> Konrad
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to