[ptt-users] Question on Running a TestScenario
Juehee Dawson
jueheenara at gmail.com
Thu Jan 3 14:54:29 PST 2008
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.)
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.
Has anyone tried the TestScenario with other than HTTP testing? I'm a
little frustrated because the methods I specify are not called. I'm
wondering if the xml file is going through the <run> line ever. Is
there any way to check?
*** Console output (I guess to see my print outs here because <log> is
set to console, but I don't see any..)
ava.lang.NullPointerException
at com.pushtotest.testnetwork.Master.getFileFromNodeAndSaveIt(Unknown Source)
at com.pushtotest.testmaker.XSTest.client.TestNode.getFileFromNodeAndSaveIt(TestNode.java:370)
at com.pushtotest.testmaker.XSTest.client.ControlRunner.getFiles(ControlRunner.java:1070)
at com.pushtotest.testmaker.XSTest.client.ControlRunner.run(ControlRunner.java:497)
Error on tally file
/localdisk/PushToTest//Results/Thu_Jan_03_17-48-12_EST_2008/localhost-uc0crl0sz0.xml
The node localhost doesn't start the usecase
- Starting test -
- Recording Transaction -
- Test Complete! -
- Getting Result Files -
java.lang.NullPointerException
at com.pushtotest.testnetwork.Master.getFileFromNodeAndSaveIt(Unknown Source)
at com.pushtotest.testmaker.XSTest.client.TestNode.getFileFromNodeAndSaveIt(TestNode.java:370)
at com.pushtotest.testmaker.XSTest.client.ControlRunner.getFiles(ControlRunner.java:1070)
at com.pushtotest.testmaker.XSTest.client.ControlRunner.run(ControlRunner.java:497)
Error on tally file
/localdisk/PushToTest//Results/Thu_Jan_03_17-48-12_EST_2008/localhost-uc0crl1sz0.xml
Unable to tally files: Not enough files.
****
**** Modified Test Scenario****
<?xml version="1.0" encoding="UTF-8"?>
<testscenario xmlns="www.pushtotest.com/tm5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="www.pushtotest.com/tm5
" version="2.0">
<!--
PushToTest(tm) Test Scenario for a Functional Test
PushToTest is the open-source SOA governance and test automation platform
For technical support, documentation, and help see http://www.pushtotest.com
-->
<basics>
<name>Untitled Functional Test</name>
<defaultdirectory>/localdisk/PushToTest/</defaultdirectory>
</basics>
<testnodes>
<node name="localhost"
location="http://localhost:8080/TestNetwork/ws/TestNode"/>
</testnodes>
<!-- Dynamically loaded jar files and other resources -->
<resources/>
<!--<module name="Juehee_test" path="/localdisk/PushToTest/smtpClient.py"/>
</resources>-->
<loadtest>
<testusecase>
<dimensions>
<crlevels>
<crlevel value="10"/>
<crlevel value="20"/>
</crlevels>
<usecases>
<usecase name="SMTP_Testcase">
<sequence name="Untitled_sequence" pasroportion="100">
<test>
<!-- Add your <run> methods here -->
<!--<run module="Juehee_test" name="test1"
testclass="smtpTest" method="setUp" langtype="jython"/>-->
<run name="smtpClient" testclass="smtpTest" method="runTest"
langtsdype="jython"/>
</test>
</sequence>
</usecase>
</usecases>
</dimensions>
</testusecase>
</loadtest>
<logs>
<log type="console"/>
</logs>
<options>
<sleeptime>0</sleeptime>
<delayBetweenStartingUseCasses time="1000"/>
<delayBetweenTestCases time="100"/>
<testTime time="1000"/>
</options>
</testscenario>
On Jan 3, 2008 4:33 PM, Juehee Dawson <jueheenara at gmail.com> wrote:
> Hello,
>
> I'm running a load test scenario in using TestMaker.
>
> The loadtest seems go to the end, but I don't think the actual methods
> specified in xml file is run. (I don't see any results and any logs).
>
> This is what I see in the output
> ***** START
> Module File: /localdisk/PushToTest/smtpClient.py
> - Loading Scenario -
> - Starting Monitors -
> - Monitoring on Testnodes is disabled -
> - Monitoring on Host is disabled -
> - Making Transactions -
> - Starting test -
> - Recording Transaction -
> - Test Complete! -
> - Getting Result Files -
> - Starting test -
> - Recording Transaction -
> - Test Complete! -
> - Getting Result Files -
> Unable to tally files: Not enough files.
> *********
>
> It says the test is complete but I don't think actual methods were run
> during the test scenario. (This is an SMTP test python file, but I
> don't see a sent email (this python file worked when it was run
> alone).
>
> I'm including the entire xml file here. Can anyone tell why it's not
> running the actual method?
>
> Also, when the TestMaker starts, I see the following message saying
> that log4j is not initialized, or no appenders cound. Does anyone know
> of this problem and has fixed it? Thank you in advance.
>
> **** log4j error *****
> 008-01-03 10:12:09.671::INFO: Started SelectChannelConnector at 0.0.0.0:8080
> log4j:WARN No appenders could be found for logger (info0).
> log4j:WARN Please initialize the log4j system properly.
>
> **** test scenario file *****
> <?xml version="1.0" encoding="UTF-8"?>
> <testscenario xmlns="www.pushtotest.com/tm5"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="www.pushtotest.com/tm5
> " version="2.0">
> <!--
> PushToTest(tm) Test Scenario for a Functional Test
>
> PushToTest is the open-source SOA governance and test automation platform
> For technical support, documentation, and help see http://www.pushtotest.com
> -->
> <basics>
> <name>Untitled Functional Test</name>
> <defaultdirectory>/localdisk/PushToTest</defaultdirectory>
> </basics>
> <testnodes>
>
> <!-- <node name="localhost"
> location="http://localhost:8080/TestNetwork/ws/TestNode"/>-->
> </testnodes>
> <!-- Dynamically loaded jar files and other resources -->
> <resources>
> <module name="default_test" path="/localdisk/PushToTest/smtpClient.py"/>
> </resources>
> <loadtest>
> <testusecase>
> <dimensions>
> <crlevels>
> <crlevel value="10"/>
> <crlevel value="20"/>
> </crlevels>
> <usecases>
> <usecase name="SMTP_Testcase">
> <sequence name="Untitled_sequence">
> <test>
> <!-- Add your <run> methods here -->
> <run module="default_" name="test1" testclass="smtpTest"
> method="setUp" langtype="jython"/>
> <run module="default_" name="test1" testclass="smtpTest"
> method="runTest" langtype="jython"/>
> </test>
> </sequence>
> </usecase>
> </usecases>
> </dimensions>
> </testusecase>
> </loadtest>
> <logs>
> <log type="console"/>
> </logs>
>
> <options>
> <sleeptime>0</sleeptime>
> <delayBetweenStartingUseCasses time="1000"/>
> <delayBetweenTestCases time="100"/>
> <testTime time="1000"/>
> </options>
>
>
> </testscenario>
>
More information about the Users
mailing list