You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Sebastian Ho <se...@bii.a-star.edu.sg> on 2004/09/16 03:40:48 UTC

how to stop testcases from running when refreshing browser

hi

My cactus set up runs fine, but I notice that the testcases will be
executed whenever I hit refresh in my browser. How do I prevent that
from happening?

Thanks


Sebastian Ho


RE: how to stop testcases from running when refreshing browser

Posted by Vincent Massol <vm...@pivolis.com>.

> -----Original Message-----
> From: Sebastian Ho [mailto:sebastianh@bii.a-star.edu.sg]
> Sent: jeudi 16 septembre 2004 10:57
> To: Cactus Users List
> Subject: RE: how to stop testcases from running when refreshing browser
> 
> The reason is because someone might be viewing the results either
> through browser or the XML file generated. If another developer access
> the URL to view test results, the testcases will be executed again. And
> the previous result will be overwritten.
> 
> Am I missing something or cactus is not meant to be use in a ENV with >1
> developer?
> 

Yes, you're right, the Cactus tests are supposed to be run on individual
machines. In any case this is a good practice rule. If you're several to run
tests on the same machine, there is an almost sure risk of getting side
effects (like if the database is changed by one test and thus the other
tests does not have the right initial data in the database, etc).

It seems what you wish is simply to store the test results somewhere. You
should definitely check the Ant or Maven integration. For the
ServletTestRunner one, one solution is simply to save the HTML test result
page somewhere that is accessible by all persons interested.

Hope it helps,
-Vincent

> sebastian
> 
> 
> On Thu, 2004-09-16 at 13:59, Vincent Massol wrote:
> > Hi Sebastian,
> >
> > > -----Original Message-----
> > > From: Sebastian Ho [mailto:sebastianh@bii.a-star.edu.sg]
> > > Sent: jeudi 16 septembre 2004 03:41
> > > To: 'Cactus Users List'
> > > Subject: how to stop testcases from running when refreshing browser
> > >
> > > hi
> > >
> > > My cactus set up runs fine, but I notice that the testcases will be
> > > executed whenever I hit refresh in my browser. How do I prevent that
> > > from happening?
> >
> > Hmm...
> >
> > Solution 1: Do not hit refresh? :-)
> > Solution 2: Do not run the tests in a browser? See the other
> integrations
> >
> > More seriously if you ask for a URL the browser will get it. The URL
> you're
> > asking for is the one that executes Cactus tests. So obviously if you
> hit
> > refresh the tests will be run again.
> >
> > I'm curious to understand why you wish to hit refresh without the tests
> > being run?
> >
> > Thanks
> > -Vincent
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org




RE: how to stop testcases from running when refreshing browser

Posted by Sebastian Ho <se...@bii.a-star.edu.sg>.
The reason is because someone might be viewing the results either
through browser or the XML file generated. If another developer access
the URL to view test results, the testcases will be executed again. And
the previous result will be overwritten. 

Am I missing something or cactus is not meant to be use in a ENV with >1
developer?

sebastian


On Thu, 2004-09-16 at 13:59, Vincent Massol wrote:
> Hi Sebastian,
> 
> > -----Original Message-----
> > From: Sebastian Ho [mailto:sebastianh@bii.a-star.edu.sg]
> > Sent: jeudi 16 septembre 2004 03:41
> > To: 'Cactus Users List'
> > Subject: how to stop testcases from running when refreshing browser
> > 
> > hi
> > 
> > My cactus set up runs fine, but I notice that the testcases will be
> > executed whenever I hit refresh in my browser. How do I prevent that
> > from happening?
> 
> Hmm... 
> 
> Solution 1: Do not hit refresh? :-)
> Solution 2: Do not run the tests in a browser? See the other integrations
> 
> More seriously if you ask for a URL the browser will get it. The URL you're
> asking for is the one that executes Cactus tests. So obviously if you hit
> refresh the tests will be run again.
> 
> I'm curious to understand why you wish to hit refresh without the tests
> being run?
> 
> Thanks
> -Vincent
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 


RE: how to stop testcases from running when refreshing browser

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Sebastian,

> -----Original Message-----
> From: Sebastian Ho [mailto:sebastianh@bii.a-star.edu.sg]
> Sent: jeudi 16 septembre 2004 03:41
> To: 'Cactus Users List'
> Subject: how to stop testcases from running when refreshing browser
> 
> hi
> 
> My cactus set up runs fine, but I notice that the testcases will be
> executed whenever I hit refresh in my browser. How do I prevent that
> from happening?

Hmm... 

Solution 1: Do not hit refresh? :-)
Solution 2: Do not run the tests in a browser? See the other integrations

More seriously if you ask for a URL the browser will get it. The URL you're
asking for is the one that executes Cactus tests. So obviously if you hit
refresh the tests will be run again.

I'm curious to understand why you wish to hit refresh without the tests
being run?

Thanks
-Vincent