Permalink
Browse files

test from stage!!!

  • Loading branch information...
1 parent 8a42598 commit 19786e67ef802ce7d2f8ed7ef1b40448b63d8440 @gAmUssA committed Aug 12, 2011
@@ -28,5 +28,25 @@
<UIEvent command="Click" value="C" prop="automationName" delay="1000" attempts="10" retryOnlyOnResponse="false"/>
</Test>
</TestCase>
+ <TestCase name="multiply testing" description="null" ignore="false">
+ <Test name="Setup" description="null" defaultThinkTime="250" ignore="false">
+ <UIEvent command="Click" value="C" prop="automationName" delay="1000" attempts="10" retryOnlyOnResponse="false"/>
+ </Test>
+ <Test name="test times" description="null" defaultThinkTime="250" ignore="false">
+ <UIEvent command="Input" value="leftOperand" prop="automationName" delay="1000" attempts="10" retryOnlyOnResponse="false">
+ <arg value="324"/>
+ </UIEvent>
+ <UIEvent command="Input" value="rightOperand" prop="automationName" delay="1000" attempts="10" retryOnlyOnResponse="false">
+ <arg value="2"/>
+ </UIEvent>
+ <UIEvent command="Click" value="*" prop="automationName" delay="1000" attempts="10" retryOnlyOnResponse="false"/>
+ <Verify value="resultLabel" prop="automationName" description="New Verify" isRetryable="true" delay="500" attempts="2" verifyBitmap="false" snapshotURL="verify-13-9968.snp" verifyBitmapFuzziness="0">
+ <Attribute name="text" expectedValue="648" type="property" actualValue="648"/>
+ </Verify>
+ </Test>
+ <Test name="Tear down" description="null" defaultThinkTime="250" ignore="false">
+ <UIEvent command="Click" value="C" prop="automationName" delay="1000" attempts="10" retryOnlyOnResponse="false"/>
+ </Test>
+ </TestCase>
</TestSuite>
</FlexMonkey>
@@ -2,12 +2,14 @@ package com.farata.symposium.tests.newTestSuite {
import com.gorillalogic.flexunit.IFlexMonkeyTestSuite
import com.farata.symposium.tests.newTestSuite.testCases.NewTestCase;
+ import com.farata.symposium.tests.newTestSuite.testCases.multiplytesting;
[Suite(order=1)]
[RunWith("org.flexunit.runners.Suite")]
public class NewTestSuite implements IFlexMonkeyTestSuite {
public var test1:NewTestCase;
+ public var test2:multiplytesting;
}
}
@@ -0,0 +1,17 @@
+package com.farata.symposium.tests.newTestSuite.testCases {
+
+ import com.gorillalogic.flexunit.IFlexMonkeyTestCase
+ import com.farata.symposium.tests.newTestSuite.testCases.tests.Setup1;
+ import com.farata.symposium.tests.newTestSuite.testCases.tests.testtimes;
+ import com.farata.symposium.tests.newTestSuite.testCases.tests.Teardown1;
+
+ [Suite (order=2)]
+ [RunWith("org.flexunit.runners.Suite")]
+ public class multiplytesting implements IFlexMonkeyTestCase {
+
+ public var test1:Setup1;
+ public var test2:testtimes;
+ public var test3:Teardown1;
+
+ }
+}
@@ -0,0 +1,43 @@
+package com.farata.symposium.tests.newTestSuite.testCases.tests{
+
+ import com.gorillalogic.flexunit.IFlexMonkeyTest
+ import com.gorillalogic.flexmonkey.core.MonkeyRunnable;
+ import com.gorillalogic.flexmonkey.monkeyCommands.UIEventMonkeyCommand;
+ import com.gorillalogic.flexunit.FlexMonkeyCustomTestBase;
+ import mx.collections.ArrayCollection;
+
+ [TestCase(order=1)]
+ public class Setup1 extends FlexMonkeyCustomTestBase {
+
+ public function Setup1() {
+ super() }
+
+ [Before]
+ public function setUp():void {
+ }
+
+ private function createsetup1CommandList():ArrayCollection {
+ var arr:ArrayCollection = new ArrayCollection();
+ setupsetup1CommandList(arr);
+ return arr;
+ }
+
+ private function setupsetup1CommandList(arr:ArrayCollection):void {
+ var theRunnable:MonkeyRunnable=null;
+ theRunnable=new UIEventMonkeyCommand('Click', 'C', 'automationName', [null], '', '', '10', '1000', false);
+ arr.addItem(theRunnable);
+
+ }
+ [Test(async, timeout=12250)]
+ public function setup1Test():void {
+ this.monkeyTestCaseName = "Setup1";
+ this.monkeyTestName = "setup1Test";
+ trace(this.monkeyTestCaseName + "." + this.monkeyTestName);
+ beforeTest(this.monkeyTestCaseName, this.monkeyTestName);
+ var commandList:ArrayCollection = createsetup1CommandList();
+ runFlexMonkeyCommands(commandList);
+ }
+
+
+ }
+}
@@ -0,0 +1,43 @@
+package com.farata.symposium.tests.newTestSuite.testCases.tests{
+
+ import com.gorillalogic.flexunit.IFlexMonkeyTest
+ import com.gorillalogic.flexmonkey.core.MonkeyRunnable;
+ import com.gorillalogic.flexmonkey.monkeyCommands.UIEventMonkeyCommand;
+ import com.gorillalogic.flexunit.FlexMonkeyCustomTestBase;
+ import mx.collections.ArrayCollection;
+
+ [TestCase(order=3)]
+ public class Teardown1 extends FlexMonkeyCustomTestBase {
+
+ public function Teardown1() {
+ super() }
+
+ [Before]
+ public function setUp():void {
+ }
+
+ private function createteardown1CommandList():ArrayCollection {
+ var arr:ArrayCollection = new ArrayCollection();
+ setupteardown1CommandList(arr);
+ return arr;
+ }
+
+ private function setupteardown1CommandList(arr:ArrayCollection):void {
+ var theRunnable:MonkeyRunnable=null;
+ theRunnable=new UIEventMonkeyCommand('Click', 'C', 'automationName', [null], '', '', '10', '1000', false);
+ arr.addItem(theRunnable);
+
+ }
+ [Test(async, timeout=12250)]
+ public function teardown1Test():void {
+ this.monkeyTestCaseName = "Teardown1";
+ this.monkeyTestName = "teardown1Test";
+ trace(this.monkeyTestCaseName + "." + this.monkeyTestName);
+ beforeTest(this.monkeyTestCaseName, this.monkeyTestName);
+ var commandList:ArrayCollection = createteardown1CommandList();
+ runFlexMonkeyCommands(commandList);
+ }
+
+
+ }
+}
@@ -0,0 +1,57 @@
+package com.farata.symposium.tests.newTestSuite.testCases.tests{
+
+ import com.gorillalogic.flexunit.IFlexMonkeyTest
+ import com.gorillalogic.flexmonkey.core.MonkeyRunnable;
+ import com.gorillalogic.flexmonkey.monkeyCommands.UIEventMonkeyCommand;
+ import com.gorillalogic.flexmonkey.monkeyCommands.VerifyMonkeyCommand;
+ import com.gorillalogic.flexmonkey.vo.AttributeVO;
+ import com.gorillalogic.flexunit.FlexMonkeyCustomTestBase;
+ import mx.collections.ArrayCollection;
+
+ [TestCase(order=2)]
+ public class testtimes extends FlexMonkeyCustomTestBase {
+
+ public function testtimes() {
+ super() }
+
+ [Before]
+ public function setUp():void {
+ }
+
+ private function createtesttimesCommandList():ArrayCollection {
+ var arr:ArrayCollection = new ArrayCollection();
+ setuptesttimesCommandList(arr);
+ return arr;
+ }
+
+ private function setuptesttimesCommandList(arr:ArrayCollection):void {
+ var theRunnable:MonkeyRunnable=null;
+ theRunnable=new UIEventMonkeyCommand('Input', 'leftOperand', 'automationName', ['324'], '', '', '10', '1000', false);
+ arr.addItem(theRunnable);
+
+ theRunnable=new UIEventMonkeyCommand('Input', 'rightOperand', 'automationName', ['2'], '', '', '10', '1000', false);
+ arr.addItem(theRunnable);
+
+ theRunnable=new UIEventMonkeyCommand('Click', '*', 'automationName', [null], '', '', '10', '1000', false);
+ arr.addItem(theRunnable);
+
+ theRunnable=new VerifyMonkeyCommand('New Verify', null, 'resultLabel', 'automationName', false,
+ new ArrayCollection([
+ new AttributeVO('text', null, 'property', '648')
+ ]), null, null, true, '500', '2', 0);
+ arr.addItem(theRunnable);
+
+ }
+ [Test(async, timeout=12250)]
+ public function testtimesTest():void {
+ this.monkeyTestCaseName = "testtimes";
+ this.monkeyTestName = "testtimesTest";
+ trace(this.monkeyTestCaseName + "." + this.monkeyTestName);
+ beforeTest(this.monkeyTestCaseName, this.monkeyTestName);
+ var commandList:ArrayCollection = createtesttimesCommandList();
+ runFlexMonkeyCommands(commandList);
+ }
+
+
+ }
+}

0 comments on commit 19786e6

Please sign in to comment.