public void TFieldValidationInput_Order_ContractID()
        {
            storeResults = true;
            CreateImportFile.GenXMLOrder();
            PO_Dashboard.GoToImportOrdersManualSource();
            PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("contractId", "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890+")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
            emirTransactionPage.VerifyStaticIssue(15);

            CreateImportFile.GenXMLOrder();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("contractId", "!@#$%^&*()")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            emirTransactionPage.VerifyStaticIssue(15);
            Test.result = "Passed";
        }
 public void ImportOrder_GenXML()
 {
     storeResults = true;
     CreateImportFile.GenXMLChained();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(15);
     Test.result = "Passed";
 }
        //[TestCategory("Import"), TestCategory("ImportTrade"), TestCategory("RegressionTesting"), TestMethod()]
        public void TFieldValidationInput_Order_DeliveryZone()
        {
            storeResults = true;
            CreateImportFile.GenXMLOrder();
            PO_Dashboard.GoToImportOrdersManualSource();
            PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("deliveryPointOrZone", "123456789012345621231231231231312523454535673243523453457456745634563452345234345636567456746858thfhdye65y56yvegdg5d5tgv45t4+")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
            emirTransactionPage.VerifyStaticIssue(15);

            CreateImportFile.GenXMLOrder();
            PO_Dashboard.GoToImportOrdersManualSource();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("deliveryPointOrZone", "!@#$%^&*()")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            emirTransactionPage.VerifyStaticIssue(15);
            Test.result = "Passed";
        }
 //[TestCategory("Import"), TestCategory("ActionsUI"), TestCategory("ImportOrder"), TestMethod()]
 public void FieldValidationInput_Order_ActionCancel()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("actionType", "C")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(15);
     Test.result = "Passed";
 }
 public void CFV_10_Order_DeliveryStart_AfterDeliveryEndDate()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("deliveryStartDate", "2015-07-31")
         .EditTradeNode("deliveryEndDate", "2014-07-30")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void CFV_13_Order_SettlementMethod_Missing()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("contract", "settlementMethod", "")
         .EditTradeNode("OrderReport", "settlementMethod", "")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void CFV_18_Order_QuantityIntervalSection_PriceCurency_OneMissing()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceIntervalQuantityDetails", "currency", "")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void CFV_15_Order_VolumeQuantity_Unit()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("OrderReport", "value", "")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void CFV_22_Order_AuctionVolumeQuantity_SamePriceNull()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceTimeIntervalQuantity", "value", "40")
         .EditTradeNode("quantity", "")
         .EditTradeNode("contractType", "AU")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(15);
     Test.result = "Passed";
 }
 public void FieldValidationInput_Order_Price_Missing()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceLimit", "currency", "")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void CFV_14_Order_OptionStyle_Unlinked()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("optionStyle", "AutomationUnlinkedItem")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void CFV_25_Order_Currency_NotAllowed()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceCurrency", "BGN")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(15);
     Test.result = "Passed";
 }
 public void OK_CFV_24_Order_OrganisedMarketPlace_Contract_Combination()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("mic", "BIL")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void OK_CFV_8_Order_TransactionTime_AfterDeliveryStartDate()
 {
     storeResults = true;
     CreateImportFile.GenXMLChained();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("lastTradingDateTime", "")
         .EditTradeNode("OrderReport", "transactionTime", "2015-07-31T12:00:00+02:00")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void OK_CFV_22_Order_AuctionVolumeQuantity_BothPopulated()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceIntervalQuantityDetails", "quantity", "100")
         .EditTradeNode("quantity", "101")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void OK_CFV_23_Order_TraderID_OrganisedMarketID_BothMissing()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("traderIdForMarketParticipant", "")
         .EditTradeNode("organisedMarketPlaceIdentifier", "")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void CFV_17_Order_QuantityIntervalSection_VolumeQuantity_BothMissing()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceIntervalQuantityDetails", "quantity", "")
         .EditTradeNode("priceIntervalQuantityDetails", "unit", "")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(15);
     Test.result = "Passed";
 }
 public void OK_CFV_19_Order_SameQuantityIntervalSection_Price_BothAppearing()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceTimeIntervalQuantity", "value", "40")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void OK_CFV_12_Order_PriceIntervals_Overlap()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("daysOfTheWeek", "TU")
         .EditTradeNode("intervalStartTime", "14:00:00")
         .EditTradeNode("intervalEndTime", "15:00:00")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
 public void CFV_5c_Order_Auction_BuyOrSell()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("contractType", "Option")
         .EditTradeNode("buySellIndicator", "B")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(15);
     Test.result = "Passed";
 }
 public void CFV_2_Order_ExerciseDate()
 {
     storeResults = true;
     CreateImportFile.GenXMLOrder();
     PO_Dashboard.GoToImportOrdersManualSource();
     PO_ImportManualOrdersSource importPage = new PO_ImportManualOrdersSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("contract", "ExerciseDate", "2014-09-01")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }