jenkinsci/hpe-application-automation-tools-plugin

View on GitHub

Showing 95 of 716 total issues

Consider simplifying this complex logical expression.
Open

                            if (!("testinstanceid".equals(name) && "AUTO".equals(getPcModel().getAutoTestInstanceID()))
                                    && !(("retrydelay".equals(name) && "NO_RETRY".equals(getPcModel().getRetry())) || getPcModel().getRetry().isEmpty())
                                    && !(("retryoccurrences".equals(name) && "NO_RETRY".equals(getPcModel().getRetry())) || getPcModel().getRetry().isEmpty())
                            ) {
                                if ("doCheckCredentialsId".equals(method.getName()) && "credentialsid".equals(name) && "getCredentialsId".equals(modelMethodName)

    Consider simplifying this complex logical expression.
    Open

                if (string.IsNullOrWhiteSpace(qcServerUrl)
                    || (string.IsNullOrWhiteSpace(qcLogin) && !SSOEnabled)
                    || string.IsNullOrWhiteSpace(qcDomain)
                    || string.IsNullOrWhiteSpace(qcProject)
                    || (SSOEnabled && (string.IsNullOrWhiteSpace(qcClientID)
    Severity: Critical
    Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

                  if (mc.HostAddress.IsNullOrEmpty() ||
                      (mc.MobileAuthType == AuthType.UsernamePassword && mc.UserName.IsNullOrEmpty() && mc.Password.IsNullOrEmpty()) ||
                      (mc.MobileAuthType == AuthType.AuthToken && mc.ExecToken.IsNullOrEmpty()) ||
                      string.IsNullOrEmpty(mc.HostPort))
                      return null;
      Severity: Major
      Found in HpToolsLauncher/ParallelRunner/ParallelRunnerEnvironmentUtil.cs - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                        if (ev?.data == "mcCloseWizard") {
                            await a.populateAppAndDevice(baseUrl, o.userName, o.password, o.tenantId, o.execToken, o.authType, o.useProxyAuth, o.proxyAddress, o.proxyUserName, o.proxyPassword, jobId, async (app) => {
                                let jobInfo = app.responseObject();
                                let deviceId = "", OS = "", manufacturerAndModel = "", targetLab = "";
                                if (jobInfo['deviceJSON']) {
        Severity: Major
        Found in src/main/webapp/configure.js - About 1 hr to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (parentName.contains(testPath)) {
                                      falsePositive.add(item);
                                      break;
                                  }

            Avoid deeply nested control flow statements.
            Open

                                        if (!obj.equals(FormValidation.ok())) {
                                            logger.println(obj);
                                            ret = false;
                                        }

              Avoid deeply nested control flow statements.
              Open

                                          if (werFaultProcesses.Length > 0)
                                          {
                                              //Console.WriteLine("Kill process of WerFault");
                                              foreach (Process pf in werFaultProcesses)
                                              {
              Severity: Major
              Found in HpToolsLauncher/TestRunners/PerformanceTestRunner.cs - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                                if (folder != null)
                                                    folderName = folder.Name.Replace(".", "_");
                Severity: Major
                Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                              if (testSla == null) {
                                                  listener.getLogger().println("no RunReport.xml file was created");
                                              } else {
                                                  runReportList.add(testSla);
                                              }

                    Avoid deeply nested control flow statements.
                    Open

                                            if (property instanceof Mailer.UserProperty) {
                                                userEmail = ((Mailer.UserProperty) property).getAddress();
                                            }

                      Avoid deeply nested control flow statements.
                      Open

                                                          case SlaRuleStatus.Passed:
                                                              passed++;
                                                              break;
                      Severity: Major
                      Found in LRAnalysisLauncher/Program.cs - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                                    if (cleanupTest != null)
                                                                        cleanupAndRerunTests.Add(cleanupTest);
                        Severity: Major
                        Found in HpToolsLauncher/Launcher.cs - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                          default:
                                                              throw new ArgumentException(
                                                                           "Malformed \\uxxxx encoding.");
                          Severity: Major
                          Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if (archiveFolder(reportFolder, testStatus, archivedFile, listener)) {
                                                        zipFileNames.add(zipFileName);
                                                    }

                              Avoid deeply nested control flow statements.
                              Open

                                                              case 'a':
                                                              case 'b':
                                                              case 'c':
                                                              case 'd':
                                                              case 'e':
                              Severity: Major
                              Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                case 'A':
                                                                case 'B':
                                                                case 'C':
                                                                case 'D':
                                                                case 'E':
                                Severity: Major
                                Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                  if (testIndex == -1)
                                                                  {
                                                                      Console.WriteLine("No test index exist for this test");
                                                                  }
                                  Severity: Major
                                  Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                    case '0':
                                                                    case '1':
                                                                    case '2':
                                                                    case '3':
                                                                    case '4':
                                    Severity: Major
                                    Found in HpToolsLauncher/JavaProperties/JavaProperties.cs - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if (!tListIndexName.ToLower().Contains(filterByName.ToLower()) &&
                                                                  !tListIndexTestName.ToLower().Contains(filterByName.ToLower()))
                                                                  {
                                                                      testList.Remove(index);
                                      
                                      Severity: Major
                                      Found in HpToolsLauncher/Runners/AlmTestSetsRunner.cs - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                switch (buildStepName) {
                                                                    case "RunFromAlmBuilder":
                                                                        resFileParam = paramAction.getParameter("resultsFilename");
                                                                        if (resFileParam != null) {
                                                                            almResultNames.add(((StringParameterValue)resFileParam).getValue());
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language