문제

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!

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top