use of org.eclipse.reddeer.eclipse.debug.ui.views.variables.VariablesView in project jbosstools-openshift by jbosstools.
the class DebuggingEAPAppTest method checkVariablesView.
private void checkVariablesView() {
VariablesView variablesView = new VariablesView();
variablesView.open();
// wait for variables to have correct value
new WaitUntil(new AbstractWaitCondition() {
@Override
public boolean test() {
return variablesView.getValue("name").equals("World");
}
});
new WaitUntil(new AbstractWaitCondition() {
@Override
public boolean test() {
return variablesView.getValue("this").contains("HelloService");
}
});
}
use of org.eclipse.reddeer.eclipse.debug.ui.views.variables.VariablesView in project jbosstools-openshift by jbosstools.
the class DebuggingEAPAppTest method setNewVariableValue.
// TODO this should be replaced once
// https://github.com/jboss-reddeer/reddeer/issues/1668 is fixed.
private void setNewVariableValue(String newValue, final String... variablePath) {
new WaitWhile(new JobIsRunning());
LaunchView debugView = new LaunchView();
debugView.open();
ensureCorrectFrameIsSelected(debugView);
VariablesView variablesView = new VariablesView();
variablesView.open();
new WaitUntil(new AbstractWaitCondition() {
@Override
public boolean test() {
try {
TreeItem variable = new DefaultTreeItem(variablePath);
variable.select();
return variable.isSelected();
} catch (Exception e) {
return false;
}
}
@Override
public String description() {
return "Variable is not selected";
}
}, TimePeriod.LONG);
try {
new ContextMenuItem("Change Value...").select();
} catch (CoreLayerException e) {
throw e;
}
new DefaultShell("Change Object Value");
new DefaultStyledText().setText(newValue);
new OkButton().click();
new WaitWhile(new JobIsRunning());
}
Aggregations