Mailingliste - Einträge 2006

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

[QF-Test] Multi-user testing

  • Subject: [QF-Test] Multi-user testing
  • From: "Adrian Chamberlain" <Adrian.Chamberlain@?.com>
  • Date: Mon, 27 Nov 2006 16:40:56 +0000


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/", line 69, in
  File "/opt/qftest/qftest-1.99.1/jython/Lib/", line 364, in
  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

ps. I am using the latest version of QF-Test  i.e. 1.99.1  on HP-UX 11.11

Attachment: multi-user.qft
Description: Binary data

Attachment: common.qft
Description: Binary data

Attachment: interactive.qrz
Description: Binary data

Attachment: two-threads.qrz
Description: Binary data

Videos Downloads Dokumentation Kaufen Gratis Testen