Example #1
0
        protected override void Collect()
        {
            string tabName = "Software Information";

            AddDataPair(tabName, "Default browser", OSCollectorHelper.GetDefaultBrowser());
            // Internet Explorer
            AddDataPair(tabName, "Internet Explorer version", OSCollectorHelper.GetIEVersion());
            AddDataPair(tabName, "Internet Explorer Extensions"
                        , Html.AddLinkToHiddenContent(DetectOtherSoftware.GetIEExtensions()));
            // Google Chrome
            AddDataPair(tabName, "Is Google Chrome installed?", DetectOtherSoftware.GetGoogleChromeInfo());
            // Mozilla Firefox
            AddDataPair(tabName, "Is Mozilla Firefox installed?", DetectOtherSoftware.GetFirefoxInfo());
            AddDataPair(tabName, "Is anti-virus software detected?", DetectSecuritySoftware.GetAntiVirusProgramsInstalled());
            AddDataPair(tabName, "Is firewall software detected?", DetectSecuritySoftware.GetFirewallProgramsInstalled());

            // Add the list of Windows Add/Remove Programs only if the menu is selected
            if (FormArguments.menuInstalledPrograms || FormArguments.details >= 3)
            {
                var listOfPrograms = InstalledProgramsHelper.ToList();
                int count          = InstalledProgramsHelper.installedProgramsList.Count;
                AddDataPair("Windows Add/Remove Programs", "Installed programs", count + " products found " + listOfPrograms);
            }
            if (FormArguments.menuWindowsUpdates || FormArguments.details >= 3)
            {
                AddDataPair("Windows Add/Remove Programs", "Installed Windows updates", InstalledProgramsHelper.GetWindowsUpdatesInfo());
            }
        }
        protected override void Collect()
        {
            var title = "HP Citrix Agent Information";


            var ctrxAgent = new CitrixHelper.Agent();


            AddDataPair(title, "Citrix Agent", ctrxAgent.ToString());

            if (ctrxAgent.isInstalled)
            {
                AddDataPair(title, "Agent configuration", Html.AddLinkToHiddenContent(ctrxAgent.GetIniContentInfo()));
                AddDataPair(title, "Citrix registry keys", ctrxAgent.GetImptKeyContent());
                AddDataPair(title, "Is text trapping driver installed?", Html.BoolToYesNo(ctrxAgent.isTextTrappingDriverInstalled) + ctrxAgent.textTrappingDriverVersion);
                if (ctrxAgent.isTextTrappingDriverInstalled)
                {
                    AddDataPair(title, "Is text trapping driver signed?", ctrxAgent.driverSignedInfo);
                    AddDataPair(title, "Text trapping driver state", ctrxAgent.textTrappingDriverState);
                }
            }



            //################
            //RDP Role Detection
            //################
            title = "HP RDP Agent Information";
            //AddDataPair(title, "Is RDP access allowed?", DetectOtherSoftware.IsRDPAccessAllowedInfo());
            AddDataPair(title, "Is RDP Role installed?", DetectOtherSoftware.IsRDPRollInstalledInfo());
            AddDataPair(title, "HP RDP Agent", DetectOtherSoftware.RDPAgentInfo());



            //#############
            //VTS DETECTION
            //#############
            Logger.Info("Collecting VTS information");
            var vts = new VirtualTableServer();

            title = "HP Virtual Table Server";

            if (vts.IsInstalled)
            {
                AddDataPair(title, "Is VTS installed?", vts.GetProductNameVersionDateFormatted());
                AddDataPair(title, "Details", vts.GetExecutableFilesInfo());
                AddDataPair(title, "Service status", vts.GetVTSServiceInfo());
            }
            else
            {
                var vts2 = InstalledProgramsHelper.GetInstalledProgramByName(new Regex("[L|l]oad[R|r]unner - VTS"));
                var info = (vts2 != null) ? vts2.ToString() : "No";
                AddDataPair(title, "Is VTS installed?", info);
            }



            //#############
            //LoadRunner Eclipse Add-in for Developers DETECTION
            //#############
            Logger.Info("Collecting LoadRunner Eclipse information");
            title = "LoadRunner Eclipse Add-in for Developers";
            var eclipsePlugin = InstalledProgramsHelper.GetInstalledProgramByName(new System.Text.RegularExpressions.Regex("LoadRunner Eclipse.*Developers"));

            if (eclipsePlugin != null)
            {
                AddDataPair(title, "Is Eclipse Add-in installed?", "Yes " + eclipsePlugin.DisplayName);
                AddDataPair(title, "Version", eclipsePlugin.DisplayVersion);
                AddDataPair(title, "Eclipse path", VuGenProperties.GetAttributeValue("Java.EclipseIdePath", "value", "Not found!"));
            }
            else
            {
                AddDataPair(title, "Is Add-in installed?", "No");
            }



            //#############
            //LoadRunner Visual Studio 2012 Add-in for Developers DETECTION
            //#############
            Logger.Info("Collecting LoadRunner Eclipse information");
            title = "LoadRunner Visual Studio Add-in for Developers";
            var    vsPlugin  = InstalledProgramsHelper.GetInstalledProgramByName(new System.Text.RegularExpressions.Regex("LoadRunner Visual Studio 20[0-9]{2} Add"));
            string installed = vsPlugin != null ? Html.Yes + " " + vsPlugin.DisplayName + " version " + vsPlugin.DisplayVersion : Html.No;

            AddDataPair(title, "Is Add-in installed?", installed);



            //#############
            //BPM DETECTION
            //#############
            Logger.Info("Detecting BPM");
            title = "HP Business Process Monitor";
            var bpm = new BusinessProcessMonitorInfo();
            //Logger.Info("BPM installation " + Html.Bool2Text(bpm.IsInstalled));
            var bpmInstallInfo = (bpm.IsInstalled == true) ? bpm.GetProductNameVersionDateFormatted() : BusinessProcessMonitorInfo.GetBPMInstallationInfoFromUninstaller();

            AddDataPair(title, "Is BPM installed?", bpmInstallInfo);

            if (bpm.IsInstalled == true || !bpmInstallInfo.Contains("No"))
            {
                AddDataPair(title, "Service status", BusinessProcessMonitorInfo.GetBPMServiceInfo());
                AddDataPair(title, "BPM processes", Html.AddLinkToHiddenContent(BusinessProcessMonitorInfo.GetBPMProcessesInfo()));
            }



            //#############
            //ALM Platform Loader
            //#############
            if (FormArguments.details >= 2)
            {
                Logger.Info("Detecting ALM PL information");
                AddDataPair("ALM Platform Loader", "Is ALM Platform Loader installed?", DetectOtherSoftware.GetALMPlatformLoaderInfo());
            }



            //#############
            //QTP DETECTION
            //#############
            Logger.Info("Detecting UFT");
            AddDataPair("HP Unified Functional Testing", "Is QTP/UFT installed?", DetectOtherSoftware.GetUFTInstallationInfo());



            //#############
            //SITESCOPE DETECTION
            //#############
            if (FormArguments.details >= 2)
            {
                Logger.Info("Collecting SiteScope information");
                AddDataPair("HP SiteScope", "Is SiteScope installed?", DetectOtherSoftware.GetSiteScopeInfo());
            }
        }
Example #3
0
        protected override void Collect()
        {
            var ro = new DetectRecordingOptions();

            base.OnRaiseProgressUpdate();

            var title = "WEB (HTTP/HTML)";

            AddDataPair(title, "Last used recording options", "User " + Html.B(Environment.UserName) + "  " + Html.AddLinkToHiddenContent(ro.ToString(), true));

            if (ProductDetection.Vugen.isNew)
            {
                title = "TruClient IE";
                AddDataPair(title, "Is enabled?", VugenProtocolsCollectorHelper.TruClientIE.IsEnabled());
                AddDataPair(title, "RRE version", VugenProtocolsCollectorHelper.TruClientIE.GetTCIEVersion());
                AddDataPair(title, "General > Browser settings", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientIE.GetGeneralBrowserSettings()));
                AddDataPair(title, "General > Interactive options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientIE.GetInteractiveOptions()));
            }

            if (ProductDetection.Vugen.version > new Version("11.00"))
            {
                title = "TruClient Firefox";
                AddDataPair(title, "Firefox version", VugenProtocolsCollectorHelper.TruClientFF.GetFirefoxVersion());
                AddDataPair(title, "General > Browser settings", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientFF.GetBrowserSettings()));
                AddDataPair(title, "General > Interactive options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientFF.GetInteractiveOptions()));
                if (ProductDetection.Vugen.version >= new Version("11.50"))
                {
                    AddDataPair(title, "Lists DACLs", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.TruClientFF.GetUrlAclInfo()));
                }
            }

            //TODO test on 11
            title = "Java protocols";
            AddDataPair(title, "Classpath", VugenProtocolsCollectorHelper.Java.GetJavaIniOption("Java_Env_ClassPath"));
            AddDataPair(title, "VM Params", VugenProtocolsCollectorHelper.Java.GetJavaIniOption("Java_VM_Params"));
            AddDataPair(title, "Use VM params during replay?", VugenProtocolsCollectorHelper.Java.GetJavaIniBoolOption("Java_SaveParams"));
            AddDataPair(title, "Use classic Java", VugenProtocolsCollectorHelper.Java.GetJavaIniBoolOption("Java_Classic"));
            AddDataPair(title, "Prepend classpath to -Xbootclasspath", VugenProtocolsCollectorHelper.Java.GetJavaIniBoolOption("Java_Prepend_Classpath"));

            title = "Citrix";
            var ctrxClient = new CitrixHelper.Client();

            AddDataPair(title, "Is Citrix client installed?", ctrxClient.GetCitrixClientInfo());
            //if (citrixClient.isInstalled)
            //  AddDataPair(title, "Is client version supported?", citrixClient.GetClientVersionSupportedInfo());
            AddDataPair(title, "Is Citrix registry patch installed?", ctrxClient.GetCitrixRegistryPatchInfo());
            AddDataPair(title, "Recording options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.Citrix.GetCitrixRecOptions()));
            AddDataPair(title, "Citrix_XenApp correlation rules enabled?", CorrelationRules.IsGroupEnabledText("Citrix_XenApp"));

            title = "Dot Net";
            AddDataPair(title, "Recording options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.DotNet.GetDotNetRecOptions()));
            AddDataPair(title, "Filters", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.DotNet.GetDotNetFilters()));

            title = "RDP";
            AddDataPair(title, "RDP client version", DetectOtherSoftware.GetRDPClientVersion());
            AddDataPair(title, "RDP recording options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.Rdp.GetRdpRecOptions()));

            title = "FLEX, AMF";
            AddDataPair(title, "Recording options", Html.AddLinkToHiddenContent(VugenProtocolsCollectorHelper.FlexAmf.GetFlexRoInfo()));
            AddDataPair(title, "Other settings", VugenProtocolsCollectorHelper.FlexAmf.GetFlexInfo());
            AddDataPair(title, "Flex correlation rules enabled?", CorrelationRules.IsGroupEnabledText("Flex"));

            title = "Siebel Web";
            AddDataPair(title, "Is Siebel correlation library used?", VugenProtocolsCollectorHelper.SiebelWeb.GetSiebelDllVersionInfo());
            AddDataPair(title, "Correlation rules", VugenProtocolsCollectorHelper.SiebelWeb.GetIsSiebelCorrelationEnabledInfo());
        }
Example #4
0
        protected override void Collect()
        {
            //################
            //DOTNET Detection
            //################
            AddDataPair(".NET", ".NET versions installed", DetectOtherSoftware.GetGetDotNetVersionFromRegistry());

            //################
            //Java Detection
            //################
            Logger.Info("Collecting JAVA Information");
            var title = "JAVA";

            AddDataPair(title, "Classpath", DetectJava.GetClassPath());
            AddDataPair(title, "Other java environment variables", DetectJava.GetJavaEnvs());
            AddDataPair(title, "JDKs isntalled", ClientsCollectorHelper.GetJavaProducts("JDK"));
            AddDataPair(title, "JREs isntalled", ClientsCollectorHelper.GetJavaProducts("JRE"));
            AddDataPair(title, "Details", Html.AddLinkToHiddenContent(ClientsCollectorHelper.GetJavaDetails()));

            //DetectJava dj = new DetectJava();
            //AddDataPair("JAVA", "JDK/JRE versions installed", dj.ToString());
            if (ProductDetection.Vugen.IsInstalled)
            {
                AddDataPair("JAVA", "VuGen JRE version", ClientsCollectorHelper.GetVugenJREVersion());
            }


            //################
            //CITRIX Detection
            //################
            title = "Citrix";
            //If any of LR/VuGen/PC Host is not installed
            if (!ProductDetection.Vugen.IsInstalled)
            {
                // Use it only if Vugen is not installed, otherwise the info would be under Vugen Protocols
                Logger.Info("Collecting Citrix Information");
                var ctrxClient = new CitrixHelper.Client();
                AddDataPair(title, "Citrix client version", ctrxClient.GetCitrixClientInfo());
            }

            //################
            //CITRIX Server Detection
            //################
            var ctrxServer = new CitrixHelper.Server();

            AddDataPair(title, "Citrix Server", ctrxServer.ToString());
            if (ctrxServer.isInstalled)
            {
                AddDataPair(title, "End disconnected session", ctrxServer.GetIcaMaxDisconnectionTime());
                AddDataPair(title, "Active session limit", ctrxServer.GetMaxConnectionTime());
            }

            //If any of LR/VuGen/PC Host is not installed
            if (!ProductDetection.Vugen.IsInstalled)
            {
                //################
                //RDP Detection
                //################
                Logger.Info("Collecting RDP Information");
                AddDataPair("RDP", "RDP client version", DetectOtherSoftware.GetRDPClientVersion());
            }



            //################
            //Oracle Detection
            //################
            Logger.Info("Collecting Oracle client information");
            AddDataPair("Oracle", "Oracle DB client information",
                        DetectOtherSoftware.GetOracleClientInfo());

            //################
            //SAPGUI Detection
            //################
            Logger.Info("Collecting SAPGUI information");
            AddDataPair("SAPGUI", "Is SAPGUI installed?",
                        DetectOtherSoftware.GetSapGuiClientInfo());


            //################
            //JENKINS Detection
            //################
            Logger.Info("Collecting Jenkins information");
            AddDataPair("Jenkins", "Is Jenkins installed?", DetectOtherSoftware.GetJenkinsInfo());
            AddDataPair("Jenkins", "Is HP AAT plugin installed?", DetectOtherSoftware.GetJenkinsPluginInfo());
        }