/* (non-Javadoc) * @see org.eclipsetrader.core.trading.IOrderMonitor#submit() */ @Override public void submit() throws BrokerException { if (!connector.isLoggedIn()) { connector.login(); if (!connector.isLoggedIn()) { throw new BrokerException(Messages.OrderMonitor_UnableToLogin); } } if (connector.sendOrder(this)) { brokerConnector.addWithNotification(this); } }
/* (non-Javadoc) * @see org.eclipsetrader.core.trading.IOrderMonitor#cancel() */ @Override public void cancel() throws BrokerException { if (!connector.isLoggedIn()) { connector.login(); if (!connector.isLoggedIn()) { throw new BrokerException(Messages.OrderMonitor_UnableToLogin); } } if (getId() == null) { throw new BrokerException(Messages.OrderMonitor_InvalidOrder); } connector.cancelOrder(this); }
public class LLVP { public static WebDriver driver; CheckOutPage Wd = new CheckOutPage(); public static final WebConnector WC = WebConnector.getInstance(); @Given("^the user defines the required webdriver for the LLVP device$") public void the_user_defines_the_required_webdriver_for_the_LLVP_device() throws Throwable { WC.openBrowsers(Browsers.valueOf("Chrome")); } @And("^configure the required tests that he wishes to run on LLVP$") public void configure_the_required_tests_that_he_wishes_to_run() throws Throwable { WC.getDriver(); } }
@And("^configure the required tests that he wishes to run on LLVP$") public void configure_the_required_tests_that_he_wishes_to_run() throws Throwable { WC.getDriver(); }
@Given("^the user defines the required webdriver for the LLVP device$") public void the_user_defines_the_required_webdriver_for_the_LLVP_device() throws Throwable { WC.openBrowsers(Browsers.valueOf("Chrome")); }