|
|
Re: Restarting Eclipse under test [message #1065420 is a reply to message #1064873] |
Tue, 25 June 2013 15:51 |
|
As SWTBot starts inside Eclipse, it's not possible to have a test which
deals with the "Restart" process. When you restart, Eclipse stops, then
your SWTBot launcher stops, and Eclipse restart in its vanilla form,
without your SWTBot test being started.
What you can try instead of a restart is to separate your test suite in
2 pieces: one before restart and one after. You run your "before
restart" suite normally. When it ends, the uitestapplication will close
Eclipse, and then you run your "after restart" suite using the
uitestapplication again.
HTH
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
|
|
|
|
|
Re: Restarting Eclipse under test [message #1069661 is a reply to message #1069654] |
Tue, 16 July 2013 10:22 |
|
On 07/16/2013 12:09 PM, pawan garia wrote:
> Hi Mickael,
> I tried Using the Restart Functionality With SWTBOT in my Product and
> Found Some thing unusual, Following is My Test. So Every Time i Run this
> class File Swtbot is Running the Fist TestCase and Restart Eclipse and
> Start the Same Testcase again and Again... It is Not Running the Second
> TestCase.
The restart functionality cannot be tested with SWTBot because "Restart"
will just restart Eclipse with the exact same options and won't continue
a Test Suite.
If you want to run a sequence of tests separated by restart, this has to
be implemented in the way you run those tests (Tycho Surefire, Bash,
Ant...) to actually run sequentially different test suites.
Just let the test suite run and close by itself, without using Restart.
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
|
|
|
Powered by
FUDForum. Page generated in 0.02916 seconds