Mailingliste - Einträge 2006


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Multi-user testing


  • Subject: Re: [QF-Test] Multi-user testing
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 29 Nov 2006 17:43:45 +0100

Hi Adrian,

thanks for the detailed problem description.

Unfortunately I have no idea what might be going wrong. I ran your
example here on a Linux machine in batch mode with 1 and more threads
(up to 50) and always got correct results.

I don't think it's the threads that are causing the problem. Did you
try running in batch mode with a single thread?

Please also try alternative scripts that simply imports some other
packages, one that QF-Test doesn't import by default, e.g. glob,
and one of QF-Test's standards like qfcommon.

Best regards,
    Greg


"Adrian Chamberlain" <Adrian.Chamberlain@?.com> writes:

> Hi,
> 
> I have started to experiment with QF-Tests feature which allows you to run
> multiple clients in parallel ( i.e. multi-user testing ).  However, I have
> encountered a small problem.  I have created a small test-suite file (
> multi-user.qft ) which can be used to illustrate this problem.
> 
> Simple test-suite file to illustrate problem ( multi-user.qft ).
> 
> (See attached file: multi-user.qft)
> (See attached file: common.qft)
> 
> If I run this test using QF-Test in interactive mode (i.e. QF-Test Server
> GUI), then the call to the procedure 'common.getHostIPAddress' works fine,
> and returns the IP address resolved for the given hostname.  Example
> run-log is attached ( interactive.qrz ) :
> 
> Running the test-suite in interactive mode (using GUI)
> i.e. command line :  qftest multi-user.qft
> (See attached file: interactive.qrz)
> 
> However, if I run this same test using the batch/multi-threading mode, the
> server script within the procedure 'common.getHostIPAddress', throws a
> script exception.  Example run-log is attached ( two-threads.qrz ) :
> 
> Running the test-suite in batch/multi-threading mode ( 2 clients )
> i.e. command line :  qftest -batch -threads 2 multi-user.qft
> (See attached file: two-threads.qrz)
> 
> Following is extract of the exception message detailed in above run-log.
> 
> de.qfs.apps.qftest.shared.exceptions.ScriptException: The script failed
> with the following message:
> Traceback (innermost last):
>   File "<string>", line 1, in ?
>   File "/opt/qftest/qftest-1.99.1/jython/Lib/qftest.py", line 69, in
> runscript
>   File "/opt/qftest/qftest-1.99.1/jython/Lib/qfcommon.py", line 364, in
> runscript
>   File "<string>", line 1, in ?
> ImportError: no module named socket
> .....
> .....
> 
> Can anyone enlighten me as to why the example test-suite provided works
> find when using QF-Test in interactive mode, but fails with the above
> exception when running multiple clients on parallel threads ?
> 
> Any advice would be much appreciated
> Kind Regards
> A.Chamberlain
> 
> ps. I am using the latest version of QF-Test  i.e. 1.99.1  on HP-UX 11.11

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Dokumentation Kaufen Gratis Testen