Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Project deletion is not completed with command line
Project deletion is not completed with command line [message #765528] Wed, 14 December 2011 08:54 Go to next message
Ashish Sharma is currently offline Ashish SharmaFriend
Messages: 15
Registered: October 2011
Junior Member
I have a command as mentioned below:
\jubula\testexec -project DesignStudio -version 1.0 -testsuite system_test -server localhost -port 60000 -autconfig DesignStudio@localhost -data D:\WorkspaceAutomation -datadir D:\WorkspaceAutomationTestData -resultdir D:\WorkspaceAutomationTestResults -language en_US -dbscheme "Default Embedded (H2)" -dbuser sa -dbpw ""

When I fire this command the eclipse is launched and test suite gets executed successfully. At the end of my test I have a delete project test case. The project is getting deleted, but when I fire this command again I see a closed project. When I try to open it it says file not found etc.

When I run this same test suite using Jubula, everything works like charm.

Please tell me what's I am missing in command line execution of test suite.
Re: Project deletion is not completed with command line [message #765605 is a reply to message #765528] Wed, 14 December 2011 11:24 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi,

The problem probably comes from the fact that when Jubula stops an AUT it does so quite forcefully at the moment, and doesn't appear to give Eclipse enough time to get its workspace in order. The same thing will most likely happen if you restart the AUT in the test after having deleted a project. There isn't an enhancement request in the Jubula bugzilla for this yet, but you could enter one for improving the stopping / restarting of AUTs.

For the moment, I'd recommend adding a check with a retry Event Handler to your startup module that checks that no projects are there, and deletes them if they are. There is a thread that deals with this, but I can't find it right now. A thread with general information on Event Handlers is here:
http://www.eclipse.org/forums/index.php/mv/msg/224225/701849/

HTH,
Alex
Re: Project deletion is not completed with command line [message #765633 is a reply to message #765605] Wed, 14 December 2011 12:24 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Found the other thread:
http://www.eclipse.org/forums/index.php/t/245837/

Smile
Previous Topic:Problem Using Parentheses in Regular Expression TEXTPATH
Next Topic:Best practice: How do you debug RC code?
Goto Forum:
  


Current Time: Fri Apr 26 18:33:32 GMT 2024

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

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

Back to the top