[ptt-users] Question on Running a TestScenario

Olivier Dony olivier.dony at denali.be
Thu Jan 3 14:45:45 PST 2008


Juehee Dawson wrote:
> Hello,

Hi Juehee,


> 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?

Maybe this is too obvious, but in your xml file the only testnode listed 
seems commented out. This means that TestMaker won't run your python test 
anywhere. The local testnode (localhost:8080...) is normally installed and 
started with TestMaker, so you should be able to use it out-of-the-box.

Another possible issue: your <run> elements seem to refer to a module named 
"default_" while there's only one module defined, and named "default_test" 
instead.


> 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.

You can safely ignore this log4j message.


Hope this helps...


> 
> **** 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>
> _______________________________________________
> Users mailing list
> Users at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/users
> 


-- 
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