예제 #1
0
        public void SetGlobalPostProcessingScript(string script)
        {
            BtnGlobalPostProcessingScript.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            popup.TxtScript.Value = script;
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
        }
 /// <summary>
 /// Add globabl processing script.
 /// </summary>
 public void AddGlobalPostProcessingScript(string globalScript)
 {
     Trace.WriteLine("Creating a global-script for activities.");
     BtnGlobalPostProcessing.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     popup.TxtScript.Value = globalScript;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
 }
 public void AddCustomizeActivityScript(string customActivityScript)
 {
     Trace.WriteLine("Customizing activity details page -- adding script.");
     var parentWindow = GetTitle();
     BtnCustomzieDetailsPage.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     popup.TxtScript.Value = customActivityScript;
     popup.BtnOk.Click();
     PopUpWindow.SwitchTo(parentWindow);
 }
        /// <summary>
        /// Add globabl processing script.
        /// </summary>
        public void AddGlobalPostProcessingScript(string globalScript)
        {
            Trace.WriteLine("Creating a global-script for activities.");
            BtnGlobalPostProcessing.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            popup.TxtScript.Value = globalScript;
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
        }
예제 #5
0
        public void SetPostProcessingScript(string script, int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkPostProcessingScript.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            popup.TxtScript.Value = script;
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
        }
예제 #6
0
        public string GetGlobalPostProcessingScript()
        {
            BtnGlobalPostProcessingScript.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            var returnValue = popup.TxtScript.Value;

            popup.BtnOk.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
        public void AddCustomizeActivityScript(string customActivityScript)
        {
            Trace.WriteLine("Customizing activity details page -- adding script.");
            var parentWindow = GetTitle();

            BtnCustomzieDetailsPage.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            popup.TxtScript.Value = customActivityScript;
            popup.BtnOk.Click();
            PopUpWindow.SwitchTo(parentWindow);
        }
        /// <summary>
        /// Enter a validation script for a project type view.
        /// </summary>
        public void SetValidationScript(string viewName, string validationScript)
        {
            Trace.WriteLine(String.Format("Creating a validation script for '{0}'", viewName));
            var scriptButton = new Link(By.XPath("//a[text()='" + viewName + "']/../..//td[6]/a/img"));

            scriptButton.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            popup.TxtScript.Value = validationScript;
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
        }
        /// <summary>
        /// Enter a post-script for post processing with an activity
        /// </summary>
        public void AddPostScriptPostProcessing(string activityName, string script)
        {
            Trace.WriteLine(String.Format("Creating a post-script for post processing with '{0}'", activityName));
            var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[7]/table/tbody/tr/td/a[4]/img"));

            imageLink.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            popup.TxtScript.Value = script;
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
        }
예제 #10
0
        public string GetPreProcessingScript(int rowIndex = -1, bool getLastRow = false)
        {
            var row = new StateTransitionTableRowValues(rowIndex, getLastRow);

            row.LnkPreProcessingScript.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            var returnValue = popup.TxtScript.Value;

            popup.BtnOk.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
        /// <summary>
        /// Validates the contents of the validation script.  Assumes you are on the Views tab.
        /// </summary>
        public bool VerifyValidationScriptExists(string viewName, string validationScript)
        {
            Trace.WriteLine(String.Format("Validating validation script window contains script:  '{0}'", validationScript));
            var scriptButton = new Button(By.XPath("//a[text()='" + viewName + "']/../..//td[6]/a/img"));

            scriptButton.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            var value       = popup.TxtScript.Value;
            var returnValue = value == validationScript;

            popup.BtnCancel.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
        public bool VerifyCustomizeActivityDetailsScriptExists(string validationScript)
        {
            var returnValue = false;

            Trace.WriteLine(String.Format("Validating customize activity details script:  script window contains script:  '{0}'", validationScript));
            BtnCustomzieDetailsPage.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            if (popup.TxtScript.Value == validationScript)
            {
                returnValue = true;
            }
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
        public bool VerifyGlobalPostScriptExists(string validationScript)
        {
            var returnValue = false;

            Trace.WriteLine(String.Format("Validating global post processing script:  script window contains script:  '{0}'", validationScript));
            BtnGlobalPostProcessing.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            if (popup.TxtScript.Value == validationScript)
            {
                returnValue = true;
            }
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
        /// <summary>
        /// Validates the contents of the pre-script editor.  Assumes you are on the Activity tab.
        /// </summary>
        public bool VerifyPreScriptExists(string activityName, string validationScript)
        {
            var returnValue = false;

            Trace.WriteLine(String.Format("Validating workflow script window contains script:  '{0}'", validationScript));
            var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[7]/table/tbody/tr/td/a[1]/img"));

            imageLink.Click();
            var popup = new WorkflowScriptEditor();

            popup.SwitchTo();
            if (popup.TxtScript.Value == validationScript)
            {
                returnValue = true;
            }
            popup.BtnOk.Click();
            popup.SwitchBackToParent();
            return(returnValue);
        }
 /// <summary>
 /// Enter a validation script for a project type view.
 /// </summary>
 public void SetValidationScript(string viewName, string validationScript)
 {
     Trace.WriteLine(String.Format("Creating a validation script for '{0}'", viewName));
     var scriptButton = new Link(By.XPath("//a[text()='" + viewName + "']/../..//td[6]/a/img"));
     scriptButton.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     popup.TxtScript.Value = validationScript;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
 }
 public bool VerifyGlobalPostScriptExists(string validationScript)
 {
     var returnValue = false;
     Trace.WriteLine(String.Format("Validating global post processing script:  script window contains script:  '{0}'", validationScript));
     BtnGlobalPostProcessing.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     if (popup.TxtScript.Value == validationScript) {
         returnValue = true;
     }
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
 public bool VerifyCustomizeActivityDetailsScriptExists(string validationScript)
 {
     var returnValue = false;
     Trace.WriteLine(String.Format("Validating customize activity details script:  script window contains script:  '{0}'", validationScript));
     BtnCustomzieDetailsPage.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     if (popup.TxtScript.Value == validationScript) {
         returnValue = true;
     }
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
 public void SetGlobalPostProcessingScript(string script)
 {
     BtnGlobalPostProcessingScript.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     popup.TxtScript.Value = script;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
 }
 public void SetScriptCriteria(string script, int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkScriptCriteria.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     popup.TxtScript.Value = script;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
 }
 public string GetPreProcessingScript(int rowIndex = -1, bool getLastRow = false)
 {
     var row = new StateTransitionTableRowValues(rowIndex, getLastRow);
     row.LnkPreProcessingScript.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     var returnValue = popup.TxtScript.Value;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
 public string GetGlobalPostProcessingScript()
 {
     BtnGlobalPostProcessingScript.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     var returnValue = popup.TxtScript.Value;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
 /// <summary>
 /// Validates the contents of the validation script.  Assumes you are on the Views tab.
 /// </summary>
 public bool VerifyValidationScriptExists(string viewName, string validationScript)
 {
     Trace.WriteLine(String.Format("Validating validation script window contains script:  '{0}'", validationScript));
     var scriptButton = new Button(By.XPath("//a[text()='" + viewName + "']/../..//td[6]/a/img"));
     scriptButton.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     var value = popup.TxtScript.Value;
     var returnValue = value == validationScript;
     popup.BtnCancel.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
 /// <summary>
 /// Validates the contents of the pre-script editor.  Assumes you are on the Activity tab.
 /// </summary>
 public bool VerifyPreScriptExists(string activityName, string validationScript)
 {
     var returnValue = false;
     Trace.WriteLine(String.Format("Validating workflow script window contains script:  '{0}'", validationScript));
     var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[7]/table/tbody/tr/td/a[1]/img"));
     imageLink.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     if (popup.TxtScript.Value == validationScript) {
         returnValue = true;
     }
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
     return returnValue;
 }
 /// <summary>
 /// Enter a post-script for post processing with an activity
 /// </summary>
 public void AddPostScriptPostProcessing(string activityName, string script)
 {
     Trace.WriteLine(String.Format("Creating a post-script for post processing with '{0}'", activityName));
     var imageLink = new Button(By.XPath("//a[text()='" + activityName + "']/../../td[7]/table/tbody/tr/td/a[4]/img"));
     imageLink.Click();
     var popup = new WorkflowScriptEditor();
     popup.SwitchTo();
     popup.TxtScript.Value = script;
     popup.BtnOk.Click();
     popup.SwitchBackToParent();
 }