Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Failed to execute context: ClearWorkspace
Failed to execute context: ClearWorkspace [message #1745400] Mon, 10 October 2016 11:09 Go to next message
Tu Ton is currently offline Tu TonFriend
Messages: 16
Registered: January 2015
Junior Member

My tests keep being failed with the following error:
Failed to execute context: ClearWorkspace Cause: Failed to apply context "ClearWorkspace" caused by: Possible resource leak in AUT. Files below are locked and cannot be deleted:

I've done a search on this forum and there's a thread mentioning the same problem: I've tested the Launch context solution but it does not fix the problem.

In my case, it is true that at the end of each test, there's a process trying to do something with the stuck file. Is there any way to tell the test session to wait until this process finishes its job?

Thank you in advance.

Best regards,
Re: Failed to execute context: ClearWorkspace [message #1745518 is a reply to message #1745400] Wed, 12 October 2016 02:36 Go to previous message
Andrey Sobolev is currently offline Andrey SobolevFriend
Messages: 74
Registered: February 2015

Workspace context is trying to delete all files, if clear option is chosen, and if it is failed to do following message is shown.
Best way is to prepare AUT state before execution of test, so contexts are used for this.
If you know how to unlock selected files for your application you could use a ECL context and put it before Workspace context to be sure files are not locked and do all necessary actions.

Best regards,
Previous Topic:Parameters in launch contexts?
Next Topic:RCPTT to parameterize test cases
Goto Forum:

Current Time: Fri Nov 16 14:22:37 GMT 2018

Powered by FUDForum. Page generated in 0.01412 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top