<?xml version="1.0" encoding="utf-8" ?>
<file>
<properties><parameters /><probes><probe><active>False</active><args /><name>probe01</name></probe></probes><agents><agent><description /><type /><name>AGENT</name><value>agent-socket01</value></agent></agents><descriptions><description><value /><key>author</key></description><description><value /><key>creation date</key></description><description><value /><key>summary</key></description><description><value /><key>prerequisites</key></description><description><value><comments /></value><key>comments</key></description><description><value>myplugins</value><key>libraries</key></description><description><value>myplugins</value><key>adapters</key></description><description><value>Writing</value><key>state</key></description><description><value>REQ_01</value><key>requirement</key></description></descriptions><inputs-parameters><parameter><description /><type>snapshot-image</type><name>IMG</name><value>iVBORw0KGgoAAAANSUhEUgAAAGkAAAARCAYAAADe84KWAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAB2tJREFUWIWtmU2MXEcRx3/dr2d21157LeII21lvZA4+JZwspIQkiCjKwRIGhD/CgRNSnFsC2GiNbA7EwitsSzlYQgkfl0gIQw7kQE6gYCRz8gWEQMoBE2cdWeTDWe/Kno9+VRy6+33Nm93ZxCXNzHvd/aqq+/+q6t895ubtvtIQ02wYJxMMnO5Yfv3LX/DCC8e5c89v3sYmZLpj+c2J53nupUXW3vk3AJkBE41lhV3FxWds/IBgY/8kvqVFM402BSRqrt4rkMcnpBgDqpArzCw8zIsnvsfP3/wzy3fCk9POsGOawtcNHRjr6QQzGnkLJn9006K5ggj4IRAWxgLWQI4UQElsE0pgJI5t83esvca9tNwrAYx0L4CqrQAK4oU8OQMohnteubcaQUqL1TQ4MVgbiORN1++v/potP0RE8IMBEKJHAGywk6c2E6zb1GYSUBojawM7jEZdmKUpQKlHEKiaEjSp9097j0rMNAaMluvjcomqKwiNe5PMp1hNsSCq5D4nHwPW73/7O65euTqRvie+8mWOPHe0tS/PAD9AvMcPeuVimzLV2cocHGGhMiCP4KSIAnj9H9d5+/oHxfiv7nuQ73xx39h2oJLKyrRWBUoA0cq4eO29R/KcugS0nPeNjo1ifR2g2rrEGXIRFBixFeXqlau8cfnVDQwH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cIDbnFxc4tzZEwCcO3uCU6cvcNB+VPcoFTuhQu+DJHOqZZ/tOrBZqaIS0s7ENyrMsByzZ2GBF79fL+DjZM/CAiYZaCyeNRaj4Y2xJht9GNj/yKOcOn1hIlv7H3kUY9ptGWPRzGE6jmzrLMaUdSZQ7EDBs0zBlCQiG3PEcGC4WvPrgFvlYGcNhm6knc6W2rOWcDpVAKRg1ZJJ4W2xmTaA6UxjbespHS7LOkDMi4k4KDxz6AhQvgGf5qzNGIJhazHGklnXquTxp5/l8aef3aT2hi3AGodzXWy3i9s2m5ILFnAxhBxgjRbAZVkAzyEFHU+YHcJziGbKn+UQnq/FdlNpT6TBAV5t/A1FzxBIhNGQu1TBRxBxDrt1C5nttM7NdTtdpHEkVOyXKmyvCtJmjoeyzOHip9vtjh13P87vssxBZwrXnWZq+w6qad4ZLQCwVnE2RZhgbHl2l46QNpJxp+BFxowDbIVqWwmnIsU6xpSYzcwiM9vZMTdbKjOlUrd1yzQDr4jG/VIBTOJDpcFJwakO63YCQDbL6iDdD1SatroON9XBdrt0Z7fHyBBsihAb054BFym5taFe2Xh4mSGfybVQvSxWw+mC5uVfFDZmKydhnMsc2dQWZvfu418ffsKBLz3GSEECXFfusHd+L3kMJ61FVWJK6S1ZhwpVpDlkZrrLjtkpvvDQ5zYc/Fmxm5nqsm3+YeYfezKSBC1eroI0xHzmrNTa74d9aP6vlP4zsiD1w1Zclw97A/7+nxtcfu0SF/94hU96DWUG/g8YQXbFIsdKOAAAAABJRU5ErkJggg==</value><scope>local</scope></parameter><parameter><description /><type>str</type><name>PARAM0</name><value>0</value><scope>local</scope></parameter></inputs-parameters><outputs-parameters><parameter><description /><type>float</type><name>TIMEOUT</name><value>1.0</value><scope>local</scope></parameter></outputs-parameters></properties>
<testdefinition><![CDATA[
class STEP_PASSED_01(TestCase):
	def description(self):
		self.step1 = self.addStep( description = "start", expected = "is started", summary="create users")
		desc = [ 'aaaaaaaaaaaaaaaaa bbbbbbbbbbbb ccccccccccc dddddddddddd eeeeeeee' ]
		desc.append( "aaaaaaa bbbbbbbbbbbb dsqsdsq dsq dsq dsq dsq" )
		self.step2 = self.addStep( description = "\n".join(desc), expected = "is running", summary="delete users" )
		self.step3 = self.addStep( description = "stop", expected = "is stopped", summary="recreate users é" )
		
	def prepare(self):
		pass
	def cleanup(self, aborted):
		pass	
	def definition(self):

		self.step1.start()
		self.step1.setPassed( actual = "started é")
		self.step2.start()
		self.step2.setPassed( actual = "running")
		self.step3.start()
		self.step3.setPassed( actual = "stopped é")

class STEP_FAILED_01(TestCase):
	def description(self):
		self.step1 = self.addStep( description = "start", expected = "is started", summary="start" )
		self.step2 = self.addStep( description = "run" , expected = "is running", summary="run" )
		self.step3 = self.addStep( description = "stop", expected = "is stopped", summary="stop" )
	def prepare(self):
		pass
	def cleanup(self, aborted):
		pass		
	def definition(self):

		self.step1.start()
		self.step1.setFailed( actual = "start failed")
		self.step2.start()
		self.step2.setFailed( actual = "start failed")
		self.step3.start()
		self.step3.setPassed( actual = "stopped")

class STEP_UNDEFINED_01(TestCase):
	def description(self):
		pass	
	def prepare(self):
		pass
	def cleanup(self, aborted):
		pass		
	def definition(self):
		step1 = self.addStep( description = "start", expected = "is started", summary="start")
		step2 = self.addStep( description = "run" , expected = "is running", summary="run" )
		step3 = self.addStep( description = "stop", expected = "is stopped", summary="stop" )
		step3.start()
		step3.setPassed( actual = "stopped")

class STEP_UPDATE_01(TestCase):
	def description(self):
		pass	
	def prepare(self):
		pass
	def cleanup(self, aborted):
		pass	
	def definition(self):
		step1 = self.addStep( description = "start", expected = "is started", summary="create users")
		desc = [ 'aaaaaaaaaaaaaaaaa bbbbbbbbbbbb ccccccccccc dddddddddddd eeeeeeee' ]
		desc.append( "aaaaaaa bbbbbbbbbbbb dsqsdsq dsq dsq dsq dsq" )
		step2 = self.addStep( description = "\n".join(desc), expected = "is running", summary="delete users" )
		step3 = self.addStep( description = "stop", expected = "is stopped", summary="recreate users" )

		step1.start()
		
		# update step infos
		step1.setSummary(summary='test')
		step1.setExpected(expected='test expected')
		step1.setDescription(description='test description')

		step1.setPassed( actual = "started")
		
		step2.setSummary(summary='test 2')
		step2.start()
		step2.setPassed( actual = "running")
		step3.start()
		step3.setPassed( actual = "stopped")

class STEP_THUMBNAIL_01(TestCase):
	def description(self):
		# testcase description
		self.setPurpose(purpose="Testcase sample")
		# steps description
		self.step1 = self.addStep(expected="result expected", description="step description", summary="step sample", enabled=True, thumbnail=input('IMG'))
	def prepare(self):
		# adapters and libraries
		pass
	def definition(self):
		# starting initial step
		if self.step1.isEnabled():
			self.step1.start()
			self.step1.setPassed(actual="hello", thumbnail=input('IMG'))
	def cleanup(self, aborted):
		pass
]]></testdefinition>
<testexecution><![CDATA[
STEP_PASSED_01().execute()
#STEP_FAILED_01().execute()
#STEP_UNDEFINED_01().execute()
STEP_UPDATE_01().execute()
STEP_THUMBNAIL_01().execute()]]></testexecution>
<testdevelopment>1386106056.97</testdevelopment>
</file>