[ptt-users] Question on Running a TestScenario

Olivier Dony olivier.dony at denali.be
Thu Jan 3 15:38:27 PST 2008


Juehee Dawson wrote:
> Sorry for so many emails for this.
> 
> I changed the lines to include the testnode (I thought it was only for
> http testing and commented out before.)

Testnodes are basically workers. Whenever you run a load-test, TestMaker 
distributes the work on the available testnodes (as defined in the XML), 
and according to the crlevels you specified.

Each testnode first goes through a little warm-up, during which the test is 
already executed but not actually measured/recorded.
Then the test is executed *and* recorded, until "testTime" has elapsed.



> Also, removed the resources but only had <run> with 'run name' = the
> pythong file name.  (as shown below)
> 
> But it still doesn't work. And I got an error from the TestNode line I
> added. But it's after the 'Test Complete' line.

The scenario being specified as an XML file, it can be a bit tricky to get 
the syntax exactly right, and all the bits an pieces required to make it 
work. A single spelling error can break everything.
And as you noticed, the error messages are not always very useful in 
finding the problem.

You need to check at least these few things (that I can think of right now):

- the <testnodes> section must specify at least one valid testnode
- the <resources> section must specify a module with a name, and the path 
must correctly point to your test script (you have removed it!)
- each <run> element must refer by name to a module defined in the 
<resources> (check spelling there)
- each <run> element must specify a correct "langtype" attribute (check 
spelling)
- I think the test script must also declare a static/global method called 
"getTest" or "getHTMLTest" (not sure anymore, have a look at the examples), 
which must return an object providing the method specified in the "method" 
attribute of the <run> element.

There are probably other little requirements, so maybe the simplest thing 
to do is to try to run one of the sample scripts packaged with TestMaker.
These should come with working XML scenario files, and when you have one 
working, modify the script body to execute your own test.

If you still have issues, I can send you an example scenario + jython test 
script when I get to the office tomorrow.



-- 
Olivier Dony

Denali s.a., "Bridging the gap between Business and IT"
Rue de Clairvaux, 8, B-1348 Louvain-la-Neuve, Belgium
Office: +32 10 43 99 51 Fax: +32 10 43 99 52
www.denali.be



Disclaimer : this message may contain confidential and/or privileged 
information. If you are not the addressee or authorized to receive this for 
the addressee, you must not use, copy, disclose or take any action based on 
this message or any information herein. If you have received this message 
by mistake, please advise the sender immediately by return e-mail and 
delete this message from your system. Thank you for your cooperation.




More information about the Users mailing list