Showing posts with label Dbug. Show all posts
Showing posts with label Dbug. Show all posts

2007-06-03

Actionscript Unit Test Framework Sample

Dbug Icon


Actionscript Unit Test Framework Sample

//TestCaseSample1.as
package {
import advancedflex.debugger.aut.framework.TestCase;
import advancedflex.debugger.aut.framework.ns.*;

public class TestCaseSample1 extends TestCase {
//test only.
test function a():void {
console.print("aa");
}
//test and check time if it is timeout.
time function b():int {
console.print("bb");
//if used time > return value,it will throw error.
return 10;
}
}
}
//TestCaseSample2.as
package {
import advancedflex.debugger.aut.framework.TestCase;
import advancedflex.debugger.aut.framework.ns.*;

public class TestCaseSample2 extends TestCase {
//test only.
test function cc():void {
console.print("aaa");
}
//test and check time if it is timeout.
time function dd():int {
console.print("bbb");
return 10;
}
}
}
//Main.as
package {
import advancedflex.debugger.aut.framework.TraceConsole;
import advancedflex.debugger.aut.framework.TestSuite;

public class Main {
public function TestTests() {
new TestSuite()
.addTest(new TestCaseSample1())
.addTest(new TestCaseSample2())
.startTest(new TraceConsole());

}
/*You can also use like this.
public function TestTests() {
new TestCaseSample1().startTest(new TraceConsole());
new TestCaseSample2().startTest(new TraceConsole());

}*/
}
}

The debugger framework 0.2 alpha 2 released!

Dbug Icon


This is the Dbug Project'product - debugger framework version 0.2 alpha 2.



Download Here

Implementation:
  • advancedflex.debugger
  • advancedflex.debugger.errors
  • advancedflex.debugger.display
  • advancedflex.debugger.display.mxml
  • advancedflex.debugger.aut.*
Unrealized:
  • advancedflex.debugger.logging
  • advancedflex.debugger.aut.flexui
  • advancedflex.debugger.aut.apolloui
Change
  • advancedflex.debugger.FPSView move to advancedflex.core.FPSView

2007-05-27

The debugger framework 0.1 alpha

Dbug Icon


This is the Dbug Project'product - debugger framework version 0.1 alpha.


Implementation:
  • advancedflex.debugger
  • advancedflex.debugger.errors
  • advancedflex.debugger.display
  • advancedflex.debugger.display.mxml
Unrealized:
  • advancedflex.debugger.aut
  • advancedflex.debugger.logging
Download Here(advancedflex.debugger 0.1 alpha.zip)

2007-05-24

The debugger framework

Dbug Icon


Project Name:Dbug
Description:

This is the debugger framework written in AS3.0 for Flex & Flash.
It contains these packages.


  • advancedflex.debugger.*;//It contains common tools of debugging.
  • advancedflex.debugger.aut.*;//It contains the sub project of As Unit Test framework(It likes the ASUnit).
  • advancedflex.debugger.display.*;//It contains the DisplayObject written in AS3.0 that can show or get some info.
  • advancedflex.debugger.mxml.display.*;//It contains the DisplayObject written in MXML that can show or get some info.
The API of the .display.* package and the .mxml.display.* package is same.But the difference between these is the .mxml.display.* is written in MXML, but the other is written in AS3.0.