My RCP application, when it builds a project, spits out build result information into the Console tab. Using the WindowTesterPro 4.0.0 and eclipse classic SDK 3.5, I recorded the project creation and build. As a part of the test, I need to read the build output text in the console tab window to determine if the build was successful. Is there any other way that I can extract the build output text from the console tab?
I tried the below code in my recorded .java file but when I playback, it always returns null.
- Code: Select all
String buildOutput = new CTabItemLocator("Console").getText(ui);
System.out.println(buildOutput);
Thanks,