Пример #1
0
  /* (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);
    }
  }
Пример #2
0
  /* (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);
  }
Пример #3
0
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();
  }
}
Пример #4
0
 @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();
 }
Пример #5
0
 @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"));
 }