failure running AGR [message #100827] |
Tue, 12 June 2007 08:09 |
Eclipse User |
|
|
|
Originally posted by: eitanush.gmail.com
Hi,
I recorded a few tests and added them to the behavior of a testsuite.
When I run the testsuite, if one of the testcases fails, it sometimes
causes the rest of the tests to fail, even though they should pass.
The problem is, that when I record the test, I create someproject/s and at
the end of the test I delete these project/s. When I run the testsuite, if
it fails on some testcase, the project is not deleted, and then in the
next testcase it sometimes refers to the project that was supposed to be
deleted, instead of the project that was created in the current testcase.
Is there any solution for this problem?
|
|
|
Re: failure running AGR [message #100852 is a reply to message #100827] |
Tue, 12 June 2007 13:49 |
Liz Dancy Messages: 77 Registered: July 2009 |
Member |
|
|
Hi Anat,
A good solution to this problem is to have each test case leave as little of
a footprint as possible. You can do this by using setup and teardown test
cases surrounding each "interesting" test case. That way, if your test
execution fails the project will still be deleted and the next setup method
should still be able to execute, allowing your actual test case to pass or
fail independently.
Sincerely,
Liz Dancy
"Anat Levi" <eitanush@gmail.com> wrote in message
news:3e5512c9e73415079b9e7e3369028bf8$1@www.eclipse.org...
> Hi,
> I recorded a few tests and added them to the behavior of a testsuite.
> When I run the testsuite, if one of the testcases fails, it sometimes
> causes the rest of the tests to fail, even though they should pass.
> The problem is, that when I record the test, I create someproject/s and at
> the end of the test I delete these project/s. When I run the testsuite, if
> it fails on some testcase, the project is not deleted, and then in the
> next testcase it sometimes refers to the project that was supposed to be
> deleted, instead of the project that was created in the current testcase.
> Is there any solution for this problem?
>
|
|
|
Powered by
FUDForum. Page generated in 0.04872 seconds