Beispiel #1
0
        /// <summary>
        ///  Methods related to OMS Oders History tab
        /// </summary>

        // This selects the instrument on the OMS Open orders page and verifies the related orders in the buy and sell side books
        public bool VerifySelectOMSOrdersHistoryInstrument(string instrument, string numberOfRecords)
        {
            bool orderFoundFlag = false;
            AdminCommonFunctions objAdminCommonFunctions = new AdminCommonFunctions(logger);

            try
            {
                objAdminCommonFunctions.ClickOnOMSOrdersMenuLink();
                ClickOMSOrdersHistoryTab();
                objAdminCommonFunctions.SelectOMSOrdersInstrument(instrument);
                Thread.Sleep(1000);
                orderFoundFlag = ScrollAndVerifyInstrument(instrument, numberOfRecords);
            }
            catch (Exception)
            {
                throw;
            }
            return(orderFoundFlag);
        }
Beispiel #2
0
        // This selects the instrument on the OMS Open orders page and verifies the related orders in the buy and sell side books
        public bool VerifySelectOMSOpenOrdersInstrument(Dictionary <string, string> userDetailsDict, string instrument, string buyPrice, string sellPrice, string buyQuantity, string sellQuantity, string orderType)
        {
            bool orderFoundFlag = false;
            AdminCommonFunctions objAdminCommonFunctions = new AdminCommonFunctions(logger);

            try
            {
                objAdminCommonFunctions.ClickOnOMSOrdersMenuLink();
                objAdminCommonFunctions.SelectOMSOrdersInstrument(instrument);
                Thread.Sleep(1000);
                orderFoundFlag = VerifyOMSOrdersBuySideBook(userDetailsDict["AccountId"], userDetailsDict["UserId"], buyPrice, buyQuantity, orderType);
                orderFoundFlag = VerifyOMSOrdersSellSideBook(userDetailsDict["AccountId"], userDetailsDict["UserId"], sellPrice, sellQuantity, orderType);
            }
            catch (Exception)
            {
                throw;
            }
            return(orderFoundFlag);
        }
Beispiel #3
0
        // This method navigates to OMS Orders History page and clears all filters
        public void ClearOrderHistoryFilters(string instrument, string numOfOrders)
        {
            AdminCommonFunctions objAdminCommonFunctions = new AdminCommonFunctions(logger);

            try
            {
                objAdminCommonFunctions.ClickOnOMSOrdersMenuLink();
                ClickOMSOrdersHistoryTab();
                objAdminCommonFunctions.SelectOMSOrdersInstrument(instrument);
                SelectOMSOrdersInstrument(numOfOrders);
                ClickMoreFiltersLink();
                AccountIdTextBox().Clear();
                UserIdTextBox().Clear();
                OrderIdTextBox().Clear();
            }
            catch (Exception)
            {
                throw;
            }
        }
Beispiel #4
0
        // Add filter by userId and verify that only the details of the userId which was passed on filter is displayed in Buy side and Sell side order book
        public bool VerifySearchOMSOrdersByUserId(string instrument, string userId)
        {
            bool userIdFoundFlag = false;
            AdminCommonFunctions objAdminCommonFunctions = new AdminCommonFunctions(logger);

            try
            {
                objAdminCommonFunctions.ClickOnOMSOrdersMenuLink();
                objAdminCommonFunctions.SelectOMSOrdersInstrument(instrument);
                ClickMoreFiltersLink();
                AccountIdTextBox().Clear();
                UserIdTextBox().Clear();
                UserIdTextBox().SendKeys(userId);
                ClickMoreFiltersLink();
                userIdFoundFlag = VerifyUserIdInBuySideBook(userId);
                userIdFoundFlag = VerifyUserIdInSellSideBook(userId);
                return(userIdFoundFlag);
            }
            catch (Exception)
            {
                throw;
            }
        }