Question

I have some 5testcase(SWTBot test) classes in a package in project, all work properly separately, but if i run them all at once then some widget may be left open and remaining files fail. So how to clear the eclipse configuration after each testcase file? May be write a line at end that will clear configurtion? I dont want to relunch eclipse after each file!

Was it helpful?

Solution

Automated test must be self-contained, and it's the responsibility of a TestCase to finish properly and close the remaining files/streams/dialogs. So you should add some @After methods which close the dialogs after the test use this, so next test will start and a clean application independently of previous test.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top