示例#1
0
        public void GivenAStaticSelectionCopyOfQueryExists(string selection, string query)
        {
            BBCRMHomePage.OpenAnalysisFA();
            AnalysisFunctionalArea.InformationLibrary();

            IDictionary <string, string> queryRow = new Dictionary <string, string> {
                { "Name", query }
            };

            if (!InformationLibraryPanel.QueryExists(queryRow))
            {
                CreateUnacknowledgedRevenueSelection(query);
            }

            IDictionary <string, string> selectionRow = new Dictionary <string, string> {
                { "Name", selection }
            };

            if (InformationLibraryPanel.QueryExists(selectionRow))
            {
                InformationLibraryPanel.DeleteQuery(selectionRow);
                //re-nvaigate should not be necessary.  only done due to filed bug 490200
                BBCRMHomePage.OpenAnalysisFA();
                AnalysisFunctionalArea.InformationLibrary();
            }

            InformationLibraryPanel.CopyQueryAsStaticSelection(selection, queryRow);
        }
示例#2
0
        public void GivenUnacknowledgedRevenueQueryExists(string selection)
        {
            BBCRMHomePage.OpenAnalysisFA();
            AnalysisFunctionalArea.InformationLibrary();
            IDictionary <string, string> selectionRow = new Dictionary <string, string> {
                { "Name", selection }
            };

            if (InformationLibraryPanel.QueryExists(selectionRow))
            {
                return;
            }
            CreateUnacknowledgedRevenueSelection(selection);
        }