public void ImportREMIT_Trade()
 {
     storeResults = true;
     CreateImportFile.GenXMLChained();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(15);
     Test.result = "Passed";
 }
 public void TFieldValidationInput_Trade_GenXML_MissingSTI()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("uniqueTransactionIdentifier", "uniqueTransactionIdentifier", "")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
        public void TFieldValidationInput_Trade_ContractID()
        {
            storeResults = true;
            CreateImportFile.GenXMLTrade();
            PO_Dashboard.GoToImportTradeManualSource();
            PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
            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.GenXMLTrade();
            PO_Dashboard.GoToImportTradeManualSource();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("contractId", "!@#$%^&*()")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            emirTransactionPage.VerifyStaticIssue(15);
            Test.result = "Passed";
        }
 public void TFieldValidationInput_Trade_GenXML_ActionCancel()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("actionType", "C")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI+ "*", 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyError(15);
     Test.result = "Passed";
 }
 public void CFV_10_Trade_DeliveryStart_AfterDeliveryEndDate()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     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_12_Trade_PriceIntervals_Overlap()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("daysOfTheWeek", "Tue456")
         .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_4_Trade_DeliveryZone_Unbounded()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("TradeReport", "deliveryPointOrZone", "AutomationUnboundedZone")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
        public void TFieldValidationInput_Trade_TransactionTimestamp()
        {
            storeResults = true;
            CreateImportFile.GenXMLTrade();
            PO_Dashboard.GoToImportTradeManualSource();
            PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("transactionTime", "John Lennon")
                .SaveXML().Import();
            importPage.VerifyTransformError();

            Test.result = "Passed";
        }
        //[TestCategory("Import"), TestCategory("ImportTrade"), TestCategory("RegressionTesting"), TestMethod()]
        public void TFieldValidationInput_Trade_PriceLimit()
        {
            storeResults = true;
            CreateImportFile.GenXMLTrade();
            PO_Dashboard.GoToImportTradeManualSource();
            PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("priceLimit", "value", "John Lennon")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
            emirTransactionPage.VerifyStaticIssue(15);

            CreateImportFile.GenXMLTrade();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("priceLimit", "value", "132456789012345678901")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            emirTransactionPage.VerifyStaticIssue(15);

            CreateImportFile.GenXMLTrade();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("priceLimit", "value", "12345.123456")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            emirTransactionPage.VerifyStaticIssue(15);

            Test.result = "Passed";
        }
 public void CFV_13_Trade_SettlementMethod_Missing()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("contract", "settlementMethod", "")
         .EditTradeNode("tradeReport", "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 OK_CFV_5_Trade_BuyAndSell()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("buySellIndicator", "C")
         .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_9_Trade_TransactionDate_AfterDeliveryEndDate()
 {
     storeResults = true;
     CreateImportFile.GenXMLChained();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("lastTradingDateTime", "")
         .EditTradeNode("TradeReport", "transactionTime", "2015-07-31T12:00:00+02:00")
         .EditTradeNode("deliveryEndDate", "2015-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_18_Trade_QuantityIntervalSection_PriceCurency_OneMissing()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     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_Trade_VolumeQuantity_Unit_BothMissing()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("tradeReport", "value", "")
         .EditTradeNode("tradeReport", "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 CFV_19_Trade_SameQuantityIntervalSection_Price_SamePriceMissing()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceTimeIntervalQuantity", "value", "40")
         .EditTradeNode("price", "")
         .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_Trade_ExerciseDate()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     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";
 }
 public void CFV_25_Trade_Currency_NotAllowed()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("TradeReport", "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 CFV_23_Trade_TraderID_OrganisedMarketID_OneMissing()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("TradeReport", "traderIdForMarketParticipant", "asd")
         .EditTradeNode("TradeReport", "organisedMarketPlaceIdentifier", "asd")
         .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_20_Trade_VolumeQuantity_BothPopulated()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("priceIntervalQuantityDetails", "quantity", "100")
         .EditTradeNode("TradeReport", "quantity", "101")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }
        //[TestCategory("Import"), TestCategory("ImportTrade"), TestCategory("RegressionTesting"), TestMethod()]
        public void TFieldValidationInput_Trade_DeliveryZone()
        {
            storeResults = true;
            CreateImportFile.GenXMLTrade();
            PO_Dashboard.GoToImportTradeManualSource();
            PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
            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.GenXMLTrade();
            importPage.ImportREMITGeneralXMLWith()
                .EditTradeNode("deliveryPointOrZone", "!@#$%^&*()")
                .SaveXML().Import();
            importPage.VerifyFileIsUploaded();
            PO_UTISearch.GoTo(Test.UTI, 100);
            emirTransactionPage.VerifyStaticIssue(15);
            Test.result = "Passed";
        }
 public void CFV_6_Trade_TransactionTime()
 {
     storeResults = true;
     CreateImportFile.GenXMLChained();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("lastTradingDateTime", "2015-08-30T12:00:00+02:00")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15, "'Last Trading Date Time' need to be on or prior to the delivery Start Date");
     Test.result = "Passed";
 }
 public void OK_CFV_24_Trade_OrganisedMarketPlace_Contract_Combination()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     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 CFV_14_Trade_OptionType_Unlinked()
 {
     storeResults = true;
     CreateImportFile.GenXMLTrade();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportREMITGeneralXMLWith()
         .EditTradeNode("optionType", "AutomationUnlinkedItem")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(15);
     Test.result = "Passed";
 }