Fwd: [Dev] TM5 Checklist for "Beta" Release

Filipa Martins Soares Abrantes filipafmsoares at gmail.com
Thu May 17 03:18:28 PDT 2007


Hi again!

I've sent the following post yesterday, but I forgot to change the subject.
I hope anyone can help me.
Thanks!

Filipa


---------- Forwarded message ----------
From: Filipa Martins Soares Abrantes <filipafmsoares at gmail.com>
Date: May 16, 2007 3:02 PM
Subject: Re: [Dev] TM5 Checklist for "Beta" Release
To: PushToTest TestMaker Developers List <dev at lists.pushtotest.com>



 Hi!

I'm trying to execute a test script with concurrent threads, but I think the
threads are being executed in a sequential order instead.



This is the code I'm executing:



    numThread = 3
    numThreadPerBlocks = 5
    fimThread = 0
    tinicio = Date().time

    while (i < numThread):
        x = 0
        if (numThread - i < numThreadPerBlocks):
            numThreadPerBlocks = numThread - i

        while (x < numThreadPerBlocks):
                print "Start thread ", i
                test = Portal5( 1, 'console file ', 0,
'20.|300|301|302|303|304|307|401|403|408|41.', ' log.xml', 5, 5, 5, 1, 1,
'Portal5', 1 )
                test.setUp()
                thread.start_new_thread( test.runTest(), (i,))
                x += 1
                i += 1
                time.sleep(10)

        time.sleep (40)
        print "Stop between blocks"

    while (fimThread < i):
        time.sleep(1)


This is my text output:



Start thread  0

Portal5: Initialize

test: setUp

test: runTest

Request step: 1, http://www1.asd.pt/PortalWeb/content/

Request step: 2, http://www1.asd.pt/PortalWeb/content/

..

Start thread  1

Portal5: Initialize

test: setUp

test: runTest

Request step: 1, http://www1.asd.pt/PortalWeb/content/

Request step: 2, http://www1.asd.pt/PortalWeb/content/



Can anyone tell me how can put the threads executing concurrently?



Thanks in advance,

Filipa


-- 
Filipa M. Soares Abrantes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/dev/attachments/20070517/19c182d7/attachment-0001.htm


More information about the Dev mailing list