I am struggling to write a test scenario, where my testcase flow, needs to restart the Eclipse. Could you please let me know, how to handle these sort of scenarios?
What exactly I am trying to write a testcase for is....
Help-->Install Nee Software--> Add Install sites --> Install --> After Installation, need to Restart --> Once Restarted verify installation under "window->Preferences", "window->show view".
Is there anyway, I can make WindowTester wait for the Product restart and then continue ahead verifying the facts, once product is restarted???? As of now, windowTester marks test pass and exits and again relaunches the testcase by itself right from beginning of the testcase.
I have found a workaround to make windowtester contuinue from where it has left the job while restarting (by writing a Flag on diskfile and putting if-else check), but then since the main/Parent instance of Eclipse, on which this JUNIT test is executing, is never restarted(I suppose this is the reason), I never get to see those perspective/views from the Window Menu.
I am posting this here thinking that, I can not be the first person who is encountering this scenario.