Ejemplo n.º 1
0
        private void executeWithRepository(string graphID, string simID, string eventName)
        {
            string        retrunXML = string.Empty;
            List <Events> lst       = FunctionalityFromRepository.GetExecutedEvents(graphID, simID, eventName, ref retrunXML);

            if (string.IsNullOrWhiteSpace(retrunXML) == false)
            {
                string errorDetail = string.Empty;
                bool   chhk        = HelpingFunctions.checkSuccessExecute(retrunXML, ref errorDetail);
                if (chhk)
                {
                    MessageBox.Show("Something went wrong , please try later ");
                }
                else
                {
                    string err = HelpingFunctions.updateErrorMsgReplaceIdWithLabels(eveLst, errorDetail);
                    MessageBox.Show(err);
                    //MessageBox.Show(errorDetail);
                }
            }
            else
            {
                LoadEvent(lst);
                checkIsAccepting();
            }
        }
Ejemplo n.º 2
0
        public void ThenSelectChartTypeFromDropdown_(Table table)
        {
            ExplicitWaiting.waitForTime(15000);
            GetValues _type = table.CreateInstance <GetValues>();

            HelpingFunctions.SelectChartType(_type.ChartType);
        }
Ejemplo n.º 3
0
        public void ThenVerifyFileUpload_()
        {
            ExplicitWaiting.waitForTime(5000);
            IWebElement searchElement = BrowserConfig._driver.FindElement(By.XPath(ObjectIdentifiers._removeFileButton));

            HelpingFunctions.elementVisible(searchElement);
        }
Ejemplo n.º 4
0
        public void ThenVerifyMultipleDmaFilesUpload_()
        {
            Thread.Sleep(3000);
            IWebElement dmafileelement = BrowserConfig._driver.FindElement(By.XPath(ObjectIdentifiers._tick1));

            HelpingFunctions.elementVisible(dmafileelement);
        }
Ejemplo n.º 5
0
        public void ThenSelectDeformationModeFromDropdown_(Table table)
        {
            ExplicitWaiting.waitForTime(3000);
            GetValues _deformationType = table.CreateInstance <GetValues>();

            HelpingFunctions.SelectDeformationMode(_deformationType.DeformationMode);
        }
Ejemplo n.º 6
0
        public void ThenVerifyLoadConstitutiveMechanicalModelButtonClicked_()
        {
            Thread.Sleep(10000);
            //IWebElement visualizeModelDataElement = BrowserConfig._driver.FindElement(By.CssSelector(ObjectIdentifiers._visualizeModelCss));
            // string color = visualizeModelDataElement.GetCssValue("color");
            // Console.WriteLine(color);
            // Assert.AreEqual(color, "rgba(30, 144, 255, 1)");
            IWebElement chartElement = BrowserConfig._driver.FindElement(By.XPath(ObjectIdentifiers._saveChartBtn));

            HelpingFunctions.elementVisible(chartElement);
        }
Ejemplo n.º 7
0
        public void ThenVerifySelectionOfModelName_()
        {
            IWebElement saveSelectModelelement = BrowserConfig._driver.FindElement(By.XPath(ObjectIdentifiers._saveSelectedModelsButton));

            HelpingFunctions.SaveSelectedModelsVisible(saveSelectModelelement);
        }
Ejemplo n.º 8
0
        public void ThenSelectModelPhaseFromDropdown_(Table table)
        {
            GetValues _model = table.CreateInstance <GetValues>();

            HelpingFunctions.SelectModelPhase(_model.ModelPhase);
        }
Ejemplo n.º 9
0
        public void ThenSelectAdhesiveTypeFromDropdown_(Table table)
        {
            GetValues _adhesive = table.CreateInstance <GetValues>();

            HelpingFunctions.SelectAdhesiveType(_adhesive.AdhesiveType);
        }