示例#1
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this to Send Keys to Mainframe");
 }
示例#2
0
        private void SetDependenciesHelper()
        {
            try
            {
                txtBlkDependenciesHelper.Text = string.Empty;
                TextBlockHelper TBH = new TextBlockHelper(txtBlkDependenciesHelper);

                //check if the mechanisem is enabeled
                switch (mDepededItemType)
                {
                case (eDependedItemsType.Actions):
                    if (((Activity)mParentObject).EnableActionsVariablesDependenciesControl == false)
                    {
                        TBH.AddFormattedText("The Actions-" + GingerDicser.GetTermResValue(eTermResKey.Variables) + " Dependencies control is disabled, in order to change the dependencies configurations you must enable it first.", Brushes.OrangeRed, true);
                        return;
                    }
                    break;

                case (eDependedItemsType.Activities):
                    if (((BusinessFlow)mParentObject).EnableActivitiesVariablesDependenciesControl == false)
                    {
                        TBH.AddFormattedText("The " + GingerDicser.GetTermResValue(eTermResKey.Activities) + "-" + GingerDicser.GetTermResValue(eTermResKey.Variables) + " Dependencies control is disabled, in order to change the dependencies configurations you must enable it first.", Brushes.OrangeRed, true);
                        return;
                    }
                    break;
                }


                //check for missing depended items/variables
                bool dependedItemsOrVarsAremissing = false;
                switch (mDepededItemType)
                {
                case (eDependedItemsType.Actions):
                    if (((Activity)mParentObject).Acts.Count == 0)
                    {
                        TBH.AddFormattedText("Add Actions to the " + GingerDicser.GetTermResValue(eTermResKey.Activity) + " in order to configure dependencies.", Brushes.OrangeRed, true);
                        TBH.AddLineBreak();
                        dependedItemsOrVarsAremissing = true;
                    }
                    break;

                case (eDependedItemsType.Activities):
                    if (((BusinessFlow)mParentObject).Activities.Count == 0)
                    {
                        TBH.AddFormattedText("Add " + GingerDicser.GetTermResValue(eTermResKey.Activities) + " to the " + GingerDicser.GetTermResValue(eTermResKey.BusinessFlow) + " in order to configure dependencies.", Brushes.OrangeRed, true);
                        TBH.AddLineBreak();
                        dependedItemsOrVarsAremissing = true;
                    }
                    break;
                }

                if (mParentListVars == null || mParentListVars.Count == 0)
                {
                    switch (mDepededItemType)
                    {
                    case (eDependedItemsType.Actions):
                        TBH.AddFormattedText("Add " + GingerDicser.GetTermResValue(eTermResKey.Variables) + " from type 'Selection List' to the " + GingerDicser.GetTermResValue(eTermResKey.Activity) + " in order to configure dependencies.", Brushes.OrangeRed, true);
                        break;

                    case (eDependedItemsType.Activities):
                        TBH.AddFormattedText("Add " + GingerDicser.GetTermResValue(eTermResKey.Variables) + " from type 'Selection List' to the " + GingerDicser.GetTermResValue(eTermResKey.BusinessFlow) + " in order to configure dependencies.", Brushes.OrangeRed, true);
                        break;
                    }
                    TBH.AddLineBreak();
                    dependedItemsOrVarsAremissing = true;
                }
                if (dependedItemsOrVarsAremissing)
                {
                    return;
                }

                //Set helper according to selected row
                DataRowView currentRow = (DataRowView)grdDependencies.grdMain.CurrentItem;
                if (currentRow != null)
                {
                    TBH.AddFormattedText("'" + currentRow.Row[0].ToString() + "'", null, true, true);
                    switch (mDepededItemType)
                    {
                    case (eDependedItemsType.Actions):
                        TBH.AddUnderLineText(" Action Dependencies Configurations Meaning:");
                        break;

                    case (eDependedItemsType.Activities):
                        TBH.AddUnderLineText(" " + GingerDicser.GetTermResValue(eTermResKey.Activity) + " Dependencies Configurations Meaning:");
                        break;
                    }
                    TBH.AddLineBreak();
                    Dictionary <string, List <string> > actionConfigs = new Dictionary <string, List <string> >();
                    int colsIndex = 2;
                    foreach (VariableBase var in mParentListVars)
                    {
                        List <string> configuredVals = new List <string>();
                        foreach (OptionalValue optVal in ((VariableSelectionList)var).OptionalValuesList)
                        {
                            if ((bool)currentRow[colsIndex] == true)
                            {
                                configuredVals.Add(optVal.Value);
                            }
                            colsIndex++;
                        }
                        actionConfigs.Add(var.Name, configuredVals);
                    }
                    List <KeyValuePair <string, List <string> > > notConfiguredVars = actionConfigs.Where(d => d.Value.Count == 0).ToList();
                    if (notConfiguredVars.Count == 0)
                    {
                        switch (mDepededItemType)
                        {
                        case (eDependedItemsType.Actions):
                            TBH.AddText("The action will be executed only in case:");
                            break;

                        case (eDependedItemsType.Activities):
                            TBH.AddText("The " + GingerDicser.GetTermResValue(eTermResKey.Activity) + " will be executed only in case:");
                            break;
                        }
                        TBH.AddLineBreak();
                        bool isFirst = true;
                        foreach (KeyValuePair <string, List <string> > configuredVar in actionConfigs)
                        {
                            if (!isFirst)
                            {
                                TBH.AddText("And");
                                TBH.AddLineBreak();
                            }
                            isFirst = false;
                            TBH.AddBoldText("'" + configuredVar.Key + "' ");
                            TBH.AddText(GingerDicser.GetTermResValue(eTermResKey.Variable) + " selected value is: ");
                            string vars = string.Empty;
                            foreach (string configVal in configuredVar.Value)
                            {
                                vars = vars + "'" + configVal + "' Or ";
                            }
                            vars = vars.Remove(vars.Length - 4, 4);
                            TBH.AddText(vars);
                            TBH.AddLineBreak();
                        }
                    }
                    else
                    {
                        switch (mDepededItemType)
                        {
                        case (eDependedItemsType.Actions):
                            TBH.AddFormattedText("The action won't be executed in any case because it missing dependency configurations for the " + GingerDicser.GetTermResValue(eTermResKey.Variable) + "/s: ", Brushes.OrangeRed, true);
                            break;

                        case (eDependedItemsType.Activities):
                            TBH.AddFormattedText("The " + GingerDicser.GetTermResValue(eTermResKey.Activity) + " won't be executed in any case because it missing dependency configurations for the " + GingerDicser.GetTermResValue(eTermResKey.Variable) + "/s: ", Brushes.OrangeRed, true);
                            break;
                        }
                        TBH.AddLineBreak();
                        foreach (KeyValuePair <string, List <string> > notConfiguredVar in notConfiguredVars)
                        {
                            TBH.AddFormattedText("'" + notConfiguredVar.Key + "'", Brushes.OrangeRed);
                            TBH.AddLineBreak();
                        }
                    }
                }
                else
                {
                    TBH.AddText("Select cell/row for information.");
                }
            }
            catch (Exception ex)
            {
                Reporter.ToLog(eLogLevel.ERROR, "Failed to set the " + mDepededItemType.ToString() + "-Variables dependencies helper text", ex);
            }
        }
示例#3
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need run action on the device like screen record");
 }
示例#4
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need to automate menu items.");
 }
示例#5
0
        public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
        {
            TBH.AddText("Use this action to log end-to-end latency of web site to CSV file later on you can analyze trend and much more of each parameter");
            TBH.AddLineBreak();
            TBH.AddLineBreak();

            TBH.AddBoldText("CSV File Name - if exist will append result to this file");
            TBH.AddLineBreak();
            TBH.AddBoldText("Details - Column for additional info like URL used, variable etc");
            TBH.AddLineBreak();

            TBH.AddBoldText("Calculated Return Values:");
            TBH.AddLineBreak();
            TBH.AddText("pageLoadTime = loadEventEnd - navigationStart");
            TBH.AddLineBreak();
            TBH.AddText("connectTime = responseEnd - requestStart");
            TBH.AddLineBreak();
            TBH.AddLineBreak();
            TBH.AddBoldText("Raw data Values");
            TBH.AddLineBreak();
            TBH.AddText("• navigationStart");
            TBH.AddLineBreak();
            TBH.AddText("• unloadEventStart");
            TBH.AddLineBreak();
            TBH.AddText("• unloadEventEnd");
            TBH.AddLineBreak();
            TBH.AddText("• redirectStart");
            TBH.AddLineBreak();
            TBH.AddText("• redirectEnd");
            TBH.AddLineBreak();
            TBH.AddText("• fetchStart");
            TBH.AddLineBreak();
            TBH.AddText("• domainLookupStart");
            TBH.AddLineBreak();
            TBH.AddText("• domainLookupEnd");
            TBH.AddLineBreak();
            TBH.AddText("• connectStart");
            TBH.AddLineBreak();
            TBH.AddText("• connectEnd");
            TBH.AddLineBreak();
            TBH.AddText("• secureConnectionStart");
            TBH.AddLineBreak();
            TBH.AddText("• requestStart");
            TBH.AddLineBreak();
            TBH.AddText("• responseStart");
            TBH.AddLineBreak();
            TBH.AddText("• responseEnd");
            TBH.AddLineBreak();
            TBH.AddText("• domLoading");
            TBH.AddLineBreak();
            TBH.AddText("• domInteractive");
            TBH.AddLineBreak();
            TBH.AddText("• domContentLoadedEventStart");
            TBH.AddLineBreak();
            TBH.AddText("• domContentLoadedEventEnd");
            TBH.AddLineBreak();
            TBH.AddText("• domComplete");
            TBH.AddLineBreak();
            TBH.AddText("• loadEventStart");
            TBH.AddLineBreak();
            TBH.AddText("• loadEventEnd");
            TBH.AddLineBreak();
            TBH.AddLineBreak();
            TBH.AddBoldText("Supported browser");
            TBH.AddLineBreak();
            TBH.AddText("Desktop: Chrome 6.0+ , Firefox 7+, Internet Explorer 9+, Opera 15.0+, Safari 8+");
            TBH.AddLineBreak();
            TBH.AddText("Mobile: Android 4.0+, Firefox 15+, IE Mobile 9+, Opera Mobile 15.0 +, Safari Mobile 8+");
            TBH.AddLineBreak();
            TBH.AddLineBreak();
            TBH.AddText("More info at:");
            TBH.AddLineBreak();
            TBH.AddBoldText("http://www.w3.org/TR/navigation-timing/");
        }
示例#6
0
        private void Init(TextBlockHelper TBH)
        {
            if (mSCIInfoDetails.ShowRepositoryInfo)
            {
                TBH.AddBoldText("Solution Repository Info:");
                TBH.AddLineBreak();
                if (!string.IsNullOrEmpty(mSCIInfoDetails.RepositoryRoot))
                {
                    TBH.AddText("RepositoryRoot: " + mSCIInfoDetails.RepositoryRoot);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.RepositoryPath))
                {
                    TBH.AddText("RepositoryPath: " + mSCIInfoDetails.RepositoryPath);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.RepositoryId))
                {
                    TBH.AddText("RepositoryId: " + mSCIInfoDetails.RepositoryId);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.WorkingCopyRoot))
                {
                    TBH.AddText("WorkingCopyRoot: " + mSCIInfoDetails.WorkingCopyRoot);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.WorkingCopySize))
                {
                    TBH.AddText("WorkingCopySize: " + mSCIInfoDetails.WorkingCopySize);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.CopyFromRevision))
                {
                    TBH.AddText("CopyFromRevision: " + mSCIInfoDetails.CopyFromRevision);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.Revision))
                {
                    TBH.AddText("Revision: " + mSCIInfoDetails.Revision);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.TrackedBranchName))
                {
                    TBH.AddText("TrackedBranchName: " + mSCIInfoDetails.TrackedBranchName);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.BranchName))
                {
                    TBH.AddText("BranchName: " + mSCIInfoDetails.BranchName);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.CanonicalName))
                {
                    TBH.AddText("CanonicalName: " + mSCIInfoDetails.CanonicalName);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.FriendlyName))
                {
                    TBH.AddText("FriendlyName: " + mSCIInfoDetails.FriendlyName);
                    TBH.AddLineBreak();
                }
            }
            if (mSCIInfoDetails.ShowFileInfo)
            {
                TBH.AddBoldText("File Info:");
                TBH.AddLineBreak();
                if (!string.IsNullOrEmpty(mSCIInfoDetails.FilePath))
                {
                    TBH.AddText("FilePath: " + mSCIInfoDetails.FilePath);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.FileWorkingDirectory))
                {
                    TBH.AddText("FileWorkingDirectory: " + mSCIInfoDetails.FileWorkingDirectory);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.FileState))
                {
                    TBH.AddText("FileState: " + mSCIInfoDetails.FileState);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.HasUnpushedCommits))
                {
                    TBH.AddText("HasUnpushedCommits: " + mSCIInfoDetails.HasUnpushedCommits);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.HasUncommittedChanges))
                {
                    TBH.AddText("HasUncommittedChanges: " + mSCIInfoDetails.HasUncommittedChanges);
                    TBH.AddLineBreak();
                }
            }

            if (mSCIInfoDetails.ShowChangeInfo)
            {
                TBH.AddBoldText("Change Info:");
                TBH.AddLineBreak();
                if (!string.IsNullOrEmpty(mSCIInfoDetails.LastChangeAuthor))
                {
                    TBH.AddText("LastChangeAuthor: " + mSCIInfoDetails.LastChangeAuthor);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.LastChangeCommiter))
                {
                    TBH.AddText("LastChangeCommiter: " + mSCIInfoDetails.LastChangeCommiter);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.LastChangeRevision))
                {
                    TBH.AddText("LastChangeRevision: " + mSCIInfoDetails.LastChangeRevision);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.LastChangeTime))
                {
                    TBH.AddText("LastChangeTime: " + mSCIInfoDetails.LastChangeTime);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.LastChangeMessage))
                {
                    TBH.AddText("LastChangeTime: " + mSCIInfoDetails.LastChangeMessage);
                    TBH.AddLineBreak();
                }
            }

            if (mSCIInfoDetails.ShowLock)
            {
                TBH.AddBoldText("Lock Info:");
                TBH.AddLineBreak();
                if (!string.IsNullOrEmpty(mSCIInfoDetails.LockOwner))
                {
                    TBH.AddText("LockOwner: " + mSCIInfoDetails.LockOwner);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.LockCreationTime))
                {
                    TBH.AddText("LockCreationTime: " + mSCIInfoDetails.LockCreationTime);
                    TBH.AddLineBreak();
                }
                if (!string.IsNullOrEmpty(mSCIInfoDetails.LockComment))
                {
                    TBH.AddText("LockComment: " + mSCIInfoDetails.LockComment);
                    TBH.AddLineBreak();
                }
            }
        }
示例#7
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need to automate a click on an object from type Button."
                 + Environment.NewLine + Environment.NewLine +
                 "For Mobile use this action only in case running the flow on the native browser.");
 }
示例#8
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action to perform validations Using Value Expression editor ");
 }
示例#9
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action to open an alert on web page.To open an alert,select control property type from Locate By drop down and then enter the value of that control and provide value in Value textbox and run the action");
 }
示例#10
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need to run Sehll action like: ps, ls etc.");
 }
示例#11
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Email Action let you send email");
     TBH.AddLineBreak();
     TBH.AddText("It is possible to include attachments");
 }
示例#12
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action to perform File operations ");
 }
示例#13
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need to create new Action with the common data and binding method.");
 }
示例#14
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need Media actions like: Record Audio, Video Play...");
 }
示例#15
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need to run SoapUI Project XML using the SoapUI test runner." + Environment.NewLine + Environment.NewLine + "This action contains list of options which will allow you to run simple or complicated test using the generated soapUI project XML." + Environment.NewLine + Environment.NewLine + "Prerequisite:" + Environment.NewLine + "1.) you should have SoapUI 5.0.0 or above installation folder on your Machine." + Environment.NewLine + "2.) SoapUI ProjectXML." + Environment.NewLine + "3.) Values/Properties in case you need to add some on the top of the existing data under the project XML." + Environment.NewLine + "4.) String for validation if needs to verify the output." + Environment.NewLine + Environment.NewLine + "Validation: The action will pass if :" + Environment.NewLine + "1.)ignore validation checkbox is unchecked and No step came back with Failed/unknown status." + Environment.NewLine + "2.)The Ignore Validation checkbox is checked and The entered Validation string for output has been found in the response" + Environment.NewLine + Environment.NewLine + "Validation: The action will be failed if :" + Environment.NewLine + "1.)Ignore Validation is unchecked and at lease one step came back with Failed status." + Environment.NewLine + "2.)Ignore Validation checkbox is checked and The entered Validation string has not been found in the response for at lease one step");
 }
示例#16
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action oto Start, Stop, Restart the agent in middle of the flow");
     TBH.AddLineBreak();
 }
示例#17
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action when working with TextBox control");
     TBH.AddLineBreak();
     TBH.AddText("For example setting value in First Name TextBox for login screen");
     TBH.AddLineBreak();
     TBH.AddImage("TextBox.png", 200, 50);
     TBH.AddLineBreak();
     TBH.AddHeader1("the following sub actions can be selected:");
     TBH.AddLineBreak();
     TBH.AddText("Set Value");
     TBH.AddLineBreak();
     TBH.AddText("Set focus");
     TBH.AddLineBreak();
     TBH.AddText("Clear");
     TBH.AddLineBreak();
     TBH.AddText("Get Value");
     TBH.AddLineBreak();
     TBH.AddText("Is Required");
     TBH.AddLineBreak();
     TBH.AddText("Get Font");
     TBH.AddLineBreak();
     TBH.AddText("Is Prepopulated");
     TBH.AddLineBreak();
     TBH.AddText("Is Displayed");
     TBH.AddLineBreak();
     TBH.AddText("Get Input Length");
     TBH.AddLineBreak();
     TBH.AddText("Get Width");
     TBH.AddLineBreak();
     TBH.AddText("Get Height");
     TBH.AddLineBreak();
     TBH.AddText("Get Style");
 }
示例#18
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action to Set text at a particular location in Mainframe Terminal");
 }
示例#19
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("See Plugin Documentation");
 }
示例#20
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("This is dummy action where you can put any value in value textbox.");
 }
示例#21
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Validate tags in XML/JSON documents by path");
     TBH.AddLineBreak();
 }
示例#22
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action to open a url in ginger.To open an url,just put url in value and run the action.");
 }
示例#23
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("UI Element Action");
 }
示例#24
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you want to perform a Rest Action.");
     TBH.AddLineBreak();
     TBH.AddText("Enter End Point URL, Request Type, HTTP Version, Response Content Type, Cookie mode, Request Content Type, File location/Request Body, select security level and authorization if required.");
 }
        private void SetDescriptionDetails()
        {
            try
            {
                txtDescription.Text = string.Empty;
                TextBlockHelper TBH = new TextBlockHelper(txtDescription);

                TBH.AddText("Select the grid cell located by ");
                TBH.AddUnderLineText(cmbColSelectorValue.ComboBox.SelectedItem?.ToString());
                TBH.AddText(" ");
                if (cmbColumnValue.ComboBox.SelectedIndex != -1)
                {
                    TBH.AddBoldText(cmbColumnValue.ComboBox.SelectedItem?.ToString());
                }
                else
                {
                    TBH.AddBoldText(cmbColumnValue.ComboBox.Text);
                }
                TBH.AddText(" and ");
                if (RowNum.IsChecked == true)
                {
                    TBH.AddUnderLineText(" row number ");
                    if (RowSelectorValue.ComboBox.SelectedIndex != -1)
                    {
                        TBH.AddBoldText(RowSelectorValue.ComboBox.SelectedItem?.ToString());
                    }
                    else
                    {
                        TBH.AddBoldText(RowSelectorValue.ComboBox.Text);
                    }
                }
                else if (AnyRow.IsChecked == true)
                {
                    TBH.AddUnderLineText(" random ");
                    TBH.AddText(" row number");
                }
                else if (Where.IsChecked == true)
                {
                    TBH.AddText(" the row located by a cell in ");
                    TBH.AddUnderLineText(WhereColumn.ComboBox.SelectedItem?.ToString());
                    TBH.AddText(" ");
                    if (WhereColumnTitle.ComboBox.SelectedIndex != -1)
                    {
                        TBH.AddBoldText(WhereColumnTitle.ComboBox.SelectedItem?.ToString());
                    }
                    else
                    {
                        TBH.AddBoldText(WhereColumnTitle.ComboBox.Text);
                    }
                    TBH.AddText(" having control property ");
                    TBH.AddUnderLineText(WhereProperty.ComboBox.SelectedItem?.ToString());
                    TBH.AddText(" ");
                    TBH.AddUnderLineText(WhereOperator.ComboBox.SelectedItem?.ToString());
                    TBH.AddText(" ");
                    TBH.AddBoldText(WhereColumnValue.ValueTextBox.Text);
                }
            }
            catch (Exception ex)
            {
                Reporter.ToLog(eLogLevel.ERROR, "Failed", ex);
            }
        }
示例#26
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action to Read/Write Data from a common place for all Business Flows/Activities/Actions.");
 }
示例#27
0
        private void AnalyzerItemsGrid_RowChangedEvent(object sender, EventArgs e)
        {
            txtBlkAnalyzerIssue.Text = string.Empty;
            TextBlockHelper TBH = new TextBlockHelper(txtBlkAnalyzerIssue);

            AnalyzerItemBase a = (AnalyzerItemBase)AnalyzerItemsGrid.CurrentItem;

            if (a != null)
            {
                if (a.ItemClass != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddHeader1("Item Type :");
                    TBH.AddLineBreak();
                    TBH.AddText(a.ItemClass.ToString());
                    TBH.AddLineBreak();
                }

                if (a.ItemName != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddHeader1("Item Name :");
                    TBH.AddLineBreak();
                    TBH.AddText(a.ItemName.ToString());
                    TBH.AddLineBreak();
                }

                if (a.ItemParent != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddHeader1("Item Parent :");
                    TBH.AddLineBreak();
                    TBH.AddText(a.ItemParent.ToString());
                    TBH.AddLineBreak();
                }

                if (a.Description != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddHeader1("Issue :");
                    TBH.AddLineBreak();
                    TBH.AddText(a.Description.ToString());
                    TBH.AddLineBreak();
                }

                if (a.Details != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddHeader1("Issue Details :");
                    TBH.AddLineBreak();
                    TBH.AddText(a.Details.ToString());
                    TBH.AddLineBreak();
                }

                if (a.Impact != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("Issue Impact :");
                    TBH.AddLineBreak();
                    TBH.AddText(a.Impact.ToString());
                    TBH.AddLineBreak();
                }

                if (a.HowToFix != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("How To Fix :");
                    TBH.AddLineBreak();
                    TBH.AddText(a.HowToFix.ToString());
                    TBH.AddLineBreak();
                }

                TBH.AddLineBreak();
                TBH.AddBoldText("Can Auto Fix :");
                TBH.AddLineBreak();
                TBH.AddText(a.CanAutoFix.ToString());
                TBH.AddLineBreak();
            }
        }
        private void FillLogData()
        {
            //get the log file text
            using (StreamReader sr = new StreamReader(Amdocs.Ginger.CoreNET.log4netLib.GingerLog.GingerLogFile))
            {
                mLogText = sr.ReadToEnd();
            }

            //cut all log not relevant to last application launch
            int indexOfStart = mLogText.LastIndexOf("######################## Application version");

            if (indexOfStart == -1)
            {
                indexOfStart = 0;
            }

            mLogText = mLogText.Substring(indexOfStart);

            //split the log per log info
            string[] logs = mLogText.Split(new[] { Environment.NewLine }, StringSplitOptions.None);

            xLogDetailsTextBlock.Text = string.Empty;
            mTextBlockHelper          = new TextBlockHelper(xLogDetailsTextBlock);
            bool allowLogDetailsWrite = true;

            foreach (string log in logs)
            {
                if (log == string.Empty)
                {
                    if (allowLogDetailsWrite)
                    {
                        mTextBlockHelper.AddLineBreak();
                    }
                    continue;
                }
                else if (log.Contains("#### Application version"))
                {
                    mTextBlockHelper.AddFormattedText(log, Brushes.Black, true);
                }
                else if (IsLogHeader(log))
                {
                    if (mLogLevel == eLogShowLevel.ALL || log.Contains("| " + mLogLevel.ToString()))
                    {
                        mTextBlockHelper.AddFormattedText(log, GetProperLogTypeBrush(log), isBold: true);
                        mTextBlockHelper.AddLineBreak();
                        allowLogDetailsWrite = true;
                    }
                    else
                    {
                        allowLogDetailsWrite = false;
                    }
                }
                else
                {
                    if (allowLogDetailsWrite)
                    {
                        mTextBlockHelper.AddText(log);
                        mTextBlockHelper.AddLineBreak();
                    }
                }
            }
        }
示例#29
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need to pull/validate/update/etc. data from/on a database system.");
     TBH.AddLineBreak();
     TBH.AddText("This action contains list of options which will allow you to run simple or complicated SQL.");
 }
示例#30
0
 public override void ActionUserRecommendedUseCase(TextBlockHelper TBH)
 {
     TBH.AddText("Use this action in case you need to run click on device button like: Power/Volume/Home");
 }