internal static void TradeWithCollateralTest(String portfolioCode)
 {
     CreateImportFile.GenXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("PortfolioCodeValue", Test.CollateralPortCode)
         .EditTradeNode("PortfolioCode", portfolioCode)
         .SaveXML().Import();
     Test.counterParty = "Impendium";  //REGIS position Counterparty
     importPage.VerifyFileIsUploaded();
     CollateralId = SQLServerUtilities.GetCollateralId(Test.STI);
     GoToCollateralPage();
 }
 internal static void Trade(String portfolioCode)
 {
     CreateImportFile.GenXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("PortfolioCodeValue", Test.CollateralPortCode)
         .EditTradeNode("PortfolioCode", portfolioCode)
         .Import();
     Test.counterParty = "Impendium";  //REGIS position Counterparty
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend();
 }
 public static String ImportTrade(String portfolioCode)
 {
     CreateImportFile.CreateNewGenericXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("PortfolioCodeValue", Test.CollateralPortCode)
         .EditTradeNode("PortfolioCode", portfolioCode)
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 50);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend();
     return Test.tradeID;
 }
 public void TC20013_ImportTrade_PriceMultiplier_Valid()
 {
     CreateImportFile.GenXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("PriceMult", "5")
         .SaveXML()
         .Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(90);
     Test.result = "Passed";
 }
 public void TC19954_ImportTrade_TransactionRefN_null()
 {
     CreateImportFile.GenXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("TransactionReferenceNumber", "")
         .SaveXML()
         .Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(90);
     Test.result = "Passed";
 }
 public void TC19961_ImportTrade_ConfirmationMeans_InvalidInput()
 {
     CreateImportFile.GenXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("PortfolioCodeValue", Test.CollateralPortCode)
         .EditTradeNode("PortfolioCode", "Yes")
         .EditTradeNode("ConfirmationMeans", "")
         .SaveXML()
         .Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(90);
     Test.result = "Passed";
 }
 public void TC19955_ImportTrade_FinancialNature_InvalidInput()
 {
     CreateImportFile.GenXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("PortfolioCodeValue", Test.CollateralPortCode)
         .EditTradeNode("PortfolioCode", "Yes")
         .EditTradeNode("Counterparty1ID", "K229M9")
         .Import();
     Test.counterParty = "K229M9";
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStaticIssue(90);
     Test.result = "Passed";
 }
 public void TC14634_ImportTrade_GenXML_withStaticError_andFix()
 {
     storeResults = true;
     CreateImportFile.GenXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("Counterparty1ID", "")
         .SaveXML().Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyStatusStaticIssues();
     emirTransactionPage.EditTradeAttributeWithAutocompletion("Counterparty", "10_Counterparty_Counterparty_ExternalDiv", "Impendium");
     emirTransactionPage.ValidateEditing();
     Test.result = "Passed";
 }
 public void TC19999_ImportTrade_Quantity_10()
 {
     CreateImportFile.GenXML();
     PO_Dashboard.GoToImportTradeManualSource();
     PO_ImportManualTradeSource importPage = new PO_ImportManualTradeSource();
     importPage.ImportGeneralXMLWith()
         .EditTradeNode("PortfolioCodeValue", Test.CollateralPortCode)
         .EditTradeNode("PortfolioCode", "No")
         .EditTradeNode("Quantity", "10")
         .SaveXML()
         .Import();
     importPage.VerifyFileIsUploaded();
     PO_UTISearch.GoTo(Test.UTI, 100);
     PO_EditEmirTransactionPage emirTransactionPage = new PO_EditEmirTransactionPage();
     emirTransactionPage.VerifyReadyToSend(90);
     Test.result = "Passed";
     storeResults = true;
 }