[ptt-users] Question on Running a TestScenario

Juehee Dawson jueheenara at gmail.com
Thu Jan 3 13:33:54 PST 2008


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