├── .github └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── HpToolsAborter ├── HpToolsAborter.csproj ├── Program.cs ├── Properties │ └── AssemblyInfo.cs └── app.config ├── HpToolsLauncher ├── ConsoleQuickEdit.cs ├── ConsoleWriter.cs ├── ExportOptions.cs ├── Helper.cs ├── HpToolsLauncher.csproj ├── HpToolsLauncher.sln ├── HpToolsLauncherTests │ ├── HpToolsLauncherTests.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ └── UnitTest1.cs ├── IniManager.cs ├── Interfaces │ ├── IAssetRunner.cs │ ├── IFileSysTestRunner.cs │ ├── IMtbManager.cs │ └── IXmlBuilder.cs ├── JavaProperties │ ├── JavaIniFile.cs │ └── JavaProperties.cs ├── JunitXml │ ├── JunitXmlBuilder.cs │ ├── junit.cs │ └── junit.xsd ├── Launcher.cs ├── Local.testsettings ├── MtbManager.cs ├── MtbxManager.cs ├── MtbxSchema.xsd ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Runners │ ├── AlmTestSetsRunner.cs │ ├── FileSystemTestsRunner.cs │ └── RunnerBase.cs ├── TestInfo.cs ├── TestParameterInfo.cs ├── TestRunResults.cs ├── TestRunners │ ├── ApiTestRunner.cs │ ├── GuiTestRunner.cs │ └── PerformanceTestRunner.cs ├── TestSuiteRunResults.cs ├── TraceAndTestImpact.testsettings ├── WinUserNativeMethods.cs ├── app.config └── externals │ ├── Analysis.Api.dll │ ├── Analysis.ApiLib.dll │ ├── Analysis.ApiSL.dll │ ├── Interop.TDAPIOLELib.dll │ ├── Interop.Wlrun.dll │ ├── QTObjectModelLib.dll │ └── interop.OTAClient.dll ├── LICENSE.txt ├── LRAnalysisLauncher ├── Helper.cs ├── LRAnalysisLauncher.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx └── app.config ├── pom.xml ├── readme.md ├── sonar-project.properties ├── sonarlint.json └── src ├── main ├── java │ └── com │ │ └── hp │ │ └── application │ │ └── automation │ │ └── tools │ │ ├── AlmToolsUtils.java │ │ ├── EncryptionUtils.java │ │ ├── common │ │ ├── ALMRESTVersionUtils.java │ │ ├── Func.java │ │ ├── Pair.java │ │ ├── PcException.java │ │ ├── RuntimeUtils.java │ │ └── SSEException.java │ │ ├── mc │ │ ├── Constants.java │ │ ├── HttpResponse.java │ │ ├── HttpUtils.java │ │ └── JobConfigurationProxy.java │ │ ├── model │ │ ├── ALMVersion.java │ │ ├── AUTEnvironmentModelResolver.java │ │ ├── AUTEnvironmentResolvedModel.java │ │ ├── AbstractSvRunModel.java │ │ ├── AlmServerSettingsModel.java │ │ ├── AutEnvironmentModel.java │ │ ├── AutEnvironmentParameterModel.java │ │ ├── CdaDetails.java │ │ ├── EnumDescription.java │ │ ├── MCServerSettingsModel.java │ │ ├── OctaneServerSettingsModel.java │ │ ├── PcModel.java │ │ ├── PostRunAction.java │ │ ├── ProxySettings.java │ │ ├── ResultsPublisherModel.java │ │ ├── RunFromAlmModel.java │ │ ├── RunFromFileSystemModel.java │ │ ├── RunMode.java │ │ ├── SecretContainer.java │ │ ├── SecretContainerImpl.java │ │ ├── SseModel.java │ │ ├── SseProxySettings.java │ │ ├── SvChangeModeModel.java │ │ ├── SvDataModelSelection.java │ │ ├── SvDeployModel.java │ │ ├── SvExportModel.java │ │ ├── SvPerformanceModelSelection.java │ │ ├── SvServerSettingsModel.java │ │ ├── SvServiceSelectionModel.java │ │ ├── SvUndeployModel.java │ │ ├── TimeslotDuration.java │ │ ├── UploadAppModel.java │ │ ├── UploadAppPathModel.java │ │ └── UploadTestResultToAlmModel.java │ │ ├── octane │ │ ├── AbstractResultQueueImpl.java │ │ ├── CIJenkinsServicesImpl.java │ │ ├── ResultQueue.java │ │ ├── actions │ │ │ ├── BuildActions.java │ │ │ ├── PluginActions.java │ │ │ ├── UFTParameter.java │ │ │ ├── UFTParameterFactory.java │ │ │ ├── UFTTestDetectionBuildAction.java │ │ │ ├── UFTTestDetectionPublisher.java │ │ │ ├── cucumber │ │ │ │ ├── CucumberResultsService.java │ │ │ │ ├── CucumberTestResultsAction.java │ │ │ │ └── CucumberTestResultsActionPublisher.java │ │ │ └── dto │ │ │ │ ├── AutomatedTest.java │ │ │ │ ├── AutomatedTests.java │ │ │ │ ├── TestFramework.java │ │ │ │ └── TestingToolType.java │ │ ├── bridge │ │ │ ├── BridgeClient.java │ │ │ └── BridgesService.java │ │ ├── buildLogs │ │ │ ├── BdiConfigurationFetcher.java │ │ │ ├── LogAbstractResultQueue.java │ │ │ ├── LogDispatcher.java │ │ │ └── RunListenerForLogs.java │ │ ├── client │ │ │ ├── EventPublisher.java │ │ │ ├── JenkinsInsightEventPublisher.java │ │ │ ├── JenkinsMqmRestClientFactory.java │ │ │ ├── JenkinsMqmRestClientFactoryImpl.java │ │ │ └── RetryModel.java │ │ ├── configuration │ │ │ ├── BdiConfiguration.java │ │ │ ├── ConfigApi.java │ │ │ ├── ConfigurationAction.java │ │ │ ├── ConfigurationActionFactory.java │ │ │ ├── ConfigurationListener.java │ │ │ ├── ConfigurationParser.java │ │ │ ├── ConfigurationService.java │ │ │ ├── JobConfigurationProxy.java │ │ │ ├── MqmProject.java │ │ │ ├── PredefinedConfiguration.java │ │ │ ├── PredefinedConfigurationUnmarshaller.java │ │ │ └── ServerConfiguration.java │ │ ├── events │ │ │ ├── EventsClient.java │ │ │ ├── EventsService.java │ │ │ ├── ItemListenerImpl.java │ │ │ ├── QueueListenerImpl.java │ │ │ ├── RunListenerImpl.java │ │ │ └── SCMListenerImpl.java │ │ ├── model │ │ │ ├── CIEventCausesFactory.java │ │ │ ├── ModelFactory.java │ │ │ └── processors │ │ │ │ ├── builders │ │ │ │ ├── AbstractBuilderProcessor.java │ │ │ │ ├── BuildTriggerProcessor.java │ │ │ │ ├── MultiJobBuilderProcessor.java │ │ │ │ ├── ParameterizedTriggerProcessor.java │ │ │ │ └── WorkFlowRunProcessor.java │ │ │ │ ├── parameters │ │ │ │ ├── AbstractParametersProcessor.java │ │ │ │ ├── DynamicParameterProcessor.java │ │ │ │ ├── ExtendedChoiceParameterProcessor.java │ │ │ │ ├── InherentParameterProcessor.java │ │ │ │ ├── NodeLabelParameterProcessor.java │ │ │ │ ├── ParameterProcessors.java │ │ │ │ ├── RandomStringParameterProcessor.java │ │ │ │ └── UnsupportedParameterProcessor.java │ │ │ │ ├── projects │ │ │ │ ├── AbstractProjectProcessor.java │ │ │ │ ├── FreeStyleProjectProcessor.java │ │ │ │ ├── JobProcessorFactory.java │ │ │ │ ├── MatrixProjectProcessor.java │ │ │ │ ├── MavenProjectProcessor.java │ │ │ │ ├── MultiJobProjectProcessor.java │ │ │ │ ├── UnsupportedProjectProcessor.java │ │ │ │ └── WorkFlowJobProcessor.java │ │ │ │ └── scm │ │ │ │ ├── GenericSCMProcessor.java │ │ │ │ ├── GitSCMProcessor.java │ │ │ │ ├── SCMProcessor.java │ │ │ │ ├── SCMProcessors.java │ │ │ │ └── SvnSCMProcessor.java │ │ ├── tests │ │ │ ├── AbstractSafeLoggingAsyncPeriodWork.java │ │ │ ├── HPRunnerType.java │ │ │ ├── MqmTestsExtension.java │ │ │ ├── TestAbstractResultQueue.java │ │ │ ├── TestApi.java │ │ │ ├── TestDispatcher.java │ │ │ ├── TestListener.java │ │ │ ├── TestProcessingException.java │ │ │ ├── TestResultContainer.java │ │ │ ├── build │ │ │ │ ├── BuildDescriptor.java │ │ │ │ ├── BuildHandlerExtension.java │ │ │ │ ├── BuildHandlerUtils.java │ │ │ │ ├── MatrixBuildExtension.java │ │ │ │ └── MavenBuildExtension.java │ │ │ ├── detection │ │ │ │ ├── ResultFields.java │ │ │ │ ├── ResultFieldsDetectionExtension.java │ │ │ │ ├── ResultFieldsDetectionService.java │ │ │ │ ├── TestNGExtension.java │ │ │ │ └── UFTExtension.java │ │ │ ├── gherkin │ │ │ │ ├── GherkinTestExtention.java │ │ │ │ ├── GherkinTestResult.java │ │ │ │ └── GherkinTestResultsCollector.java │ │ │ ├── impl │ │ │ │ └── ObjectStreamIterator.java │ │ │ ├── junit │ │ │ │ ├── AbstractMavenModuleDetection.java │ │ │ │ ├── JUnitExtension.java │ │ │ │ ├── JUnitTestResult.java │ │ │ │ ├── JUnitXmlIterator.java │ │ │ │ ├── MavenBuilderModuleDetection.java │ │ │ │ ├── MavenSetModuleDetection.java │ │ │ │ ├── ModuleDetection.java │ │ │ │ ├── TestError.java │ │ │ │ └── TestResultStatus.java │ │ │ ├── testResult │ │ │ │ └── TestResult.java │ │ │ └── xml │ │ │ │ ├── AbstractXmlIterator.java │ │ │ │ └── TestResultXmlWriter.java │ │ └── workflow │ │ │ ├── BuildRelations.java │ │ │ ├── WorkflowBuildAdapter.java │ │ │ └── WorkflowGraphListener.java │ │ ├── pc │ │ ├── PcClient.java │ │ ├── PcErrorResponse.java │ │ ├── PcRestProxy.java │ │ ├── PcRunEventLog.java │ │ ├── PcRunEventLogRecord.java │ │ ├── PcRunRequest.java │ │ ├── PcRunResponse.java │ │ ├── PcRunResult.java │ │ ├── PcRunResults.java │ │ ├── PcTrendReportMetaData.java │ │ ├── PcTrendedRun.java │ │ ├── ReleaseTimeslot.java │ │ ├── RunState.java │ │ ├── TimeInterval.java │ │ ├── TrendReportRequest.java │ │ └── TrendedRange.java │ │ ├── pipelineSteps │ │ ├── AbstractSvStep.java │ │ ├── AbstractSvStepDescriptor.java │ │ ├── LoadRunnerTestStep.java │ │ ├── LrScenarioLoadStepExecution.java │ │ ├── SseBuildAndPublishStep.java │ │ ├── SseBuilderPublishResultStepExecution.java │ │ ├── SvChangeModeStep.java │ │ ├── SvDeployStep.java │ │ ├── SvExecution.java │ │ ├── SvExportStep.java │ │ ├── SvUndeployStep.java │ │ ├── UftScenarioLoadStep.java │ │ └── UftScenarioLoadStepExecution.java │ │ ├── rest │ │ ├── RESTConstants.java │ │ └── RestClient.java │ │ ├── results │ │ ├── DetailReport.java │ │ ├── HtmlBuildReportAction.java │ │ ├── LrGraphUtils.java │ │ ├── PerformanceJobReportAction.java │ │ ├── PerformanceProjectAction.java │ │ ├── PerformanceReportAction.java │ │ ├── ReportMetaData.java │ │ ├── RunResultRecorder.java │ │ ├── SlaRuleTypes.java │ │ ├── SummaryReport.java │ │ ├── TestResultToALMUploader.java │ │ ├── TransactionSummaryAction.java │ │ ├── parser │ │ │ ├── ReportParseException.java │ │ │ ├── ReportParser.java │ │ │ ├── ReportParserManager.java │ │ │ ├── antjunit │ │ │ │ ├── AntJUnitReportParserImpl.java │ │ │ │ ├── Error.java │ │ │ │ ├── Failure.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── Properties.java │ │ │ │ ├── Property.java │ │ │ │ ├── Testcase.java │ │ │ │ ├── Testsuite.java │ │ │ │ └── Testsuites.java │ │ │ ├── jenkinsjunit │ │ │ │ ├── JenkinsJUnitReportParserImpl.java │ │ │ │ ├── NewDataSet.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ └── Result.java │ │ │ ├── mavensurefire │ │ │ │ ├── Error.java │ │ │ │ ├── Failure.java │ │ │ │ ├── MavenSureFireReportParserImpl.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── Properties.java │ │ │ │ ├── Property.java │ │ │ │ ├── Testcase.java │ │ │ │ └── Testsuite.java │ │ │ ├── nunit │ │ │ │ ├── CategoriesType.java │ │ │ │ ├── CategoryType.java │ │ │ │ ├── FailureType.java │ │ │ │ ├── NUnitReportParserImpl.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── ReasonType.java │ │ │ │ ├── ResultType.java │ │ │ │ ├── ResultsType.java │ │ │ │ ├── TestCaseType.java │ │ │ │ └── TestSuiteType.java │ │ │ ├── testngxml │ │ │ │ ├── NewDataSet.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── TestNGXmlReportParserImpl.java │ │ │ │ └── TestngResults.java │ │ │ └── util │ │ │ │ ├── ParserUtil.java │ │ │ │ └── TimeUtil.java │ │ ├── projectparser │ │ │ ├── package-info.java │ │ │ └── performance │ │ │ │ ├── AvgTransactionResponseTime.java │ │ │ │ ├── GoalResult.java │ │ │ │ ├── JobLrScenarioResult.java │ │ │ │ ├── LrJobResults.java │ │ │ │ ├── LrProjectScenarioResults.java │ │ │ │ ├── LrRunResults.java │ │ │ │ ├── LrScenario.java │ │ │ │ ├── LrTest.java │ │ │ │ ├── PercentileTransactionWholeRun.java │ │ │ │ ├── ProjectLrResults.java │ │ │ │ ├── TimeRange.java │ │ │ │ ├── TimeRangeResult.java │ │ │ │ ├── WholeRunResult.java │ │ │ │ └── XmlParserUtil.java │ │ └── service │ │ │ ├── AlmRestException.java │ │ │ ├── AlmRestInfo.java │ │ │ ├── AlmRestTool.java │ │ │ ├── DefaultExternalEntityUploadServiceImpl.java │ │ │ ├── ExternalEntityUploadException.java │ │ │ ├── ExternalEntityUploadLogger.java │ │ │ ├── IExternalEntityUploadService.java │ │ │ ├── SystemOutLogger.java │ │ │ ├── almentities │ │ │ ├── AlmCommonProperties.java │ │ │ ├── AlmEntity.java │ │ │ ├── AlmEntityImpl.java │ │ │ ├── AlmRun.java │ │ │ ├── AlmRunImpl.java │ │ │ ├── AlmTest.java │ │ │ ├── AlmTestConfig.java │ │ │ ├── AlmTestConfigImpl.java │ │ │ ├── AlmTestFolder.java │ │ │ ├── AlmTestFolderImpl.java │ │ │ ├── AlmTestImpl.java │ │ │ ├── AlmTestInstance.java │ │ │ ├── AlmTestInstanceImpl.java │ │ │ ├── AlmTestSet.java │ │ │ ├── AlmTestSetFolder.java │ │ │ ├── AlmTestSetFolderImpl.java │ │ │ ├── AlmTestSetImpl.java │ │ │ ├── EntityRelation.java │ │ │ └── IAlmConsts.java │ │ │ └── rest │ │ │ ├── CreateAlmEntityRequest.java │ │ │ ├── GetAlmEntityRequest.java │ │ │ └── UpdateAlmEntityRequest.java │ │ ├── run │ │ ├── AbstractSvRunBuilder.java │ │ ├── AbstractSvRunDescriptor.java │ │ ├── AlmRunTypes.java │ │ ├── AutEnvironmentBuilder.java │ │ ├── PcBuilder.java │ │ ├── RunFromAlmBuilder.java │ │ ├── RunFromFileBuilder.java │ │ ├── SseBuilder.java │ │ ├── SvChangeModeBuilder.java │ │ ├── SvDeployBuilder.java │ │ ├── SvExportBuilder.java │ │ ├── SvUndeployBuilder.java │ │ └── UploadAppBuilder.java │ │ ├── settings │ │ ├── AlmServerSettingsBuilder.java │ │ ├── MCServerSettingsBuilder.java │ │ ├── OctaneServerSettingsBuilder.java │ │ └── SvServerSettingsBuilder.java │ │ └── sse │ │ ├── ArgsFactory.java │ │ ├── SSEBuilderPerformer.java │ │ ├── autenvironment │ │ ├── AUTEnvironmentBuilderPerformer.java │ │ ├── AUTEnvironmentFolder.java │ │ ├── AUTEnvironmentManager.java │ │ ├── AUTEnvironmentParametersManager.java │ │ ├── AUTEnvironmnentParameter.java │ │ └── request │ │ │ ├── AUTEnvironmentResources.java │ │ │ ├── get │ │ │ ├── GetAutEnvFoldersByIdRequest.java │ │ │ ├── GetAutEnvironmentByIdOldApiRequest.java │ │ │ ├── GetAutEnvironmentByIdRequest.java │ │ │ ├── GetAutEnvironmentConfigurationByIdRequest.java │ │ │ └── GetParametersByAutEnvConfIdRequest.java │ │ │ ├── post │ │ │ └── CreateAutEnvConfRequest.java │ │ │ └── put │ │ │ └── PutAutEnvironmentParametersBulkRequest.java │ │ ├── common │ │ ├── JsonHandler.java │ │ ├── RestXmlUtils.java │ │ ├── StringUtils.java │ │ └── XPathUtils.java │ │ ├── result │ │ ├── JUnitParser.java │ │ ├── LabPublisher.java │ │ ├── PCPublisher.java │ │ ├── Publisher.java │ │ ├── PublisherFactory.java │ │ └── model │ │ │ └── junit │ │ │ ├── Error.java │ │ │ ├── Failure.java │ │ │ ├── JUnitTestCaseStatus.java │ │ │ ├── Properties.java │ │ │ ├── Property.java │ │ │ ├── Testcase.java │ │ │ ├── Testsuite.java │ │ │ └── Testsuites.java │ │ └── sdk │ │ ├── ALMRunReportUrlBuilder.java │ │ ├── Args.java │ │ ├── Base64Encoder.java │ │ ├── Client.java │ │ ├── ConsoleLogger.java │ │ ├── HttpRequestDecorator.java │ │ ├── Logger.java │ │ ├── PCRunResponse.java │ │ ├── ResourceAccessLevel.java │ │ ├── Response.java │ │ ├── RestAuthenticator.java │ │ ├── RunManager.java │ │ ├── RunResponse.java │ │ ├── handler │ │ ├── BvsRunHandler.java │ │ ├── EventLogHandler.java │ │ ├── Handler.java │ │ ├── LabPollHandler.java │ │ ├── PCPollHandler.java │ │ ├── PCRunHandler.java │ │ ├── PollHandler.java │ │ ├── PollHandlerFactory.java │ │ ├── RunHandler.java │ │ ├── RunHandlerFactory.java │ │ └── TestSetRunHandler.java │ │ └── request │ │ ├── CreateSiteSessionRequest.java │ │ ├── EventLogRequest.java │ │ ├── GeneralGetRequest.java │ │ ├── GeneralPostRequest.java │ │ ├── GeneralPutBulkRequest.java │ │ ├── GeneralRequest.java │ │ ├── GetALMVersionRequest.java │ │ ├── GetLabRunEntityDataRequest.java │ │ ├── GetLabRunEntityTestSetRunsRequest.java │ │ ├── GetPCRunEntityDataRequest.java │ │ ├── GetPCRunEntityTestSetRunsRequest.java │ │ ├── GetRequest.java │ │ ├── GetRunEntityNameRequest.java │ │ ├── PollSSERunRequest.java │ │ ├── PostRequest.java │ │ ├── StartRunEntityRequest.java │ │ └── StopEntityRequest.java ├── resources │ ├── com │ │ └── hp │ │ │ └── application │ │ │ └── automation │ │ │ └── tools │ │ │ ├── model │ │ │ ├── AutEnvironmentModel │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-autEnvironmentId.html │ │ │ │ ├── help-outputParameter.html │ │ │ │ └── help-pathToJsonFile.html │ │ │ ├── AutEnvironmentParameterModel │ │ │ │ ├── config.jelly │ │ │ │ ├── help-name.html │ │ │ │ ├── help-paramType.html │ │ │ │ └── help-value.html │ │ │ ├── SvDataModelSelection │ │ │ │ └── config.jelly │ │ │ ├── SvPerformanceModelSelection │ │ │ │ └── config.jelly │ │ │ └── SvServiceSelectionModel │ │ │ │ └── config.jelly │ │ │ ├── octane │ │ │ ├── Messages.properties │ │ │ ├── OctanePlugin │ │ │ │ ├── global.jelly │ │ │ │ └── global.properties │ │ │ ├── actions │ │ │ │ ├── UFTTestDetectionPublisher │ │ │ │ │ ├── config.jelly │ │ │ │ │ └── help-workspaceName.html │ │ │ │ └── cucumber │ │ │ │ │ └── CucumberTestResultsActionPublisher │ │ │ │ │ ├── config.jelly │ │ │ │ │ ├── config.properties │ │ │ │ │ └── help.html │ │ │ └── configuration │ │ │ │ └── ConfigurationAction │ │ │ │ ├── index.jelly │ │ │ │ └── index.properties │ │ │ ├── pipelineSteps │ │ │ ├── LoadRunnerTestStep │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-archiveTestResultsMode.html │ │ │ │ ├── help-controllerPollingInterval.html │ │ │ │ ├── help-fsTests.html │ │ │ │ ├── help-fsTimeout.html │ │ │ │ ├── help-ignoreErrorStrings.html │ │ │ │ └── help-perScenarioTimeOut.html │ │ │ ├── SseBuildAndPublishStep │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-archiveTestResultsMode.html │ │ │ │ └── help-environmentConfigurationId.html │ │ │ └── UftScenarioLoadStep │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-archiveTestResultsMode.html │ │ │ │ └── help-fsTests.html │ │ │ ├── results │ │ │ ├── DetailReport │ │ │ │ └── index.jelly │ │ │ ├── HtmlBuildReportAction │ │ │ │ └── index.jelly │ │ │ ├── PerformanceJobReportAction │ │ │ │ └── index.jelly │ │ │ ├── PerformanceProjectAction │ │ │ │ └── index.jelly │ │ │ ├── PerformanceReportAction │ │ │ │ └── index.jelly │ │ │ ├── RunResultRecorder │ │ │ │ ├── config.jelly │ │ │ │ └── help-archiveTestResultsMode.html │ │ │ ├── SummaryReport │ │ │ │ └── index.jelly │ │ │ ├── TestResultToALMUploader │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-almDomain.html │ │ │ │ ├── help-almPassword.html │ │ │ │ ├── help-almProject.html │ │ │ │ ├── help-almServerName.html │ │ │ │ ├── help-almTestFolder.html │ │ │ │ ├── help-almTestSetFolder.html │ │ │ │ ├── help-almTimeout.html │ │ │ │ ├── help-almUserName.html │ │ │ │ ├── help-jenkinsServerUrl.html │ │ │ │ ├── help-testingFramework.html │ │ │ │ ├── help-testingResultFile.html │ │ │ │ └── help-testingTool.html │ │ │ └── TransactionSummaryAction │ │ │ │ └── index.jelly │ │ │ ├── run │ │ │ ├── AutEnvironmentBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ └── help-environmentConfigurationId.html │ │ │ ├── PcBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-pcServerName.html │ │ │ │ ├── help-statusBySLA.html │ │ │ │ ├── help-testInstanceId.html │ │ │ │ └── help-vudsMode.html │ │ │ ├── RunFromAlmBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-AlmRunHost.html │ │ │ │ ├── help-AlmRunMode.html │ │ │ │ ├── help-AlmTestSets.html │ │ │ │ └── help-AlmTimeout.html │ │ │ ├── RunFromFileBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-controllerPollingInterval.html │ │ │ │ ├── help-fsAppParamName.html │ │ │ │ ├── help-fsAppPath.html │ │ │ │ ├── help-fsPassword.html │ │ │ │ ├── help-fsProxyAddress.html │ │ │ │ ├── help-fsTests.html │ │ │ │ ├── help-fsTimeout.html │ │ │ │ ├── help-fsUserName.html │ │ │ │ ├── help-ignoreErrorStrings.html │ │ │ │ ├── help-mcServerName.html │ │ │ │ └── help-perScenarioTimeOut.html │ │ │ ├── SseBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ └── help-environmentConfigurationId.html │ │ │ ├── SvChangeModeBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ └── help-force.html │ │ │ ├── SvDeployBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-firstAgentFallback.html │ │ │ │ ├── help-force.html │ │ │ │ └── help-service.html │ │ │ ├── SvExportBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-cleanTargetDirectory.html │ │ │ │ ├── help-force.html │ │ │ │ ├── help-switchToStandByFirst.html │ │ │ │ └── help-targetDirectory.html │ │ │ ├── SvUndeployBuilder │ │ │ │ ├── config.jelly │ │ │ │ ├── config.properties │ │ │ │ ├── help-continueIfNotDeployed.html │ │ │ │ └── help-force.html │ │ │ └── UploadAppBuilder │ │ │ │ ├── config.jelly │ │ │ │ └── config.properties │ │ │ └── settings │ │ │ ├── AlmServerSettingsBuilder │ │ │ ├── global.jelly │ │ │ ├── help-almServerName.html │ │ │ ├── help-almServerUrl.html │ │ │ └── help-almServerVersion.html │ │ │ ├── MCServerSettingsBuilder │ │ │ ├── global.jelly │ │ │ ├── help-mcServerName.html │ │ │ └── help-mcServerUrl.html │ │ │ ├── OctaneServerSettingsBuilder │ │ │ ├── global.jelly │ │ │ ├── global.properties │ │ │ ├── help-identity.html │ │ │ ├── help-impersonatedUser.html │ │ │ ├── help-uiLocation.html │ │ │ └── help-username.html │ │ │ └── SvServerSettingsBuilder │ │ │ └── global.jelly │ ├── index.jelly │ └── lib │ │ ├── octane │ │ ├── configure.js │ │ ├── menu-button-arrow.png │ │ └── ui.css │ │ └── select2 │ │ ├── select2-min.css │ │ └── select2-min.js └── webapp │ ├── PerformanceReport │ └── LoadRunner.png │ ├── autEnvironment.js │ ├── configure.js │ ├── css │ ├── ColorPlate.css │ ├── chartist-plugin-tooltip.css │ ├── chartist.css │ ├── chartistLegend.css │ └── projectReport.css │ ├── help │ ├── accessKey.html │ ├── impersonatedUser.html │ └── uiLocation.html │ ├── icons │ ├── 16x16 │ │ ├── failed.png │ │ ├── html_report.png │ │ ├── passed.png │ │ ├── rrv_report.png │ │ ├── stop.ico │ │ └── stop.png │ └── 24x24 │ │ ├── failed.png │ │ ├── html_report.png │ │ ├── passed.png │ │ ├── rrv_report.png │ │ └── uft_report.png │ ├── js │ ├── dropdown.jsx │ ├── jslib.js │ └── libaries │ │ ├── chartist │ │ ├── chartist-plugin-axistitle.min.js │ │ ├── chartist-plugin-legend.js │ │ ├── chartist-plugin-pointlabels.js │ │ ├── chartist-plugin-tooltip.min.js │ │ ├── chartist.js │ │ └── chartist.min.js.old │ │ └── react │ │ ├── react-dom.js │ │ ├── react-dom.min.js │ │ └── react-with-addons.min.js │ └── scss │ ├── chartist.scss │ ├── chartistLegend.scss │ └── settings │ ├── _chartist-settings.scss │ ├── chartist-plugin-tooltip.css.map │ ├── chartist.css.map │ └── chartistLegend.css.map └── test ├── java └── com │ └── hp │ └── application │ └── automation │ └── tools │ ├── common │ └── TestALMRESTVersionUtils.java │ ├── model │ └── SecretContainerTest.java │ ├── octane │ ├── EnumsTest.java │ ├── actions │ │ ├── Configuration.java │ │ ├── Utils.java │ │ ├── build │ │ │ ├── BuildActionsFreeStyleTest.java │ │ │ ├── BuildActionsMatrixTest.java │ │ │ ├── BuildActionsMavenTest.java │ │ │ └── BuildActionsMultiJobTest.java │ │ ├── plugin │ │ │ └── PluginActionsTest.java │ │ └── project │ │ │ ├── CustomProject.java │ │ │ ├── ProjectActionsFreeStyleTest.java │ │ │ ├── ProjectActionsMatrixTest.java │ │ │ ├── ProjectActionsMavenTest.java │ │ │ └── ProjectActionsMultiJobTest.java │ ├── client │ │ ├── RetryModelTest.java │ │ └── TestEventPublisher.java │ ├── configuration │ │ ├── ConfigApiTest.java │ │ ├── ConfigurationActionFactoryTest.java │ │ ├── ConfigurationListenerTest.java │ │ └── ConfigurationServiceTest.java │ ├── detection │ │ └── ResultFieldsTest.java │ ├── events │ │ └── EventsTest.java │ ├── identity │ │ └── ServerIdentityTest.java │ └── tests │ │ ├── CopyResourceSCM.java │ │ ├── ExtensionUtil.java │ │ ├── JUnitResultsTest.java │ │ ├── TestApiTest.java │ │ ├── TestCustomJUnitArchiver.java │ │ ├── TestDispatcherTest.java │ │ ├── TestJenkinsDurationTest.java │ │ ├── TestQueue.java │ │ ├── TestResultIterable.java │ │ ├── TestResultIterator.java │ │ ├── TestResultQueueTest.java │ │ ├── TestUtils.java │ │ ├── build │ │ └── BuildHandlerUtilsTest.java │ │ ├── detection │ │ ├── ResultFieldsDetectionTest.java │ │ ├── ResultFieldsTest.java │ │ ├── ResultFieldsXmlReader.java │ │ ├── TestNGExtensionTest.java │ │ └── UFTExtensionTest.java │ │ ├── gherkin │ │ ├── GherkinResultsTest.java │ │ └── GherkinTestResultsCollectorTest.java │ │ └── xml │ │ └── TestResultXmlWriterTest.java │ ├── pc │ ├── MockPcModel.java │ ├── MockPcRestProxy.java │ ├── MockPcRestProxyBadResponses.java │ ├── PcTestBase.java │ ├── TestPcClient.java │ └── TestPcClientNegativeScenrios.java │ ├── pipelineSteps │ └── LrScenarioLoadStepTest.java │ ├── results │ ├── RunResultRecorderTest.java │ ├── parser │ │ ├── AntTESTS-TestSuites.xml │ │ ├── MAVENTEST-com.demoapp.demo.AppTest.xml │ │ ├── NUnitReport.xml │ │ ├── TestAntJUnitReportParserImpl.java │ │ ├── TestJenkinsJunitReportParserImpl.java │ │ ├── TestMavenSureFireReportParserImpl.java │ │ ├── TestNUnitReportParserImpl.java │ │ ├── TestTestNGXmlReportParserImpl.java │ │ ├── junitResult.xml │ │ └── testng-results.xml │ └── service │ │ ├── NUnitReport.xml │ │ ├── TestDefaultExternalEntityUploadServiceImpl.java │ │ ├── junitResult.xml │ │ └── testng-results.xml │ └── sse │ ├── common │ ├── ConsoleLogger.java │ ├── RestClient4Test.java │ └── TestCase.java │ ├── result │ └── TestPublisher.java │ └── sdk │ ├── MockRestClientBadDomain.java │ ├── MockRestClientBadRunEntity.java │ ├── MockRestClientBadRunResponse.java │ ├── MockRestClientFailedLogin.java │ ├── MockRestClientFunctional.java │ ├── MockRestClientPC.java │ ├── MockSseModel.java │ ├── TestBvsRunHandler.java │ ├── TestEventLogHandler.java │ ├── TestPCRunHandler.java │ ├── TestPollHandler.java │ ├── TestPostRequest.java │ ├── TestRestAuthenticator.java │ ├── TestRestClient.java │ ├── TestRunHandlerFactory.java │ ├── TestRunManager.java │ ├── TestRunManagerSystemTests.java │ ├── TestTestSetRunHandler.java │ └── TestTestSetRunHandlerGetReportUrl.java ├── resources ├── UFT │ └── UFT_results.xml ├── com │ └── hp │ │ └── application │ │ └── automation │ │ └── tools │ │ ├── octane │ │ └── tests │ │ │ └── gherkin │ │ │ ├── f1 │ │ │ ├── OctaneGherkinResults0.xml │ │ │ └── OctaneGherkinResults1.xml │ │ │ ├── f2 │ │ │ ├── OctaneGherkinResults0.xml │ │ │ └── OctaneGherkinResults1.xml │ │ │ └── f3 │ │ │ ├── OctaneGherkinResults0.xml │ │ │ └── OctaneGherkinResults1.xml │ │ ├── pc │ │ └── Reports.zip │ │ └── results │ │ ├── RunReport.xml │ │ └── RunReport_sc5.xml ├── helloCucumberWorld │ ├── pom.xml │ ├── settings.xml │ └── src │ │ └── test │ │ ├── java │ │ ├── MyStepdefs.java │ │ └── RunnerTest.java │ │ └── resources │ │ ├── My amazing feature_4002.feature │ │ └── my-fancy-feature.feature ├── helloWorldFailsafe │ ├── pom.xml │ ├── settings.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── hello │ │ │ └── HelloWorld.java │ │ └── test │ │ └── java │ │ └── hello │ │ └── ITHelloWorld.java ├── helloWorldRoot │ ├── helloWorld │ │ ├── pom.xml │ │ ├── settings.xml │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── hello │ │ │ │ └── HelloWorld.java │ │ │ └── test │ │ │ └── java │ │ │ └── hello │ │ │ └── HelloWorldTest.java │ ├── helloWorld2 │ │ ├── pom.xml │ │ ├── settings.xml │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── hello │ │ │ │ └── HelloWorld2.java │ │ │ └── test │ │ │ └── java │ │ │ └── hello │ │ │ └── HelloWorld2Test.java │ ├── pom.xml │ └── settings.xml └── helloWorldTestNGRoot │ ├── helloWorld │ ├── pom.xml │ ├── settings.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── hello │ │ │ └── HelloWorld.java │ │ └── test │ │ └── java │ │ └── hello │ │ └── HelloWorldTest.java │ ├── helloWorld2 │ ├── pom.xml │ ├── settings.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── hello │ │ │ └── HelloWorld2.java │ │ └── test │ │ └── java │ │ └── hello │ │ └── HelloWorld2Test.java │ ├── pom.xml │ └── settings.xml └── setup-testing-server-port.sh /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | Please Make sure these boxes are checked before submitting your pull request - Thanks ahead! 3 | 4 | - [ ] Proper pull request title - concise and clear for others. 5 | - [ ] Proper pull request short description - clear and concise (as it should appear in the Jira ticket) for other developers and users. 6 | - [ ] Proper Jira ticket - Number, Link in pull request description. 7 | - [ ] The PR can is merged on your machine without any conflicts. 8 | - [ ] The PR can is built on your machine without any (new) warnings. 9 | - [ ] The PR passed sanity tests by you / QA / DevTest / Good Samaritain. 10 | - [ ] Add unit tests with new features. 11 | - [ ] If you added any dependency to the POM - Please update @YafimK 12 | -------------------------------------------------------------------------------- /HpToolsAborter/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /HpToolsLauncher/Interfaces/IAssetRunner.cs: -------------------------------------------------------------------------------- 1 | // (c) Copyright 2012 Hewlett-Packard Development Company, L.P. 2 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 3 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5 | 6 | using System; 7 | namespace HpToolsLauncher 8 | { 9 | public interface IAssetRunner : IDisposable 10 | { 11 | TestSuiteRunResults Run(); 12 | bool RunWasCancelled {get;set;} 13 | } 14 | } -------------------------------------------------------------------------------- /HpToolsLauncher/Interfaces/IFileSysTestRunner.cs: -------------------------------------------------------------------------------- 1 | // (c) Copyright 2012 Hewlett-Packard Development Company, L.P. 2 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 3 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5 | 6 | using System; 7 | namespace HpToolsLauncher 8 | { 9 | public delegate bool RunCancelledDelegate(); 10 | public interface IFileSysTestRunner 11 | { 12 | TestRunResults RunTest(TestInfo fileName, ref string errorReason, RunCancelledDelegate runCancelled); 13 | void CleanUp(); 14 | } 15 | } -------------------------------------------------------------------------------- /HpToolsLauncher/Interfaces/IXmlBuilder.cs: -------------------------------------------------------------------------------- 1 | // (c) Copyright 2012 Hewlett-Packard Development Company, L.P. 2 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 3 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5 | 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using System.Text; 10 | 11 | namespace HpToolsLauncher 12 | { 13 | public interface IXmlBuilder 14 | { 15 | string XmlName { get; set; } 16 | void CreateXmlFromRunResults(TestSuiteRunResults results); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /HpToolsLauncher/Local.testsettings: -------------------------------------------------------------------------------- 1 |  2 | 3 | These are default test settings for a local test run. 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /HpToolsLauncher/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /HpToolsLauncher/externals/Analysis.Api.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/HpToolsLauncher/externals/Analysis.Api.dll -------------------------------------------------------------------------------- /HpToolsLauncher/externals/Analysis.ApiLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/HpToolsLauncher/externals/Analysis.ApiLib.dll -------------------------------------------------------------------------------- /HpToolsLauncher/externals/Analysis.ApiSL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/HpToolsLauncher/externals/Analysis.ApiSL.dll -------------------------------------------------------------------------------- /HpToolsLauncher/externals/Interop.TDAPIOLELib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/HpToolsLauncher/externals/Interop.TDAPIOLELib.dll -------------------------------------------------------------------------------- /HpToolsLauncher/externals/Interop.Wlrun.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/HpToolsLauncher/externals/Interop.Wlrun.dll -------------------------------------------------------------------------------- /HpToolsLauncher/externals/QTObjectModelLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/HpToolsLauncher/externals/QTObjectModelLib.dll -------------------------------------------------------------------------------- /HpToolsLauncher/externals/interop.OTAClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/HpToolsLauncher/externals/interop.OTAClient.dll -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2012 Hewlett-Packard Development Company, L.P. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /LRAnalysisLauncher/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- 1 | sonar.projectKey=org.jenkins-ci.plugins:hp-application-automation-tools-plugin 2 | sonar.projectVersion=5.0.1-beta-SNAPSHOT 3 | sonar.projectName=hp application automation tools plugin 4 | 5 | # Set modules IDs 6 | sonar.modules=module1,HpToolsLauncher,LRAnalysisLauncher,HpToolsAborter 7 | 8 | # Modules inherit properties set at parent level 9 | sonar.sourceEncoding=UTF-8 10 | sonar.sources=.\\ 11 | sonar.issuesReport.html.enable=true 12 | sonar.forceUpdate=true 13 | sonar.scm.forceReloadAll=true 14 | sonar.useWsCache=false 15 | 16 | # Module 1 Java 17 | module1.sonar.projectBaseDir=.\\ 18 | module1.sonar.sources=src\\main\\java 19 | module1.sonar.projectName=JenkinsPlugin 20 | module1.sonar.tests=src\\test\\java 21 | module1.sonar.language=java 22 | module1.sonar.java.source=1.7 23 | 24 | # Module 2 CS - HpToolsLauncher 25 | HpToolsLauncher.sonar.sources=.\\ 26 | HpToolsLauncher.sonar.projectName=HpToolsLauncher 27 | HpToolsLauncher.sonar.language=cs 28 | HpToolsLauncher.sonar.visualstudio.enable=true 29 | 30 | # Module 3 CS - HpToolsAborter 31 | HpToolsAborter.sonar.sources=.\\ 32 | HpToolsAborter.sonar.projectName=HpToolsAborter 33 | HpToolsAborter.sonar.language=cs 34 | HpToolsAborter.sonar.visualstudio.enable=true 35 | 36 | # Module 4 CS - LRAnalysisLauncher 37 | LRAnalysisLauncher.sonar.sources=.\\ 38 | LRAnalysisLauncher.sonar.projectName=LRAnalysisLauncher 39 | LRAnalysisLauncher.sonar.language=cs 40 | LRAnalysisLauncher.sonar.visualstudio.enable=true 41 | 42 | -------------------------------------------------------------------------------- /sonarlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "serverId": "local", 3 | "projectKey": "org.jenkins-ci.plugins:hp-application-automation-tools-plugin" 4 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/common/ALMRESTVersionUtils.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.common; 2 | 3 | import com.hp.application.automation.tools.model.ALMVersion; 4 | 5 | import javax.xml.bind.JAXBContext; 6 | import javax.xml.bind.Unmarshaller; 7 | import java.io.ByteArrayInputStream; 8 | 9 | /** 10 | * @author Effi Bar-She'an 11 | */ 12 | public class ALMRESTVersionUtils { 13 | 14 | public static ALMVersion toModel(byte[] xml) { 15 | 16 | ALMVersion ret = null; 17 | try { 18 | JAXBContext context = JAXBContext.newInstance(ALMVersion.class); 19 | Unmarshaller unMarshaller = context.createUnmarshaller(); 20 | ret = (ALMVersion) unMarshaller.unmarshal(new ByteArrayInputStream(xml)); 21 | } catch (Exception e) { 22 | throw new SSEException("Failed to convert XML to ALMVersion", e); 23 | } 24 | 25 | return ret; 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/common/Func.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.common; 2 | 3 | public interface Func { 4 | 5 | public TResult execute(); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/common/Pair.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.common; 2 | 3 | public class Pair { 4 | 5 | private final TFirst _first; 6 | private final TSecond _second; 7 | 8 | public Pair(TFirst first, TSecond second) { 9 | 10 | _first = first; 11 | _second = second; 12 | } 13 | 14 | public TFirst getFirst() { 15 | 16 | return _first; 17 | } 18 | 19 | public TSecond getSecond() { 20 | 21 | return _second; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/common/PcException.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.common; 2 | 3 | public class PcException extends Exception { 4 | 5 | private static final long serialVersionUID = -4036530091360617367L; 6 | 7 | public PcException(String message) { 8 | 9 | super(message); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/common/RuntimeUtils.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.common; 2 | 3 | public class RuntimeUtils { 4 | 5 | @SuppressWarnings("unchecked") 6 | public static T cast(Object obj) { 7 | 8 | return (T) obj; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/common/SSEException.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.common; 2 | 3 | public class SSEException extends RuntimeException { 4 | 5 | private static final long serialVersionUID = -5386355008323770858L; 6 | 7 | public SSEException(Throwable cause) { 8 | 9 | super(cause); 10 | } 11 | 12 | public SSEException(String message) { 13 | 14 | super(message); 15 | } 16 | 17 | public SSEException(String message, Throwable cause) { 18 | 19 | super(message, cause); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/mc/Constants.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.mc; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: jingwei 6 | * Date: 5/13/16 7 | * Time: 2:07 PM 8 | * To change this template use File | Settings | File Templates. 9 | */ 10 | public class Constants { 11 | public final static String BOUNDARYSTR = "randomstring"; 12 | public final static String DATA = "data"; 13 | public final static String APP_UPLOAD = "/rest/apps/upload"; 14 | public final static String CONTENT_TYPE_DOWNLOAD_VALUE = "multipart/form-data; boundary=----"; 15 | public final static String FILENAME = "filename"; 16 | public static final String LOGIN_SECRET = "x-hp4msecret"; 17 | public static final String SPLIT_COMMA = ";"; 18 | public static final String JSESSIONID = "JSESSIONID"; 19 | public static final String ACCEPT = "Accept"; 20 | public static final String CONTENT_TYPE = "Content-Type"; 21 | public static final String COOKIE = "Cookie"; 22 | public static final String SET_COOKIE = "Set-Cookie"; 23 | public static final String EQUAL = "="; 24 | public static final String LOGIN_URL = "/rest/client/login"; 25 | public static final String CREATE_JOB_URL = "/rest/job/createTempJob"; 26 | public static final String GET_JOB_UEL = "/rest/job/"; 27 | public final static String ICON = "icon"; 28 | public final static String JESEEIONEQ = "JSESSIONID="; 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/mc/HttpResponse.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.mc; 2 | 3 | import net.minidev.json.JSONObject; 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | public class HttpResponse { 9 | 10 | private Map> headers; 11 | private JSONObject jsonObject; 12 | 13 | public HttpResponse() { 14 | 15 | } 16 | 17 | public HttpResponse(Map> headers, JSONObject jsonObject) { 18 | this.headers = headers; 19 | this.jsonObject = jsonObject; 20 | } 21 | 22 | public void setHeaders(Map> headers) { 23 | this.headers = headers; 24 | } 25 | 26 | public void setJsonObject(JSONObject jsonObject) { 27 | this.jsonObject = jsonObject; 28 | } 29 | 30 | public Map> getHeaders() { 31 | return headers; 32 | } 33 | 34 | public JSONObject getJsonObject() { 35 | return jsonObject; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/ALMVersion.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.model; 2 | 3 | import javax.xml.bind.annotation.XmlElement; 4 | import javax.xml.bind.annotation.XmlRootElement; 5 | 6 | /** 7 | * @author Effi Bar-She'an 8 | */ 9 | @XmlRootElement(name = "SiteVersions") 10 | public class ALMVersion { 11 | 12 | @XmlElement(name = "MajorVersion") 13 | private String _majorVersion; 14 | @XmlElement(name = "MinorVersion") 15 | private String _minorVersion; 16 | 17 | public String getMajorVersion() { 18 | 19 | return _majorVersion; 20 | } 21 | 22 | public void setMajorVersion(String majorVersion) { 23 | 24 | _majorVersion = majorVersion; 25 | } 26 | 27 | public String getMinorVersion() { 28 | 29 | return _minorVersion; 30 | } 31 | 32 | public void setMinorVersion(String minorVersion) { 33 | 34 | _minorVersion = minorVersion; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/EnumDescription.java: -------------------------------------------------------------------------------- 1 | // (c) Copyright 2012 Hewlett-Packard Development Company, L.P. 2 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 3 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5 | 6 | package com.hp.application.automation.tools.model; 7 | 8 | public class EnumDescription { 9 | 10 | public EnumDescription(String value, String description) { 11 | this.value = value; 12 | this.description = description; 13 | } 14 | 15 | private String description; 16 | private String value; 17 | 18 | public String getDescription() { 19 | return description; 20 | } 21 | 22 | public String getValue() { 23 | return value; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/MCServerSettingsModel.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.model; 2 | 3 | import org.apache.commons.lang.StringUtils; 4 | import org.kohsuke.stapler.DataBoundConstructor; 5 | 6 | import java.util.Properties; 7 | 8 | /** 9 | * Created with IntelliJ IDEA. 10 | * User: jingwei 11 | * Date: 10/13/15 12 | * Time: 11:06 AM 13 | * To change this template use File | Settings | File Templates. 14 | */ 15 | public class MCServerSettingsModel { 16 | 17 | private final String _mcServerName; 18 | private final String _mcServerUrl; 19 | 20 | @DataBoundConstructor 21 | public MCServerSettingsModel(String mcServerName, String mcServerUrl) { 22 | 23 | _mcServerName = mcServerName; 24 | _mcServerUrl = mcServerUrl; 25 | } 26 | 27 | /** 28 | * @return the mcServerName 29 | */ 30 | public String getMcServerName() { 31 | 32 | return _mcServerName; 33 | } 34 | 35 | /** 36 | * @return the mcServerUrl 37 | */ 38 | public String getMcServerUrl() { 39 | 40 | return _mcServerUrl; 41 | } 42 | 43 | public Properties getProperties() { 44 | 45 | Properties prop = new Properties(); 46 | if (!StringUtils.isEmpty(_mcServerUrl)) { 47 | prop.put("MobileHostAddress", _mcServerUrl); 48 | } else { 49 | prop.put("MobileHostAddress", ""); 50 | } 51 | 52 | return prop; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/PostRunAction.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.model; 2 | 3 | public enum PostRunAction { 4 | 5 | COLLATE("Collate Results"), 6 | COLLATE_AND_ANALYZE("Collate And Analyze"), 7 | DO_NOTHING("Do Not Collate"); 8 | 9 | private String value; 10 | 11 | private PostRunAction(String value) { 12 | this.value = value; 13 | } 14 | 15 | public String getValue() { 16 | return value; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/ProxySettings.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.model; 2 | 3 | import hudson.util.Secret; 4 | import org.kohsuke.stapler.DataBoundConstructor; 5 | 6 | /** 7 | * Created with IntelliJ IDEA. 8 | * User: jingwei 9 | * Date: 3/30/16 10 | * Time: 1:37 PM 11 | * To change this template use File | Settings | File Templates. 12 | */ 13 | public class ProxySettings { 14 | private boolean fsUseAuthentication; 15 | private String fsProxyAddress; 16 | private String fsProxyUserName; 17 | private Secret fsProxyPassword; 18 | 19 | @DataBoundConstructor 20 | public ProxySettings(boolean fsUseAuthentication, String fsProxyAddress, String fsProxyUserName, Secret fsProxyPassword) { 21 | this.fsUseAuthentication = fsUseAuthentication; 22 | this.fsProxyAddress = fsProxyAddress; 23 | this.fsProxyUserName = fsProxyUserName; 24 | this.fsProxyPassword = fsProxyPassword; 25 | } 26 | 27 | public boolean isFsUseAuthentication() { 28 | return fsUseAuthentication; 29 | } 30 | 31 | public String getFsProxyAddress() { 32 | return fsProxyAddress; 33 | } 34 | 35 | public String getFsProxyUserName() { 36 | return fsProxyUserName; 37 | } 38 | 39 | public String getFsProxyPassword() { 40 | return fsProxyPassword.getPlainText(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/RunMode.java: -------------------------------------------------------------------------------- 1 | // (c) Copyright 2012 Hewlett-Packard Development Company, L.P. 2 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 3 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5 | 6 | package com.hp.application.automation.tools.model; 7 | 8 | public class RunMode { 9 | 10 | public RunMode(String value, String description) { 11 | this.value = value; 12 | this.description = description; 13 | } 14 | 15 | private String description; 16 | private String value; 17 | 18 | public String getDescription() { 19 | return description; 20 | } 21 | 22 | public String getValue() { 23 | return value; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/SecretContainer.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.model; 2 | 3 | public interface SecretContainer { 4 | 5 | void initialize(String secret); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/SecretContainerImpl.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.model; 2 | 3 | import hudson.util.Secret; 4 | 5 | public class SecretContainerImpl implements SecretContainer { 6 | 7 | private Secret _secret; 8 | 9 | public void initialize(String secret) { 10 | 11 | _secret = Secret.fromString(secret); 12 | } 13 | 14 | @Override 15 | public String toString() { 16 | 17 | return _secret.getPlainText(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/TimeslotDuration.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.model; 2 | 3 | public class TimeslotDuration { 4 | 5 | private int Hours; 6 | 7 | private int Minutes; 8 | 9 | public TimeslotDuration(int hours, int minutes) { 10 | 11 | Hours = hours + minutes / 60; 12 | Minutes = minutes % 60; 13 | } 14 | 15 | public TimeslotDuration(String hours, String minutes) { 16 | 17 | try{ 18 | int m = Integer.parseInt(minutes); 19 | int h = Integer.parseInt(hours) + m / 60; 20 | if (h < 480) { 21 | Hours = h; 22 | Minutes = m % 60; 23 | } else { 24 | Hours = 480; 25 | Minutes = 0; 26 | } 27 | } catch (Exception e) { 28 | Hours = 0; 29 | Minutes = 0; 30 | } 31 | } 32 | 33 | public TimeslotDuration(int minutes) { 34 | 35 | this(0, minutes); 36 | } 37 | 38 | public int getHours() { 39 | 40 | return Hours; 41 | } 42 | 43 | public int getMinutes() { 44 | 45 | return Minutes; 46 | } 47 | 48 | public int toMinutes() { 49 | 50 | return Hours * 60 + Minutes; 51 | } 52 | 53 | @Override 54 | public String toString() { 55 | 56 | return String.format("%d:%02d(h:mm)", Hours, Minutes); 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/model/UploadAppPathModel.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.model; 2 | 3 | import hudson.Extension; 4 | import hudson.model.AbstractDescribableImpl; 5 | import hudson.model.Descriptor; 6 | import org.kohsuke.stapler.DataBoundConstructor; 7 | 8 | /** 9 | * Created with IntelliJ IDEA. 10 | * User: jingwei 11 | * Date: 5/20/16 12 | * Time: 2:52 PM 13 | * To change this template use File | Settings | File Templates. 14 | */ 15 | public class UploadAppPathModel extends AbstractDescribableImpl { 16 | private String mcAppPath; 17 | 18 | @DataBoundConstructor 19 | public UploadAppPathModel(String mcAppPath) { 20 | this.mcAppPath = mcAppPath; 21 | } 22 | 23 | public String getMcAppPath() { 24 | return mcAppPath; 25 | } 26 | 27 | @Extension 28 | public static class DescriptorImpl extends Descriptor { 29 | public String getDisplayName() { 30 | return ""; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/actions/dto/AutomatedTests.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.octane.actions.dto; 2 | 3 | import java.util.ArrayList; 4 | 5 | /** 6 | * Created by kashbi on 25/09/2016. 7 | */ 8 | public class AutomatedTests { 9 | private ArrayList data=new ArrayList<>(); 10 | 11 | public ArrayList getData() { 12 | return data; 13 | } 14 | 15 | public void setData(ArrayList data) { 16 | this.data = data; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/buildLogs/LogAbstractResultQueue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.buildLogs; 18 | 19 | import com.hp.application.automation.tools.octane.AbstractResultQueueImpl; 20 | import jenkins.model.Jenkins; 21 | 22 | import java.io.File; 23 | import java.io.IOException; 24 | 25 | /** 26 | * Created by benmeior on 11/21/2016. 27 | */ 28 | public class LogAbstractResultQueue extends AbstractResultQueueImpl { 29 | 30 | public LogAbstractResultQueue() throws IOException { 31 | File queueFile = new File(Jenkins.getInstance().getRootDir(), "octane-log-result-queue.dat"); 32 | init(queueFile); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/client/EventPublisher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.client; 18 | 19 | public interface EventPublisher { 20 | 21 | boolean isSuspended(); 22 | 23 | void resume(); 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/client/JenkinsInsightEventPublisher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.client; 18 | 19 | import com.hp.application.automation.tools.octane.events.EventsClient; 20 | import com.hp.application.automation.tools.octane.events.EventsService; 21 | import hudson.Extension; 22 | 23 | @Extension 24 | public class JenkinsInsightEventPublisher implements EventPublisher { 25 | 26 | @Override 27 | public boolean isSuspended() { 28 | EventsClient client = EventsService.getExtensionInstance().getClient(); 29 | return client == null || client.isSuspended(); 30 | } 31 | 32 | @Override 33 | public void resume() { 34 | EventsService.getExtensionInstance().wakeUpClient(); 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/client/JenkinsMqmRestClientFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.client; 18 | 19 | import com.hp.mqm.client.MqmRestClient; 20 | import hudson.util.Secret; 21 | 22 | public interface JenkinsMqmRestClientFactory { 23 | 24 | MqmRestClient obtain(String location, String sharedSpace, String username, Secret password); 25 | 26 | MqmRestClient obtainTemp(String location, String sharedSpace, String username, Secret password); 27 | 28 | void updateMqmRestClient(String location, String sharedSpace, String username, Secret password); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/configuration/ConfigurationListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.configuration; 18 | 19 | import hudson.ExtensionPoint; 20 | 21 | public interface ConfigurationListener extends ExtensionPoint { 22 | 23 | void onChanged(ServerConfiguration conf, ServerConfiguration oldConf); 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/configuration/MqmProject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.configuration; 18 | 19 | final public class MqmProject { 20 | private final String location; 21 | private final String sharedSpace; 22 | 23 | public MqmProject(String location, String sharedSpace) { 24 | this.location = location; 25 | this.sharedSpace = sharedSpace; 26 | } 27 | 28 | public String getLocation() { 29 | return location; 30 | } 31 | 32 | public String getSharedSpace() { 33 | return sharedSpace; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/configuration/PredefinedConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.configuration; 18 | 19 | import javax.xml.bind.annotation.XmlAccessType; 20 | import javax.xml.bind.annotation.XmlAccessorType; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | 23 | @XmlRootElement 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | public class PredefinedConfiguration { 26 | 27 | private String uiLocation; 28 | 29 | public String getUiLocation() { 30 | return uiLocation; 31 | } 32 | 33 | public void setUiLocation(String location) { 34 | this.uiLocation = location; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/events/ItemListenerImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.events; 18 | 19 | import hudson.Extension; 20 | import hudson.model.Item; 21 | import hudson.model.listeners.ItemListener; 22 | import org.apache.logging.log4j.LogManager; 23 | import org.apache.logging.log4j.Logger; 24 | 25 | /** 26 | * Created with IntelliJ IDEA. 27 | * User: gullery 28 | * Date: 24/08/14 29 | * Time: 17:21 30 | * To change this template use File | Settings | File Templates. 31 | */ 32 | 33 | @Extension 34 | public final class ItemListenerImpl extends ItemListener { 35 | private static final Logger logger = LogManager.getLogger(ItemListenerImpl.class); 36 | 37 | public void onRenamed(Item item, String oldName, String newName) { 38 | logger.info("Renamed for: " + oldName + " => " + newName); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/model/processors/builders/AbstractBuilderProcessor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.model.processors.builders; 18 | 19 | 20 | import com.hp.octane.integrations.dto.pipelines.PipelinePhase; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created with IntelliJ IDEA. 27 | * User: gullery 28 | * Date: 09/01/15 29 | * Time: 00:59 30 | * To change this template use File | Settings | File Templates. 31 | */ 32 | 33 | public abstract class AbstractBuilderProcessor { 34 | protected ArrayList phases = new ArrayList(); 35 | 36 | public List getPhases() { 37 | return phases; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/model/processors/parameters/AbstractParametersProcessor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.model.processors.parameters; 18 | 19 | import com.hp.octane.integrations.dto.parameters.CIParameter; 20 | import hudson.model.ParameterDefinition; 21 | import hudson.model.ParameterValue; 22 | 23 | /** 24 | * Created by gullery on 19/02/2015. 25 | */ 26 | public abstract class AbstractParametersProcessor { 27 | public abstract CIParameter createParameterConfig(ParameterDefinition pd); 28 | 29 | public abstract CIParameter createParameterInstance(ParameterDefinition pd, ParameterValue pv); 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/model/processors/projects/UnsupportedProjectProcessor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.model.processors.projects; 18 | 19 | import hudson.model.Job; 20 | import hudson.tasks.Builder; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created with IntelliJ IDEA. 27 | * User: gullery 28 | * Date: 24/12/14 29 | * Time: 13:47 30 | * To change this template use File | Settings | File Templates. 31 | */ 32 | 33 | class UnsupportedProjectProcessor extends AbstractProjectProcessor { 34 | UnsupportedProjectProcessor(Job job) { 35 | super(job); 36 | } 37 | 38 | @Override 39 | public List tryGetBuilders() { 40 | return new ArrayList<>(); 41 | } 42 | 43 | @Override 44 | public void scheduleBuild(String parametersBody) { 45 | throw new IllegalStateException("unsupported job MAY NOT be run"); 46 | } 47 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/model/processors/scm/SCMProcessor.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.octane.model.processors.scm; 2 | 3 | import com.hp.octane.integrations.dto.scm.SCMData; 4 | import hudson.model.AbstractBuild; 5 | import org.jenkinsci.plugins.workflow.job.WorkflowRun; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * Created by gullery on 31/03/2015. 11 | */ 12 | 13 | public interface SCMProcessor { 14 | SCMData getSCMData(AbstractBuild build); 15 | List getSCMData(WorkflowRun run); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/HPRunnerType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.tests; 18 | 19 | /** 20 | * Created by franksha on 05/01/2017. 21 | */ 22 | public enum HPRunnerType { 23 | StormRunner, 24 | UFT, 25 | NONE 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/MqmTestsExtension.java: -------------------------------------------------------------------------------- 1 | // (C) Copyright 2003-2015 Hewlett-Packard Development Company, L.P. 2 | 3 | package com.hp.application.automation.tools.octane.tests; 4 | 5 | import hudson.ExtensionList; 6 | import hudson.ExtensionPoint; 7 | import hudson.model.Hudson; 8 | import hudson.model.Run; 9 | 10 | import java.io.IOException; 11 | 12 | public abstract class MqmTestsExtension implements ExtensionPoint { 13 | 14 | public abstract boolean supports(Run build) throws IOException, InterruptedException; 15 | 16 | 17 | public abstract TestResultContainer getTestResults(Run build, HPRunnerType hpRunnerType, String jenkinsRootUrl) throws IOException, InterruptedException, TestProcessingException; 18 | 19 | public static ExtensionList all() { 20 | return Hudson.getInstance().getExtensionList(MqmTestsExtension.class); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/TestProcessingException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.tests; 18 | 19 | /** 20 | * Created by franksha on 05/01/2017. 21 | */ 22 | public class TestProcessingException extends Exception { 23 | 24 | public TestProcessingException(String message, Throwable cause) { 25 | super(message, cause); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/TestResultContainer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.tests; 18 | 19 | import com.hp.application.automation.tools.octane.tests.detection.ResultFields; 20 | import com.hp.application.automation.tools.octane.tests.testResult.TestResult; 21 | 22 | import java.util.Iterator; 23 | 24 | public class TestResultContainer { 25 | 26 | private Iterator iterator; 27 | private ResultFields resultFields; 28 | 29 | public TestResultContainer(Iterator iterator, ResultFields resultFields) { 30 | this.iterator = iterator; 31 | this.resultFields = resultFields; 32 | } 33 | 34 | public Iterator getIterator() { 35 | return iterator; 36 | } 37 | 38 | public ResultFields getResultFields() { 39 | return resultFields; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/build/BuildDescriptor.java: -------------------------------------------------------------------------------- 1 | // (C) Copyright 2003-2015 Hewlett-Packard Development Company, L.P. 2 | 3 | package com.hp.application.automation.tools.octane.tests.build; 4 | 5 | public final class BuildDescriptor { 6 | 7 | private final String jobId; 8 | private final String jobName; 9 | private final String buildId; 10 | private final String buildName; 11 | private final String subType; 12 | 13 | public BuildDescriptor(String jobId, String jobName, String buildId, String buildName, String subType) { 14 | this.jobId = jobId; 15 | this.jobName = jobName; 16 | this.buildId = buildId; 17 | this.buildName = buildName; 18 | this.subType = subType; 19 | } 20 | 21 | public String getJobId() { 22 | return jobId; 23 | } 24 | 25 | public String getJobName() { 26 | return jobName; 27 | } 28 | 29 | public String getBuildId() { 30 | return buildId; 31 | } 32 | 33 | public String getBuildName() { 34 | return buildName; 35 | } 36 | 37 | public String getSubType() { 38 | return subType; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/build/BuildHandlerExtension.java: -------------------------------------------------------------------------------- 1 | // (C) Copyright 2003-2015 Hewlett-Packard Development Company, L.P. 2 | 3 | package com.hp.application.automation.tools.octane.tests.build; 4 | 5 | import hudson.ExtensionList; 6 | import hudson.ExtensionPoint; 7 | import hudson.model.Hudson; 8 | import hudson.model.Run; 9 | 10 | public abstract class BuildHandlerExtension implements ExtensionPoint { 11 | 12 | public abstract boolean supports(Run build); 13 | 14 | public abstract BuildDescriptor getBuildType(Run build); 15 | 16 | public abstract String getProjectFullName(Run build); 17 | 18 | public static ExtensionList all() { 19 | return Hudson.getInstance().getExtensionList(BuildHandlerExtension.class); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/detection/ResultFieldsDetectionExtension.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.tests.detection; 18 | 19 | import hudson.ExtensionList; 20 | import hudson.ExtensionPoint; 21 | import hudson.model.Hudson; 22 | import hudson.model.Run; 23 | 24 | import java.io.IOException; 25 | 26 | public abstract class ResultFieldsDetectionExtension implements ExtensionPoint { 27 | 28 | public abstract ResultFields detect(Run build) throws IOException, InterruptedException; 29 | 30 | public static ExtensionList all() { 31 | return Hudson.getInstance().getExtensionList(ResultFieldsDetectionExtension.class); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/junit/ModuleDetection.java: -------------------------------------------------------------------------------- 1 | // (C) Copyright 2003-2015 Hewlett-Packard Development Company, L.P. 2 | 3 | package com.hp.application.automation.tools.octane.tests.junit; 4 | 5 | import hudson.FilePath; 6 | 7 | import java.io.IOException; 8 | import java.io.Serializable; 9 | 10 | public interface ModuleDetection extends Serializable { 11 | 12 | String getModule(FilePath resultFile) throws IOException, InterruptedException; 13 | 14 | class Default implements ModuleDetection { 15 | 16 | @Override 17 | public String getModule(FilePath resultFile) throws IOException, InterruptedException { 18 | return ""; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/junit/TestError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.tests.junit; 18 | 19 | import java.io.Serializable; 20 | 21 | /** 22 | * Created by lev on 14/03/2016. 23 | */ 24 | public final class TestError implements Serializable { 25 | private final String stackTraceStr; 26 | private final String errorType; 27 | private final String errorMsg; 28 | 29 | public TestError(String stackTraceStr, String errorType, String errorMsg) { 30 | this.stackTraceStr = stackTraceStr; 31 | this.errorType = errorType; 32 | this.errorMsg = errorMsg; 33 | } 34 | 35 | public String getStackTraceStr() { 36 | return stackTraceStr; 37 | } 38 | 39 | public String getErrorType() { 40 | return errorType; 41 | } 42 | 43 | public String getErrorMsg() { 44 | return errorMsg; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/junit/TestResultStatus.java: -------------------------------------------------------------------------------- 1 | // (C) Copyright 2003-2015 Hewlett-Packard Development Company, L.P. 2 | 3 | package com.hp.application.automation.tools.octane.tests.junit; 4 | 5 | public enum TestResultStatus { 6 | 7 | PASSED("Passed"), 8 | SKIPPED("Skipped"), 9 | FAILED("Failed"); 10 | 11 | private final String prettyName; 12 | 13 | private TestResultStatus(String prettyName) { 14 | this.prettyName = prettyName; 15 | } 16 | 17 | public String toPrettyName() { 18 | return prettyName; 19 | } 20 | 21 | public static TestResultStatus fromPrettyName(String prettyName) { 22 | for (TestResultStatus status : values()) { 23 | if (status.toPrettyName().equals(prettyName)) { 24 | return status; 25 | } 26 | } 27 | throw new IllegalArgumentException("Unsupported TestResultStatus '" + prettyName + "'."); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/octane/tests/testResult/TestResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software 10 | * distributed under the License is distributed on an "AS IS" BASIS, 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | * See the License for the specific language governing permissions and 13 | * limitations under the License. 14 | * 15 | */ 16 | 17 | package com.hp.application.automation.tools.octane.tests.testResult; 18 | 19 | import javax.xml.stream.XMLStreamException; 20 | import javax.xml.stream.XMLStreamWriter; 21 | 22 | public interface TestResult { 23 | 24 | /** 25 | * Writes an XML element from the test result 26 | */ 27 | void writeXmlElement(XMLStreamWriter writer) throws XMLStreamException; 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/pipelineSteps/AbstractSvStep.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.pipelineSteps; 2 | 3 | import jenkins.tasks.SimpleBuildStep; 4 | import org.jenkinsci.plugins.workflow.steps.AbstractStepImpl; 5 | 6 | public abstract class AbstractSvStep extends AbstractStepImpl { 7 | protected final boolean force; 8 | protected final String serverName; 9 | 10 | public AbstractSvStep(String serverName, boolean force) { 11 | this.serverName = serverName; 12 | this.force = force; 13 | } 14 | 15 | protected abstract SimpleBuildStep getBuilder(); 16 | 17 | public String getServerName() { 18 | return serverName; 19 | } 20 | 21 | public boolean isForce() { 22 | return force; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/pipelineSteps/AbstractSvStepDescriptor.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.pipelineSteps; 2 | 3 | import javax.annotation.Nonnull; 4 | 5 | import com.hp.application.automation.tools.model.SvServerSettingsModel; 6 | import com.hp.application.automation.tools.run.AbstractSvRunDescriptor; 7 | import hudson.util.ListBoxModel; 8 | import org.jenkinsci.plugins.workflow.steps.AbstractStepDescriptorImpl; 9 | import org.jenkinsci.plugins.workflow.steps.StepExecution; 10 | 11 | public abstract class AbstractSvStepDescriptor extends AbstractStepDescriptorImpl { 12 | 13 | final protected T builderDescriptor; 14 | final private String functionName; 15 | 16 | protected AbstractSvStepDescriptor(Class executionType, String functionName, T builderDescriptor) { 17 | super(executionType); 18 | this.functionName = functionName; 19 | this.builderDescriptor = builderDescriptor; 20 | } 21 | 22 | @Override 23 | public String getFunctionName() { 24 | return functionName; 25 | } 26 | 27 | @Nonnull 28 | @Override 29 | public String getDisplayName() { 30 | return builderDescriptor.getDisplayName(); 31 | } 32 | 33 | @Override 34 | public String getConfigPage() { 35 | return builderDescriptor.getConfigPage(); 36 | } 37 | 38 | public SvServerSettingsModel[] getServers() { 39 | return builderDescriptor.getServers(); 40 | } 41 | 42 | @SuppressWarnings("unused") 43 | public ListBoxModel doFillServerNameItems() { 44 | return builderDescriptor.doFillServerNameItems(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/pipelineSteps/SvExecution.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.pipelineSteps; 2 | 3 | import javax.inject.Inject; 4 | 5 | import hudson.FilePath; 6 | import hudson.Launcher; 7 | import hudson.model.Run; 8 | import hudson.model.TaskListener; 9 | import org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution; 10 | import org.jenkinsci.plugins.workflow.steps.StepContextParameter; 11 | 12 | public class SvExecution extends AbstractSynchronousNonBlockingStepExecution { 13 | @SuppressWarnings("CdiInjectionPointsInspection") 14 | @Inject 15 | private transient AbstractSvStep step; 16 | @StepContextParameter 17 | private transient TaskListener listener; 18 | @StepContextParameter 19 | private transient FilePath ws; 20 | @StepContextParameter 21 | private transient Run build; 22 | @StepContextParameter 23 | private transient Launcher launcher; 24 | 25 | @Override 26 | protected Void run() throws Exception { 27 | step.getBuilder().perform(build, ws, launcher, listener); 28 | return null; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/pipelineSteps/SvUndeployStep.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.pipelineSteps; 2 | 3 | import com.hp.application.automation.tools.model.SvServiceSelectionModel; 4 | import com.hp.application.automation.tools.run.SvUndeployBuilder; 5 | import hudson.Extension; 6 | import jenkins.tasks.SimpleBuildStep; 7 | import org.kohsuke.stapler.DataBoundConstructor; 8 | 9 | public class SvUndeployStep extends AbstractSvStep { 10 | private final boolean continueIfNotDeployed; 11 | private final SvServiceSelectionModel serviceSelection; 12 | 13 | @DataBoundConstructor 14 | public SvUndeployStep(String serverName, boolean continueIfNotDeployed, boolean force, SvServiceSelectionModel serviceSelection) { 15 | super(serverName, force); 16 | this.continueIfNotDeployed = continueIfNotDeployed; 17 | this.serviceSelection = serviceSelection; 18 | } 19 | 20 | @SuppressWarnings("unused") 21 | public boolean isContinueIfNotDeployed() { 22 | return continueIfNotDeployed; 23 | } 24 | 25 | public SvServiceSelectionModel getServiceSelection() { 26 | return serviceSelection; 27 | } 28 | 29 | @Override 30 | protected SimpleBuildStep getBuilder() { 31 | return new SvUndeployBuilder(serverName, continueIfNotDeployed, force, serviceSelection); 32 | } 33 | 34 | @Extension 35 | public static class DescriptorImpl extends AbstractSvStepDescriptor { 36 | public DescriptorImpl() { 37 | super(SvExecution.class, "svUndeployStep", new SvUndeployBuilder.DescriptorImpl()); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/rest/RESTConstants.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.rest; 2 | 3 | /** 4 | * 5 | * @author Amir Zahavi 6 | * 7 | */ 8 | public interface RESTConstants { 9 | 10 | // HttpHeaders 11 | String PtaL = "PtAL"; 12 | String PvaL = "PvAL"; 13 | String CONTENT_TYPE = "Content-Type"; 14 | String SET_COOKIE = "Set-Cookie"; 15 | String ACCEPT = "Accept"; 16 | String AUTHORIZATION = "Authorization"; 17 | String APP_XML = "application/xml"; 18 | String TEXT_PLAIN = "text/plain"; 19 | String APP_XML_BULK = "application/xml;type=collection"; 20 | 21 | String REST_PROTOCOL = "rest"; 22 | 23 | String GET = "GET"; 24 | String POST = "POST"; 25 | String PUT = "PUT"; 26 | String COOKIE = "Cookie"; 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/SlaRuleTypes.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results; 2 | 3 | /** 4 | * Created by kazaky on 07/07/2016. 5 | */ 6 | public enum SlaRuleTypes 7 | { 8 | SIMPLE_WHOLE_RUN, 9 | WHOLE_RUN, 10 | TIME_RANGE_TRANSACTION, 11 | SIMPLE_TIME_RANGE, 12 | TRANSACTION_PERCENTILE; 13 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/parser/ReportParseException.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.parser; 2 | 3 | public class ReportParseException extends Exception { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = 1L; 9 | 10 | public ReportParseException(){ 11 | 12 | } 13 | 14 | public ReportParseException(Throwable cause) { 15 | 16 | super(cause); 17 | } 18 | 19 | public ReportParseException(String message) { 20 | 21 | super(message); 22 | } 23 | 24 | public ReportParseException(String message, Throwable cause) { 25 | 26 | super(message, cause); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/parser/ReportParser.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.parser; 2 | 3 | import java.io.InputStream; 4 | import java.util.List; 5 | 6 | import com.hp.application.automation.tools.results.service.almentities.AlmTestSet; 7 | 8 | public interface ReportParser { 9 | String TESTING_FRAMEWORK_JUNIT = "JUnit"; 10 | String EXTERNAL_TEST_TYPE = "EXTERNAL-TEST"; 11 | String REPORT_FORMAT_JENKINS_JUNIT_PLUGIN = "Jenkins JUnit Plugin"; 12 | String REPORT_FORMAT_ANT = "Ant"; 13 | String REPORT_FORMAT_MAVEN_SUREFIRE_PLUGIN = "Maven Surefire Plugin"; 14 | String EXTERNAL_TEST_SET_TYPE_ID = "hp.qc.test-set.external"; 15 | String EXTERNAL_TEST_INSTANCE_TYPE_ID = "hp.qc.test-instance.external-test"; 16 | String EXTERNAL_RUN_TYPE_ID = "hp.qc.run.external-test"; 17 | 18 | List parseTestSets(InputStream reportInputStream, String testingFramework, String testingTool) throws ReportParseException; 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/projectparser/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by kazaky on 07/07/2016. 3 | */ 4 | package com.hp.application.automation.tools.results.projectparser; -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/projectparser/performance/AvgTransactionResponseTime.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.projectparser.performance; 2 | 3 | /** 4 | * Created by kazaky on 07/07/2016. 5 | */ 6 | public class AvgTransactionResponseTime extends TimeRangeResult { 7 | 8 | public AvgTransactionResponseTime() { 9 | } 10 | 11 | public String getName() { 12 | return name; 13 | } 14 | 15 | public void setName(String name) { 16 | this.name = name; 17 | } 18 | 19 | protected String name = ""; 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/projectparser/performance/GoalResult.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.projectparser.performance; 2 | 3 | /** 4 | * Created by kazaky on 07/07/2016. 5 | */ 6 | 7 | 8 | public abstract class GoalResult implements LrTest{ 9 | 10 | public SLA_STATUS getStatus() { 11 | return _status; 12 | } 13 | 14 | public void setStatus(SLA_STATUS _status) { 15 | this._status = _status; 16 | } 17 | 18 | public SLA_GOAL getSlaGoal() { 19 | return _slaGoal; 20 | } 21 | 22 | public void setSlaGoal(SLA_GOAL _slaGoal) { 23 | this._slaGoal = _slaGoal; 24 | } 25 | 26 | public double getDuration() { 27 | return _duration; 28 | } 29 | 30 | public void setDuration(double _duration) { 31 | this._duration = _duration; 32 | } 33 | 34 | private SLA_GOAL _slaGoal; 35 | private SLA_STATUS _status; 36 | 37 | public String getFullName() { 38 | return _fullName; 39 | } 40 | 41 | public void setFullName(String _fullName) { 42 | this._fullName = _fullName; 43 | } 44 | 45 | private String _fullName; 46 | private double _duration; 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/projectparser/performance/PercentileTransactionWholeRun.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.projectparser.performance; 2 | 3 | /** 4 | * Created by kazaky on 10/07/2016. 5 | */ 6 | public class PercentileTransactionWholeRun extends WholeRunResult { 7 | 8 | private String name; 9 | private double _precentage; 10 | 11 | public PercentileTransactionWholeRun() { 12 | _precentage = 0.0; 13 | name = ""; 14 | } 15 | 16 | public String getName() { 17 | return name; 18 | } 19 | 20 | public void setName(String name) { 21 | this.name = name; 22 | } 23 | 24 | public double getPrecentage() { 25 | return _precentage; 26 | } 27 | 28 | public void setPrecentage(double precentage) { 29 | this._precentage = precentage; 30 | } 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/AlmRestException.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service; 2 | 3 | public class AlmRestException extends Exception{ 4 | 5 | private static final long serialVersionUID = -5386355008323770238L; 6 | 7 | public AlmRestException(Throwable cause) { 8 | 9 | super(cause); 10 | } 11 | 12 | public AlmRestException(String message) { 13 | 14 | super(message); 15 | } 16 | 17 | public AlmRestException(String message, Throwable cause) { 18 | 19 | super(message, cause); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/AlmRestInfo.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service; 2 | 3 | public class AlmRestInfo { 4 | 5 | private String serverUrl; 6 | private String userName; 7 | private String password; 8 | private String domain; 9 | private String project; 10 | private String timeout; 11 | 12 | public AlmRestInfo(String serverUrl, String domain, String project, String userName, String password, String timeout) { 13 | this.serverUrl = serverUrl; 14 | this.userName = userName; 15 | this.password = password; 16 | this.domain = domain; 17 | this.project = project; 18 | this.timeout = timeout; 19 | 20 | } 21 | 22 | public String getServerUrl(){ 23 | return serverUrl; 24 | } 25 | 26 | public void setServerUrl(String serverUrl) { 27 | this.serverUrl = serverUrl; 28 | } 29 | 30 | public String getUserName(){ 31 | return userName; 32 | } 33 | 34 | public void setUserName(String userName) { 35 | this.userName = userName; 36 | } 37 | 38 | public String getPassword(){ 39 | return password; 40 | } 41 | 42 | public void setPassword(String password) { 43 | this.password = password; 44 | } 45 | 46 | public String getDomain(){ 47 | return domain; 48 | } 49 | 50 | public void setDomain(String domain) { 51 | this.domain = domain; 52 | } 53 | 54 | public String getProject(){ 55 | return project; 56 | } 57 | 58 | public void setProject(String project){ 59 | this.project = project; 60 | } 61 | 62 | public String getTimeout() { 63 | return timeout; 64 | } 65 | 66 | public void setTimeout(String timeout){ 67 | this.timeout = timeout; 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/ExternalEntityUploadException.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service; 2 | 3 | public class ExternalEntityUploadException extends Exception{ 4 | 5 | private static final long serialVersionUID = -5386355008323770238L; 6 | 7 | public ExternalEntityUploadException(Throwable cause) { 8 | 9 | super(cause); 10 | } 11 | 12 | public ExternalEntityUploadException(String message) { 13 | 14 | super(message); 15 | } 16 | 17 | public ExternalEntityUploadException(String message, Throwable cause) { 18 | 19 | super(message, cause); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/ExternalEntityUploadLogger.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service; 2 | 3 | import java.io.PrintStream; 4 | 5 | import com.hp.application.automation.tools.sse.sdk.Logger; 6 | 7 | public class ExternalEntityUploadLogger implements Logger { 8 | 9 | private PrintStream printStream; 10 | 11 | public ExternalEntityUploadLogger(PrintStream printStream) { 12 | this.printStream = printStream; 13 | } 14 | @Override 15 | public void log(String message) { 16 | if(printStream != null) { 17 | printStream.println(message); 18 | } 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/IExternalEntityUploadService.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service; 2 | 3 | public interface IExternalEntityUploadService { 4 | 5 | public void UploadExternalTestSet(AlmRestInfo loginInfo, String reportFilePath, String testsetFolderPath, String testFolderPath, String testingFramework, String testingTool, String subversion, String jobName, String buildUrl) throws ExternalEntityUploadException; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/SystemOutLogger.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Logger; 4 | 5 | public class SystemOutLogger implements Logger { 6 | 7 | @Override 8 | public void log(String message) { 9 | System.out.println(message); 10 | 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmCommonProperties.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface AlmCommonProperties { 4 | 5 | public final String PARENT_ID = "parent-id"; 6 | public final String NAME = "name"; 7 | public final String ID = "id"; 8 | public final String OWNER = "owner"; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmEntity.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | public interface AlmEntity { 7 | 8 | public void setFieldValue(String fieldName, String fieldValue); 9 | public Object getFieldValue(String fieldName); 10 | public void addRelatedEntity(String relationName, AlmEntity entity); 11 | public Map> getRelatedEntities() ; 12 | 13 | public String getName(); 14 | 15 | public String getId(); 16 | 17 | public void setId(String id); 18 | 19 | public String getRestPrefix(); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmRun.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface AlmRun extends AlmEntity{ 4 | public final String RUN_SUBTYPE_ID = "subtype-id"; 5 | public final String RUN_STATUS = "status"; 6 | public final String RUN_DETAIL = "detail"; 7 | public final String RUN_EXECUTION_DATE = "execution-date"; 8 | public final String RUN_EXECUTION_TIME = "execution-time"; 9 | public final String RUN_DURATION = "duration"; 10 | public final String RUN_CONFIG_ID ="test-config-id"; 11 | public final String RUN_CYCLE_ID = "cycle-id"; 12 | public final String RUN_TEST_ID = "test-id"; 13 | public final String RUN_TESTCYCL_UNIQUE_ID = "testcycl-id"; 14 | public final String RUN_BUILD_REVISION= "build-revision"; 15 | public final String RUN_JENKINS_JOB_NAME="jenkins-job-name"; 16 | public final String RUN_JENKINS_URL="jenkins-url"; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmRunImpl.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public class AlmRunImpl extends AlmEntityImpl implements AlmRun { 4 | 5 | private static String restPrefix = "runs"; 6 | public String getRestPrefix() { 7 | return restPrefix; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface AlmTest extends AlmEntity{ 4 | public final String TEST_NAME = "name"; 5 | public final String TEST_TYPE = "subtype-id"; 6 | public final String TS_TESTING_FRAMEWORK = "testing-framework"; 7 | public final String TS_TESTING_TOOL = "testing-tool"; 8 | public final String TS_UT_CLASS_NAME = "ut-class-name"; 9 | public final String TS_UT_METHOD_NAME = "ut-method-name"; 10 | public final String TEST_RESPONSIBLE = "owner"; 11 | public final String TS_UT_PACKAGE_NAME = "ut-package-name"; 12 | 13 | public String getKey(); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestConfig.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface AlmTestConfig extends AlmEntity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestConfigImpl.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public class AlmTestConfigImpl extends AlmEntityImpl implements AlmTestConfig { 4 | 5 | private static String restPrefix = "test-configs"; 6 | public String getRestPrefix() { 7 | return restPrefix; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestFolder.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface AlmTestFolder extends AlmEntity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestFolderImpl.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public class AlmTestFolderImpl extends AlmEntityImpl implements AlmTestFolder { 4 | 5 | private static String restPrefix = "test-folders"; 6 | public String getRestPrefix() { 7 | return restPrefix; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestInstance.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface AlmTestInstance extends AlmEntity{ 4 | 5 | public final String TEST_INSTANCE_SUBTYPE_ID = "subtype-id"; 6 | public final String TEST_INSTANCE_EXEC_DATE = "exec-date"; 7 | public final String TEST_INSTANCE_EXEC_TIME = "exec-time"; 8 | public final String TEST_INSTANCE_TESTSET_ID = "cycle-id"; 9 | public final String TEST_INSTANCE_CONFIG_ID= "test-config-id"; 10 | public final String TEST_INSTANCE_TEST_ID = "test-id"; 11 | public final String TEST_INSTANCE_TESTER_NAME = "owner"; 12 | 13 | public String getKey(); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestInstanceImpl.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public class AlmTestInstanceImpl extends AlmEntityImpl implements 4 | AlmTestInstance { 5 | private static String restPrefix = "test-instances"; 6 | public String getRestPrefix() { 7 | return restPrefix; 8 | } 9 | 10 | public String getKey() { 11 | 12 | return getFieldValue(AlmTestInstance.TEST_INSTANCE_TESTSET_ID) + "_" 13 | + getFieldValue(AlmTestInstance.TEST_INSTANCE_CONFIG_ID) + "_" 14 | + getFieldValue(AlmTestInstance.TEST_INSTANCE_TEST_ID); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestSet.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface AlmTestSet extends AlmEntity{ 4 | 5 | public final String TESTSET_NAME = "name"; 6 | public final String TESTSET_SUB_TYPE_ID = "subtype-id"; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestSetFolder.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface AlmTestSetFolder extends AlmEntity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestSetFolderImpl.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public class AlmTestSetFolderImpl extends AlmEntityImpl implements 4 | AlmTestSetFolder { 5 | private static String restPrefix = "test-set-folders"; 6 | public String getRestPrefix() { 7 | return restPrefix; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/AlmTestSetImpl.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public class AlmTestSetImpl extends AlmEntityImpl implements AlmTestSet { 4 | private static String restPrefix = "test-sets"; 5 | public String getRestPrefix() { 6 | return restPrefix; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/EntityRelation.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface EntityRelation { 4 | public final String TESTSET_TO_TESTINSTANCE_CONTAINMENT_RELATION = "TESTSET_TO_TESTINSTANCE_CONTAINMENT_RELATION"; 5 | public final String TEST_TO_TESTINSTANCE_REALIZATION_RELATION = "TEST_TO_TESTINSTANCE_REALIZATION_RELATION"; 6 | public final String TESTINSTANCE_TO_RUN_REALIZATION_RELATION = "TESTINSTANCE_TO_RUN_REALIZATION_RELATION"; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/almentities/IAlmConsts.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.almentities; 2 | 3 | public interface IAlmConsts { 4 | 5 | public interface IStatuses { 6 | public final String NO_RUN = "No Run"; 7 | public final String PASSED = "Passed"; 8 | public final String FAILED = "Failed"; 9 | 10 | } 11 | public final String IMPORT_RUN_NAME_TEMPLATE = "Import_Run_%d-%d_%d-%d-%d"; 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/rest/GetAlmEntityRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.rest; 2 | 3 | import com.hp.application.automation.tools.results.service.almentities.AlmEntity; 4 | import com.hp.application.automation.tools.sse.sdk.Client; 5 | import com.hp.application.automation.tools.sse.sdk.request.GetRequest; 6 | 7 | public class GetAlmEntityRequest extends GetRequest { 8 | 9 | private AlmEntity almEntity; 10 | private String queryString ; 11 | 12 | public GetAlmEntityRequest(AlmEntity almEntity, Client client) { 13 | super(client, ""); 14 | this.almEntity = almEntity; 15 | 16 | } 17 | 18 | public GetAlmEntityRequest(AlmEntity almEntity, Client client, String queryString) { 19 | super(client, ""); 20 | this.almEntity = almEntity; 21 | this.queryString = queryString; 22 | 23 | } 24 | 25 | protected String getQueryString() { 26 | 27 | return queryString; 28 | } 29 | 30 | protected String getSuffix() { 31 | if(queryString != null && queryString.length() >0 ) { 32 | return almEntity.getRestPrefix(); 33 | 34 | } else { 35 | return String.format("%s/%s", almEntity.getRestPrefix(), almEntity.getId()); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/results/service/rest/UpdateAlmEntityRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.results.service.rest; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import com.hp.application.automation.tools.results.service.almentities.AlmEntity; 7 | import com.hp.application.automation.tools.sse.sdk.Client; 8 | import com.hp.application.automation.tools.sse.sdk.request.GeneralPutBulkRequest; 9 | 10 | public class UpdateAlmEntityRequest extends GeneralPutBulkRequest { 11 | 12 | List> attrForUpdate; 13 | AlmEntity almEntity; 14 | 15 | public UpdateAlmEntityRequest( Client client, AlmEntity almEntity, List> attrForUpdate){ 16 | super(client); 17 | this.attrForUpdate = attrForUpdate; 18 | this.almEntity = almEntity; 19 | } 20 | 21 | @Override 22 | protected String getSuffix() { 23 | // TODO Auto-generated method stub 24 | return String.format("%s/%s", almEntity.getRestPrefix(), almEntity.getId()); 25 | } 26 | 27 | protected List> getFields() { 28 | 29 | return attrForUpdate; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/run/AlmRunTypes.java: -------------------------------------------------------------------------------- 1 | // (c) Copyright 2012 Hewlett-Packard Development Company, L.P. 2 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 3 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 5 | 6 | package com.hp.application.automation.tools.run; 7 | public class AlmRunTypes { 8 | 9 | public enum RunType { 10 | Alm, FileSystem, LoadRunner 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/AUTEnvironmentFolder.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment; 2 | 3 | /** 4 | * Created by barush on 02/11/2014. 5 | */ 6 | public class AUTEnvironmentFolder { 7 | 8 | public final static String ALM_PARAMETER_FOLDER_ID_FIELD = "id"; 9 | public final static String ALM_PARAMETER_FOLDER_PARENT_ID_FIELD = "parent-id"; 10 | public final static String ALM_PARAMETER_FOLDER_NAME_FIELD = "name"; 11 | 12 | private String id; 13 | private String name; 14 | private String parentId; 15 | private String path; 16 | 17 | public AUTEnvironmentFolder(String id, String parentId, String name) { 18 | 19 | this.id = id; 20 | this.parentId = parentId; 21 | this.name = name; 22 | } 23 | 24 | public String getPath() { 25 | return path; 26 | } 27 | 28 | public void setPath(String path) { 29 | this.path = path; 30 | } 31 | 32 | public String getId() { 33 | return id; 34 | } 35 | 36 | public String getName() { 37 | return name; 38 | } 39 | 40 | public String getParentId() { 41 | return parentId; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/AUTEnvironmnentParameter.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment; 2 | 3 | /** 4 | * Created by barush on 02/11/2014. 5 | */ 6 | public class AUTEnvironmnentParameter { 7 | 8 | public final static String ALM_PARAMETER_ID_FIELD = "id"; 9 | public final static String ALM_PARAMETER_PARENT_ID_FIELD = "parent-id"; 10 | public final static String ALM_PARAMETER_NAME_FIELD = "name"; 11 | public final static String ALM_PARAMETER_VALUE_FIELD = "value"; 12 | 13 | private String id; 14 | private String parentId; 15 | private String name; 16 | private String value; 17 | private String fullPath; 18 | 19 | public AUTEnvironmnentParameter(String id, String parentId, String name) { 20 | 21 | this.id = id; 22 | this.parentId = parentId; 23 | this.name = name; 24 | } 25 | 26 | public String getValue() { 27 | return value; 28 | } 29 | 30 | public void setValue(String value) { 31 | this.value = value; 32 | } 33 | 34 | public String getFullPath() { 35 | return fullPath; 36 | } 37 | 38 | public void setFullPath(String fullPath) { 39 | this.fullPath = fullPath; 40 | } 41 | 42 | public String getId() { 43 | return id; 44 | } 45 | 46 | public String getParentId() { 47 | return parentId; 48 | } 49 | 50 | public String getName() { 51 | return name; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/request/AUTEnvironmentResources.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment.request; 2 | 3 | /** 4 | * Created by barush on 29/10/2014. 5 | */ 6 | public class AUTEnvironmentResources { 7 | 8 | public final static String AUT_ENVIRONMENT_CONFIGURATIONS = "aut-environment-configurations"; 9 | public final static String AUT_ENVIRONMENT_PARAMETER_VALUES = 10 | "aut-environment-parameter-values"; 11 | public final static String AUT_ENVIRONMENTS = "aut-environments"; 12 | public final static String AUT_ENVIRONMENTS_OLD = "AppParamSets"; 13 | public final static String AUT_ENVIRONMENT_PARAMETER_FOLDERS = 14 | "aut-environment-parameter-folders"; 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/request/get/GetAutEnvFoldersByIdRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment.request.get; 2 | 3 | import com.hp.application.automation.tools.sse.autenvironment.request.AUTEnvironmentResources; 4 | import com.hp.application.automation.tools.sse.sdk.Client; 5 | import com.hp.application.automation.tools.sse.sdk.request.GeneralGetRequest; 6 | 7 | /** 8 | * Created by barush on 02/11/2014. 9 | */ 10 | public class GetAutEnvFoldersByIdRequest extends GeneralGetRequest { 11 | 12 | private String folderId; 13 | 14 | public GetAutEnvFoldersByIdRequest(Client client, String folderId) { 15 | 16 | super(client); 17 | this.folderId = folderId; 18 | } 19 | 20 | @Override 21 | protected String getSuffix() { 22 | 23 | return AUTEnvironmentResources.AUT_ENVIRONMENT_PARAMETER_FOLDERS; 24 | } 25 | 26 | @Override 27 | protected String getQueryString() { 28 | 29 | return String.format("query={id[%s]}&page-size=2000", folderId); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/request/get/GetAutEnvironmentByIdOldApiRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment.request.get; 2 | 3 | import com.hp.application.automation.tools.sse.autenvironment.request.AUTEnvironmentResources; 4 | import com.hp.application.automation.tools.sse.sdk.Client; 5 | import com.hp.application.automation.tools.sse.sdk.request.GeneralGetRequest; 6 | 7 | /** 8 | * Created by barush on 02/11/2014. 9 | */ 10 | public class GetAutEnvironmentByIdOldApiRequest extends GeneralGetRequest { 11 | 12 | private String autEnvironmentId; 13 | 14 | public GetAutEnvironmentByIdOldApiRequest(Client client, String autEnvironmentId) { 15 | 16 | super(client); 17 | this.autEnvironmentId = autEnvironmentId; 18 | } 19 | 20 | @Override 21 | protected String getSuffix() { 22 | 23 | return AUTEnvironmentResources.AUT_ENVIRONMENTS_OLD; 24 | 25 | } 26 | 27 | @Override 28 | protected String getQueryString() { 29 | 30 | return String.format("query={id[%s]}", autEnvironmentId); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/request/get/GetAutEnvironmentByIdRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment.request.get; 2 | 3 | import com.hp.application.automation.tools.sse.autenvironment.request.AUTEnvironmentResources; 4 | import com.hp.application.automation.tools.sse.sdk.Client; 5 | import com.hp.application.automation.tools.sse.sdk.request.GeneralGetRequest; 6 | 7 | /** 8 | * Created by barush on 02/11/2014. 9 | */ 10 | public class GetAutEnvironmentByIdRequest extends GeneralGetRequest { 11 | 12 | private String autEnvironmentId; 13 | 14 | public GetAutEnvironmentByIdRequest(Client client, String autEnvironmentId) { 15 | 16 | super(client); 17 | this.autEnvironmentId = autEnvironmentId; 18 | } 19 | 20 | @Override 21 | protected String getSuffix() { 22 | 23 | return AUTEnvironmentResources.AUT_ENVIRONMENTS; 24 | 25 | } 26 | 27 | @Override 28 | protected String getQueryString() { 29 | 30 | return String.format("query={id[%s]}", autEnvironmentId); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/request/get/GetAutEnvironmentConfigurationByIdRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment.request.get; 2 | 3 | import com.hp.application.automation.tools.sse.autenvironment.request.AUTEnvironmentResources; 4 | import com.hp.application.automation.tools.sse.sdk.Client; 5 | import com.hp.application.automation.tools.sse.sdk.request.GeneralGetRequest; 6 | 7 | /** 8 | * Created by barush on 03/11/2014. 9 | */ 10 | public class GetAutEnvironmentConfigurationByIdRequest extends GeneralGetRequest { 11 | 12 | private String autEnvironmentConfigurationId; 13 | 14 | public GetAutEnvironmentConfigurationByIdRequest( 15 | Client client, 16 | String autEnvironmentConfigurationId) { 17 | 18 | super(client); 19 | this.autEnvironmentConfigurationId = autEnvironmentConfigurationId; 20 | } 21 | 22 | @Override 23 | protected String getSuffix() { 24 | 25 | return AUTEnvironmentResources.AUT_ENVIRONMENT_CONFIGURATIONS; 26 | 27 | } 28 | 29 | @Override 30 | protected String getQueryString() { 31 | 32 | return String.format("query={id[%s]}", autEnvironmentConfigurationId); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/request/get/GetParametersByAutEnvConfIdRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment.request.get; 2 | 3 | import com.hp.application.automation.tools.sse.autenvironment.request.AUTEnvironmentResources; 4 | import com.hp.application.automation.tools.sse.sdk.Client; 5 | import com.hp.application.automation.tools.sse.sdk.request.GeneralGetRequest; 6 | 7 | /** 8 | * Created by barush on 30/10/2014. 9 | */ 10 | public class GetParametersByAutEnvConfIdRequest extends GeneralGetRequest { 11 | 12 | String configurationId; 13 | 14 | public GetParametersByAutEnvConfIdRequest(Client client, String configurationId) { 15 | 16 | super(client); 17 | this.configurationId = configurationId; 18 | } 19 | 20 | @Override 21 | protected String getSuffix() { 22 | 23 | return AUTEnvironmentResources.AUT_ENVIRONMENT_PARAMETER_VALUES; 24 | } 25 | 26 | @Override 27 | protected String getQueryString() { 28 | 29 | return String.format("query={app-param-value-set-id[%s]}&page-size=2000", configurationId); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/autenvironment/request/post/CreateAutEnvConfRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.autenvironment.request.post; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import com.hp.application.automation.tools.common.Pair; 7 | import com.hp.application.automation.tools.sse.autenvironment.request.AUTEnvironmentResources; 8 | import com.hp.application.automation.tools.sse.sdk.Client; 9 | import com.hp.application.automation.tools.sse.sdk.request.GeneralPostRequest; 10 | 11 | /** 12 | * Created by barush on 29/10/2014. 13 | */ 14 | public class CreateAutEnvConfRequest extends GeneralPostRequest { 15 | 16 | private String autEnvironmentId; 17 | private String name; 18 | 19 | public CreateAutEnvConfRequest(Client client, String autEnvironmentId, String name) { 20 | 21 | super(client); 22 | this.autEnvironmentId = autEnvironmentId; 23 | this.name = name; 24 | } 25 | 26 | @Override 27 | protected String getSuffix() { 28 | return AUTEnvironmentResources.AUT_ENVIRONMENT_CONFIGURATIONS; 29 | } 30 | 31 | @Override 32 | protected List> getDataFields() { 33 | 34 | List> ret = new ArrayList>(); 35 | ret.add(new Pair("app-param-set-id", autEnvironmentId)); 36 | ret.add(new Pair("name", name)); 37 | 38 | return ret; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/common/RestXmlUtils.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.common; 2 | 3 | import com.hp.application.automation.tools.rest.RESTConstants; 4 | 5 | import java.util.HashMap; 6 | import java.util.Map; 7 | 8 | 9 | /*** 10 | * @author Effi Bar-She'an 11 | * @author Dani Schreiber 12 | */ 13 | public class RestXmlUtils { 14 | 15 | public static String fieldXml(String field, String value) { 16 | 17 | return String.format("%s", field, value); 18 | } 19 | 20 | public static Map getAppXmlHeaders() { 21 | 22 | Map ret = new HashMap(); 23 | ret.put(RESTConstants.CONTENT_TYPE, RESTConstants.APP_XML); 24 | ret.put(RESTConstants.ACCEPT, RESTConstants.APP_XML); 25 | 26 | return ret; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/common/StringUtils.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.common; 2 | 3 | /*** 4 | * 5 | * @author Effi Bar-She'an 6 | * @author Dani Schreiber 7 | * 8 | */ 9 | 10 | public class StringUtils { 11 | 12 | public static final String NEW_LINE = System.getProperty("line.separator"); 13 | public static final String FILE_SEPARATOR = System.getProperty("file.separator"); 14 | public static final String PATH_SEPARATOR = System.getProperty("path.separator"); 15 | 16 | public static final String EMPTY_STRING = ""; 17 | public static final String SPACE = " "; 18 | public static final String PERIOD = "."; 19 | public static final String TAB = "\t"; 20 | 21 | public static boolean isNullOrEmpty(String value) { 22 | 23 | return (value == null) || (value.length() == 0); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/result/PublisherFactory.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.result; 2 | 3 | import com.hp.application.automation.tools.common.SSEException; 4 | import com.hp.application.automation.tools.model.SseModel; 5 | import com.hp.application.automation.tools.sse.sdk.Client; 6 | 7 | public class PublisherFactory { 8 | 9 | public Publisher create(Client client, String runType, String entityId, String runId) { 10 | 11 | Publisher ret = null; 12 | if ((SseModel.BVS.equals(runType)) || (SseModel.TEST_SET.equals(runType))) { 13 | ret = new LabPublisher(client, entityId, runId); 14 | } else if (SseModel.PC.equals(runType)) { 15 | ret = new PCPublisher(client, entityId, runId); 16 | } else { 17 | throw new SSEException("PublisherFactory: Unrecognized run type"); 18 | } 19 | 20 | return ret; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/result/model/junit/JUnitTestCaseStatus.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.result.model.junit; 2 | 3 | /** 4 | * 5 | * @author Amir Zahavi 6 | * 7 | */ 8 | public interface JUnitTestCaseStatus { 9 | 10 | String ERROR = "error"; 11 | String PASS = "pass"; 12 | String FAILURE = "failure"; 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/Client.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk; 2 | 3 | import java.util.Map; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | public interface Client { 12 | 13 | Response httpGet( 14 | String url, 15 | String queryString, 16 | Map headers, 17 | ResourceAccessLevel resourceAccessLevel); 18 | 19 | Response httpPost( 20 | String url, 21 | byte[] data, 22 | Map headers, 23 | ResourceAccessLevel resourceAccessLevel); 24 | 25 | Response httpPut( 26 | String url, 27 | byte[] data, 28 | Map headers, 29 | ResourceAccessLevel resourceAccessLevel); 30 | 31 | String build(String suffix); 32 | 33 | String buildRestRequest(String suffix); 34 | 35 | String buildWebUIRequest(String suffix); 36 | 37 | String getServerUrl(); 38 | 39 | String getUsername(); 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/ConsoleLogger.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk; 2 | 3 | /** 4 | * 5 | * @author Amir Zahavi 6 | * 7 | */ 8 | public class ConsoleLogger implements Logger { 9 | 10 | @Override 11 | public void log(String message) { 12 | 13 | System.out.println(message); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/Logger.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk; 2 | 3 | /*** 4 | * 5 | * @author Effi Bar-She'an 6 | * @author Dani Schreiber 7 | * 8 | */ 9 | 10 | public interface Logger { 11 | 12 | public void log(String message); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/PCRunResponse.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk; 2 | 3 | import com.hp.application.automation.tools.sse.common.StringUtils; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | public class PCRunResponse extends RunResponse { 12 | 13 | @Override 14 | protected String parseRunId(String runIdResponse) { 15 | String ret = runIdResponse; 16 | if (!StringUtils.isNullOrEmpty(ret)) { 17 | String runIdStr = "qcRunID="; 18 | if (ret.contains(runIdStr)) { 19 | ret = ret.substring(ret.indexOf(runIdStr) + runIdStr.length(), ret.length()); 20 | } 21 | } 22 | return ret; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/ResourceAccessLevel.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk; 2 | 3 | import com.hp.application.automation.tools.rest.RESTConstants; 4 | 5 | public enum ResourceAccessLevel { 6 | PUBLIC(null), PROTECTED(RESTConstants.PtaL), PRIVATE(RESTConstants.PvaL); 7 | 8 | private String _headerName; 9 | 10 | private ResourceAccessLevel(String headerName) { 11 | 12 | _headerName = headerName; 13 | } 14 | 15 | public String getUserHeaderName() { 16 | 17 | return _headerName; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/RunResponse.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk; 2 | 3 | import com.hp.application.automation.tools.sse.common.StringUtils; 4 | import com.hp.application.automation.tools.sse.common.XPathUtils; 5 | 6 | /*** 7 | * 8 | * @author Effi Bar-She'an 9 | * @author Dani Schreiber 10 | * 11 | */ 12 | public class RunResponse { 13 | 14 | private String _successStatus; 15 | private String _runId; 16 | 17 | public void initialize(Response response) { 18 | 19 | String xml = response.toString(); 20 | _successStatus = XPathUtils.getAttributeValue(xml, "SuccessStaus"); 21 | _runId = parseRunId(XPathUtils.getAttributeValue(xml, "info")); 22 | } 23 | 24 | protected String parseRunId(String runIdResponse) { 25 | 26 | String ret = runIdResponse; 27 | if (StringUtils.isNullOrEmpty(ret)) { 28 | ret = "No Run ID"; 29 | } 30 | 31 | return ret; 32 | } 33 | 34 | public String getRunId() { 35 | 36 | return _runId; 37 | } 38 | 39 | public boolean isSucceeded() { 40 | 41 | return "1".equals(_successStatus); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/handler/BvsRunHandler.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.handler; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | public class BvsRunHandler extends RunHandler { 12 | 13 | public BvsRunHandler(Client client, String entityId) { 14 | 15 | super(client, entityId); 16 | } 17 | 18 | @Override 19 | protected String getStartSuffix() { 20 | 21 | return String.format("procedures/%s/startrunprocedure", _entityId); 22 | } 23 | 24 | @Override 25 | public String getNameSuffix() { 26 | 27 | return String.format("procedures/%s", getEntityId()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/handler/Handler.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.handler; 2 | 3 | import com.hp.application.automation.tools.sse.common.StringUtils; 4 | import com.hp.application.automation.tools.sse.sdk.Client; 5 | 6 | public abstract class Handler { 7 | 8 | protected final Client _client; 9 | protected final String _entityId; 10 | protected String _runId = StringUtils.EMPTY_STRING; 11 | protected String _timeslotId = StringUtils.EMPTY_STRING; 12 | 13 | public Handler(Client client, String entityId) { 14 | 15 | _client = client; 16 | _entityId = entityId; 17 | } 18 | 19 | public Handler(Client client, String entityId, String runId) { 20 | 21 | this(client, entityId); 22 | _runId = runId; 23 | } 24 | 25 | public String getRunId() { 26 | 27 | return _runId; 28 | } 29 | 30 | public String getEntityId() { 31 | 32 | return _entityId; 33 | } 34 | 35 | public void setRunId(String runId) { 36 | _runId = runId; 37 | } 38 | 39 | public String getTimeslotId() { 40 | 41 | return _timeslotId; 42 | } 43 | 44 | public void setTimeslotId(String timeslotId) { 45 | 46 | _timeslotId = timeslotId; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/handler/PollHandlerFactory.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.handler; 2 | 3 | import com.hp.application.automation.tools.common.SSEException; 4 | import com.hp.application.automation.tools.model.SseModel; 5 | import com.hp.application.automation.tools.sse.sdk.Client; 6 | 7 | public class PollHandlerFactory { 8 | 9 | public PollHandler create(Client client, String runType, String entityId) { 10 | 11 | PollHandler ret = null; 12 | if ((SseModel.BVS.equals(runType)) || (SseModel.TEST_SET.equals(runType))) { 13 | ret = new LabPollHandler(client, entityId); 14 | } else if (SseModel.PC.equals(runType)) { 15 | ret = new PCPollHandler(client, entityId); 16 | } else { 17 | throw new SSEException("PollHandlerFactory: Unrecognized run type"); 18 | } 19 | 20 | return ret; 21 | } 22 | 23 | public PollHandler create(Client client, String runType, String entityId, int interval) { 24 | 25 | PollHandler ret = null; 26 | if ((SseModel.BVS.equals(runType)) || (SseModel.TEST_SET.equals(runType))) { 27 | ret = new LabPollHandler(client, entityId, interval); 28 | } else if (SseModel.PC.equals(runType)) { 29 | ret = new PCPollHandler(client, entityId, interval); 30 | } else { 31 | throw new SSEException("PollHandlerFactory: Unrecognized run type"); 32 | } 33 | 34 | return ret; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/handler/RunHandlerFactory.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.handler; 2 | 3 | import com.hp.application.automation.tools.common.SSEException; 4 | import com.hp.application.automation.tools.model.SseModel; 5 | import com.hp.application.automation.tools.sse.sdk.Client; 6 | 7 | public class RunHandlerFactory { 8 | 9 | public RunHandler create(Client client, String runType, String entityId) { 10 | 11 | RunHandler ret = null; 12 | if (SseModel.BVS.equals(runType)) { 13 | ret = new BvsRunHandler(client, entityId); 14 | } else if (SseModel.TEST_SET.equals(runType)) { 15 | ret = new TestSetRunHandler(client, entityId); 16 | } else if (SseModel.PC.equals(runType)) { 17 | ret = new PCRunHandler(client, entityId); 18 | } else { 19 | throw new SSEException("RunHandlerFactory: Unrecognized run type"); 20 | } 21 | 22 | return ret; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/handler/TestSetRunHandler.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.handler; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | public class TestSetRunHandler extends RunHandler { 12 | 13 | public TestSetRunHandler(Client client, String entityId) { 14 | 15 | super(client, entityId); 16 | } 17 | 18 | @Override 19 | protected String getStartSuffix() { 20 | 21 | return String.format("test-sets/%s/startruntestset", _entityId); 22 | } 23 | 24 | @Override 25 | public String getNameSuffix() { 26 | 27 | return String.format("test-sets/%s", getEntityId()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/CreateSiteSessionRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.rest.RESTConstants; 4 | import com.hp.application.automation.tools.sse.sdk.Client; 5 | 6 | import java.util.HashMap; 7 | import java.util.Map; 8 | 9 | public class CreateSiteSessionRequest extends GeneralPostRequest { 10 | 11 | public CreateSiteSessionRequest(Client client) { 12 | 13 | super(client); 14 | } 15 | 16 | @Override 17 | protected String getUrl() { 18 | 19 | return _client.build("rest/site-session"); 20 | } 21 | 22 | @Override 23 | protected Map getHeaders() { 24 | 25 | Map ret = new HashMap(); 26 | ret.put(RESTConstants.CONTENT_TYPE, RESTConstants.TEXT_PLAIN); 27 | 28 | return ret; 29 | } 30 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/EventLogRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | public class EventLogRequest extends GetRequest { 6 | 7 | private final String _timeslotId; 8 | 9 | public EventLogRequest(Client client, String timeslotId) { 10 | 11 | super(client, timeslotId); 12 | _timeslotId = timeslotId; 13 | } 14 | 15 | @Override 16 | protected String getSuffix() { 17 | 18 | return String.format( 19 | "event-log-reads?query={context[\"*Timeslot:%%20%s%%3B*\"]}&fields=id,event-type,creation-time,action,description", 20 | _timeslotId); 21 | } 22 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GeneralGetRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | import com.hp.application.automation.tools.sse.sdk.ResourceAccessLevel; 5 | import com.hp.application.automation.tools.sse.sdk.Response; 6 | 7 | /** 8 | * Created by barush on 29/10/2014. 9 | */ 10 | public abstract class GeneralGetRequest extends GeneralRequest { 11 | 12 | protected GeneralGetRequest(Client client) { 13 | super(client); 14 | } 15 | 16 | protected String getQueryString() { 17 | 18 | return null; 19 | } 20 | 21 | @Override 22 | public Response perform() { 23 | 24 | return _client.httpGet( 25 | getUrl(), 26 | getQueryString(), 27 | getHeaders(), 28 | ResourceAccessLevel.PROTECTED); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GeneralRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | import com.hp.application.automation.tools.sse.sdk.Response; 5 | 6 | import java.util.Map; 7 | 8 | /** 9 | * Created by barush on 29/10/2014. 10 | */ 11 | public abstract class GeneralRequest { 12 | 13 | protected final Client _client; 14 | 15 | protected GeneralRequest(Client client) { 16 | 17 | _client = client; 18 | } 19 | 20 | public final Response execute() { 21 | 22 | Response ret = new Response(); 23 | try { 24 | ret = perform(); 25 | } catch (Throwable cause) { 26 | ret.setFailure(cause); 27 | } 28 | 29 | return ret; 30 | } 31 | 32 | protected abstract Response perform(); 33 | 34 | protected String getSuffix() { 35 | return null; 36 | } 37 | 38 | protected Map getHeaders() { 39 | 40 | return null; 41 | } 42 | 43 | protected String getBody() { 44 | 45 | return null; 46 | } 47 | 48 | protected String getUrl() { 49 | 50 | return _client.buildRestRequest(getSuffix()); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GetALMVersionRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.rest.RESTConstants; 4 | import com.hp.application.automation.tools.sse.common.RestXmlUtils; 5 | import com.hp.application.automation.tools.sse.sdk.Client; 6 | 7 | import java.util.Map; 8 | 9 | /** 10 | * @author Effi Bar-She'an 11 | */ 12 | public class GetALMVersionRequest extends GetRequest { 13 | 14 | public GetALMVersionRequest(Client client) { 15 | 16 | super(client, null); 17 | } 18 | 19 | @Override 20 | protected String getSuffix() { 21 | 22 | return String.format("%s/sa/version", RESTConstants.REST_PROTOCOL); 23 | } 24 | 25 | @Override 26 | protected String getUrl() { 27 | 28 | return String.format("%s%s", _client.getServerUrl(), getSuffix()); 29 | } 30 | 31 | @Override 32 | protected Map getHeaders() { 33 | 34 | return RestXmlUtils.getAppXmlHeaders(); 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GetLabRunEntityDataRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | 12 | public class GetLabRunEntityDataRequest extends GetRequest { 13 | 14 | public GetLabRunEntityDataRequest(Client client, String runId) { 15 | 16 | super(client, runId); 17 | } 18 | 19 | @Override 20 | protected String getSuffix() { 21 | 22 | return String.format("procedure-runs/%s", _runId); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GetLabRunEntityTestSetRunsRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | public class GetLabRunEntityTestSetRunsRequest extends GetRequest { 12 | 13 | public GetLabRunEntityTestSetRunsRequest(Client client, String runId) { 14 | 15 | super(client, runId); 16 | } 17 | 18 | @Override 19 | protected String getSuffix() { 20 | return "procedure-testset-instance-runs"; 21 | } 22 | 23 | @Override 24 | protected String getQueryString() { 25 | 26 | return String.format("query={procedure-run[%s]}&page-size=2000", _runId); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GetPCRunEntityDataRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | 12 | public class GetPCRunEntityDataRequest extends GetRequest { 13 | 14 | public GetPCRunEntityDataRequest(Client client, String runId) { 15 | 16 | super(client, runId); 17 | } 18 | 19 | @Override 20 | protected String getSuffix() { 21 | 22 | return String.format("runs/%s", _runId); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GetPCRunEntityTestSetRunsRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | public class GetPCRunEntityTestSetRunsRequest extends GetRequest { 12 | 13 | public GetPCRunEntityTestSetRunsRequest(Client client, String runId) { 14 | 15 | super(client, runId); 16 | } 17 | 18 | @Override 19 | protected String getSuffix() { 20 | 21 | return String.format("runs/%s", _runId); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GetRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | 12 | public abstract class GetRequest extends GeneralGetRequest { 13 | 14 | protected final String _runId; 15 | 16 | protected GetRequest(Client client, String runId) { 17 | 18 | super(client); 19 | _runId = runId; 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/GetRunEntityNameRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | public class GetRunEntityNameRequest extends GetRequest { 12 | 13 | private final String _nameSuffix; 14 | 15 | public GetRunEntityNameRequest(Client client, String suffix, String entityId) { 16 | 17 | super(client, entityId); 18 | _nameSuffix = suffix; 19 | 20 | } 21 | 22 | @Override 23 | protected String getSuffix() { 24 | 25 | return _nameSuffix; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/PollSSERunRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | 12 | public class PollSSERunRequest extends GetRequest { 13 | 14 | private final String _runId; 15 | 16 | public PollSSERunRequest(Client client, String runId) { 17 | 18 | super(client, runId); 19 | _runId = runId; 20 | } 21 | 22 | @Override 23 | protected String getSuffix() { 24 | 25 | return String.format("procedure-runs/%s", _runId); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/PostRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | public abstract class PostRequest extends GeneralPostRequest { 12 | 13 | protected final String _runId; 14 | 15 | protected PostRequest(Client client, String runId) { 16 | 17 | super(client); 18 | _runId = runId; 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/hp/application/automation/tools/sse/sdk/request/StopEntityRequest.java: -------------------------------------------------------------------------------- 1 | package com.hp.application.automation.tools.sse.sdk.request; 2 | 3 | import com.hp.application.automation.tools.sse.sdk.Client; 4 | 5 | /*** 6 | * 7 | * @author Effi Bar-She'an 8 | * @author Dani Schreiber 9 | * 10 | */ 11 | 12 | public class StopEntityRequest extends PostRequest { 13 | 14 | public StopEntityRequest(Client client, String runId) { 15 | 16 | super(client, runId); 17 | } 18 | 19 | @Override 20 | protected String getSuffix() { 21 | 22 | return String.format("procedure-runs/%s/stop", _runId); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/model/AutEnvironmentModel/config.properties: -------------------------------------------------------------------------------- 1 | AlmServersAreNotDefined=HP ALM servers are not defined. To use this build step, goto Manage Jenkins->Configure System->Application Lifecycle Management->Add ALM server 2 | 3 | AutEnvironmentConfigurationDescription=Use this build step to assign values to AUT Environment Configuration in ALM. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/model/AutEnvironmentModel/help-autEnvironmentId.html: -------------------------------------------------------------------------------- 1 |
2 | Assign ID of an AUT Environment that exists in the ALM project you selected. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/model/AutEnvironmentModel/help-outputParameter.html: -------------------------------------------------------------------------------- 1 |
2 | The name of the build environment parameter that will get the ID of the updated/created AUT Environment 3 | Configuration. 4 | It then can be used as a parameter for following build steps. 5 |

6 | The parameter must be a String Parameter. 7 |

8 | If you named your parameter 'output_parameter' put here 'output_parameter' (exactly the same value). 9 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/model/AutEnvironmentModel/help-pathToJsonFile.html: -------------------------------------------------------------------------------- 1 |
2 | A path to the JSON file that will be loaded in order to assign values to all the AUT Environment Parameters of 'From 3 | JSON' type. 4 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/model/AutEnvironmentParameterModel/help-name.html: -------------------------------------------------------------------------------- 1 |
2 | The name must be set in the same hierarchical structure as it defined in ALM ( 'Parameters' tab of the AUT 3 | Environment) 4 |

5 | For example: 'Parameters/DB_Setting/Oracle/username' 6 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/model/AutEnvironmentParameterModel/help-paramType.html: -------------------------------------------------------------------------------- 1 |
2 | Manual - the value you'll assign for 'Parameter value' field will be used as is. 3 |

4 | Environmnet - the value you'll assign for 'Parameter value' will be looked for in the environment parameters and the 5 | resolved value will be used. 6 | If you named your parameter 'my_parameter' put here 'my_parameter' (exactly the same value). 7 |

8 | From JSON - the value you'll assign for 'Parameter value' will be looked for in the JSON file you specified for the 9 | 'Path to JSON file' entry. 10 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/model/AutEnvironmentParameterModel/help-value.html: -------------------------------------------------------------------------------- 1 |
2 | If you are using a 'From JSON' type, specify here the path for the element you would like to get. 3 |

4 | Make sure you are using JsonPath style for defining it. 5 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/octane/actions/UFTTestDetectionPublisher/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/octane/actions/UFTTestDetectionPublisher/help-workspaceName.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | Select Workspace name to assign the detected UFT tests to. 19 |
20 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/octane/actions/cucumber/CucumberTestResultsActionPublisher/config.jelly: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/octane/actions/cucumber/CucumberTestResultsActionPublisher/config.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | # 16 | 17 | description=\ 18 | Fileset \u2018includes\u2019 \ 19 | setting that specifies the generated cucumber XML report files, \ 20 | such as \u2018myproject/target/cucumber-test-reports/*.xml\u2019. \ 21 | Basedir of the fileset is the workspace root. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/octane/actions/cucumber/CucumberTestResultsActionPublisher/help.html: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | When using this action, Jenkins understands and reads the Cucumber test report XML structure. 19 | After reading the structure, Jenkins can provide useful information about Cucumber tests results to HPE ALM Octane. 20 | 21 |

22 | To use the feature, ensure that you have added a Publish JUnit test results post-build action to your build. 23 | Then, specify the path to the Cucumber report XML files in the Ant glob syntax. 24 | Be sure not to include any non-Cucumber-report files in this path. You can specify multiple patterns by separating them with commas. 25 |

-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/octane/configuration/ConfigurationAction/index.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2017 Hewlett-Packard Development Company, L.P. 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | # 16 | 17 | mqm.configuration.title=HPE ALM Octane Pipelines -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/LoadRunnerTestStep/config.properties: -------------------------------------------------------------------------------- 1 | DontForgetThePublisher=Make sure to enable the Publish HP \ 2 | tests result option in the Post-build \ 3 | Actions section. This allows the tests results to be published. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/LoadRunnerTestStep/help-archiveTestResultsMode.html: -------------------------------------------------------------------------------- 1 |
2 | To view the run results, do one of the following:
3 | 1) In the left pane, click the Report and Summary link to display the report link and the link to the report folder. From this link, you can open the run results directly in your browser or open the artifacts
4 | 2) From the Build Artifacts:
5 | • Open the run_results.html to view the run results.
6 | • Download the zipped report to your desired location and unzip it. In the HP Run Results Viewer, select the Results.xml file found inside the unzipped folder.
7 | Note that this option is valid only when using the “Execute HP test from file system” build step. 8 |
9 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/LoadRunnerTestStep/help-controllerPollingInterval.html: -------------------------------------------------------------------------------- 1 |
2 | Polling interval for checking the scenario status, in seconds. The default is 30 seconds. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/LoadRunnerTestStep/help-fsTests.html: -------------------------------------------------------------------------------- 1 |
2 | List of tests or folders that contain tests, to run. Each line should contain a single test, folder, or MTB file. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/LoadRunnerTestStep/help-fsTimeout.html: -------------------------------------------------------------------------------- 1 |
2 | Timeout value in seconds. If left empty, there is no timeout. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/LoadRunnerTestStep/help-ignoreErrorStrings.html: -------------------------------------------------------------------------------- 1 |
2 | Ignore errors during the scenario run containing any of the strings listed below. For example: "Error: CPU usage for this load generator has exceeded 80%" 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/LoadRunnerTestStep/help-perScenarioTimeOut.html: -------------------------------------------------------------------------------- 1 |
2 | The maximum time allotted for scenario execution, in minutes. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/SseBuildAndPublishStep/config.properties: -------------------------------------------------------------------------------- 1 | DontForgetThePublisher=Don''t forget to enable the Publish HP \ 2 | tests result option in the Post-build \ 3 | Actions section so that the tests results are published. 4 | 5 | AlmServersAreNotDefined=HP ALM servers are not defined. To use this build step, goto Manage Jenkins->Configure System->Application Lifecycle Management->Add ALM server 6 | 7 | ServerSideTests=Use this build step to run ALM server-side functional test sets and Build Verification Suites. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/SseBuildAndPublishStep/help-archiveTestResultsMode.html: -------------------------------------------------------------------------------- 1 |
2 | To view the run results, do one of the following:
3 | 1) In the left pane, click the Report and Summary link to display the report link and the link to the report folder. From this link, you can open the run results directly in your browser or open the artifacts
4 | 2) From the Build Artifacts:
5 | • Open the run_results.html to view the run results.
6 | • Download the zipped report to your desired location and unzip it. In the HP Run Results Viewer, select the Results.xml file found inside the unzipped folder.
7 | Note that this option is valid only when using the “Execute HP test from file system” build step. 8 |
9 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/SseBuildAndPublishStep/help-environmentConfigurationId.html: -------------------------------------------------------------------------------- 1 |
2 | To find the ID of your environment configuration, right-click the entity, copy the URL, and paste it to a text editor. Use the number associated with the EntityID at the end of the URL. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/UftScenarioLoadStep/config.properties: -------------------------------------------------------------------------------- 1 | DontForgetThePublisher=Make sure to enable the Publish HP \ 2 | tests result option in the Post-build \ 3 | Actions section. This allows the tests results to be published. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/UftScenarioLoadStep/help-archiveTestResultsMode.html: -------------------------------------------------------------------------------- 1 |
2 | To view the run results, do one of the following:
3 | 1) In the left pane, click the Report and Summary link to display the report link and the link to the report folder. From this link, you can open the run results directly in your browser or open the artifacts
4 | 2) From the Build Artifacts:
5 | • Open the run_results.html to view the run results.
6 | • Download the zipped report to your desired location and unzip it. In the HP Run Results Viewer, select the Results.xml file found inside the unzipped folder.
7 | Note that this option is valid only when using the “Execute HP test from file system” build step. 8 |
9 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/pipelineSteps/UftScenarioLoadStep/help-fsTests.html: -------------------------------------------------------------------------------- 1 |
2 | List of tests or folders that contain tests, to run. Each line should contain a single test, folder, or MTB file. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/PerformanceJobReportAction/index.jelly: -------------------------------------------------------------------------------- 1 | 9 | 10 | 12 | 13 | 14 | 15 |

Job Performance Result

16 | 17 |
18 |
19 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/RunResultRecorder/help-archiveTestResultsMode.html: -------------------------------------------------------------------------------- 1 |
2 | To view the run results, do one of the following:
3 | 1) In the left pane, click the Report and Summary link to display the report link and the link to the report folder. From this link, you can open the run results directly in your browser or open the artifacts
4 | 2) From the Build Artifacts:
5 | • Open the run_results.html to view the run results.
6 | • Download the zipped report to your desired location and unzip it. In the HP Run Results Viewer, select the Results.xml file found inside the unzipped folder.
7 | Note that this option is valid only when using the “Execute HP test from file system” build step. 8 |
9 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/config.properties: -------------------------------------------------------------------------------- 1 | 2 | 3 | AlmServersAreNotDefined=HP ALM servers are not defined. To use this build step, goto Manage Jenkins->Configure System->Application Lifecycle Management->Add ALM server -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-almDomain.html: -------------------------------------------------------------------------------- 1 |
2 | The Domain of the project to be used. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-almPassword.html: -------------------------------------------------------------------------------- 1 |
2 | The password for the user to login. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-almProject.html: -------------------------------------------------------------------------------- 1 |
2 | The project to be used. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-almServerName.html: -------------------------------------------------------------------------------- 1 |
2 | The name of the ALM Server. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-almTestFolder.html: -------------------------------------------------------------------------------- 1 |
2 | The path of the test folder that will contain the uploaded test. The path doesn't include the Root test folder (Subject).
3 | For example, sampletestfolder\subfolder means, the tests will be uploaded to test folder named 'subfolder', which is under the test folder named 'sampletestfolder',
4 | and 'sampletestfolder' is under the root test folder 'Subject'. 5 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-almTestSetFolder.html: -------------------------------------------------------------------------------- 1 |
2 | The path of the testset folder that will contain the uploaded testset. The path doesn't include the Root testset folder.
3 | For example, sampletestsetfolder\subfolder means, the testsets will be uploaded to testset folder named 'subfolder', which is under the testset folder named 'sampletestsetfolder',
4 | and 'sampletestsetfolder' is under the root testset folder 'Root'. 5 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-almTimeout.html: -------------------------------------------------------------------------------- 1 |
2 | Number of seconds before timeout. If left empty timeout is unlimited. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-almUserName.html: -------------------------------------------------------------------------------- 1 |
2 | The user name to login. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-jenkinsServerUrl.html: -------------------------------------------------------------------------------- 1 |
2 | The HTTP URL of the Jenkins Server, form example, http://myjenkinsserver.test.com:8080 . 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-testingFramework.html: -------------------------------------------------------------------------------- 1 |
2 | The testing framework that is used when generate the testing result file. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-testingResultFile.html: -------------------------------------------------------------------------------- 1 |
2 | The condition to find the testing result file, start from the root path of the job. For example, **/junitResult.xml to find testing result file for Junit Plugin, **/testng-results.xml to find testing result file for TestNG plugin. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/results/TestResultToALMUploader/help-testingTool.html: -------------------------------------------------------------------------------- 1 |
2 | The testing tool that is used when generate the testing result file. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/AutEnvironmentBuilder/config.jelly: -------------------------------------------------------------------------------- 1 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/AutEnvironmentBuilder/config.properties: -------------------------------------------------------------------------------- 1 | AlmServersAreNotDefined=HP ALM servers are not defined. To use this build step, goto Manage Jenkins->Configure System->Application Lifecycle Management->Add ALM server 2 | 3 | AutEnvironmentConfigurationDescription=Use this build step to assign values to AUT Environment Configuration in ALM. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/AutEnvironmentBuilder/help-environmentConfigurationId.html: -------------------------------------------------------------------------------- 1 |
2 | To find the ID of your environment configuration, right-click the entity, copy the URL, and paste it to a text editor. Use the number associated with the EntityID at the end of the URL. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/PcBuilder/config.properties: -------------------------------------------------------------------------------- 1 | DontForgetThePublisher=Don''t forget to enable the Publish HP \ 2 | tests result option in the Post-build \ 3 | Actions section so that the tests results are published. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/PcBuilder/help-pcServerName.html: -------------------------------------------------------------------------------- 1 |
2 | Hostname or IP address 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/PcBuilder/help-statusBySLA.html: -------------------------------------------------------------------------------- 1 |
2 | Check this option in order to set the build-step status according to a pre-defined SLA (Service Level Agreement) configured within your performance test. 3 | Unless checked, the build-step will be labeled as Passed as long as no failures occurred. 4 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/PcBuilder/help-testInstanceId.html: -------------------------------------------------------------------------------- 1 |
2 | Represents an instance of a performance test within an ALM Test Set. In order to find the test instance id go to: PC Web UI > Test Lab perspective > Performance Test Set table and look for the ID column 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/PcBuilder/help-vudsMode.html: -------------------------------------------------------------------------------- 1 |
2 | A Virtual User Day (VUD) license provides you with a specified number of Vusers (VUDs) that you can run an unlimited number of times within a 24 hour period. 3 | Before using this option, make sure that VUDs licenses are applied in your HP Performance Center environment. 4 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromAlmBuilder/config.properties: -------------------------------------------------------------------------------- 1 | DontForgetThePublisher=Don''t forget to enable the Publish HP \ 2 | tests result option in the Post-build \ 3 | Actions section so that the tests results are published. 4 | 5 | AlmServersAreNotDefined=HP ALM servers are not defined. To use this build step, goto Manage Jenkins->Configure System->Application Lifecycle Management->Add ALM server -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromAlmBuilder/help-AlmRunHost.html: -------------------------------------------------------------------------------- 1 |
2 | If the Run mode field is set to Run remotely, use this field to specify the name of the host that runs the test set. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromAlmBuilder/help-AlmRunMode.html: -------------------------------------------------------------------------------- 1 |
2 | Defines how the test set is executed: 3 |
    4 |
  • Run locally: The test set is run on the machine that performs the build.
  • 5 |
  • Run remotely: The test set is run on the host defined in the Testing Tool host field.
  • 6 |
  • Run on planned host: The test set is run on the host defined in ALM.
  • 7 |
8 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromAlmBuilder/help-AlmTestSets.html: -------------------------------------------------------------------------------- 1 |
2 | List of test sets to run. Each line contains a path to a test set or a test set folder.
3 | For example: Root\subFolder1\subFolder2\testSetToRun 4 |
5 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromAlmBuilder/help-AlmTimeout.html: -------------------------------------------------------------------------------- 1 |
2 | Number of seconds before timeout. If left empty timeout is unlimited. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/config.properties: -------------------------------------------------------------------------------- 1 | DontForgetThePublisher=Make sure to enable the Publish HP \ 2 | tests result option in the Post-build \ 3 | Actions section. This allows the tests results to be published. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-controllerPollingInterval.html: -------------------------------------------------------------------------------- 1 |
2 | Polling interval for checking the scenario status, in seconds. The default is 30 seconds. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-fsAppParamName.html: -------------------------------------------------------------------------------- 1 |
2 | The parameter name of object identifier, as defined in the UFT script. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-fsAppPath.html: -------------------------------------------------------------------------------- 1 |
2 | The path of the application to upload to Mobile Center, on the Jenkins master machine. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-fsPassword.html: -------------------------------------------------------------------------------- 1 |
2 | The password for Mobile Center. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-fsProxyAddress.html: -------------------------------------------------------------------------------- 1 |
2 | Example: 16.54.185.180:8080 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-fsTests.html: -------------------------------------------------------------------------------- 1 |
2 | List of tests or folders that contain tests, to run. Each line should contain a single test, folder, or MTB file. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-fsTimeout.html: -------------------------------------------------------------------------------- 1 |
2 | Timeout value in seconds. If left empty, there is no timeout. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-fsUserName.html: -------------------------------------------------------------------------------- 1 |
2 | The user name for Mobile Center. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-ignoreErrorStrings.html: -------------------------------------------------------------------------------- 1 |
2 | Ignore errors during the scenario run containing any of the strings listed below. For example: "Error: CPU usage for this load generator has exceeded 80%" 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-mcServerName.html: -------------------------------------------------------------------------------- 1 |
2 | The Mobile Center host. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/RunFromFileBuilder/help-perScenarioTimeOut.html: -------------------------------------------------------------------------------- 1 |
2 | The maximum time allotted for scenario execution, in minutes. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SseBuilder/config.properties: -------------------------------------------------------------------------------- 1 | DontForgetThePublisher=Don''t forget to enable the Publish HP \ 2 | tests result option in the Post-build \ 3 | Actions section so that the tests results are published. 4 | 5 | AlmServersAreNotDefined=HP ALM servers are not defined. To use this build step, goto Manage Jenkins->Configure System->Application Lifecycle Management->Add ALM server 6 | 7 | ServerSideTests=Use this build step to run ALM server-side functional test sets and Build Verification Suites. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SseBuilder/help-environmentConfigurationId.html: -------------------------------------------------------------------------------- 1 |
2 | To find the ID of your environment configuration, right-click the entity, copy the URL, and paste it to a text editor. Use the number associated with the EntityID at the end of the URL. 3 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvChangeModeBuilder/config.properties: -------------------------------------------------------------------------------- 1 | # suppress inspection "UnusedProperty" 2 | NoSvServerDefined=No HPE Service Virtualization server is defined. To use this build step, goto Manage Jenkins->Configure System->Service Virtualization->Add SV server -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvChangeModeBuilder/help-force.html: -------------------------------------------------------------------------------- 1 |
2 | If set, service will be modified regardless it is locked by another user. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvDeployBuilder/config.properties: -------------------------------------------------------------------------------- 1 | # suppress inspection "UnusedProperty" 2 | NoSvServerDefined=No HPE Service Virtualization server is defined. To use this build step, goto Manage Jenkins->Configure System->Service Virtualization->Add SV server -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvDeployBuilder/help-firstAgentFallback.html: -------------------------------------------------------------------------------- 1 |
2 | Use first agent of the same type if no agent with id referenced from virtual service exists on target server. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvDeployBuilder/help-force.html: -------------------------------------------------------------------------------- 1 |
2 | If set, service will be redeployed regardless it is locked by another user. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvDeployBuilder/help-service.html: -------------------------------------------------------------------------------- 1 |
2 | Name or ID of service to be deployed. All services from project are deployed if no service is specified. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvExportBuilder/config.properties: -------------------------------------------------------------------------------- 1 | # suppress inspection "UnusedProperty" 2 | NoSvServerDefined=No HPE Service Virtualization server is defined. To use this build step, goto Manage Jenkins->Configure System->Service Virtualization->Add SV server -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvExportBuilder/help-cleanTargetDirectory.html: -------------------------------------------------------------------------------- 1 |
2 | If checked, all direct subfolders of target directory containing a project file (*.vproj) will be deleted before export. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvExportBuilder/help-force.html: -------------------------------------------------------------------------------- 1 |
2 | If set, service will be modified regardless it is locked by another user. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvExportBuilder/help-switchToStandByFirst.html: -------------------------------------------------------------------------------- 1 |
2 | Switch service to Stand-By mode to finish current learning before exporting learned data. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvExportBuilder/help-targetDirectory.html: -------------------------------------------------------------------------------- 1 |
2 | Directory where exported services will be written. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvUndeployBuilder/config.properties: -------------------------------------------------------------------------------- 1 | # suppress inspection "UnusedProperty" 2 | NoSvServerDefined=No HPE Service Virtualization server is defined. To use this build step, goto Manage Jenkins->Configure System->Service Virtualization->Add SV server -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvUndeployBuilder/help-continueIfNotDeployed.html: -------------------------------------------------------------------------------- 1 |
2 | Don't fail if any service marked to be undeployed is not deployed on server. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/SvUndeployBuilder/help-force.html: -------------------------------------------------------------------------------- 1 |
2 | If set, service will be undeployed regardless it is locked by another user. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/run/UploadAppBuilder/config.properties: -------------------------------------------------------------------------------- 1 | McServersAreNotDefined=HP MC servers are not defined. To use this build step, goto Manage Jenkins->Configure System->Mobile Center->Add MC server -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/AlmServerSettingsBuilder/help-almServerName.html: -------------------------------------------------------------------------------- 1 |
2 | The name of the ALM Server. This will be used in the "Execute HP functional test from ALM" build step configuration. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/AlmServerSettingsBuilder/help-almServerUrl.html: -------------------------------------------------------------------------------- 1 |
2 | The name of the URL of the ALM Server: http://myalmserver:8080/qcbin 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/AlmServerSettingsBuilder/help-almServerVersion.html: -------------------------------------------------------------------------------- 1 |
2 | The version of the ALM server:10.0, 11.0, 11.5 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/MCServerSettingsBuilder/global.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/MCServerSettingsBuilder/help-mcServerName.html: -------------------------------------------------------------------------------- 1 |
2 | The name of the MC Server. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/MCServerSettingsBuilder/help-mcServerUrl.html: -------------------------------------------------------------------------------- 1 |
2 | The Mobile Center host. i.e: http://mcserver:8080 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/OctaneServerSettingsBuilder/global.properties: -------------------------------------------------------------------------------- 1 | global.config.description=HPE ALM Octane CI Plugin 2 | global.config.server.title=HPE ALM Octane Server Configuration 3 | global.config.location.title=Location 4 | global.config.location.description=Location of the HPE ALM Octane application 5 | global.config.domain.title=Domain 6 | global.config.domain.description=Domain name 7 | global.config.project.title=Project 8 | global.config.project.description=Project name 9 | global.config.username.title=Client ID 10 | global.config.username.description=Client ID used for logging into the ALM Octane server 11 | global.config.password.title=Client secret 12 | global.config.password.description=Client secret used for logging into the ALM Octane server 13 | global.config.test.connection=Test Connection 14 | global.config.test.connection.progress=Connecting the ALM Octane server... 15 | global.config.impersonatedUser.title=Jenkins user 16 | global.config.impersonatedUser.description=The user to impersonate (Jobs will be executed on behalf of this user) 17 | 18 | global.config.dynamic.instanceId.title=Show plugin instance id 19 | global.config.instanceId.title=Instance id 20 | global.config.instanceId.description=An ID to uniquely identify this instance of the plugin. -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/OctaneServerSettingsBuilder/help-identity.html: -------------------------------------------------------------------------------- 1 |
2 | In ALM Octane, a pipeline’s unique identification includes this ID.
3 | When should I change this value?
4 |
    5 |
  • When you install the HP Application Automation Tools plugin instead of the HPE ALM Octane CI plugin. To enable this plugin to work with existing pipelines, change the instance ID to the one used by your pipelines in ALM Octane (Settings > DevOps > CI servers, “Instance ID” column).
  • 6 |
    7 |
  • If you duplicate your Jenkins installation. Change the instance ID (in any way) to prevent results reported from the new copy of the plugin from being mixed in ALM Octane with results reported from the original one.
    To separately collect information from the new copy, create new pipelines.
  • 8 |
9 |
-------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/OctaneServerSettingsBuilder/help-impersonatedUser.html: -------------------------------------------------------------------------------- 1 |
2 | The Jenkins user's account is used to run jobs that ALM Octane runs.

3 | Notes: 4 |
    5 |
  • 6 | Make sure the user exists in Jenkins. 7 |
  • 8 |
  • 9 | We strongly recommend specifying a Jenkins user for ALM Octane. Set this user's permissions to the minimum required for this integration: Job Build permissions. 10 |
  • 11 |
  • 12 | If you do not specify a Jenkins user, ALM Octane uses the Anonymous user, and is limited to Anonymous's user permissions. 13 |
  • 14 |
15 |
16 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/OctaneServerSettingsBuilder/help-uiLocation.html: -------------------------------------------------------------------------------- 1 |
2 | Login into the ALM Octane application and copy & paste the location from your browser. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/com/hp/application/automation/tools/settings/OctaneServerSettingsBuilder/help-username.html: -------------------------------------------------------------------------------- 1 |
2 | Obtain a Client ID and Client secret from ALM Octane configuration. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/index.jelly: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | This plugin enables integration with HPE products, such as: ALM, ALM Octane, Unified Functional Testing, LoadRunner, and Performance Center. 7 |
8 | -------------------------------------------------------------------------------- /src/main/resources/lib/octane/menu-button-arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/resources/lib/octane/menu-button-arrow.png -------------------------------------------------------------------------------- /src/main/webapp/PerformanceReport/LoadRunner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/PerformanceReport/LoadRunner.png -------------------------------------------------------------------------------- /src/main/webapp/autEnvironment.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by barush on 09/11/2014. 3 | */ 4 | 5 | function checkCorrespondingCheckbox(e) { 6 | 7 | var parentTableNode = getAncestorByTagName(e, 'table'); 8 | var nearestCheckbox = parentTableNode.getElementsByClassName('autEnvParameterCheckbox')[0]; 9 | 10 | if (e.value === 'From JSON') { 11 | nearestCheckbox.style.display = 'inline'; 12 | } else { 13 | nearestCheckbox.style.display = 'none'; 14 | } 15 | } 16 | 17 | function updateValuesOnLoad() { 18 | var elementsByClassName = document.getElementsByClassName('autEnv'); 19 | var i; 20 | for (i = 0; elementsByClassName.length > i; i++) { 21 | checkCorrespondingCheckbox(elementsByClassName[i]); 22 | } 23 | } 24 | 25 | function getAncestorByTagName(el, tn) { 26 | tn = tn.toLowerCase(); 27 | if (el.parentNode) { 28 | if (el.parentNode.nodeType == 1 29 | && el.parentNode.tagName.toLowerCase() == tn 30 | ) return el.parentNode; 31 | return getAncestorByTagName(el.parentNode, tn); 32 | } 33 | return null 34 | } 35 | 36 | 37 | setTimeout(updateValuesOnLoad(), 0); 38 | 39 | -------------------------------------------------------------------------------- /src/main/webapp/help/accessKey.html: -------------------------------------------------------------------------------- 1 | Obtain a Client ID and Client secret from ALM Octane configuration. 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/webapp/help/impersonatedUser.html: -------------------------------------------------------------------------------- 1 | The Jenkins user's account is used to run jobs that ALM Octane runs.

2 | Notes: 3 |
    4 |
  • 5 | Make sure the user exists in Jenkins. 6 |
  • 7 |
  • 8 | We strongly recommend specifying a Jenkins user for ALM Octane. Set this user's permissions to the minimum required for this integration: Job Build permissions. 9 |
  • 10 |
  • 11 | If you do not specify a Jenkins user, ALM Octane uses the Anonymous user, and is limited to Anonymous's user permissions. 12 |
  • 13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/webapp/help/uiLocation.html: -------------------------------------------------------------------------------- 1 | Login into the ALM Octane application and copy & paste the location from your browser. -------------------------------------------------------------------------------- /src/main/webapp/icons/16x16/failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/16x16/failed.png -------------------------------------------------------------------------------- /src/main/webapp/icons/16x16/html_report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/16x16/html_report.png -------------------------------------------------------------------------------- /src/main/webapp/icons/16x16/passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/16x16/passed.png -------------------------------------------------------------------------------- /src/main/webapp/icons/16x16/rrv_report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/16x16/rrv_report.png -------------------------------------------------------------------------------- /src/main/webapp/icons/16x16/stop.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/16x16/stop.ico -------------------------------------------------------------------------------- /src/main/webapp/icons/16x16/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/16x16/stop.png -------------------------------------------------------------------------------- /src/main/webapp/icons/24x24/failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/24x24/failed.png -------------------------------------------------------------------------------- /src/main/webapp/icons/24x24/html_report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/24x24/html_report.png -------------------------------------------------------------------------------- /src/main/webapp/icons/24x24/passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/24x24/passed.png -------------------------------------------------------------------------------- /src/main/webapp/icons/24x24/rrv_report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/24x24/rrv_report.png -------------------------------------------------------------------------------- /src/main/webapp/icons/24x24/uft_report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpsa/hpe-application-automation-tools-plugin/987536f5551bc76fd028d746a951d1fd72c7567a/src/main/webapp/icons/24x24/uft_report.png -------------------------------------------------------------------------------- /src/main/webapp/js/libaries/react/react-dom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ReactDOM v15.3.2 3 | * 4 | * Copyright 2013-present, Facebook, Inc. 5 | * All rights reserved. 6 | * 7 | * This source code is licensed under the BSD-style license found in the 8 | * LICENSE file in the root directory of this source tree. An additional grant 9 | * of patent rights can be found in the PATENTS file in the same directory. 10 | * 11 | */ 12 | // Based off https://github.com/ForbesLindesay/umd/blob/master/template.js 13 | ;(function(f) { 14 | // CommonJS 15 | if (typeof exports === "object" && typeof module !== "undefined") { 16 | module.exports = f(require('react')); 17 | 18 | // RequireJS 19 | } else if (typeof define === "function" && define.amd) { 20 | define(['react'], f); 21 | 22 | //