|
From: Peter H. <pet...@gm...> - 2006-02-08 22:20:32
|
I need to add a trigger to ASUnit (for AS2), when the tests are all complete, to close the Flash Player instance. I'm not so familiar with the AS2 codebase - where is the best place to do that? Thanks Peter |
|
From: Paul BH <eye...@gm...> - 2006-02-08 22:37:32
|
how about in your testHarness movie:
new AllTests()
fscommand("quit")
On 2/8/06, Peter Hall <pet...@gm...> wrote:
> I need to add a trigger to ASUnit (for AS2), when the tests are all
> complete, to close the Flash Player instance. I'm not so familiar with th=
e
> AS2 codebase - where is the best place to do that?
> Thanks
>
> Peter
>
|
|
From: Alias <ali...@gm...> - 2006-02-09 00:43:32
|
That will only work if you've got no asynchronous tests...
Alias
On 2/8/06, Paul BH <eye...@gm...> wrote:
> how about in your testHarness movie:
>
> new AllTests()
> fscommand("quit")
>
>
>
> On 2/8/06, Peter Hall <pet...@gm...> wrote:
> > I need to add a trigger to ASUnit (for AS2), when the tests are all
> > complete, to close the Flash Player instance. I'm not so familiar with =
the
> > AS2 codebase - where is the best place to do that?
> > Thanks
> >
> > Peter
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642
> _______________________________________________
> Asunit-users mailing list
> Asu...@li...
> https://lists.sourceforge.net/lists/listinfo/asunit-users
>
|
|
From: Robert P. <in...@ro...> - 2006-02-09 01:02:34
|
Another problem is that an immediate call to fscommand("quit") doesn't allow
enough time for the LocalConnection messages to be sent to the test results
UI (in my case, I have 700 tests).
Robert
-----Original Message-----
From: asu...@li...
[mailto:asu...@li...]On Behalf Of Alias
Sent: February 8, 2006 4:43 PM
To: asu...@li...
Subject: Re: [Asunit-users] trigger on tests complete
That will only work if you've got no asynchronous tests...
Alias
On 2/8/06, Paul BH <eye...@gm...> wrote:
> how about in your testHarness movie:
>
> new AllTests()
> fscommand("quit")
>
>
>
> On 2/8/06, Peter Hall <pet...@gm...> wrote:
> > I need to add a trigger to ASUnit (for AS2), when the tests are all
> > complete, to close the Flash Player instance. I'm not so familiar with
the
> > AS2 codebase - where is the best place to do that?
> > Thanks
> >
> > Peter
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> _______________________________________________
> Asunit-users mailing list
> Asu...@li...
> https://lists.sourceforge.net/lists/listinfo/asunit-users
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
_______________________________________________
Asunit-users mailing list
Asu...@li...
https://lists.sourceforge.net/lists/listinfo/asunit-users
|
|
From: Peter H. <pet...@gm...> - 2006-02-09 03:06:36
|
We will be writing a lot of asynchronous tests, which is why I didn't do
simply as Paul suggests. Thanks Robert, the LocalConnection timing is
something I hadn't considered, but I think we'll go a different route
anyway, and dump out the results to text file, which should be more
reliable.
It's looking like I'll have to do some reworking of the guts of the
framework. I was probably going to have to do some of that anyway, because
asynchronous calls are currently executing concurrently, which is not ideal=
.
Peter
On 2/8/06, Robert Penner <in...@ro...> wrote:
>
> Another problem is that an immediate call to fscommand("quit") doesn't
> allow
> enough time for the LocalConnection messages to be sent to the test
> results
> UI (in my case, I have 700 tests).
>
> Robert
>
> -----Original Message-----
> From: asu...@li...
> [mailto:asu...@li... ]On Behalf Of Alias
> Sent: February 8, 2006 4:43 PM
> To: asu...@li...
> Subject: Re: [Asunit-users] trigger on tests complete
>
>
> That will only work if you've got no asynchronous tests...
>
> Alias
>
> On 2/8/06, Paul BH <eye...@gm...> wrote:
> > how about in your testHarness movie:
> >
> > new AllTests()
> > fscommand("quit")
> >
> >
> >
> > On 2/8/06, Peter Hall <pet...@gm...> wrote:
> > > I need to add a trigger to ASUnit (for AS2), when the tests are all
> > > complete, to close the Flash Player instance. I'm not so familiar wit=
h
> the
> > > AS2 codebase - where is the best place to do that?
> > > Thanks
> > >
> > > Peter
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642
> <http://sel.as-us.falkag.net/sel?cmdlnk&kid%103432&bid#0486&dat%121642>
> > _______________________________________________
> > Asunit-users mailing list
> > Asu...@li...
> > https://lists.sourceforge.net/lists/listinfo/asunit-users
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642
> <http://sel.as-us.falkag.net/sel?cmd=3Dk&kid%103432&bid#0486&dat%121642>
> _______________________________________________
> Asunit-users mailing list
> Asu...@li...
> https://lists.sourceforge.net/lists/listinfo/asunit-users
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=
=3D121642
> _______________________________________________
> Asunit-users mailing list
> Asu...@li...
> https://lists.sourceforge.net/lists/listinfo/asunit-users
>
|
|
From: erixtekila <eri...@gm...> - 2006-02-09 10:58:35
|
Hi, >> That will only work if you've got no asynchronous tests... How do you guys achieve asynchronous tests with asUnit ? Any pointer ? Thanks. Le 9 f=E9vr. 06, =E0 04:06, Peter Hall a =E9crit : > We will be writing a lot of asynchronous tests, which is why I didn't=20= > do simply as Paul suggests. Thanks Robert, the LocalConnection timing=20= > is something I hadn't considered, but I think we'll go a different=20 > route anyway, and dump out the results to text file, which should be=20= > more reliable. > > It's looking like I'll have to do some reworking of the guts of the=20= > framework. I was probably going to have to do some of that anyway,=20 > because asynchronous calls are currently executing concurrently, which=20= > is not ideal. > > Peter > ----------- erixtekila http://blog.v-i-a.net/ |
|
From: Alias <ali...@gm...> - 2006-02-09 11:18:04
|
Hi there. Luke posted an entry on running Asynchronous tests on his blog a while back= : http://www.blogger.com/comment.g?blogID=3D5873661&postID=3D1132965891612765= 44 Essentially, you override the TestCase classes run(), setup() and teardown() methods, and when you're ready to do your asynchronous test you call them. It's quite sub-optimal, and I'm currently trying to figure out the best way to go about doing this in the general case, but at the moment I'm doing this: public function run(){ //override this method so that your testcase will do nothing until explicitly told to } public function setUp(){ //setup whatever you need for your tests //set a callback or some other method to signal to the test method that the //asynchronous process is finished someTest(); } public function tearDown(){ //delete your class instance, or whatever } public function someTest(){ //do test //... //tearDown(); } It's a pretty ugly hack, but it does allow you to continue using the framework with asynchronous objects. Read Luke's post all the way through though, and make sure that this is actually what you need. Hope this helps, Alias On 2/9/06, erixtekila <eri...@gm...> wrote: > Hi, > > > >> That will only work if you've got no asynchronous tests... > How do you guys achieve asynchronous tests with asUnit ? > Any pointer ? > > > Thanks. > Le 9 f=E9vr. 06, =E0 04:06, Peter Hall a =E9crit : > > > We will be writing a lot of asynchronous tests, which is why I didn't > > do simply as Paul suggests. Thanks Robert, the LocalConnection timing > > is something I hadn't considered, but I think we'll go a different > > route anyway, and dump out the results to text file, which should be > > more reliable. > > > > It's looking like I'll have to do some reworking of the guts of the > > framework. I was probably going to have to do some of that anyway, > > because asynchronous calls are currently executing concurrently, which > > is not ideal. > > > > Peter > > > ----------- > erixtekila > http://blog.v-i-a.net/ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642 > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > |
|
From: Luke B. <lb...@gm...> - 2006-02-09 17:13:28
|
Hey Peter, Are you working on AS3 or AS2? I need to get you the latest sources as what's in sourceforge isn't as current as it should be. Thanks, Luke www.asunit.org On 2/8/06, Peter Hall <pet...@gm...> wrote: > We will be writing a lot of asynchronous tests, which is why I didn't do > simply as Paul suggests. Thanks Robert, the LocalConnection timing is > something I hadn't considered, but I think we'll go a different route > anyway, and dump out the results to text file, which should be more > reliable. > > It's looking like I'll have to do some reworking of the guts of the > framework. I was probably going to have to do some of that anyway, becaus= e > asynchronous calls are currently executing concurrently, which is not ide= al. > > Peter > > > > On 2/8/06, Robert Penner <in...@ro... > wrote: > > Another problem is that an immediate call to fscommand("quit") doesn't > allow > > enough time for the LocalConnection messages to be sent to the test > results > > UI (in my case, I have 700 tests). > > > > Robert > > > > -----Original Message----- > > From: asu...@li... > > [mailto: asu...@li... ]On > Behalf Of Alias > > Sent: February 8, 2006 4:43 PM > > To: asu...@li... > > Subject: Re: [Asunit-users] trigger on tests complete > > > > > > That will only work if you've got no asynchronous tests... > > > > Alias > > > > On 2/8/06, Paul BH <eye...@gm... > wrote: > > > how about in your testHarness movie: > > > > > > new AllTests() > > > fscommand("quit") > > > > > > > > > > > > On 2/8/06, Peter Hall < pet...@gm...> wrote: > > > > I need to add a trigger to ASUnit (for AS2), when the tests are all > > > > complete, to close the Flash Player instance. I'm not so familiar w= ith > > the > > > > AS2 codebase - where is the best place to do that? > > > > Thanks > > > > > > > > Peter > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo= g > > files > > > for problems? Stop! Download the new AJAX search engine that makes > > > searching your log files as easy as surfing the web. DOWNLOAD SPLUN= K! > > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642 > > > _______________________________________________ > > > Asunit-users mailing list > > > Asu...@li... > > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642 > > _______________________________________________ > > Asunit-users mailing list > > Asu...@li... > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > > _______________________________________________ > > Asunit-users mailing list > > Asu...@li... > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > |
|
From: Johannes N. <joh...@gm...> - 2006-02-09 17:15:13
|
this is for as2 On 2/9/06, Luke Bayes <lb...@gm...> wrote: > > Hey Peter, > > Are you working on AS3 or AS2? > > I need to get you the latest sources as what's in sourceforge isn't as > current as it should be. > > > Thanks, > > > Luke > www.asunit.org > > On 2/8/06, Peter Hall <pet...@gm...> wrote: > > We will be writing a lot of asynchronous tests, which is why I didn't d= o > > simply as Paul suggests. Thanks Robert, the LocalConnection timing is > > something I hadn't considered, but I think we'll go a different route > > anyway, and dump out the results to text file, which should be more > > reliable. > > > > It's looking like I'll have to do some reworking of the guts of the > > framework. I was probably going to have to do some of that anyway, > because > > asynchronous calls are currently executing concurrently, which is not > ideal. > > > > Peter > > > > > > > > On 2/8/06, Robert Penner <in...@ro... > wrote: > > > Another problem is that an immediate call to fscommand("quit") doesn'= t > > allow > > > enough time for the LocalConnection messages to be sent to the test > > results > > > UI (in my case, I have 700 tests). > > > > > > Robert > > > > > > -----Original Message----- > > > From: asu...@li... > > > [mailto: asu...@li... ]On > > Behalf Of Alias > > > Sent: February 8, 2006 4:43 PM > > > To: asu...@li... > > > Subject: Re: [Asunit-users] trigger on tests complete > > > > > > > > > That will only work if you've got no asynchronous tests... > > > > > > Alias > > > > > > On 2/8/06, Paul BH <eye...@gm... > wrote: > > > > how about in your testHarness movie: > > > > > > > > new AllTests() > > > > fscommand("quit") > > > > > > > > > > > > > > > > On 2/8/06, Peter Hall < pet...@gm...> wrote: > > > > > I need to add a trigger to ASUnit (for AS2), when the tests are > all > > > > > complete, to close the Flash Player instance. I'm not so familiar > with > > > the > > > > > AS2 codebase - where is the best place to do that? > > > > > Thanks > > > > > > > > > > Peter > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log > > > files > > > > for problems? Stop! Download the new AJAX search engine that make= s > > > > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > > > > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642 > > > > _______________________________________________ > > > > Asunit-users mailing list > > > > Asu...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo= g > > files > > > for problems? Stop! Download the new AJAX search engine that makes > > > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > > > > > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642 > > > _______________________________________________ > > > Asunit-users mailing list > > > Asu...@li... > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo= g > > files > > > for problems? Stop! Download the new AJAX search engine that makes > > > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > > > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > > > _______________________________________________ > > > Asunit-users mailing list > > > Asu...@li... > > > https://lists.sourceforge.net/lists/listinfo/asunit-users > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642 > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > -- j:pn |
|
From: Peter H. <pet...@gm...> - 2006-02-09 20:43:50
|
This specific requirement is for AS2, though we will be needing to do the same thing in AS3 too. I've just rearranged the guts of ASUnit into an event-based model, which queues the tests and runs them when the previous is done, and it seems to run all of our old tests properly. I didn't immediately understand the logi= c of exactly how ASUnit was working though (the AS3 version is much more transparent btw), so it's going to take more testing before I show my changes, to make sure that I didn't break anything. Peter On 2/9/06, Johannes Nel <joh...@gm...> wrote: > > this is for as2 > > On 2/9/06, Luke Bayes <lb...@gm...> wrote: > > > > Hey Peter, > > > > Are you working on AS3 or AS2? > > > > I need to get you the latest sources as what's in sourceforge isn't as > > current as it should be. > > > > > > Thanks, > > > > |
|
From: Luke B. <lb...@gm...> - 2006-02-09 21:55:49
|
Hey Peter, One of the big constraints we put on the AS 2 build was that we were looking for Flash 6 player support. This meant that we weren't able to take advantage of exceptions in order to track assertion status, and led to the divergent architecture from JUnit. I'm not sure how relevant that requirement is anymore in light of the latest mobile releases that now support player 7. With this in mind, please feel free to refactor AsUnit 2.x into something more similar to AsUnit 3.x in terms of exceptions and architecture... Just some background. Thanks, Luke Bayes www.asunit.org On 2/9/06, Peter Hall <pet...@gm...> wrote: > This specific requirement is for AS2, though we will be needing to do the > same thing in AS3 too. > I've just rearranged the guts of ASUnit into an event-based model, which > queues the tests and runs them when the previous is done, and it seems to > run all of our old tests properly. I didn't immediately understand the lo= gic > of exactly how ASUnit was working though (the AS3 version is much more > transparent btw), so it's going to take more testing before I show my > changes, to make sure that I didn't break anything. > > Peter > > > > On 2/9/06, Johannes Nel <joh...@gm...> wrote: > > this is for as2 > > > > > > > > On 2/9/06, Luke Bayes < lb...@gm...> wrote: > > > Hey Peter, > > > > > > Are you working on AS3 or AS2? > > > > > > I need to get you the latest sources as what's in sourceforge isn't a= s > > > current as it should be. > > > > > > > > > Thanks, > > > > > > > > > > |
|
From: Alias <ali...@gm...> - 2006-02-09 23:35:26
|
Hi Luke, Sorry to be a party pooper, but I'm still targeting FP6. Cheers, Alias On 2/9/06, Luke Bayes <lb...@gm...> wrote: > Hey Peter, > > One of the big constraints we put on the AS 2 build was that we were > looking for Flash 6 player support. This meant that we weren't able to > take advantage of exceptions in order to track assertion status, and > led to the divergent architecture from JUnit. > > I'm not sure how relevant that requirement is anymore in light of the > latest mobile releases that now support player 7. > > With this in mind, please feel free to refactor AsUnit 2.x into > something more similar to AsUnit 3.x in terms of exceptions and > architecture... > > Just some background. > > > Thanks, > > > Luke Bayes > www.asunit.org > > > > > > On 2/9/06, Peter Hall <pet...@gm...> wrote: > > This specific requirement is for AS2, though we will be needing to do t= he > > same thing in AS3 too. > > I've just rearranged the guts of ASUnit into an event-based model, whi= ch > > queues the tests and runs them when the previous is done, and it seems = to > > run all of our old tests properly. I didn't immediately understand the = logic > > of exactly how ASUnit was working though (the AS3 version is much more > > transparent btw), so it's going to take more testing before I show my > > changes, to make sure that I didn't break anything. > > > > Peter > > > > > > > > On 2/9/06, Johannes Nel <joh...@gm...> wrote: > > > this is for as2 > > > > > > > > > > > > On 2/9/06, Luke Bayes < lb...@gm...> wrote: > > > > Hey Peter, > > > > > > > > Are you working on AS3 or AS2? > > > > > > > > I need to get you the latest sources as what's in sourceforge isn't= as > > > > current as it should be. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642 > _______________________________________________ > Asunit-users mailing list > Asu...@li... > https://lists.sourceforge.net/lists/listinfo/asunit-users > |