Tizen TCT 2.2.1 r1 final release version 84/19984/1
authorshaofeng <shaofeng.tang@intel.com>
Thu, 24 Apr 2014 07:21:53 +0000 (15:21 +0800)
committershaofeng <shaofeng.tang@intel.com>
Thu, 24 Apr 2014 07:21:53 +0000 (15:21 +0800)
Change-Id: I7ab392ad0b48f61524b4f02a11aefc25b011fdad

700 files changed:
LICENSE-2.0.txt [new file with mode: 0644]
README [new file with mode: 0644]
bin/log4j.properties [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/Constants$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/Constants.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/PackageList.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/TctGui$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/TctGui.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/device/DeviceList.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/device/SdbDevice.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$2.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities$Capability.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/Categories.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/Description.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/Set.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/Step.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/Steps.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/Suite.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/plan/package-info.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities$Capability.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Environment.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Suite.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Summary.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/run/StopActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/CalculatResultThread.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/InterruptableWorker.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/PlanExecutor$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/PlanExecutor.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/SdbCommand.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/SdbCommandTest.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/WorkerCallback.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/WorkerStatus.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Base.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Item.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Section.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$Worker.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/ResultFilter.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/ResultMerger.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/ResultZipper.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/CaseResult$C_RESULT.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/CaseResult.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/ExecuteType$E_TYPE.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/ExecuteType.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/TctTestPlanTest.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/TctTestSuite.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan$ExecuteCounter.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/report/SuitePath.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/report/TctResultReport.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/run/NamedVector.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/run/SdbInstallable.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/ContentPanel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/HealthCheckDlg.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/PlanJFrame.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$FormGridBagConstraints.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/ProgressDialog.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/ProgressInformable.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$CloseActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$IconPanel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$NaviLabel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/ConfirmButton.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/OptionRadio.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel$DashGridBagConstraints.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$2.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/RadioListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor$CheckSuiteActionListener.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane$1.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/Informable.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/PlanTree.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/RunPanel.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI$MouseInputHandler.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.class [new file with mode: 0644]
bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.class [new file with mode: 0644]
bin/resources/collapse.png [new file with mode: 0644]
bin/resources/completed.png [new file with mode: 0644]
bin/resources/expands.png [new file with mode: 0644]
bin/resources/operation_continue_execution.png [new file with mode: 0644]
bin/resources/operation_download.png [new file with mode: 0644]
bin/resources/operation_mail.png [new file with mode: 0644]
bin/resources/operation_rerun.png [new file with mode: 0644]
bin/resources/operation_resume.png [new file with mode: 0644]
bin/resources/testkit-manager-logo.png [new file with mode: 0644]
bin/resources/tizen_logo.png [new file with mode: 0644]
bin/resources/tizen_logo_128.png [new file with mode: 0644]
bin/resources/tizen_logo_16.png [new file with mode: 0644]
bin/resources/tizen_logo_22.png [new file with mode: 0644]
bin/resources/tizen_logo_24.png [new file with mode: 0644]
bin/resources/tizen_logo_32.png [new file with mode: 0644]
bin/resources/tizen_logo_48.png [new file with mode: 0644]
bin/resources/tizen_logo_64.png [new file with mode: 0644]
build.xml [new file with mode: 0644]
build/bin/LICENSE-2.0.txt [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/Constants$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/Constants.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/PackageList.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/TctGui$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/TctGui.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/device/DeviceList.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/device/SdbDevice.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$2.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities$Capability.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Categories.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Description.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Set.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Step.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Steps.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Suite.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/plan/package-info.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities$Capability.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Environment.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Suite.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Summary.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/run/StopActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/CalculatResultThread.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/InterruptableWorker.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/SdbCommand.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/SdbCommandTest.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/WorkerCallback.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/WorkerStatus.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Base.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Item.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Section.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$Worker.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/ResultFilter.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/ResultMerger.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/ResultZipper.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/CaseResult$C_RESULT.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/CaseResult.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/ExecuteType$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/ExecuteType$E_TYPE.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/ExecuteType.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/TctTestPlanTest.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/TctTestSuite.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan$ExecuteCounter.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/report/SuitePath.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/report/TctResultReport.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/run/NamedVector.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/run/SdbInstallable.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/ContentPanel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/HealthCheckDlg.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/PlanJFrame.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$FormGridBagConstraints.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/ProgressDialog.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/ProgressInformable.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$CloseActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$IconPanel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$NaviLabel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/ConfirmButton.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/OptionRadio.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel$DashGridBagConstraints.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$2.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/RadioListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor$CheckSuiteActionListener.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane$1.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/Informable.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTree.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/RunPanel.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI$MouseInputHandler.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.class [new file with mode: 0644]
build/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.class [new file with mode: 0644]
build/bin/resources/collapse.png [new file with mode: 0644]
build/bin/resources/completed.png [new file with mode: 0644]
build/bin/resources/expands.png [new file with mode: 0644]
build/bin/resources/operation_continue_execution.png [new file with mode: 0644]
build/bin/resources/operation_download.png [new file with mode: 0644]
build/bin/resources/operation_mail.png [new file with mode: 0644]
build/bin/resources/operation_rerun.png [new file with mode: 0644]
build/bin/resources/operation_resume.png [new file with mode: 0644]
build/bin/resources/testkit-manager-logo.png [new file with mode: 0644]
build/bin/resources/tizen_logo.png [new file with mode: 0644]
build/bin/resources/tizen_logo_128.png [new file with mode: 0644]
build/bin/resources/tizen_logo_16.png [new file with mode: 0644]
build/bin/resources/tizen_logo_22.png [new file with mode: 0644]
build/bin/resources/tizen_logo_24.png [new file with mode: 0644]
build/bin/resources/tizen_logo_32.png [new file with mode: 0644]
build/bin/resources/tizen_logo_48.png [new file with mode: 0644]
build/bin/resources/tizen_logo_64.png [new file with mode: 0644]
deploy.sh [new file with mode: 0755]
dest/full_pkg_generator [new file with mode: 0755]
dest/lib/appFramework-1.0.jar [new file with mode: 0644]
dest/lib/commons-io-2.4.jar [new file with mode: 0644]
dest/lib/jdom-1.1.2.jar [new file with mode: 0644]
dest/lib/json_simple-1.1.jar [new file with mode: 0644]
dest/lib/log4j-1.2.17.jar [new file with mode: 0644]
dest/log4j.properties [new file with mode: 0644]
dest/tct-mgr [new file with mode: 0755]
dest/tct-mgr-app.jar [new file with mode: 0644]
doc/TCT-manager-guide.pdf [new file with mode: 0644]
lib/appFramework-1.0.jar [new file with mode: 0644]
lib/commons-io-2.4-sources.jar [new file with mode: 0644]
lib/commons-io-2.4.jar [new file with mode: 0644]
lib/jaxb-api.jar [new file with mode: 0644]
lib/jaxb-impl.jar [new file with mode: 0644]
lib/jaxb-xjc.jar [new file with mode: 0644]
lib/jdom-1.1.2.jar [new file with mode: 0644]
lib/jnlp.jar [new file with mode: 0644]
lib/json_simple-1.1.jar [new file with mode: 0644]
lib/junit-4.10-src.jar [new file with mode: 0644]
lib/junit-4.10.jar [new file with mode: 0644]
lib/log4j-1.2.17.jar [new file with mode: 0644]
schema/capability.xsd [new file with mode: 0644]
schema/device_capability.xml [new file with mode: 0644]
schema/plan.xml [new file with mode: 0644]
schema/plan.xsd [new file with mode: 0644]
schema/plan_status.xml [new file with mode: 0644]
schema/plan_status.xsd [new file with mode: 0644]
schema/release-notes [new file with mode: 0644]
schema/result_summary.xsd [new file with mode: 0644]
schema/test_definition.xsd [new file with mode: 0644]
src/log4j.properties [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/Constants.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/PackageList.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/TctGui.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/device/DeviceList.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/device/SdbDevice.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/StartTestActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/run/StopActionListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/CalculatResultThread.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/InterruptableWorker.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/PlanExecutor.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/SdbCommand.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/WorkerCallback.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/WorkerStatus.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/util/ResultFilter.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/util/ResultMerger.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/util/ResultZipper.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/CaseResult.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/ExecuteType.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/TctTestSuite.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/report/SuitePath.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/report/TctResultReport.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/run/NamedVector.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/run/SdbInstallable.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/ContentPanel.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/HealthCheckDlg.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/PlanJFrame.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/ProgressDialog.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/ProgressInformable.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/menu/VersionDialog.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/navi/LogoPanel.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/Informable.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/PlanTree.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/RunPanel.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.java [new file with mode: 0644]
src/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.java [new file with mode: 0644]
src/resources/collapse.png [new file with mode: 0644]
src/resources/completed.png [new file with mode: 0644]
src/resources/expands.png [new file with mode: 0644]
src/resources/operation_continue_execution.png [new file with mode: 0644]
src/resources/operation_download.png [new file with mode: 0644]
src/resources/operation_mail.png [new file with mode: 0644]
src/resources/operation_rerun.png [new file with mode: 0644]
src/resources/operation_resume.png [new file with mode: 0644]
src/resources/testkit-manager-logo.png [new file with mode: 0644]
src/resources/tizen_logo.png [new file with mode: 0644]
src/resources/tizen_logo_128.png [new file with mode: 0644]
src/resources/tizen_logo_16.png [new file with mode: 0644]
src/resources/tizen_logo_22.png [new file with mode: 0644]
src/resources/tizen_logo_24.png [new file with mode: 0644]
src/resources/tizen_logo_32.png [new file with mode: 0644]
src/resources/tizen_logo_48.png [new file with mode: 0644]
src/resources/tizen_logo_64.png [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Categories.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Description.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Set.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Step.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Steps.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Suite.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/package-info.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.java [new file with mode: 0644]
src_jaxb/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.java [new file with mode: 0644]
style/application.js [new file with mode: 0644]
style/back_top.png [new file with mode: 0644]
style/blue.jpg [new file with mode: 0644]
style/gray.jpg [new file with mode: 0644]
style/jquery.min.js [new file with mode: 0644]
style/orange.jpg [new file with mode: 0644]
style/popup.js [new file with mode: 0644]
style/red.jpg [new file with mode: 0644]
style/summary.xsl [new file with mode: 0644]
style/testresult.xsl [new file with mode: 0644]
style/tests.css [new file with mode: 0644]
test/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.java [new file with mode: 0644]
test/org/tizen/tct/tool/mgr/lite/SdbCommandTest.java [new file with mode: 0644]
test/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.java [new file with mode: 0644]
test/org/tizen/tct/tool/mgr/model/TctTestPlanTest.java [new file with mode: 0644]
test/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.java [new file with mode: 0644]

diff --git a/LICENSE-2.0.txt b/LICENSE-2.0.txt
new file mode 100644 (file)
index 0000000..d645695
--- /dev/null
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/bin/log4j.properties b/bin/log4j.properties
new file mode 100644 (file)
index 0000000..ac48a10
--- /dev/null
@@ -0,0 +1,33 @@
+log4j.rootLogger=INFO,CONSOLE,FILE, ROLLING_FILE
+#DEBUG,CONSOLE,FILE,ROLLING_FILE,MAIL,DATABASE
+log4j.addivity.org.apache=true
+###################
+# Console Appender
+###################
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.Threshold=DEBUG
+log4j.appender.CONSOLE.Target=System.out
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
+#log4j.appender.CONSOLE.layout.ConversionPattern=[start]%d{DATE}[DATE]%n%p[PRIORITY]%n%x[NDC]%n%t[THREAD] n%c[CATEGORY]%n%m[MESSAGE]%n%n
+#####################
+# File Appender
+#####################
+log4j.appender.FILE=org.apache.log4j.FileAppender
+log4j.appender.FILE.File=/opt/tct/manager/log/file.log
+log4j.appender.FILE.Append=false
+log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
+#log4j.appender.FILE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n
+log4j.appender.FILE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
+########################
+# Rolling File
+########################
+log4j.appender.ROLLING_FILE=org.apache.log4j.RollingFileAppender
+log4j.appender.ROLLING_FILE.Threshold=ERROR
+log4j.appender.ROLLING_FILE.File=/opt/tct/manager/log/rolling.log
+log4j.appender.ROLLING_FILE.Append=true
+log4j.appender.ROLLING_FILE.MaxFileSize=10KB
+log4j.appender.ROLLING_FILE.MaxBackupIndex=1
+log4j.appender.ROLLING_FILE.layout=org.apache.log4j.PatternLayout
+#log4j.appender.ROLLING_FILE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n
+log4j.appender.ROLLING_FILE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
\ No newline at end of file
diff --git a/bin/org/tizen/tct/tool/mgr/Constants$1.class b/bin/org/tizen/tct/tool/mgr/Constants$1.class
new file mode 100644 (file)
index 0000000..98cbcce
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/Constants$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/Constants.class b/bin/org/tizen/tct/tool/mgr/Constants.class
new file mode 100644 (file)
index 0000000..f28ef02
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/Constants.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/PackageList.class b/bin/org/tizen/tct/tool/mgr/PackageList.class
new file mode 100644 (file)
index 0000000..353fa37
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/PackageList.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/TctGui$1.class b/bin/org/tizen/tct/tool/mgr/TctGui$1.class
new file mode 100644 (file)
index 0000000..d6502a0
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/TctGui$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/TctGui.class b/bin/org/tizen/tct/tool/mgr/TctGui.class
new file mode 100644 (file)
index 0000000..a35e0b3
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/TctGui.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.class b/bin/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.class
new file mode 100644 (file)
index 0000000..da8a08b
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/device/DeviceList.class b/bin/org/tizen/tct/tool/mgr/device/DeviceList.class
new file mode 100644 (file)
index 0000000..9ced352
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/device/DeviceList.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/device/SdbDevice.class b/bin/org/tizen/tct/tool/mgr/device/SdbDevice.class
new file mode 100644 (file)
index 0000000..2a04df3
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/device/SdbDevice.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$1.class b/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$1.class
new file mode 100644 (file)
index 0000000..80e8549
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$2.class b/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$2.class
new file mode 100644 (file)
index 0000000..d35ec94
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$2.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.class b/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.class
new file mode 100644 (file)
index 0000000..02146d8
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities$Capability.class b/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities$Capability.class
new file mode 100644 (file)
index 0000000..6eaf779
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities$Capability.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.class b/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.class
new file mode 100644 (file)
index 0000000..54d7141
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.class b/bin/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.class
new file mode 100644 (file)
index 0000000..525f1e1
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.class
new file mode 100644 (file)
index 0000000..307367b
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.class
new file mode 100644 (file)
index 0000000..d25c9bc
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.class
new file mode 100644 (file)
index 0000000..7a32ae7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.class
new file mode 100644 (file)
index 0000000..8c88114
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/Categories.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Categories.class
new file mode 100644 (file)
index 0000000..feea330
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Categories.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/Description.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Description.class
new file mode 100644 (file)
index 0000000..66b21c8
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Description.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.class
new file mode 100644 (file)
index 0000000..7357588
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.class
new file mode 100644 (file)
index 0000000..78b8bfb
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.class
new file mode 100644 (file)
index 0000000..8669a4d
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.class
new file mode 100644 (file)
index 0000000..df3b2f0
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.class
new file mode 100644 (file)
index 0000000..611a82c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.class
new file mode 100644 (file)
index 0000000..f2c2dcc
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/Set.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Set.class
new file mode 100644 (file)
index 0000000..778c1e1
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Set.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.class
new file mode 100644 (file)
index 0000000..d1f5e59
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.class
new file mode 100644 (file)
index 0000000..f1c6612
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.class
new file mode 100644 (file)
index 0000000..5995243
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.class
new file mode 100644 (file)
index 0000000..6726533
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.class
new file mode 100644 (file)
index 0000000..66cdaed
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/Step.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Step.class
new file mode 100644 (file)
index 0000000..34ea2a7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Step.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/Steps.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Steps.class
new file mode 100644 (file)
index 0000000..19dc686
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Steps.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/Suite.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Suite.class
new file mode 100644 (file)
index 0000000..e4f2e74
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Suite.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.class
new file mode 100644 (file)
index 0000000..77142b7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.class
new file mode 100644 (file)
index 0000000..5ad6c44
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.class
new file mode 100644 (file)
index 0000000..9c5506c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.class b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.class
new file mode 100644 (file)
index 0000000..d48b783
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.class b/bin/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.class
new file mode 100644 (file)
index 0000000..1dfc641
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.class b/bin/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.class
new file mode 100644 (file)
index 0000000..f9684da
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.class b/bin/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.class
new file mode 100644 (file)
index 0000000..f257bdc
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.class b/bin/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.class
new file mode 100644 (file)
index 0000000..d3db2ce
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/plan/package-info.class b/bin/org/tizen/tct/tool/mgr/jaxb/plan/package-info.class
new file mode 100644 (file)
index 0000000..ec67814
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/plan/package-info.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.class b/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.class
new file mode 100644 (file)
index 0000000..7a9c213
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.class b/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.class
new file mode 100644 (file)
index 0000000..d0029d1
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.class b/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.class
new file mode 100644 (file)
index 0000000..2739ac7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.class b/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.class
new file mode 100644 (file)
index 0000000..59bce3a
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.class b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.class
new file mode 100644 (file)
index 0000000..55ca3ee
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities$Capability.class b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities$Capability.class
new file mode 100644 (file)
index 0000000..f3b8f3c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities$Capability.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities.class b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities.class
new file mode 100644 (file)
index 0000000..de23d67
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Environment.class b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Environment.class
new file mode 100644 (file)
index 0000000..a278e79
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Environment.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Suite.class b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Suite.class
new file mode 100644 (file)
index 0000000..28bb9bd
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Suite.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Summary.class b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Summary.class
new file mode 100644 (file)
index 0000000..e7a9b43
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Summary.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.class b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.class
new file mode 100644 (file)
index 0000000..f7273b0
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener$1.class b/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener$1.class
new file mode 100644 (file)
index 0000000..ea311c2
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener.class
new file mode 100644 (file)
index 0000000..8cf9143
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.class
new file mode 100644 (file)
index 0000000..831097f
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.class b/bin/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.class
new file mode 100644 (file)
index 0000000..b0224f4
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.class
new file mode 100644 (file)
index 0000000..96d5177
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.class b/bin/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.class
new file mode 100644 (file)
index 0000000..d44e474
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.class b/bin/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.class
new file mode 100644 (file)
index 0000000..59ffc3a
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.class b/bin/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.class
new file mode 100644 (file)
index 0000000..23722eb
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.class b/bin/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.class
new file mode 100644 (file)
index 0000000..4912380
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.class b/bin/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.class
new file mode 100644 (file)
index 0000000..cfb3f1f
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.class b/bin/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.class
new file mode 100644 (file)
index 0000000..177c607
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener$1.class b/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener$1.class
new file mode 100644 (file)
index 0000000..a6a20af
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.class
new file mode 100644 (file)
index 0000000..101db93
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.class
new file mode 100644 (file)
index 0000000..c8ffdfa
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.class
new file mode 100644 (file)
index 0000000..cad6783
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.class b/bin/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.class
new file mode 100644 (file)
index 0000000..5bb9402
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.class
new file mode 100644 (file)
index 0000000..5de7d3b
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener$1.class b/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener$1.class
new file mode 100644 (file)
index 0000000..c4a4995
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.class
new file mode 100644 (file)
index 0000000..d8a78a8
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener$1.class b/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener$1.class
new file mode 100644 (file)
index 0000000..e14772e
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.class
new file mode 100644 (file)
index 0000000..b08abb6
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.class b/bin/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.class
new file mode 100644 (file)
index 0000000..de112d7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.class b/bin/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.class
new file mode 100644 (file)
index 0000000..76ea532
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/run/StopActionListener.class b/bin/org/tizen/tct/tool/mgr/listener/run/StopActionListener.class
new file mode 100644 (file)
index 0000000..4851fee
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/run/StopActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.class b/bin/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.class
new file mode 100644 (file)
index 0000000..e434af5
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.class b/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.class
new file mode 100644 (file)
index 0000000..bd75c76
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.class b/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.class
new file mode 100644 (file)
index 0000000..d4f5b58
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.class b/bin/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.class
new file mode 100644 (file)
index 0000000..58afa2a
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.class b/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.class
new file mode 100644 (file)
index 0000000..3ce20dd
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.class b/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.class
new file mode 100644 (file)
index 0000000..a204988
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.class b/bin/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.class
new file mode 100644 (file)
index 0000000..2978ef7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/CalculatResultThread.class b/bin/org/tizen/tct/tool/mgr/lite/CalculatResultThread.class
new file mode 100644 (file)
index 0000000..b3f3f44
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/CalculatResultThread.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.class b/bin/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.class
new file mode 100644 (file)
index 0000000..1d02d29
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.class b/bin/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.class
new file mode 100644 (file)
index 0000000..a6cbd81
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/InterruptableWorker.class b/bin/org/tizen/tct/tool/mgr/lite/InterruptableWorker.class
new file mode 100644 (file)
index 0000000..4413580
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/InterruptableWorker.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.class b/bin/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.class
new file mode 100644 (file)
index 0000000..b55bc73
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor$1.class b/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor$1.class
new file mode 100644 (file)
index 0000000..2749e74
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor.class b/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor.class
new file mode 100644 (file)
index 0000000..c0d8235
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/SdbCommand.class b/bin/org/tizen/tct/tool/mgr/lite/SdbCommand.class
new file mode 100644 (file)
index 0000000..d73acdf
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/SdbCommand.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/SdbCommandTest.class b/bin/org/tizen/tct/tool/mgr/lite/SdbCommandTest.class
new file mode 100644 (file)
index 0000000..5802d81
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/SdbCommandTest.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/WorkerCallback.class b/bin/org/tizen/tct/tool/mgr/lite/WorkerCallback.class
new file mode 100644 (file)
index 0000000..6f4af2c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/WorkerCallback.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/WorkerStatus.class b/bin/org/tizen/tct/tool/mgr/lite/WorkerStatus.class
new file mode 100644 (file)
index 0000000..79fa766
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/WorkerStatus.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.class b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.class
new file mode 100644 (file)
index 0000000..bee2424
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.class b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.class
new file mode 100644 (file)
index 0000000..1a5c18f
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Base.class b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Base.class
new file mode 100644 (file)
index 0000000..45d7842
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Base.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Item.class b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Item.class
new file mode 100644 (file)
index 0000000..2356bc2
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Item.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Section.class b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Section.class
new file mode 100644 (file)
index 0000000..7579e63
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Section.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.class b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.class
new file mode 100644 (file)
index 0000000..f48458a
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.class b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.class
new file mode 100644 (file)
index 0000000..c717a0e
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$Worker.class b/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$Worker.class
new file mode 100644 (file)
index 0000000..cdad80b
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$Worker.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils.class b/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils.class
new file mode 100644 (file)
index 0000000..9b2cdbe
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/ResultFilter.class b/bin/org/tizen/tct/tool/mgr/lite/util/ResultFilter.class
new file mode 100644 (file)
index 0000000..99e475e
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/ResultFilter.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/ResultMerger.class b/bin/org/tizen/tct/tool/mgr/lite/util/ResultMerger.class
new file mode 100644 (file)
index 0000000..29084a6
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/ResultMerger.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/ResultZipper.class b/bin/org/tizen/tct/tool/mgr/lite/util/ResultZipper.class
new file mode 100644 (file)
index 0000000..8537c35
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/ResultZipper.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.class b/bin/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.class
new file mode 100644 (file)
index 0000000..38e5f33
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/CaseResult$C_RESULT.class b/bin/org/tizen/tct/tool/mgr/model/CaseResult$C_RESULT.class
new file mode 100644 (file)
index 0000000..c89a51c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/CaseResult$C_RESULT.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/CaseResult.class b/bin/org/tizen/tct/tool/mgr/model/CaseResult.class
new file mode 100644 (file)
index 0000000..9d6b154
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/CaseResult.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/ExecuteType$E_TYPE.class b/bin/org/tizen/tct/tool/mgr/model/ExecuteType$E_TYPE.class
new file mode 100644 (file)
index 0000000..b90c2f7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/ExecuteType$E_TYPE.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/ExecuteType.class b/bin/org/tizen/tct/tool/mgr/model/ExecuteType.class
new file mode 100644 (file)
index 0000000..763b469
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/ExecuteType.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.class b/bin/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.class
new file mode 100644 (file)
index 0000000..fc7b5f7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.class b/bin/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.class
new file mode 100644 (file)
index 0000000..be86eea
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/TctTestPlanTest.class b/bin/org/tizen/tct/tool/mgr/model/TctTestPlanTest.class
new file mode 100644 (file)
index 0000000..3b84f66
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/TctTestPlanTest.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/TctTestSuite.class b/bin/org/tizen/tct/tool/mgr/model/TctTestSuite.class
new file mode 100644 (file)
index 0000000..b58089a
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/TctTestSuite.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.class b/bin/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.class
new file mode 100644 (file)
index 0000000..6e964a8
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.class b/bin/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.class
new file mode 100644 (file)
index 0000000..68d5eae
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.class b/bin/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.class
new file mode 100644 (file)
index 0000000..27325f1
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.class b/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.class
new file mode 100644 (file)
index 0000000..d74290d
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.class b/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.class
new file mode 100644 (file)
index 0000000..f27ad3c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.class b/bin/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.class
new file mode 100644 (file)
index 0000000..703c584
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan$ExecuteCounter.class b/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan$ExecuteCounter.class
new file mode 100644 (file)
index 0000000..ee2adb1
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan$ExecuteCounter.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.class b/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.class
new file mode 100644 (file)
index 0000000..05478c3
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.class b/bin/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.class
new file mode 100644 (file)
index 0000000..3075a9c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.class b/bin/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.class
new file mode 100644 (file)
index 0000000..d663593
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.class b/bin/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.class
new file mode 100644 (file)
index 0000000..b296735
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.class b/bin/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.class
new file mode 100644 (file)
index 0000000..30f4392
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.class b/bin/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.class
new file mode 100644 (file)
index 0000000..66174f6
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.class b/bin/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.class
new file mode 100644 (file)
index 0000000..94d12cb
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.class b/bin/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.class
new file mode 100644 (file)
index 0000000..468f45c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.class b/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.class
new file mode 100644 (file)
index 0000000..9a00b60
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.class b/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.class
new file mode 100644 (file)
index 0000000..ad25afc
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.class b/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.class
new file mode 100644 (file)
index 0000000..6826e4c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.class b/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.class
new file mode 100644 (file)
index 0000000..cc5ee23
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/report/SuitePath.class b/bin/org/tizen/tct/tool/mgr/model/report/SuitePath.class
new file mode 100644 (file)
index 0000000..efdb287
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/report/SuitePath.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel$1.class b/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel$1.class
new file mode 100644 (file)
index 0000000..b09eeb7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.class b/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.class
new file mode 100644 (file)
index 0000000..cac1525
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/report/TctResultReport.class b/bin/org/tizen/tct/tool/mgr/model/report/TctResultReport.class
new file mode 100644 (file)
index 0000000..984ba19
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/report/TctResultReport.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/run/NamedVector.class b/bin/org/tizen/tct/tool/mgr/model/run/NamedVector.class
new file mode 100644 (file)
index 0000000..fd7f5d3
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/run/NamedVector.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/run/SdbInstallable.class b/bin/org/tizen/tct/tool/mgr/model/run/SdbInstallable.class
new file mode 100644 (file)
index 0000000..b2bea9d
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/run/SdbInstallable.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.class b/bin/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.class
new file mode 100644 (file)
index 0000000..d314a31
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.class b/bin/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.class
new file mode 100644 (file)
index 0000000..f23ea9d
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.class b/bin/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.class
new file mode 100644 (file)
index 0000000..1e0f7be
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/ContentPanel.class b/bin/org/tizen/tct/tool/mgr/view/ContentPanel.class
new file mode 100644 (file)
index 0000000..ac5f60d
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/ContentPanel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/HealthCheckDlg.class b/bin/org/tizen/tct/tool/mgr/view/HealthCheckDlg.class
new file mode 100644 (file)
index 0000000..e70f4d7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/HealthCheckDlg.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/PlanJFrame.class b/bin/org/tizen/tct/tool/mgr/view/PlanJFrame.class
new file mode 100644 (file)
index 0000000..16ee6fe
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/PlanJFrame.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$1.class b/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$1.class
new file mode 100644 (file)
index 0000000..75e72a3
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$FormGridBagConstraints.class b/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$FormGridBagConstraints.class
new file mode 100644 (file)
index 0000000..8e42f24
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$FormGridBagConstraints.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.class b/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.class
new file mode 100644 (file)
index 0000000..a3852fe
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/ProgressDialog.class b/bin/org/tizen/tct/tool/mgr/view/ProgressDialog.class
new file mode 100644 (file)
index 0000000..96b748b
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/ProgressDialog.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/ProgressInformable.class b/bin/org/tizen/tct/tool/mgr/view/ProgressInformable.class
new file mode 100644 (file)
index 0000000..4499ffc
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/ProgressInformable.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.class b/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.class
new file mode 100644 (file)
index 0000000..3d073db
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.class b/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.class
new file mode 100644 (file)
index 0000000..8c905f8
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$1.class b/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$1.class
new file mode 100644 (file)
index 0000000..fdc3a84
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$CloseActionListener.class b/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$CloseActionListener.class
new file mode 100644 (file)
index 0000000..9150d23
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$CloseActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$IconPanel.class b/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$IconPanel.class
new file mode 100644 (file)
index 0000000..babba73
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$IconPanel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog.class b/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog.class
new file mode 100644 (file)
index 0000000..406d87f
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$1.class b/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$1.class
new file mode 100644 (file)
index 0000000..d1d11a4
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$NaviLabel.class b/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$NaviLabel.class
new file mode 100644 (file)
index 0000000..14aad6e
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$NaviLabel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel.class b/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel.class
new file mode 100644 (file)
index 0000000..99519c7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/ConfirmButton.class b/bin/org/tizen/tct/tool/mgr/view/planpage/ConfirmButton.class
new file mode 100644 (file)
index 0000000..acbd178
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/ConfirmButton.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/OptionRadio.class b/bin/org/tizen/tct/tool/mgr/view/planpage/OptionRadio.class
new file mode 100644 (file)
index 0000000..4be2362
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/OptionRadio.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog$1.class b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog$1.class
new file mode 100644 (file)
index 0000000..218933b
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.class b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.class
new file mode 100644 (file)
index 0000000..4e3072a
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel$DashGridBagConstraints.class b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel$DashGridBagConstraints.class
new file mode 100644 (file)
index 0000000..5c21480
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel$DashGridBagConstraints.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.class b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.class
new file mode 100644 (file)
index 0000000..ad09c17
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$1.class b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$1.class
new file mode 100644 (file)
index 0000000..4c373c5
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$2.class b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$2.class
new file mode 100644 (file)
index 0000000..2e7accc
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$2.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.class b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.class
new file mode 100644 (file)
index 0000000..73e18c9
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/RadioListener.class b/bin/org/tizen/tct/tool/mgr/view/planpage/RadioListener.class
new file mode 100644 (file)
index 0000000..0159f34
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/RadioListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.class b/bin/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.class
new file mode 100644 (file)
index 0000000..4c68ff7
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor$CheckSuiteActionListener.class b/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor$CheckSuiteActionListener.class
new file mode 100644 (file)
index 0000000..cb06ae3
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor$CheckSuiteActionListener.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.class b/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.class
new file mode 100644 (file)
index 0000000..5cfb9d6
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.class b/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.class
new file mode 100644 (file)
index 0000000..1e13465
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.class
new file mode 100644 (file)
index 0000000..02755e2
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.class
new file mode 100644 (file)
index 0000000..5a0a573
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.class
new file mode 100644 (file)
index 0000000..5859b8d
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.class
new file mode 100644 (file)
index 0000000..50d2b37
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.class
new file mode 100644 (file)
index 0000000..4707e7c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.class
new file mode 100644 (file)
index 0000000..d2b9029
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane$1.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane$1.class
new file mode 100644 (file)
index 0000000..3141c2c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane$1.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.class
new file mode 100644 (file)
index 0000000..486fc97
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.class b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.class
new file mode 100644 (file)
index 0000000..c790bf6
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.class b/bin/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.class
new file mode 100644 (file)
index 0000000..1f6f900
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.class b/bin/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.class
new file mode 100644 (file)
index 0000000..bc2582d
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/Informable.class b/bin/org/tizen/tct/tool/mgr/view/runpage/Informable.class
new file mode 100644 (file)
index 0000000..2836b0e
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/Informable.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTree.class b/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTree.class
new file mode 100644 (file)
index 0000000..303fc8c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTree.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.class b/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.class
new file mode 100644 (file)
index 0000000..3b7c881
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.class b/bin/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.class
new file mode 100644 (file)
index 0000000..8e83025
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.class b/bin/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.class
new file mode 100644 (file)
index 0000000..fddb854
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/RunPanel.class b/bin/org/tizen/tct/tool/mgr/view/runpage/RunPanel.class
new file mode 100644 (file)
index 0000000..649eb51
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/RunPanel.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.class b/bin/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.class
new file mode 100644 (file)
index 0000000..4f106c5
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.class b/bin/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.class
new file mode 100644 (file)
index 0000000..7ac0c65
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.class
new file mode 100644 (file)
index 0000000..845ad81
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.class
new file mode 100644 (file)
index 0000000..93f45ec
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.class
new file mode 100644 (file)
index 0000000..4a8acef
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.class
new file mode 100644 (file)
index 0000000..0a4a0ce
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.class
new file mode 100644 (file)
index 0000000..0cab624
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.class
new file mode 100644 (file)
index 0000000..926bb2b
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.class
new file mode 100644 (file)
index 0000000..56fa6af
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.class
new file mode 100644 (file)
index 0000000..12f407c
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.class
new file mode 100644 (file)
index 0000000..cc2fb04
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.class
new file mode 100644 (file)
index 0000000..7c644ca
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI$MouseInputHandler.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI$MouseInputHandler.class
new file mode 100644 (file)
index 0000000..c24abf0
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI$MouseInputHandler.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.class
new file mode 100644 (file)
index 0000000..73c26fa
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.class
new file mode 100644 (file)
index 0000000..02815da
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.class b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.class
new file mode 100644 (file)
index 0000000..3ac15e9
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.class b/bin/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.class
new file mode 100644 (file)
index 0000000..869971b
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.class b/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.class
new file mode 100644 (file)
index 0000000..cfbdb62
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.class differ
diff --git a/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.class b/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.class
new file mode 100644 (file)
index 0000000..7bcce23
Binary files /dev/null and b/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.class differ
diff --git a/bin/resources/collapse.png b/bin/resources/collapse.png
new file mode 100644 (file)
index 0000000..cd5e3ad
Binary files /dev/null and b/bin/resources/collapse.png differ
diff --git a/bin/resources/completed.png b/bin/resources/completed.png
new file mode 100644 (file)
index 0000000..4886116
Binary files /dev/null and b/bin/resources/completed.png differ
diff --git a/bin/resources/expands.png b/bin/resources/expands.png
new file mode 100644 (file)
index 0000000..4ec4a7f
Binary files /dev/null and b/bin/resources/expands.png differ
diff --git a/bin/resources/operation_continue_execution.png b/bin/resources/operation_continue_execution.png
new file mode 100644 (file)
index 0000000..14164c8
Binary files /dev/null and b/bin/resources/operation_continue_execution.png differ
diff --git a/bin/resources/operation_download.png b/bin/resources/operation_download.png
new file mode 100644 (file)
index 0000000..2422a74
Binary files /dev/null and b/bin/resources/operation_download.png differ
diff --git a/bin/resources/operation_mail.png b/bin/resources/operation_mail.png
new file mode 100644 (file)
index 0000000..09d17b3
Binary files /dev/null and b/bin/resources/operation_mail.png differ
diff --git a/bin/resources/operation_rerun.png b/bin/resources/operation_rerun.png
new file mode 100644 (file)
index 0000000..cb1c917
Binary files /dev/null and b/bin/resources/operation_rerun.png differ
diff --git a/bin/resources/operation_resume.png b/bin/resources/operation_resume.png
new file mode 100644 (file)
index 0000000..82bffb8
Binary files /dev/null and b/bin/resources/operation_resume.png differ
diff --git a/bin/resources/testkit-manager-logo.png b/bin/resources/testkit-manager-logo.png
new file mode 100644 (file)
index 0000000..8034bdf
Binary files /dev/null and b/bin/resources/testkit-manager-logo.png differ
diff --git a/bin/resources/tizen_logo.png b/bin/resources/tizen_logo.png
new file mode 100644 (file)
index 0000000..4857c5e
Binary files /dev/null and b/bin/resources/tizen_logo.png differ
diff --git a/bin/resources/tizen_logo_128.png b/bin/resources/tizen_logo_128.png
new file mode 100644 (file)
index 0000000..30f5d6c
Binary files /dev/null and b/bin/resources/tizen_logo_128.png differ
diff --git a/bin/resources/tizen_logo_16.png b/bin/resources/tizen_logo_16.png
new file mode 100644 (file)
index 0000000..ef38d30
Binary files /dev/null and b/bin/resources/tizen_logo_16.png differ
diff --git a/bin/resources/tizen_logo_22.png b/bin/resources/tizen_logo_22.png
new file mode 100644 (file)
index 0000000..08147b8
Binary files /dev/null and b/bin/resources/tizen_logo_22.png differ
diff --git a/bin/resources/tizen_logo_24.png b/bin/resources/tizen_logo_24.png
new file mode 100644 (file)
index 0000000..61520de
Binary files /dev/null and b/bin/resources/tizen_logo_24.png differ
diff --git a/bin/resources/tizen_logo_32.png b/bin/resources/tizen_logo_32.png
new file mode 100644 (file)
index 0000000..fab742b
Binary files /dev/null and b/bin/resources/tizen_logo_32.png differ
diff --git a/bin/resources/tizen_logo_48.png b/bin/resources/tizen_logo_48.png
new file mode 100644 (file)
index 0000000..040c505
Binary files /dev/null and b/bin/resources/tizen_logo_48.png differ
diff --git a/bin/resources/tizen_logo_64.png b/bin/resources/tizen_logo_64.png
new file mode 100644 (file)
index 0000000..25f0a1d
Binary files /dev/null and b/bin/resources/tizen_logo_64.png differ
diff --git a/build.xml b/build.xml
new file mode 100644 (file)
index 0000000..3c3b336
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+author: Tang, Shao-Feng<shaofeng.tang@intel.com>
+
+-->
+
+<project name="tct-mgr-app" default="jar" basedir=".">
+
+       <!-- set global properties for this build -->
+       <property name="project" location="." />
+       <property name="src" location="src" />
+       <property name="test" location="test" />
+       <property name="src_jaxb" location="src_jaxb" />
+       <property name="schema" location="schema" />
+       <property name="build" location="build" />
+       <property name="reports" location="reports" />
+       <property name="xml" location="xml" />
+       <property name="bin" location="${build}/bin" />
+       <property name="lib" location="lib" />
+       <property name="dest" location="dest" />
+
+       <path id="master-classpath">
+               <fileset file="${lib}/*.jar" />
+               <pathelement path="${bin}" />
+       </path>
+
+
+       <target name="init" depends="clean">
+               <mkdir dir="${build}" />
+               <mkdir dir="${bin}" />
+               <mkdir dir="${xml}" />
+               <mkdir dir="${reports}" />
+               <mkdir dir="${reports}/html" />
+               <mkdir dir="${dest}" />
+       </target>
+
+       <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
+               <classpath refid="master-classpath" />
+       </taskdef>
+
+       <!-- - - - - - - - - - - - - - - - - - 
+          target: spec_jaxb_codes
+          Generate JAXB codes for the schema of testcases which is defined by OTC QA team                      
+         - - - - - - - - - - - - - - - - - -->
+       <target name="spec_jaxb_codes">
+               <xjc schema="schema/test_definition.xsd" destdir="${src_jaxb}" package="org.tizen.tct.tool.mgr.jaxb.definition" />
+               <xjc schema="schema/plan.xsd" destdir="${src_jaxb}" package="org.tizen.tct.tool.mgr.jaxb.plan" />
+               <xjc schema="schema/plan_status.xsd" destdir="${src_jaxb}" package="org.tizen.tct.tool.mgr.jaxb.planstatus" />
+               <xjc schema="schema/result_summary.xsd" destdir="${src_jaxb}" package="org.tizen.tct.tool.mgr.jaxb.summary" />
+               <xjc schema="schema/capability.xsd" destdir="${src_jaxb}" package="org.tizen.tct.tool.mgr.jaxb.capability" />
+       </target>
+
+       <target name="compile" depends="init, spec_jaxb_codes" description="compile the source">
+               <javac destdir="${bin}" source="6" target="6">
+                       <src path="${src}" />
+                       <src path="${src_jaxb}" />
+                       <src path="${test}" />
+                       <classpath refid="master-classpath" />
+               </javac>
+       </target>
+
+       <target name="clean" description="clean up">
+               <delete dir="${bin}" />
+               <delete dir="${build}" />
+               <delete dir="${xml}" />
+               <delete dir="${reports}" />
+               <delete dir="${src_jaxb}/com" />
+               <delete dir="${dest}\${ant.project.name}.jar" />
+       </target>
+
+       <target name="junit" depends="compile">
+               <junit printsummary="yes">
+                       <classpath refid="master-classpath" />
+                       <batchtest todir="${xml}">
+                               <fileset dir="${test}">
+                                       <include name="**/*Test.java" />
+                               </fileset>
+                               <formatter type="xml" />
+                       </batchtest>
+               </junit>
+               <junitreport todir="${reports}">
+                       <fileset dir="${xml}">
+                               <include name="TEST-*.xml" />
+                       </fileset>
+                       <report format="frames" todir="${reports}/html" />
+               </junitreport>
+       </target>
+
+       <target name="jar" depends="compile" description="make .jar file">
+               <copy todir="${bin}/resources" flatten="true">
+                       <fileset dir="${src}">
+                               <include name="**/*.png" />
+                               <include name="**/*.jpeg" />
+                               <include name="**/*.jpg" />
+                       </fileset>
+               </copy>
+               <copy todir="${bin}" flatten="true">
+                       <fileset dir=".">
+                               <include name="LICENSE-2.0.txt" />
+                       </fileset>
+               </copy>
+               <jar jarfile="${dest}\${ant.project.name}.jar">
+                       <fileset dir="${bin}">
+                               <include name="**/*.*" />
+                               <exclude name="**/*Test.class" />
+                       </fileset>
+                       <!-- manifest>
+                               <attribute name="Main-Class" value="com.intel.otc.tool.tct.mgr.TctGui" />
+                       </manifest -->
+               </jar>
+               <mkdir dir="${dest}/lib" />
+               <copy todir="${dest}/lib" flatten="true">
+                       <resources>
+                               <file file="${lib}/appFramework-1.0.jar" />
+                               <file file="${lib}/commons-io-2.4.jar" />
+                               <file file="${lib}/jdom-1.1.2.jar" />
+                               <file file="${lib}/log4j-1.2.17.jar" />
+                               <file file="${lib}/json_simple-1.1.jar" />
+                       </resources>
+               </copy>
+               <copy todir="${dest}" flatten="true">
+                       <fileset dir="${src}">
+                               <include name="log4j.properties" />
+                       </fileset>
+               </copy>
+       </target>
+</project>
diff --git a/build/bin/LICENSE-2.0.txt b/build/bin/LICENSE-2.0.txt
new file mode 100644 (file)
index 0000000..d645695
--- /dev/null
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/build/bin/org/tizen/tct/tool/mgr/Constants$1.class b/build/bin/org/tizen/tct/tool/mgr/Constants$1.class
new file mode 100644 (file)
index 0000000..7111f54
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/Constants$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/Constants.class b/build/bin/org/tizen/tct/tool/mgr/Constants.class
new file mode 100644 (file)
index 0000000..180344d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/Constants.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/PackageList.class b/build/bin/org/tizen/tct/tool/mgr/PackageList.class
new file mode 100644 (file)
index 0000000..6238a8f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/PackageList.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/TctGui$1.class b/build/bin/org/tizen/tct/tool/mgr/TctGui$1.class
new file mode 100644 (file)
index 0000000..266ce9f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/TctGui$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/TctGui.class b/build/bin/org/tizen/tct/tool/mgr/TctGui.class
new file mode 100644 (file)
index 0000000..0ec3276
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/TctGui.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.class b/build/bin/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.class
new file mode 100644 (file)
index 0000000..314977f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/device/DeviceList.class b/build/bin/org/tizen/tct/tool/mgr/device/DeviceList.class
new file mode 100644 (file)
index 0000000..ef47c32
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/device/DeviceList.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/device/SdbDevice.class b/build/bin/org/tizen/tct/tool/mgr/device/SdbDevice.class
new file mode 100644 (file)
index 0000000..4a91d22
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/device/SdbDevice.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$1.class b/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$1.class
new file mode 100644 (file)
index 0000000..882e72c
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$2.class b/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$2.class
new file mode 100644 (file)
index 0000000..8307608
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog$2.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.class b/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.class
new file mode 100644 (file)
index 0000000..7fc4431
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities$Capability.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities$Capability.class
new file mode 100644 (file)
index 0000000..bf1e557
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities$Capability.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.class
new file mode 100644 (file)
index 0000000..9d5f498
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.class
new file mode 100644 (file)
index 0000000..45b581f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.class
new file mode 100644 (file)
index 0000000..495dad6
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.class
new file mode 100644 (file)
index 0000000..259f4ee
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.class
new file mode 100644 (file)
index 0000000..0fb46fc
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.class
new file mode 100644 (file)
index 0000000..acf556b
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Categories.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Categories.class
new file mode 100644 (file)
index 0000000..9d28acc
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Categories.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Description.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Description.class
new file mode 100644 (file)
index 0000000..b0dc2ce
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Description.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.class
new file mode 100644 (file)
index 0000000..763dce4
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.class
new file mode 100644 (file)
index 0000000..a9c17b5
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.class
new file mode 100644 (file)
index 0000000..5b62712
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.class
new file mode 100644 (file)
index 0000000..543c87e
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.class
new file mode 100644 (file)
index 0000000..8d358eb
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.class
new file mode 100644 (file)
index 0000000..08b043e
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Set.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Set.class
new file mode 100644 (file)
index 0000000..1b61b8e
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Set.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.class
new file mode 100644 (file)
index 0000000..b7336d5
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.class
new file mode 100644 (file)
index 0000000..d5120c8
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.class
new file mode 100644 (file)
index 0000000..07b4117
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.class
new file mode 100644 (file)
index 0000000..ea6f6e6
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.class
new file mode 100644 (file)
index 0000000..33bd1d2
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Step.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Step.class
new file mode 100644 (file)
index 0000000..6f8cf52
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Step.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Steps.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Steps.class
new file mode 100644 (file)
index 0000000..7de9124
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Steps.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Suite.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Suite.class
new file mode 100644 (file)
index 0000000..587f05d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Suite.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.class
new file mode 100644 (file)
index 0000000..1660472
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.class
new file mode 100644 (file)
index 0000000..8723d7a
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.class
new file mode 100644 (file)
index 0000000..9412f41
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.class
new file mode 100644 (file)
index 0000000..69e562e
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.class
new file mode 100644 (file)
index 0000000..86ba05b
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.class
new file mode 100644 (file)
index 0000000..da06d51
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.class
new file mode 100644 (file)
index 0000000..9b0a3d5
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.class
new file mode 100644 (file)
index 0000000..ad38319
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/package-info.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/package-info.class
new file mode 100644 (file)
index 0000000..ecd1ad3
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/plan/package-info.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.class
new file mode 100644 (file)
index 0000000..64f8983
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.class
new file mode 100644 (file)
index 0000000..5413496
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.class
new file mode 100644 (file)
index 0000000..42f62b4
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.class
new file mode 100644 (file)
index 0000000..b328ef2
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.class
new file mode 100644 (file)
index 0000000..751a5bd
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities$Capability.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities$Capability.class
new file mode 100644 (file)
index 0000000..0f89ee2
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities$Capability.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities.class
new file mode 100644 (file)
index 0000000..3085e56
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Capabilities.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Environment.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Environment.class
new file mode 100644 (file)
index 0000000..d70a0c0
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Environment.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Suite.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Suite.class
new file mode 100644 (file)
index 0000000..f3d1372
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Suite.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Summary.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Summary.class
new file mode 100644 (file)
index 0000000..e728060
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary$Summary.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.class b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.class
new file mode 100644 (file)
index 0000000..38cef0d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener$1.class b/build/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener$1.class
new file mode 100644 (file)
index 0000000..6df43bd
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener.class
new file mode 100644 (file)
index 0000000..a9a306f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/StartTestActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.class
new file mode 100644 (file)
index 0000000..d0027de
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.class
new file mode 100644 (file)
index 0000000..c18936c
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.class
new file mode 100644 (file)
index 0000000..4172b8c
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.class
new file mode 100644 (file)
index 0000000..98fc0d7
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.class
new file mode 100644 (file)
index 0000000..33ce565
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.class
new file mode 100644 (file)
index 0000000..279b5e0
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.class
new file mode 100644 (file)
index 0000000..3ea5e68
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.class b/build/bin/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.class
new file mode 100644 (file)
index 0000000..0cb50a4
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.class
new file mode 100644 (file)
index 0000000..03d0e07
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener$1.class b/build/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener$1.class
new file mode 100644 (file)
index 0000000..8a4c219
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.class
new file mode 100644 (file)
index 0000000..9abcd65
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.class
new file mode 100644 (file)
index 0000000..677ff02
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.class
new file mode 100644 (file)
index 0000000..157c4ff
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.class
new file mode 100644 (file)
index 0000000..a7f1bb3
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.class
new file mode 100644 (file)
index 0000000..7353baa
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener$1.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener$1.class
new file mode 100644 (file)
index 0000000..2e6a7b7
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.class
new file mode 100644 (file)
index 0000000..f0ff53e
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener$1.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener$1.class
new file mode 100644 (file)
index 0000000..d658d8b
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.class
new file mode 100644 (file)
index 0000000..be797f6
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.class
new file mode 100644 (file)
index 0000000..89866ed
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.class
new file mode 100644 (file)
index 0000000..00ce0dd
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/run/StopActionListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/run/StopActionListener.class
new file mode 100644 (file)
index 0000000..4e7a6f7
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/run/StopActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.class b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.class
new file mode 100644 (file)
index 0000000..5f3a03d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.class
new file mode 100644 (file)
index 0000000..c045858
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.class b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.class
new file mode 100644 (file)
index 0000000..de47048
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.class
new file mode 100644 (file)
index 0000000..81eef68
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.class b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.class
new file mode 100644 (file)
index 0000000..04355cd
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.class b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.class
new file mode 100644 (file)
index 0000000..7c3b923
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.class b/build/bin/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.class
new file mode 100644 (file)
index 0000000..f7d3cb1
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/CalculatResultThread.class b/build/bin/org/tizen/tct/tool/mgr/lite/CalculatResultThread.class
new file mode 100644 (file)
index 0000000..cfacee7
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/CalculatResultThread.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.class b/build/bin/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.class
new file mode 100644 (file)
index 0000000..80bc75f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.class b/build/bin/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.class
new file mode 100644 (file)
index 0000000..23785f5
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/InterruptableWorker.class b/build/bin/org/tizen/tct/tool/mgr/lite/InterruptableWorker.class
new file mode 100644 (file)
index 0000000..a0fa0e7
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/InterruptableWorker.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.class b/build/bin/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.class
new file mode 100644 (file)
index 0000000..f3c8a52
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor$1.class b/build/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor$1.class
new file mode 100644 (file)
index 0000000..d812bf1
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor.class b/build/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor.class
new file mode 100644 (file)
index 0000000..520f8d6
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/PlanExecutor.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/SdbCommand.class b/build/bin/org/tizen/tct/tool/mgr/lite/SdbCommand.class
new file mode 100644 (file)
index 0000000..9408426
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/SdbCommand.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/SdbCommandTest.class b/build/bin/org/tizen/tct/tool/mgr/lite/SdbCommandTest.class
new file mode 100644 (file)
index 0000000..eaa2f2b
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/SdbCommandTest.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/WorkerCallback.class b/build/bin/org/tizen/tct/tool/mgr/lite/WorkerCallback.class
new file mode 100644 (file)
index 0000000..befdc41
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/WorkerCallback.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/WorkerStatus.class b/build/bin/org/tizen/tct/tool/mgr/lite/WorkerStatus.class
new file mode 100644 (file)
index 0000000..541e196
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/WorkerStatus.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.class
new file mode 100644 (file)
index 0000000..39311c5
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.class
new file mode 100644 (file)
index 0000000..5cf3c1f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Base.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Base.class
new file mode 100644 (file)
index 0000000..87eaa3a
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Base.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Item.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Item.class
new file mode 100644 (file)
index 0000000..1088a26
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Item.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Section.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Section.class
new file mode 100644 (file)
index 0000000..8747558
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile$Section.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.class
new file mode 100644 (file)
index 0000000..9ecbe25
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.class
new file mode 100644 (file)
index 0000000..25ed996
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$1.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$1.class
new file mode 100644 (file)
index 0000000..163bec1
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$Worker.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$Worker.class
new file mode 100644 (file)
index 0000000..cc49b10
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils$Worker.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils.class
new file mode 100644 (file)
index 0000000..5a56f47
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/ProcessUtils.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultFilter.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultFilter.class
new file mode 100644 (file)
index 0000000..8661584
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultFilter.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultMerger.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultMerger.class
new file mode 100644 (file)
index 0000000..864e391
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultMerger.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultZipper.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultZipper.class
new file mode 100644 (file)
index 0000000..2b37ebd
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/ResultZipper.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.class b/build/bin/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.class
new file mode 100644 (file)
index 0000000..de702da
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/CaseResult$C_RESULT.class b/build/bin/org/tizen/tct/tool/mgr/model/CaseResult$C_RESULT.class
new file mode 100644 (file)
index 0000000..0b86cf1
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/CaseResult$C_RESULT.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/CaseResult.class b/build/bin/org/tizen/tct/tool/mgr/model/CaseResult.class
new file mode 100644 (file)
index 0000000..0062ad4
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/CaseResult.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType$1.class b/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType$1.class
new file mode 100644 (file)
index 0000000..6d2094a
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType$E_TYPE.class b/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType$E_TYPE.class
new file mode 100644 (file)
index 0000000..6442772
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType$E_TYPE.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType.class b/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType.class
new file mode 100644 (file)
index 0000000..e15e9ab
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/ExecuteType.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.class b/build/bin/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.class
new file mode 100644 (file)
index 0000000..dbe9310
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.class b/build/bin/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.class
new file mode 100644 (file)
index 0000000..87def0a
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/TctTestPlanTest.class b/build/bin/org/tizen/tct/tool/mgr/model/TctTestPlanTest.class
new file mode 100644 (file)
index 0000000..4cbe828
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/TctTestPlanTest.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/TctTestSuite.class b/build/bin/org/tizen/tct/tool/mgr/model/TctTestSuite.class
new file mode 100644 (file)
index 0000000..95b9c9b
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/TctTestSuite.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.class b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.class
new file mode 100644 (file)
index 0000000..25968fb
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.class b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.class
new file mode 100644 (file)
index 0000000..52f397f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.class b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.class
new file mode 100644 (file)
index 0000000..3abe149
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.class b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.class
new file mode 100644 (file)
index 0000000..4ddd111
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.class b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.class
new file mode 100644 (file)
index 0000000..d17afcd
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.class
new file mode 100644 (file)
index 0000000..392905b
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan$ExecuteCounter.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan$ExecuteCounter.class
new file mode 100644 (file)
index 0000000..e987d1a
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan$ExecuteCounter.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.class
new file mode 100644 (file)
index 0000000..df17670
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.class
new file mode 100644 (file)
index 0000000..1e3a2de
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.class
new file mode 100644 (file)
index 0000000..fc02972
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.class
new file mode 100644 (file)
index 0000000..89b7174
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.class
new file mode 100644 (file)
index 0000000..cfbf1ad
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.class
new file mode 100644 (file)
index 0000000..344a74d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.class
new file mode 100644 (file)
index 0000000..2c75c0e
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.class
new file mode 100644 (file)
index 0000000..981bae8
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.class
new file mode 100644 (file)
index 0000000..1adf9aa
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.class
new file mode 100644 (file)
index 0000000..46d4683
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.class
new file mode 100644 (file)
index 0000000..6eb4b88
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.class b/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.class
new file mode 100644 (file)
index 0000000..020abcf
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/report/SuitePath.class b/build/bin/org/tizen/tct/tool/mgr/model/report/SuitePath.class
new file mode 100644 (file)
index 0000000..af5299b
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/report/SuitePath.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel$1.class b/build/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel$1.class
new file mode 100644 (file)
index 0000000..9d32904
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.class b/build/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.class
new file mode 100644 (file)
index 0000000..45298ad
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/report/TctResultReport.class b/build/bin/org/tizen/tct/tool/mgr/model/report/TctResultReport.class
new file mode 100644 (file)
index 0000000..b01702d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/report/TctResultReport.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/run/NamedVector.class b/build/bin/org/tizen/tct/tool/mgr/model/run/NamedVector.class
new file mode 100644 (file)
index 0000000..5674183
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/run/NamedVector.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/run/SdbInstallable.class b/build/bin/org/tizen/tct/tool/mgr/model/run/SdbInstallable.class
new file mode 100644 (file)
index 0000000..18ac1f7
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/run/SdbInstallable.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.class b/build/bin/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.class
new file mode 100644 (file)
index 0000000..119b34c
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.class b/build/bin/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.class
new file mode 100644 (file)
index 0000000..93694e4
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.class b/build/bin/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.class
new file mode 100644 (file)
index 0000000..2e76e02
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/ContentPanel.class b/build/bin/org/tizen/tct/tool/mgr/view/ContentPanel.class
new file mode 100644 (file)
index 0000000..26b21d5
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/ContentPanel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/HealthCheckDlg.class b/build/bin/org/tizen/tct/tool/mgr/view/HealthCheckDlg.class
new file mode 100644 (file)
index 0000000..c36e42a
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/HealthCheckDlg.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/PlanJFrame.class b/build/bin/org/tizen/tct/tool/mgr/view/PlanJFrame.class
new file mode 100644 (file)
index 0000000..d40f785
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/PlanJFrame.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$1.class b/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$1.class
new file mode 100644 (file)
index 0000000..7037a00
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$FormGridBagConstraints.class b/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$FormGridBagConstraints.class
new file mode 100644 (file)
index 0000000..cce6450
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg$FormGridBagConstraints.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.class b/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.class
new file mode 100644 (file)
index 0000000..e625fb1
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/ProgressDialog.class b/build/bin/org/tizen/tct/tool/mgr/view/ProgressDialog.class
new file mode 100644 (file)
index 0000000..ff4d27c
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/ProgressDialog.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/ProgressInformable.class b/build/bin/org/tizen/tct/tool/mgr/view/ProgressInformable.class
new file mode 100644 (file)
index 0000000..5939065
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/ProgressInformable.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.class b/build/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.class
new file mode 100644 (file)
index 0000000..fe2d250
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.class b/build/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.class
new file mode 100644 (file)
index 0000000..0f89233
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$1.class b/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$1.class
new file mode 100644 (file)
index 0000000..88d692e
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$CloseActionListener.class b/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$CloseActionListener.class
new file mode 100644 (file)
index 0000000..c861744
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$CloseActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$IconPanel.class b/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$IconPanel.class
new file mode 100644 (file)
index 0000000..925198e
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog$IconPanel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog.class b/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog.class
new file mode 100644 (file)
index 0000000..1c173f7
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/menu/VersionDialog.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$1.class b/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$1.class
new file mode 100644 (file)
index 0000000..4ee4dbf
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$NaviLabel.class b/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$NaviLabel.class
new file mode 100644 (file)
index 0000000..cbd92c9
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel$NaviLabel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel.class b/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel.class
new file mode 100644 (file)
index 0000000..0defd4d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/navi/LogoPanel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/ConfirmButton.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/ConfirmButton.class
new file mode 100644 (file)
index 0000000..cd89f26
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/ConfirmButton.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/OptionRadio.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/OptionRadio.class
new file mode 100644 (file)
index 0000000..a9dc982
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/OptionRadio.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog$1.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog$1.class
new file mode 100644 (file)
index 0000000..4411c38
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.class
new file mode 100644 (file)
index 0000000..17d948a
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel$DashGridBagConstraints.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel$DashGridBagConstraints.class
new file mode 100644 (file)
index 0000000..7fc6eea
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel$DashGridBagConstraints.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.class
new file mode 100644 (file)
index 0000000..7849b1d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$1.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$1.class
new file mode 100644 (file)
index 0000000..08bb63f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$2.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$2.class
new file mode 100644 (file)
index 0000000..53f8f04
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel$2.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.class
new file mode 100644 (file)
index 0000000..d2eab14
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/RadioListener.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/RadioListener.class
new file mode 100644 (file)
index 0000000..33f20f4
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/RadioListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.class
new file mode 100644 (file)
index 0000000..cd1b959
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor$CheckSuiteActionListener.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor$CheckSuiteActionListener.class
new file mode 100644 (file)
index 0000000..e3799ad
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor$CheckSuiteActionListener.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.class
new file mode 100644 (file)
index 0000000..46b2723
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.class b/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.class
new file mode 100644 (file)
index 0000000..bce1da9
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.class
new file mode 100644 (file)
index 0000000..cac6114
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.class
new file mode 100644 (file)
index 0000000..6b53f24
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.class
new file mode 100644 (file)
index 0000000..0076a7c
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.class
new file mode 100644 (file)
index 0000000..b585fde
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.class
new file mode 100644 (file)
index 0000000..66693a8
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.class
new file mode 100644 (file)
index 0000000..00bb7e4
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane$1.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane$1.class
new file mode 100644 (file)
index 0000000..e704b25
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane$1.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.class
new file mode 100644 (file)
index 0000000..7e1b7fc
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.class b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.class
new file mode 100644 (file)
index 0000000..49d03cd
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.class b/build/bin/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.class
new file mode 100644 (file)
index 0000000..53e1d10
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.class
new file mode 100644 (file)
index 0000000..64adc8d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/Informable.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/Informable.class
new file mode 100644 (file)
index 0000000..36ca6f2
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/Informable.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTree.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTree.class
new file mode 100644 (file)
index 0000000..267d522
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTree.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.class
new file mode 100644 (file)
index 0000000..3118739
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.class
new file mode 100644 (file)
index 0000000..bf914ce
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.class
new file mode 100644 (file)
index 0000000..2cb61ff
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/RunPanel.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/RunPanel.class
new file mode 100644 (file)
index 0000000..becad8f
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/RunPanel.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.class
new file mode 100644 (file)
index 0000000..267c25d
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.class
new file mode 100644 (file)
index 0000000..69794e0
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.class
new file mode 100644 (file)
index 0000000..fa4f2ec
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.class
new file mode 100644 (file)
index 0000000..7dcebb1
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.class
new file mode 100644 (file)
index 0000000..0676afe
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.class
new file mode 100644 (file)
index 0000000..42ba0dc
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.class
new file mode 100644 (file)
index 0000000..b9545d0
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.class
new file mode 100644 (file)
index 0000000..e396672
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.class
new file mode 100644 (file)
index 0000000..109cbf0
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.class
new file mode 100644 (file)
index 0000000..f29efef
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.class
new file mode 100644 (file)
index 0000000..30f9cc0
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.class
new file mode 100644 (file)
index 0000000..b3e948c
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI$MouseInputHandler.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI$MouseInputHandler.class
new file mode 100644 (file)
index 0000000..0c02186
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI$MouseInputHandler.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.class
new file mode 100644 (file)
index 0000000..a49bb30
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.class
new file mode 100644 (file)
index 0000000..318fbd8
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.class b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.class
new file mode 100644 (file)
index 0000000..d95ced9
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.class b/build/bin/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.class
new file mode 100644 (file)
index 0000000..5cbf126
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.class b/build/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.class
new file mode 100644 (file)
index 0000000..c226571
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.class differ
diff --git a/build/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.class b/build/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.class
new file mode 100644 (file)
index 0000000..5a94d8c
Binary files /dev/null and b/build/bin/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.class differ
diff --git a/build/bin/resources/collapse.png b/build/bin/resources/collapse.png
new file mode 100644 (file)
index 0000000..cd5e3ad
Binary files /dev/null and b/build/bin/resources/collapse.png differ
diff --git a/build/bin/resources/completed.png b/build/bin/resources/completed.png
new file mode 100644 (file)
index 0000000..4886116
Binary files /dev/null and b/build/bin/resources/completed.png differ
diff --git a/build/bin/resources/expands.png b/build/bin/resources/expands.png
new file mode 100644 (file)
index 0000000..4ec4a7f
Binary files /dev/null and b/build/bin/resources/expands.png differ
diff --git a/build/bin/resources/operation_continue_execution.png b/build/bin/resources/operation_continue_execution.png
new file mode 100644 (file)
index 0000000..14164c8
Binary files /dev/null and b/build/bin/resources/operation_continue_execution.png differ
diff --git a/build/bin/resources/operation_download.png b/build/bin/resources/operation_download.png
new file mode 100644 (file)
index 0000000..2422a74
Binary files /dev/null and b/build/bin/resources/operation_download.png differ
diff --git a/build/bin/resources/operation_mail.png b/build/bin/resources/operation_mail.png
new file mode 100644 (file)
index 0000000..09d17b3
Binary files /dev/null and b/build/bin/resources/operation_mail.png differ
diff --git a/build/bin/resources/operation_rerun.png b/build/bin/resources/operation_rerun.png
new file mode 100644 (file)
index 0000000..cb1c917
Binary files /dev/null and b/build/bin/resources/operation_rerun.png differ
diff --git a/build/bin/resources/operation_resume.png b/build/bin/resources/operation_resume.png
new file mode 100644 (file)
index 0000000..82bffb8
Binary files /dev/null and b/build/bin/resources/operation_resume.png differ
diff --git a/build/bin/resources/testkit-manager-logo.png b/build/bin/resources/testkit-manager-logo.png
new file mode 100644 (file)
index 0000000..8034bdf
Binary files /dev/null and b/build/bin/resources/testkit-manager-logo.png differ
diff --git a/build/bin/resources/tizen_logo.png b/build/bin/resources/tizen_logo.png
new file mode 100644 (file)
index 0000000..4857c5e
Binary files /dev/null and b/build/bin/resources/tizen_logo.png differ
diff --git a/build/bin/resources/tizen_logo_128.png b/build/bin/resources/tizen_logo_128.png
new file mode 100644 (file)
index 0000000..30f5d6c
Binary files /dev/null and b/build/bin/resources/tizen_logo_128.png differ
diff --git a/build/bin/resources/tizen_logo_16.png b/build/bin/resources/tizen_logo_16.png
new file mode 100644 (file)
index 0000000..ef38d30
Binary files /dev/null and b/build/bin/resources/tizen_logo_16.png differ
diff --git a/build/bin/resources/tizen_logo_22.png b/build/bin/resources/tizen_logo_22.png
new file mode 100644 (file)
index 0000000..08147b8
Binary files /dev/null and b/build/bin/resources/tizen_logo_22.png differ
diff --git a/build/bin/resources/tizen_logo_24.png b/build/bin/resources/tizen_logo_24.png
new file mode 100644 (file)
index 0000000..61520de
Binary files /dev/null and b/build/bin/resources/tizen_logo_24.png differ
diff --git a/build/bin/resources/tizen_logo_32.png b/build/bin/resources/tizen_logo_32.png
new file mode 100644 (file)
index 0000000..fab742b
Binary files /dev/null and b/build/bin/resources/tizen_logo_32.png differ
diff --git a/build/bin/resources/tizen_logo_48.png b/build/bin/resources/tizen_logo_48.png
new file mode 100644 (file)
index 0000000..040c505
Binary files /dev/null and b/build/bin/resources/tizen_logo_48.png differ
diff --git a/build/bin/resources/tizen_logo_64.png b/build/bin/resources/tizen_logo_64.png
new file mode 100644 (file)
index 0000000..25f0a1d
Binary files /dev/null and b/build/bin/resources/tizen_logo_64.png differ
diff --git a/deploy.sh b/deploy.sh
new file mode 100755 (executable)
index 0000000..a3aa60c
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,28 @@
+mkdir -p /opt/tct
+mkdir -p /opt/tct/manager
+mkdir -p /opt/tct/manager/lib
+mkdir -p /opt/tct/manager/plan
+mkdir -p /opt/tct/manager/style
+mkdir -p /opt/tct/manager/doc
+mkdir -p /opt/tct/manager/log
+mkdir -p /opt/tct/manager/config
+mkdir -p /opt/tct/manager/result
+
+chmod ugo+rwx /opt/tct/manager
+chmod ugo+rwx /opt/tct/manager/lib
+chmod ugo+rwx /opt/tct/manager/plan
+chmod ugo+rwx /opt/tct/manager/style
+chmod ugo+rwx /opt/tct/manager/log
+chmod ugo+rwx /opt/tct/manager/config
+chmod ugo+rwx /opt/tct/manager/result
+chmod ugo+rwx /opt/tct/packages
+
+cp ./dest/*.jar /opt/tct/manager/lib/
+cp ./dest/lib/*.jar /opt/tct/manager/lib/
+
+cp ./dest/tct-mgr /usr/bin/
+cp ./dest/full_pkg_generator /usr/bin/
+cp ./style/* /opt/tct/manager/style/
+cp ./doc/* /opt/tct/manager/doc/
+cp ./dest/log4j.properties /opt/tct/manager/config/
+
diff --git a/dest/full_pkg_generator b/dest/full_pkg_generator
new file mode 100755 (executable)
index 0000000..0409c67
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+java -cp /opt/tct/manager/config/:/opt/tct/manager/lib/log4j-1.2.17.jar:/opt/tct/manager/lib/tct-mgr-app.jar:/opt/tct/manager/lib/appFramework-1.0.jar:/opt/tct/manager/lib/commons-io-2.4.jar:/opt/tct/manager/lib/jdom-1.1.2.jar:/opt/tct/manager/lib/json_simple-1.1.jar org.tizen.tct.tool.mgr.PackageList
diff --git a/dest/lib/appFramework-1.0.jar b/dest/lib/appFramework-1.0.jar
new file mode 100644 (file)
index 0000000..f480d62
Binary files /dev/null and b/dest/lib/appFramework-1.0.jar differ
diff --git a/dest/lib/commons-io-2.4.jar b/dest/lib/commons-io-2.4.jar
new file mode 100644 (file)
index 0000000..90035a4
Binary files /dev/null and b/dest/lib/commons-io-2.4.jar differ
diff --git a/dest/lib/jdom-1.1.2.jar b/dest/lib/jdom-1.1.2.jar
new file mode 100644 (file)
index 0000000..b8091ef
Binary files /dev/null and b/dest/lib/jdom-1.1.2.jar differ
diff --git a/dest/lib/json_simple-1.1.jar b/dest/lib/json_simple-1.1.jar
new file mode 100644 (file)
index 0000000..f395f41
Binary files /dev/null and b/dest/lib/json_simple-1.1.jar differ
diff --git a/dest/lib/log4j-1.2.17.jar b/dest/lib/log4j-1.2.17.jar
new file mode 100644 (file)
index 0000000..068867e
Binary files /dev/null and b/dest/lib/log4j-1.2.17.jar differ
diff --git a/dest/log4j.properties b/dest/log4j.properties
new file mode 100644 (file)
index 0000000..ac48a10
--- /dev/null
@@ -0,0 +1,33 @@
+log4j.rootLogger=INFO,CONSOLE,FILE, ROLLING_FILE
+#DEBUG,CONSOLE,FILE,ROLLING_FILE,MAIL,DATABASE
+log4j.addivity.org.apache=true
+###################
+# Console Appender
+###################
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.Threshold=DEBUG
+log4j.appender.CONSOLE.Target=System.out
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
+#log4j.appender.CONSOLE.layout.ConversionPattern=[start]%d{DATE}[DATE]%n%p[PRIORITY]%n%x[NDC]%n%t[THREAD] n%c[CATEGORY]%n%m[MESSAGE]%n%n
+#####################
+# File Appender
+#####################
+log4j.appender.FILE=org.apache.log4j.FileAppender
+log4j.appender.FILE.File=/opt/tct/manager/log/file.log
+log4j.appender.FILE.Append=false
+log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
+#log4j.appender.FILE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n
+log4j.appender.FILE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
+########################
+# Rolling File
+########################
+log4j.appender.ROLLING_FILE=org.apache.log4j.RollingFileAppender
+log4j.appender.ROLLING_FILE.Threshold=ERROR
+log4j.appender.ROLLING_FILE.File=/opt/tct/manager/log/rolling.log
+log4j.appender.ROLLING_FILE.Append=true
+log4j.appender.ROLLING_FILE.MaxFileSize=10KB
+log4j.appender.ROLLING_FILE.MaxBackupIndex=1
+log4j.appender.ROLLING_FILE.layout=org.apache.log4j.PatternLayout
+#log4j.appender.ROLLING_FILE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n
+log4j.appender.ROLLING_FILE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
\ No newline at end of file
diff --git a/dest/tct-mgr b/dest/tct-mgr
new file mode 100755 (executable)
index 0000000..c582f58
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+java -cp /opt/tct/manager/config/:/opt/tct/manager/lib/log4j-1.2.17.jar:/opt/tct/manager/lib/tct-mgr-app.jar:/opt/tct/manager/lib/appFramework-1.0.jar:/opt/tct/manager/lib/commons-io-2.4.jar:/opt/tct/manager/lib/jdom-1.1.2.jar:/opt/tct/manager/lib/json_simple-1.1.jar org.tizen.tct.tool.mgr.TctGui
diff --git a/dest/tct-mgr-app.jar b/dest/tct-mgr-app.jar
new file mode 100644 (file)
index 0000000..e82e55a
Binary files /dev/null and b/dest/tct-mgr-app.jar differ
diff --git a/doc/TCT-manager-guide.pdf b/doc/TCT-manager-guide.pdf
new file mode 100644 (file)
index 0000000..787908d
Binary files /dev/null and b/doc/TCT-manager-guide.pdf differ
diff --git a/lib/appFramework-1.0.jar b/lib/appFramework-1.0.jar
new file mode 100644 (file)
index 0000000..f480d62
Binary files /dev/null and b/lib/appFramework-1.0.jar differ
diff --git a/lib/commons-io-2.4-sources.jar b/lib/commons-io-2.4-sources.jar
new file mode 100644 (file)
index 0000000..f4ebc7b
Binary files /dev/null and b/lib/commons-io-2.4-sources.jar differ
diff --git a/lib/commons-io-2.4.jar b/lib/commons-io-2.4.jar
new file mode 100644 (file)
index 0000000..90035a4
Binary files /dev/null and b/lib/commons-io-2.4.jar differ
diff --git a/lib/jaxb-api.jar b/lib/jaxb-api.jar
new file mode 100644 (file)
index 0000000..3e6d134
Binary files /dev/null and b/lib/jaxb-api.jar differ
diff --git a/lib/jaxb-impl.jar b/lib/jaxb-impl.jar
new file mode 100644 (file)
index 0000000..7670708
Binary files /dev/null and b/lib/jaxb-impl.jar differ
diff --git a/lib/jaxb-xjc.jar b/lib/jaxb-xjc.jar
new file mode 100644 (file)
index 0000000..fc5d69d
Binary files /dev/null and b/lib/jaxb-xjc.jar differ
diff --git a/lib/jdom-1.1.2.jar b/lib/jdom-1.1.2.jar
new file mode 100644 (file)
index 0000000..b8091ef
Binary files /dev/null and b/lib/jdom-1.1.2.jar differ
diff --git a/lib/jnlp.jar b/lib/jnlp.jar
new file mode 100644 (file)
index 0000000..8fd98f2
Binary files /dev/null and b/lib/jnlp.jar differ
diff --git a/lib/json_simple-1.1.jar b/lib/json_simple-1.1.jar
new file mode 100644 (file)
index 0000000..f395f41
Binary files /dev/null and b/lib/json_simple-1.1.jar differ
diff --git a/lib/junit-4.10-src.jar b/lib/junit-4.10-src.jar
new file mode 100644 (file)
index 0000000..458b63c
Binary files /dev/null and b/lib/junit-4.10-src.jar differ
diff --git a/lib/junit-4.10.jar b/lib/junit-4.10.jar
new file mode 100644 (file)
index 0000000..bf5c0b9
Binary files /dev/null and b/lib/junit-4.10.jar differ
diff --git a/lib/log4j-1.2.17.jar b/lib/log4j-1.2.17.jar
new file mode 100644 (file)
index 0000000..068867e
Binary files /dev/null and b/lib/log4j-1.2.17.jar differ
diff --git a/schema/capability.xsd b/schema/capability.xsd
new file mode 100644 (file)
index 0000000..bdb9af4
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema attributeFormDefault="unqualified"
+       elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+       <xs:element name="capabilities">
+               <xs:complexType>
+                       <xs:sequence>
+                               <xs:element name="capability" maxOccurs="unbounded"
+                                       minOccurs="0">
+                                       <xs:complexType>
+                                               <xs:sequence>
+                                                       <xs:element type="xs:string" name="value" maxOccurs="1"
+                                                               minOccurs="0" />
+                                               </xs:sequence>
+                                               <xs:attribute type="xs:string" name="name" use="optional" />
+                                               <xs:attribute type="xs:string" name="support" use="optional" />
+                                               <xs:attribute type="xs:string" name="type" use="optional" />
+                                       </xs:complexType>
+                               </xs:element>
+                       </xs:sequence>
+               </xs:complexType>
+       </xs:element>
+</xs:schema>
+
diff --git a/schema/device_capability.xml b/schema/device_capability.xml
new file mode 100644 (file)
index 0000000..e7b8051
--- /dev/null
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<capabilities>\r
+    <capability name="screenSize720_1280" support="true" type="boolean"/>\r
+    <capability name="telephony" support="true" type="boolean"/>\r
+    <capability name="shellAppWidget" support="true" type="boolean"/>\r
+    <capability name="sipVoip" support="false" type="boolean"/>\r
+    <capability name="wifiDirect" support="true" type="boolean"/>\r
+    <capability name="location" support="true" type="boolean"/>\r
+    <capability name="screenOutputHdmi" support="true" type="boolean"/>\r
+    <capability name="secureElement" support="true" type="boolean"/>\r
+    <capability name="duid" support="true" type="String">\r
+        <value>uotfcbdlmcf14
+</value>\r
+    </capability>\r
+    <capability name="nfc" support="true" type="boolean"/>\r
+    <capability name="cameraBackFlash" support="true" type="boolean"/>\r
+    <capability name="openglesVersion1_1" support="true" type="boolean"/>\r
+    <capability name="camera" support="true" type="boolean"/>\r
+    <capability name="usbAccessory" support="true" type="boolean"/>\r
+    <capability name="bluetooth" support="true" type="boolean"/>\r
+    <capability name="gyroscopeWakeup" support="false" type="boolean"/>\r
+    <capability name="wifi" support="true" type="boolean"/>\r
+    <capability name="cameraFront" support="false" type="boolean"/>\r
+    <capability name="proximityWakeup" support="false" type="boolean"/>\r
+    <capability name="proximity" support="true" type="boolean"/>\r
+    <capability name="visionFaceRecognition" support="true" type="boolean"/>\r
+    <capability name="tiltmeter" support="true" type="boolean"/>\r
+    <capability name="platformName" support="true" type="String">\r
+        <value>Tizen</value>\r
+    </capability>\r
+    <capability name="cameraBack" support="true" type="boolean"/>\r
+    <capability name="gyroscope" support="true" type="boolean"/>\r
+    <capability name="visionQrcodeGeneration" support="true" type="boolean"/>\r
+    <capability name="locationGps" support="true" type="boolean"/>\r
+    <capability name="nfcReservedPush" support="true" type="boolean"/>\r
+    <capability name="screenSizeNormal" support="true" type="boolean"/>\r
+    <capability name="dataEncryption" support="false" type="boolean"/>\r
+    <capability name="cameraFrontFlash" support="false" type="boolean"/>\r
+    <capability name="barometerWakeup" support="false" type="boolean"/>\r
+    <capability name="visionQrcodeRecognition" support="true" type="boolean"/>\r
+    <capability name="barometer" support="false" type="boolean"/>\r
+    <capability name="nativeApiVersion" support="true" type="String">\r
+        <value>2.2</value>\r
+    </capability>\r
+    <capability name="tiltmeterWakeup" support="false" type="boolean"/>\r
+    <capability name="push" support="true" type="boolean"/>\r
+    <capability name="multiTouchCount" support="true" type="Integer">\r
+        <value>10</value>\r
+    </capability>\r
+    <capability name="screenOutputRca" support="false" type="boolean"/>\r
+    <capability name="openglestextureFormat" support="true" type="String">\r
+        <value>etc</value>\r
+    </capability>\r
+    <capability name="graphicsAcceleration" support="true" type="boolean"/>\r
+    <capability name="accelerometer" support="true" type="boolean"/>\r
+    <capability name="telephonyMms" support="true" type="boolean"/>\r
+    <capability name="autoRotation" support="true" type="boolean"/>\r
+    <capability name="inputKeyboardLayout" support="true" type="boolean"/>\r
+    <capability name="profile" support="true" type="String">\r
+        <value>MOBILE_FULL</value>\r
+    </capability>\r
+    <capability name="speechSynthesis" support="true" type="boolean"/>\r
+    <capability name="telephonySms" support="true" type="boolean"/>\r
+    <capability name="webApiVersion" support="true" type="String">\r
+        <value>2.2</value>\r
+    </capability>\r
+    <capability name="inputKeyboard" support="false" type="boolean"/>\r
+    <capability name="accelerometerWakeup" support="true" type="boolean"/>\r
+    <capability name="speechRecognition" support="false" type="boolean"/>\r
+    <capability name="visionImageRecognition" support="true" type="boolean"/>\r
+    <capability name="nativeOspCompatible" support="true" type="boolean"/>\r
+    <capability name="photometer" support="true" type="boolean"/>\r
+    <capability name="platformCoreCpuArch" support="true" type="String">\r
+        <value>armv7</value>\r
+    </capability>\r
+    <capability name="magnetometer" support="true" type="boolean"/>\r
+    <capability name="usbHost" support="true" type="boolean"/>\r
+    <capability name="openglesVersion2_0" support="true" type="boolean"/>\r
+    <capability name="platformVersion" support="true" type="String">\r
+        <value>2.2.0</value>\r
+    </capability>\r
+    <capability name="fmRadio" support="false" type="boolean"/>\r
+    <capability name="screenSize480_800" support="false" type="boolean"/>\r
+    <capability name="photometerWakeup" support="false" type="boolean"/>\r
+    <capability name="locationWps" support="true" type="boolean"/>\r
+    <capability name="magnetometerWakeup" support="false" type="boolean"/>\r
+    <capability name="opengles" support="true" type="boolean"/>\r
+    <capability name="platformCoreFpuArch" support="true" type="String">\r
+        <value>vfpv3</value>\r
+    </capability>\r
+    <capability name="microphone" support="true" type="boolean"/>\r
+</capabilities>
\ No newline at end of file
diff --git a/schema/plan.xml b/schema/plan.xml
new file mode 100644 (file)
index 0000000..8300195
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<testplan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/plan/plan.xsd ">
+  <execute_type>All</execute_type>
+  <suite launcher="" name="" category="">
+    <auto_tcn>0</auto_tcn>
+    <manual_tcn>0</manual_tcn>
+    <total_tcn>0</total_tcn>
+    <pkg_name>rpm_name</pkg_name>
+  </suite>
+</testplan>
diff --git a/schema/plan.xsd b/schema/plan.xsd
new file mode 100644 (file)
index 0000000..72a88a0
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.example.org/plan/"
+       targetNamespace="http://www.example.org/plan/">
+       <element name="testplan">
+               <complexType>
+                       <sequence>
+                               <element name="execute_type" type="tns:execute_typeType"
+                                       minOccurs="1" maxOccurs="1">
+                               </element>
+                               <element name="suite" type="tns:suiteType" minOccurs="1"
+                                       maxOccurs="unbounded">
+                               </element>
+                       </sequence>
+                       <attribute name="name" type="string"></attribute>
+               </complexType>
+       </element>
+
+
+
+       <simpleType name="execute_typeType">
+               <restriction base="string">
+                       <enumeration value="All"></enumeration>
+                       <enumeration value="Auto"></enumeration>
+                       <enumeration value="Manual"></enumeration>
+               </restriction>
+       </simpleType>
+
+       <complexType name="suiteType">
+               <sequence>
+                       <element name="auto_tcn" type="int"></element>
+                       <element name="manual_tcn" type="int"></element>
+                       <element name="total_tcn" type="int"></element>
+                       <element name="pkg_name" type="string"></element>
+               </sequence>
+               <attribute name="name" type="string"></attribute>
+               <attribute name="launcher" type="string"></attribute>
+               <attribute name="category" type="string"></attribute>
+       </complexType>
+</schema>
\ No newline at end of file
diff --git a/schema/plan_status.xml b/schema/plan_status.xml
new file mode 100644 (file)
index 0000000..c13cd41
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tns:plan_status name="" xmlns:tns="http://www.example.org/plan_status/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/plan_status/ plan_status.xsd ">
+  <auto_tasks>
+    <executed>executed</executed>
+    <executing>executing</executing>
+  </auto_tasks>
+  <manual_tasks>
+    <executed>executed</executed>
+    <executed>executed</executed>
+    <executed>executed</executed>
+    <executed>executed</executed>
+    <executed>executed</executed>
+    <executing>executing</executing>
+    
+    <executing>executing</executing>
+    <executing>executing</executing>
+    <executing>executing</executing>
+    <executing>executing</executing>
+    <executing>executing</executing>
+    <executing>executing</executing>
+  </manual_tasks>
+</tns:plan_status>
diff --git a/schema/plan_status.xsd b/schema/plan_status.xsd
new file mode 100644 (file)
index 0000000..4b38f87
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.example.org/plan_status/" targetNamespace="http://www.example.org/plan_status/">
+    <element name="plan_status">
+               <complexType>
+                       <sequence>
+                               <element name="auto_tasks" type="tns:tasksType"></element>
+                               <element name="manual_tasks" type="tns:tasksType"></element>
+                       </sequence>
+                       <attribute name="name" type="string"></attribute>
+                       <attribute name="executeType" type="string"></attribute>
+               </complexType>
+    </element>
+
+    <complexType name="tasksType">
+       <sequence>
+               <element name="executed" type="string" minOccurs="0"
+                       maxOccurs="unbounded">
+               </element>
+               <element name="executing" type="string" minOccurs="0" maxOccurs="unbounded"></element>
+       </sequence>
+    </complexType>
+    
+</schema>
\ No newline at end of file
diff --git a/schema/release-notes b/schema/release-notes
new file mode 100644 (file)
index 0000000..30e97e8
--- /dev/null
@@ -0,0 +1,86 @@
+-- version 1.0.1-2 --
+
+ adding 2 new case types "compliance" and "user_experience"
+-- version 1.0.1-3 --
+ Add a new sub-element "spec" (type: string) under the "testcase" element.
+-- version 1.0.1-4 --
+  
+ Add 2 new priority "P3" and "P4"
+-- version 1.0.1-5 --
+ Add a new root "test_definition", and the element "suite" has been move into it as children elements.
+-- version 1.0.1-6 --
+ A new optional attribute "launcher" is added in the element "testdefinition" for supporting identifying which kind of test suites the XML is designed for
+
+-- version 1.0.1-7 --
+The Xslt related files are merged into this repo. 
+including 
+
+        tests.css             // CSS style for showing test cases and results
+        testresult.xsl
+        testcase.xsl
+        tests.xml             //example of test cases
+        result.xml            //example of test result
+        application.js        //Javascript for "back to top"
+        jquery.min.js         //JQuery
+        back_top.png          //image for "back to top"
+
+Modification in Schema:
+
+1\ the optional attribute "launcher" is moved into suite, not in "testdefinition" element any longer.
+
+2\ "spec" element is removed. and a new "specs" structure is added as below
+
+                                <specs>
+                                       <spec>
+                                               <spec_assertion category="Tizen Device API Specifications"
+                                                       section="Widget" specification="Widget Packaging and XML Configuration"
+                                                       interface="Widget" usage="true" />
+                                               <spec_url>http://www.w3.org/TR/widgets-apis/</spec_url>
+                                               <spec_statement>spec_statement</spec_statement>
+                                       </spec>
+                               </specs>
+All spec-related infomation are re-organized as XML element and attributes.
+
+In Xslt, 
+
+1\ a float image "Back to top" is available on right-bottom for scrolling to top.
+
+2\ html anchor is adder for scrolling back to suite summary table, and case detail tables.
+
+-- version 1.0.1-8 --
+1\ For more flexible, rename the attribute "method_or_attribute" to "element_name".
+2\ Add a new attribute "element_type" to describe the type of the corresponding specification item
+
+related example and Xlst is also updated for above.
+
+-- version 1.0.1-9 --
+1\ add an attribute "cts_version" in the element "environment/BuildInfoType" for saving the version of CTS tool
+2\ add an attribute "file" in "measurement/simpleMeasurementType"
+3\ update the result XSLt for showing cts_version
+4\ update the result XSLt for showing Â¡Â°Test Blocked¡± instead of "Test N/A"
+5\ add a summary table for showing all FAIL cases.
+
+
+-- version 1.0.2-1 --
+1\ add a new int optional attribute "onload_delay" with default "3"
+
+-- version 1.0.2-2 --
+1\ Add a new sub element "capabilities" under the element "testcase"
+2\ Add a new boolean attribute "check_unsupport_error" in the element "testcase"
+
+-- version 1.0.2-3 --
+1\ Move the sub element "capabilities" from the element "testcase" to the element "set"
+
+
+-- version 1.0.2-4 --
+1\ Add a unique limitation for suite name
+2\ Add a new optional attribute "launcher" in set 
+
+
+-- version 1.0.2-5 --
+1\ Add a attribute "set_debug_msg" in set for recording the name of log file.
diff --git a/schema/result_summary.xsd b/schema/result_summary.xsd
new file mode 100644 (file)
index 0000000..bba192e
--- /dev/null
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"\r
+       elementFormDefault="qualified" attributeFormDefault="unqualified">\r
+       <!-- XML Schema Generated from XML Document on Wed Jul 10 2013 20:16:47 \r
+               GMT+0800 (CST) -->\r
+       <!-- with XmlGrid.net Free Online Service http://xmlgrid.net -->\r
+       <xs:element name="result_summary">\r
+               <xs:complexType>\r
+                       <xs:sequence>\r
+                               <xs:element name="environment">\r
+                                       <xs:complexType>\r
+                                               <xs:sequence>\r
+                                                       <xs:element name="other"></xs:element>\r
+                                               </xs:sequence>\r
+                                               <xs:attribute name="build_id" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="cts_version" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="device_id" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="device_model" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="device_name" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="host" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="os_version" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="resolution" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="screen_size" type="xs:string"></xs:attribute>\r
+                                               <xs:attribute name="manufacturer" type="xs:string"></xs:attribute>\r
+                                       </xs:complexType>\r
+                               </xs:element>\r
+                               <xs:element name="summary">\r
+                                       <xs:complexType>\r
+                                               <xs:sequence>\r
+                                                       <xs:element name="start_at" type="xs:string"></xs:element>\r
+                                                       <xs:element name="end_at" type="xs:string"></xs:element>\r
+                                               </xs:sequence>\r
+                                               <xs:attribute name="test_plan_name" type="xs:string"></xs:attribute>\r
+                                       </xs:complexType>\r
+                               </xs:element>\r
+                               <xs:element name="capabilities">\r
+                                       <xs:complexType>\r
+                                               <xs:sequence>\r
+                                                       <xs:element name="capability" maxOccurs="unbounded">\r
+                                                               <xs:complexType>\r
+                                                                       <xs:sequence>\r
+                                                                               <xs:element name="value" type="xs:string"></xs:element>\r
+                                                                       </xs:sequence>\r
+                                                                       <xs:attribute name="name" type="xs:string"></xs:attribute>\r
+                                                                       <xs:attribute name="support" type="xs:string"></xs:attribute>\r
+                                                                       <xs:attribute name="type" type="xs:string"></xs:attribute>\r
+                                                               </xs:complexType>\r
+                                                       </xs:element>\r
+                                               </xs:sequence>\r
+                                       </xs:complexType>\r
+                               </xs:element>\r
+                               <xs:element name="suite" maxOccurs="unbounded">\r
+                                       <xs:complexType>\r
+                                               <xs:sequence>\r
+                                                       <xs:element name="total_case" type="xs:int"></xs:element>\r
+                                                       <xs:element name="pass_case" type="xs:int"></xs:element>\r
+                                                       <xs:element name="pass_rate" type="xs:string"></xs:element>\r
+                                                       <xs:element name="fail_case" type="xs:int"></xs:element>\r
+                                                       <xs:element name="fail_rate" type="xs:string"></xs:element>\r
+                                                       <xs:element name="block_case" type="xs:int"></xs:element>\r
+                                                       <xs:element name="block_rate" type="xs:string"></xs:element>\r
+                                                       <xs:element name="na_case" type="xs:int"></xs:element>\r
+                                                       <xs:element name="na_rate" type="xs:string"></xs:element>\r
+                                               </xs:sequence>\r
+                                               <xs:attribute name="name" type="xs:string"></xs:attribute>\r
+                                       </xs:complexType>\r
+                               </xs:element>\r
+                       </xs:sequence>\r
+                       <xs:attribute name="plan_name" type="xs:string"></xs:attribute>\r
+               </xs:complexType>\r
+       </xs:element>\r
+</xs:schema>\r
diff --git a/schema/test_definition.xsd b/schema/test_definition.xsd
new file mode 100644 (file)
index 0000000..8fce273
--- /dev/null
@@ -0,0 +1,387 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+       <xs:element name="suite">
+
+
+               <xs:complexType>
+
+                       <xs:sequence minOccurs="1" maxOccurs="unbounded">
+                               <xs:element ref="set" minOccurs="0"
+                                       maxOccurs="unbounded">
+                               </xs:element>
+                       </xs:sequence>
+
+                       <xs:attributeGroup ref="set_attribute_group"></xs:attributeGroup>
+                       <xs:attribute name="launcher" type="xs:string"></xs:attribute>
+                       <xs:attribute name="category" type="xs:string"></xs:attribute>
+               </xs:complexType>
+               <xs:unique name="uniqueSetName">
+                       <xs:selector xpath=".//set" />
+                       <xs:field xpath="@name" />
+               </xs:unique>
+       </xs:element>
+
+       <xs:element name="set">
+
+               <xs:complexType>
+                       <xs:sequence>
+                               <xs:element name="capabilities" type="CapabilitiesType"
+                                       minOccurs="0" maxOccurs="1">
+                               </xs:element>
+                               <xs:sequence minOccurs="1" maxOccurs="unbounded">
+                                       <xs:element ref="testcase" minOccurs="0"
+                                               maxOccurs="unbounded">
+                                       </xs:element>
+                               </xs:sequence>
+                       </xs:sequence>
+
+
+
+                       <xs:attributeGroup ref="set_attribute_group"></xs:attributeGroup>
+                       <xs:attribute name="launcher" type="xs:string"></xs:attribute>
+                       <xs:attribute name="set_debug_msg" type="xs:string"></xs:attribute>
+               </xs:complexType>
+               <xs:unique name="uniqueCaseName">
+                       <xs:selector xpath=".//testcase" />
+                       <xs:field xpath="@id" />
+               </xs:unique>
+       </xs:element>
+
+       <xs:element name="testcase">
+               <xs:complexType>
+                       <xs:sequence minOccurs="1">
+                               <xs:element ref="description"></xs:element>
+                               <xs:element name="categories" type="categories"
+                                       minOccurs="0" maxOccurs="1">
+                               </xs:element>
+                               <xs:element name="measurement" type="measurementType"
+                                       minOccurs="0" maxOccurs="unbounded">
+                               </xs:element>
+                               <xs:element name="series" type="seriesType" minOccurs="0"
+                                       maxOccurs="unbounded">
+                               </xs:element>
+                               <xs:element name="specs" type="specsType" minOccurs="0"
+                                       maxOccurs="1">
+                               </xs:element>
+                               <xs:element name="result_info" type="result_info_type"
+                                       minOccurs="0">
+                               </xs:element>
+                       </xs:sequence>
+
+                       <xs:attributeGroup ref="case_attribute_group"></xs:attributeGroup>
+               </xs:complexType>
+       </xs:element>
+
+       <xs:element name="steps">
+               <xs:complexType>
+                       <xs:sequence minOccurs="0" maxOccurs="unbounded">
+                               <xs:element ref="step"></xs:element>
+                       </xs:sequence>
+               </xs:complexType>
+               <xs:unique name="uniqueStepName">
+                       <xs:selector xpath=".//step" />
+                       <xs:field xpath="@order" />
+               </xs:unique>
+       </xs:element>
+
+       <xs:attributeGroup name="set_attribute_group">
+
+               <xs:attribute name="name" type="xs:anyURI" use="required"></xs:attribute>
+               <xs:attribute name="type" type="xs:string"></xs:attribute>
+       </xs:attributeGroup>
+
+       <xs:attributeGroup name="case_attribute_group">
+
+               <xs:attribute name="id" use="required">
+                       <xs:simpleType>
+                               <xs:restriction base="xs:string">
+                                       <xs:minLength value="1"></xs:minLength>
+                                       <xs:whiteSpace value="collapse"></xs:whiteSpace>
+                               </xs:restriction>
+                       </xs:simpleType>
+               </xs:attribute>
+
+               <xs:attribute name="priority" type="priority_simple_type"
+                       use="required">
+               </xs:attribute>
+
+               <xs:attribute name="execution_type" type="execution_type_simple_type"
+                       use="required">
+               </xs:attribute>
+
+               <xs:attribute name="component" type="xs:string"></xs:attribute>
+
+               <xs:attribute name="requirement_ref" type="xs:anyURI"
+                       use="optional">
+               </xs:attribute>
+
+               <xs:attribute name="status" type="status_type" use="required"></xs:attribute>
+
+               <xs:attribute name="type" type="case_type_type" use="required">
+               </xs:attribute>
+               <xs:attribute name="purpose" type="xs:string"></xs:attribute>
+               <xs:attribute name="result" type="xs:string"></xs:attribute>
+               <xs:attribute name="onload_delay" type="xs:int" use="optional"
+                       default="3">
+               </xs:attribute>
+       </xs:attributeGroup>
+
+       <xs:simpleType name="priority_simple_type">
+               <xs:restriction base="xs:string">
+
+                       <xs:enumeration value="P0"></xs:enumeration>
+
+                       <xs:enumeration value="P1"></xs:enumeration>
+
+                       <xs:enumeration value="P2"></xs:enumeration>
+
+                       <xs:enumeration value="P3"></xs:enumeration>
+
+                       <xs:enumeration value="P4"></xs:enumeration>
+
+               </xs:restriction>
+       </xs:simpleType>
+
+       <xs:simpleType name="execution_type_simple_type">
+               <xs:restriction base="xs:string">
+
+                       <xs:enumeration value="auto"></xs:enumeration>
+
+                       <xs:enumeration value="manual"></xs:enumeration>
+               </xs:restriction>
+       </xs:simpleType>
+
+       <xs:simpleType name="status_type">
+               <xs:restriction base="xs:string">
+
+                       <xs:enumeration value="designed"></xs:enumeration>
+
+                       <xs:enumeration value="ready"></xs:enumeration>
+
+                       <xs:enumeration value="approved"></xs:enumeration>
+               </xs:restriction>
+       </xs:simpleType>
+
+       <xs:simpleType name="case_type_type">
+               <xs:restriction base="xs:string">
+
+                       <xs:enumeration value="functional_positive"></xs:enumeration>
+
+                       <xs:enumeration value="functional_negative"></xs:enumeration>
+
+                       <xs:enumeration value="security"></xs:enumeration>
+
+                       <xs:enumeration value="performance"></xs:enumeration>
+
+                       <xs:enumeration value="reliability"></xs:enumeration>
+
+                       <xs:enumeration value="portability"></xs:enumeration>
+
+                       <xs:enumeration value="maintainability"></xs:enumeration>
+
+                       <xs:enumeration value="compliance"></xs:enumeration>
+
+                       <xs:enumeration value="user_experience"></xs:enumeration>
+
+                       <xs:enumeration value="undefined"></xs:enumeration>
+               </xs:restriction>
+       </xs:simpleType>
+
+
+       <xs:element name="purpose" type="xs:anySimpleType"></xs:element>
+
+       <xs:element name="notes" type="xs:string"></xs:element>
+
+       <xs:element name="pre_condition" type="xs:string"></xs:element>
+
+       <xs:element name="post_condition" type="xs:string"></xs:element>
+
+       <xs:element name="description">
+
+               <xs:complexType>
+
+                       <xs:sequence minOccurs="1" maxOccurs="unbounded">
+
+                               <xs:choice minOccurs="0" maxOccurs="1">
+                                       <xs:element ref="notes"></xs:element>
+                               </xs:choice>
+
+                               <xs:choice minOccurs="0" maxOccurs="1">
+                                       <xs:element ref="pre_condition"></xs:element>
+                               </xs:choice>
+
+                               <xs:choice minOccurs="0" maxOccurs="1">
+                                       <xs:element ref="post_condition"></xs:element>
+                               </xs:choice>
+
+                               <xs:element ref="steps" minOccurs="1" maxOccurs="1"></xs:element>
+
+                               <xs:choice minOccurs="0" maxOccurs="1">
+                                       <xs:element ref="test_script_entry"></xs:element>
+                               </xs:choice>
+
+
+                       </xs:sequence>
+
+               </xs:complexType>
+       </xs:element>
+
+       <xs:element name="step">
+               <xs:complexType>
+                       <xs:sequence>
+                               <xs:element name="step_desc" type="xs:string"></xs:element>
+                               <xs:element name="expected" type="xs:string"></xs:element>
+                       </xs:sequence>
+                       <xs:attribute name="order" type="xs:int"></xs:attribute>
+               </xs:complexType>
+       </xs:element>
+
+       <xs:element name="test_script_entry">
+               <xs:complexType>
+                       <xs:simpleContent>
+                               <xs:extension base="xs:string">
+                                       <xs:attribute name="test_script_expected_result" type="xs:string"
+                                               default="0">
+                                       </xs:attribute>
+                                       <xs:attribute name="timeout" type="xs:int" default="90">
+                                       </xs:attribute>
+                               </xs:extension>
+                       </xs:simpleContent>
+               </xs:complexType>
+       </xs:element>
+
+       <xs:complexType name="result_info_type">
+               <xs:sequence minOccurs="0">
+                       <xs:element name="actual_result" type="xs:string"></xs:element>
+                       <xs:element name="start" type="xs:string"></xs:element>
+                       <xs:element name="end" type="xs:string"></xs:element>
+                       <xs:element name="stdout" type="xs:string" minOccurs="0"></xs:element>
+                       <xs:element name="stderr" type="xs:string" minOccurs="0"></xs:element>
+               </xs:sequence>
+       </xs:complexType>
+
+       <xs:complexType name="measurementType">
+               <xs:attribute name="name" type="xs:string"></xs:attribute>
+               <xs:attribute name="value" type="xs:string"></xs:attribute>
+               <xs:attribute name="unit" type="xs:string"></xs:attribute>
+               <xs:attribute name="target" type="xs:string"></xs:attribute>
+               <xs:attribute name="failure" type="xs:string"></xs:attribute>
+               <xs:attribute name="power" type="xs:string"></xs:attribute>
+       </xs:complexType>
+
+       <xs:complexType name="seriesType">
+               <xs:sequence>
+                       <xs:element name="measurement" type="simpleMeasurementType"
+                               minOccurs="1" maxOccurs="unbounded"></xs:element>
+               </xs:sequence>
+               <xs:attribute name="name" type="xs:string"></xs:attribute>
+               <xs:attribute name="group" type="xs:string"></xs:attribute>
+               <xs:attribute name="unit" type="xs:string"></xs:attribute>
+               <xs:attribute name="interval" type="xs:string"></xs:attribute>
+               <xs:attribute name="interval_unit" type="xs:string"></xs:attribute>
+               <xs:attribute name="power" type="xs:string"></xs:attribute>
+       </xs:complexType>
+
+       <xs:complexType name="simpleMeasurementType">
+               <xs:attribute name="value" type="xs:string"></xs:attribute>
+               <xs:attribute name="file" type="xs:string"></xs:attribute>
+       </xs:complexType>
+
+
+       <xs:complexType name="categories">
+               <xs:sequence>
+                       <xs:element name="category" type="xs:string" maxOccurs="unbounded"
+                               minOccurs="0"></xs:element>
+               </xs:sequence>
+       </xs:complexType>
+
+       <xs:element name="test_definition">
+               <xs:complexType>
+                       <xs:sequence minOccurs="1" maxOccurs="unbounded">
+                               <xs:element name="environment" type="BuildInfoType"
+                                       minOccurs="0">
+                               </xs:element>
+                               <xs:element name="summary" type="summaryType" minOccurs="0">
+                               </xs:element>
+                               <xs:element ref="suite" minOccurs="1" maxOccurs="unbounded">
+                               </xs:element>
+                       </xs:sequence>
+               </xs:complexType>
+               <xs:unique name="uniqueSuiteName">
+                       <xs:selector xpath=".//suite" />
+                       <xs:field xpath="@name" />
+               </xs:unique>
+       </xs:element>
+
+
+
+       <xs:complexType name="BuildInfoType">
+               <xs:sequence>
+                       <xs:element name="other" type="xs:string"></xs:element>
+               </xs:sequence>
+               <xs:attribute name="device_name" type="xs:string"></xs:attribute>
+               <xs:attribute name="device_model" type="xs:string"></xs:attribute>
+               <xs:attribute name="os_version" type="xs:string"></xs:attribute>
+               <xs:attribute name="device_id" type="xs:string"></xs:attribute>
+               <xs:attribute name="firmware_version" type="xs:string"></xs:attribute>
+               <xs:attribute name="screen_size" type="xs:string"></xs:attribute>
+               <xs:attribute name="resolution" type="xs:string"></xs:attribute>
+               <xs:attribute name="host" type="xs:string"></xs:attribute>
+               <xs:attribute name="cts_version" type="xs:string"></xs:attribute>
+               <xs:attribute name="build_id" type="xs:string"></xs:attribute>
+               <xs:attribute name="manufacturer" type="xs:string"></xs:attribute>
+       </xs:complexType>
+
+
+       <xs:complexType name="summaryType">
+               <xs:sequence>
+                       <xs:element name="start_at" type="xs:string"></xs:element>
+                       <xs:element name="end_at" type="xs:string"></xs:element>
+               </xs:sequence>
+               <xs:attribute name="test_plan_name" type="xs:string"></xs:attribute>
+       </xs:complexType>
+
+
+       <xs:complexType name="specsType">
+               <xs:sequence>
+                       <xs:element name="spec" type="specType" maxOccurs="unbounded"></xs:element>
+               </xs:sequence>
+       </xs:complexType>
+
+       <xs:complexType name="specType">
+               <xs:sequence>
+                       <xs:element name="spec_assertion" type="spec_assertionType"></xs:element>
+                       <xs:element name="spec_url" type="xs:string"></xs:element>
+                       <xs:element name="spec_statement" type="xs:string"></xs:element>
+               </xs:sequence>
+       </xs:complexType>
+
+       <xs:complexType name="spec_assertionType">
+               <xs:attribute name="category" type="xs:string" use="required"></xs:attribute>
+               <xs:attribute name="section" type="xs:string" use="required"></xs:attribute>
+               <xs:attribute name="specification" type="xs:string" use="required">
+               </xs:attribute>
+               <xs:attribute name="interface" type="xs:string" use="required">
+               </xs:attribute>
+               <xs:attribute name="element_name" type="xs:string" use="optional">
+               </xs:attribute>
+               <xs:attribute name="usage" type="xs:boolean" default="false"></xs:attribute>
+               <xs:attribute name="element_type" type="xs:string"></xs:attribute>
+       </xs:complexType>
+
+       <xs:complexType name="CapabilitiesType">
+               <xs:sequence>
+                       <xs:element name="capability" type="CapabilityType"
+                               minOccurs="1" maxOccurs="unbounded"></xs:element>
+               </xs:sequence>
+       </xs:complexType>
+
+       <xs:complexType name="CapabilityType">
+               <xs:sequence minOccurs="0">
+                       <xs:element name="value" type="xs:string"></xs:element>
+               </xs:sequence>
+               <xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
+       </xs:complexType>
+</xs:schema>
+
diff --git a/src/log4j.properties b/src/log4j.properties
new file mode 100644 (file)
index 0000000..ac48a10
--- /dev/null
@@ -0,0 +1,33 @@
+log4j.rootLogger=INFO,CONSOLE,FILE, ROLLING_FILE
+#DEBUG,CONSOLE,FILE,ROLLING_FILE,MAIL,DATABASE
+log4j.addivity.org.apache=true
+###################
+# Console Appender
+###################
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.Threshold=DEBUG
+log4j.appender.CONSOLE.Target=System.out
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
+#log4j.appender.CONSOLE.layout.ConversionPattern=[start]%d{DATE}[DATE]%n%p[PRIORITY]%n%x[NDC]%n%t[THREAD] n%c[CATEGORY]%n%m[MESSAGE]%n%n
+#####################
+# File Appender
+#####################
+log4j.appender.FILE=org.apache.log4j.FileAppender
+log4j.appender.FILE.File=/opt/tct/manager/log/file.log
+log4j.appender.FILE.Append=false
+log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
+#log4j.appender.FILE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n
+log4j.appender.FILE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
+########################
+# Rolling File
+########################
+log4j.appender.ROLLING_FILE=org.apache.log4j.RollingFileAppender
+log4j.appender.ROLLING_FILE.Threshold=ERROR
+log4j.appender.ROLLING_FILE.File=/opt/tct/manager/log/rolling.log
+log4j.appender.ROLLING_FILE.Append=true
+log4j.appender.ROLLING_FILE.MaxFileSize=10KB
+log4j.appender.ROLLING_FILE.MaxBackupIndex=1
+log4j.appender.ROLLING_FILE.layout=org.apache.log4j.PatternLayout
+#log4j.appender.ROLLING_FILE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n
+log4j.appender.ROLLING_FILE.layout.ConversionPattern=[%p]-%d-[%t] %c (%F:%L) - %m%n
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/Constants.java b/src/org/tizen/tct/tool/mgr/Constants.java
new file mode 100644 (file)
index 0000000..58d1595
--- /dev/null
@@ -0,0 +1,359 @@
+package org.tizen.tct.tool.mgr;\r
+\r
+import java.awt.Color;\r
+import java.awt.Dimension;\r
+import java.awt.Font;\r
+import java.awt.font.TextAttribute;\r
+import java.io.File;\r
+import java.io.FileInputStream;\r
+import java.io.FileNotFoundException;\r
+import java.io.FileOutputStream;\r
+import java.io.IOException;\r
+import java.io.PipedInputStream;\r
+import java.io.PipedOutputStream;\r
+import java.util.HashMap;\r
+import java.util.Iterator;\r
+import java.util.Map;\r
+\r
+import javax.xml.bind.JAXBContext;\r
+import javax.xml.bind.JAXBException;\r
+import javax.xml.bind.Marshaller;\r
+import javax.xml.namespace.NamespaceContext;\r
+import javax.xml.stream.XMLOutputFactory;\r
+import javax.xml.stream.XMLStreamException;\r
+import javax.xml.stream.XMLStreamWriter;\r
+\r
+import org.apache.commons.io.FileUtils;\r
+import org.apache.commons.io.filefilter.FileFilterUtils;\r
+import org.apache.commons.io.filefilter.IOFileFilter;\r
+import org.jdom.Document;\r
+import org.jdom.JDOMException;\r
+import org.jdom.ProcessingInstruction;\r
+import org.jdom.input.SAXBuilder;\r
+import org.jdom.output.Format;\r
+import org.jdom.output.XMLOutputter;\r
+\r
+/**\r
+ * \r
+ * @author shaofeng.tang\r
+ * @email shaofeng.tang@intel.com\r
+ * \r
+ */\r
+public class Constants {\r
+       // Create a pair of Piped Streams.\r
+       public final static int PIPE_SIZE = 1024;\r
+       private static PipedInputStream PIN = new PipedInputStream(PIPE_SIZE);\r
+       public static PipedOutputStream POUT;\r
+\r
+       public synchronized static void resetPipe() {\r
+               try {\r
+                       if (null != PIN) {\r
+                               PIN.close();\r
+                               PIN = null;\r
+                       }\r
+                       if (null != POUT) {\r
+                               POUT.close();\r
+                               POUT = null;\r
+                       }\r
+                       PIN = new PipedInputStream(PIPE_SIZE);\r
+                       POUT = new PipedOutputStream(PIN);\r
+               } catch (IOException e) {\r
+                       e.printStackTrace();\r
+               }\r
+       }\r
+\r
+       public synchronized static PipedInputStream getPipeInput() {\r
+               return PIN;\r
+       }\r
+       \r
+       public final static String APP_TITLE = "Tizen Compliance Tests";\r
+       \r
+       public final static String ABOUT_DIALOG_TITLE = "About TCT Manager";\r
+\r
+       public final static Integer CHECK_SPAN = 2000;\r
+\r
+       public final static String SUMMARY_FILE_NAME = "summary.xml";\r
+\r
+       /*\r
+        * testkit-lite -f device:"/usr/share/tct-2dtransforms-css3-tests/tests.xml"\r
+        * -e "WRTLauncher" -A --non-active --deviceid 4df76e3929363000 --capability\r
+        * /opt/testkit/manager/hardware_conf/capability.xml\r
+        */\r
+       public final static String LITE_CMD = "testkit-lite";\r
+\r
+       public final static String DEVICE_PRE = "-f device:";\r
+\r
+       public final static String LOCAL_PRE = "-f ";\r
+\r
+       public final static String DEVICE_SUITE_DEF = "/tests.xml";\r
+\r
+       public final static String LITE_E_PARAM = "-e \"WRTLauncher\"";\r
+\r
+       public final static String LITE_NON_ACTIVE_PARAM = "--non-active";\r
+\r
+       public final static String LITE_DEVICE_PARAM = "--deviceid ";\r
+\r
+       public final static String LITE_CAPABILITY_PARAM = "--capability ";\r
+\r
+       // TODO\r
+       public final static int HEALTH_CHECK_INIT = 0;\r
+\r
+       public final static int HEALTH_CHECK_OK = 1;\r
+\r
+       public final static int HEALTH_CHECK_FAIL = 2;\r
+\r
+       public final static String HEALTH_CHECK_CONF = "/opt/tct/scripts/healthcheck.ini";\r
+\r
+       public final static String HEALTH_CHECK_CMD = "/opt/tct/scripts/tct-config-device.sh --check";\r
+\r
+       public final static String PRE_CONF_FILE_SHELL = "/usr/bin/tct-testconfig.sh";\r
+\r
+       public final static String PRE_CONF_DEVICE_JSON = "/opt/usr/media/tct/preconfigure.json";\r
+\r
+       public final static String PRE_CONF_FILE_DEVICE = "/opt/usr/media/tct/opt/tct-testconfig/tct-testconfig.ini";\r
+\r
+       public final static String PRE_CONF_DATA_DEVICE = "/opt/usr/media/tct/opt/tct-testconfig/preconfigure.json";\r
+\r
+       public final static String PRE_CONF_FILE_INI = "/opt/tct/manager/tmp/tct-testconfig.ini";\r
+\r
+       public final static String PRE_CONF_HOST_JSON = "/opt/tct/manager/tmp/preconfigure.json";\r
+\r
+       public final static String PRE_CONF_XML_DEVICE = "/opt/usr/media/tct/opt/tct-testconfig/tests.xml";\r
+\r
+       public final static String PRE_CONF_XML_HOST = "/opt/tct/manager/tmp/tests.xml";\r
+\r
+       public final static String LITE_OUTPUT_PARAM = "-o ";\r
+\r
+       public final static String LITE_LATEST_RESULT_FOLDER = "/opt/testkit/lite/latest";\r
+\r
+       public final static String TMP_PLAN_NAME = "temp";\r
+\r
+       public final static String APP_HOME = "/opt/tct/manager";\r
+\r
+       public final static String PLAN_REPOSITORY = APP_HOME + "/plan";\r
+\r
+       public final static String RESULT_FOLDER = APP_HOME + "/result";\r
+\r
+       public final static String DEVICE_CAPABILITY_PATH = "/opt/usr/media/Documents/tct/capability.xml";\r
+\r
+       public final static String LOCAL_CAPABILITY_PATH = APP_HOME\r
+                       + "/device_capability.xml";\r
+\r
+       public final static String STYLE_FOLDER = APP_HOME + "/style/";\r
+\r
+       public final static String GUIDE_PATH = APP_HOME\r
+                       + "/doc/TCT-manager-guide.pdf";\r
+\r
+       public final static String TIMESTMAP_PATTERN = "yyyy-MM-dd-HH:mm:ss-SSS";\r
+\r
+       public final static String LOG_TIMESTMAP_PATTERN = "yyyy-MM-dd-HH_mm_ss_SSS";\r
+\r
+       public final static String FULL_PATH_PLAN_NAME = "Full_Path.xml";\r
+\r
+       public final static String PACKAGE_LIST = "package_list.xml";\r
+\r
+       public final static String SUITES_REPOSITORY = "/opt/tct/packages";\r
+\r
+       public final static String TMP_EXTRACT_FOLDER = APP_HOME\r
+                       + "/tmp/extracted_suites/";\r
+\r
+       public final static String PKG_SUFFIX = ".zip";\r
+\r
+       public final static String DEFINITION_XML = "tests.xml";\r
+\r
+       public final static String DEVICE_SUITE_TARGET = "/opt/usr/media/tct/";\r
+       \r
+       public final static String DEVICE_TMP = DEVICE_SUITE_TARGET + "tmp";\r
+\r
+       public final static String DEVICE_SUITE_FOLDER = "/opt/usr/media/tct/opt/";\r
+\r
+       public final static String SUITE_INSTALL_SCRTPT = "inst.sh";\r
+\r
+       public final static String SUITE_UNINSTALL_SCRTPT = "inst.sh -u";\r
+\r
+       public final static String EXTRACT_CMD = "extract_suites.sh";\r
+\r
+       public final static String XML_STYLE = APP_HOME + "/style";\r
+\r
+       public final static Integer FRAME_WIDTH = 800;\r
+\r
+       public final static Integer FRAME_HEIGHT = 800;\r
+\r
+       public final static Integer CONTENT_PANEL_HIGHT = 500;\r
+\r
+       public final static Integer NAVI_PANEL_HIGHT = 65;\r
+\r
+       public final static Integer PLAN_DASH_HIGHT = 100;\r
+       \r
+       public final static Integer RUNNING_TREE_WIDTH = 455;\r
+\r
+       public final static String AUTO_NODE_STR = "Auto Suites:(";\r
+\r
+       public final static String MANUAL_NODE_STR = "Manual Suites:(";\r
+\r
+       public final static String[] FRAME_IMAGE_PATHS = { "/resources/tizen_logo.png" };\r
+\r
+       public final static String TITLE_IMAGE_PATH = "/resources/testkit-manager-logo.png";\r
+\r
+       public final static String EXPORT_IMAGE_PATH = "/resources/operation_download.png";\r
+\r
+       public final static String RERUN_IMAGE_PATH = "/resources/operation_rerun.png";\r
+\r
+       public final static String EDIT_IMAGE_PATH = "/resources/operation_continue_execution.png";\r
+\r
+       public final static String RESUME_IMAGE_PATH = "/resources/operation_resume.png";\r
+\r
+       public final static String COLLAPSE_IMAGE_PATH = "/resources/collapse.png";\r
+\r
+       public final static String EXPANDS_IMAGE_PATH = "/resources/expands.png";\r
+\r
+       public final static String COMPLETED_IMAGE_PATH = "/resources/completed.png";\r
+\r
+       public final static Color NAVI_LABEL_COLOR = new Color(92, 203, 246);\r
+\r
+       public final static Color NAVI_HIGHT_LIGHT_LABEL_COLOR = new Color(238,\r
+                       212, 132);\r
+\r
+       public final static Color RESULT_PASS_COLOR = new Color(0, 128, 0);\r
+\r
+       public final static Color RESULT_FAIL_COLOR = new Color(220, 20, 60);\r
+\r
+       public final static Color RESULT_BLOCK_COLOR = new Color(255, 165, 0);\r
+\r
+       public final static Color RESULT_NA_COLOR = new Color(105, 105, 105);\r
+\r
+       public final static Color SUITE_AUTO_COLOR = new Color(76, 153, 0);\r
+\r
+       public final static Color SUITE_MANU_COLOR = new Color(0, 76, 153);\r
+\r
+       public final static Color SUITE_TOTAL_COLOR = new Color(255, 102, 102);\r
+\r
+       public final static Color SUITE_VERSION_COLOR = new Color(105, 105, 105);\r
+\r
+       public final static Dimension SUITE_TREE_TITLE_DIM = new Dimension(730, 25);\r
+\r
+       public final static Dimension SUITE_TREE_LEAVE_DIM = new Dimension(700, 25);\r
+\r
+       public final static Font NAVI_FONT = new Font("Verdana", Font.BOLD, 16);\r
+\r
+       public final static Font TABLE_HEADER_FONT = new Font("Verdana", Font.BOLD,\r
+                       12);\r
+\r
+       public final static Font TABLE_CELL_FONT = new Font("Verdana", Font.PLAIN,\r
+                       12);\r
+\r
+       public static Font URL_LINK_FONT = new Font("Verdana", Font.PLAIN, 12);\r
+       \r
+       static{\r
+               Map attributes = URL_LINK_FONT.getAttributes();\r
+        attributes.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);\r
+        URL_LINK_FONT = URL_LINK_FONT.deriveFont(attributes);\r
+       }\r
+       \r
+       public final static Color URL_LINK_COLOR = new Color(92, 203, 246);\r
+       \r
+       public final static Color MENU_BAR_LABEL_ICON = new Color(224, 224, 224);\r
+\r
+       public final static Font BUTTON_LABEL_FONT = new Font("Verdana", Font.BOLD,\r
+                       15);\r
+\r
+       public final static Font DASH_LABEL_FONT = new Font("Verdana", Font.BOLD,\r
+                       15);\r
+       public final static Font MAIN_TEXT_FONT = new Font("Verdana", Font.PLAIN,\r
+                       12);\r
+\r
+       public final static Font MAIN_BOLD_TEXT_FONT = new Font("Verdana",\r
+                       Font.BOLD, 12);\r
+\r
+       public final static Font POPUP_TITLE_FONT = new Font("Verdana", Font.BOLD,\r
+                       15);\r
+\r
+       public final static Font POPUP_TEXT_FONT = new Font("Verdana", Font.PLAIN,\r
+                       12);\r
+\r
+       public final static Dimension BUTTON_DIMENSION = new Dimension(90, 30);\r
+\r
+       public final static Dimension RUN_DIMENSION = new Dimension(125, 60);\r
+\r
+       public final static Object[] SUITE_LIST_COLUMNS = { null, "Package Name",\r
+                       "Automatic TestCase", "Manual TestCase", "Total", "Version" };\r
+\r
+       public final static String UNDEFINED_CATEGORY = "undefined";\r
+\r
+       public static void writeObjIntoXml(File xmlFile, Class jaxbClass,\r
+                       Object jaxbObject, String style) throws JAXBException,\r
+                       FileNotFoundException, XMLStreamException {\r
+               JAXBContext context = JAXBContext.newInstance(jaxbClass);\r
+               Marshaller m = context.createMarshaller();\r
+               m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\r
+\r
+               XMLOutputFactory output = XMLOutputFactory.newInstance();\r
+               XMLStreamWriter writer;\r
+\r
+               writer = output.createXMLStreamWriter(new FileOutputStream(xmlFile),\r
+                               "UTF-8");\r
+               writer.setNamespaceContext(new NamespaceContext() {\r
+                       @SuppressWarnings({ "rawtypes" })\r
+                       public Iterator getPrefixes(String namespaceURI) {\r
+                               return null;\r
+                       }\r
+\r
+                       public String getPrefix(String namespaceURI) {\r
+                               return "";\r
+                       }\r
+\r
+                       public String getNamespaceURI(String prefix) {\r
+                               return null;\r
+                       }\r
+               });\r
+               m.marshal(jaxbObject, writer);\r
+               copyXml(xmlFile, xmlFile, style);\r
+       }\r
+\r
+       public static void copyXml(File src, File dest, String style) {\r
+               SAXBuilder builder = new SAXBuilder();\r
+               Document document;\r
+               try {\r
+                       document = builder.build(new FileInputStream(src));\r
+                       if (null != style) {\r
+                               Map<String, String> piMap = new HashMap<String, String>(2);\r
+                               piMap.put("type", "text/xsl");\r
+                               piMap.put("href", style);\r
+                               ProcessingInstruction pi = new ProcessingInstruction(\r
+                                               "xml-stylesheet", piMap);\r
+\r
+                               document.getContent().add(0, pi);\r
+                       }\r
+                       XMLOutputter domstream = new XMLOutputter();\r
+                       domstream.setFormat(Format.getPrettyFormat());\r
+                       domstream.output(document, new FileOutputStream(dest));\r
+               } catch (FileNotFoundException e) {\r
+                       e.printStackTrace();\r
+               } catch (JDOMException e) {\r
+                       e.printStackTrace();\r
+               } catch (IOException e) {\r
+                       e.printStackTrace();\r
+               }\r
+       }\r
+\r
+       public static void copyDlog(String resultFolder) throws IOException {\r
+               IOFileFilter dlogSuffixFilter = FileFilterUtils\r
+                               .suffixFileFilter(".dlog");\r
+               FileUtils.copyDirectory(new File(Constants.LITE_LATEST_RESULT_FOLDER),\r
+                               new File(resultFolder), dlogSuffixFilter);\r
+       }\r
+\r
+       public static void copyFile(String sorceFile, String targetPath) {\r
+               File src = new File(sorceFile);\r
+               File des = new File(targetPath);\r
+               try {\r
+                       FileUtils.copyFile(src, des);\r
+               } catch (IOException e) {\r
+                       // TODO Auto-generated catch block\r
+                       e.printStackTrace();\r
+               }\r
+       }\r
+\r
+       public final static String PLAN_STATUS_NAME = "plan_status.xml";\r
+\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/PackageList.java b/src/org/tizen/tct/tool/mgr/PackageList.java
new file mode 100644 (file)
index 0000000..50653eb
--- /dev/null
@@ -0,0 +1,53 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr;
+
+import java.io.File;
+import java.io.IOException;
+
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.model.plan.FullTctSuites;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class PackageList {
+
+       /**
+        * 
+        */
+       public PackageList() {
+               // TODO Auto-generated constructor stub
+       }
+
+       /**
+        * @param args
+        */
+       public static void main(String[] args) {
+               try {
+                       FullTctSuites suites = FullTctSuites.extractSuiteFromPackageLists();
+                       suites.writeSuiteList();
+                       System.out.println("The package list file is generated on "
+                                       + Constants.SUITES_REPOSITORY + File.separator
+                                       + Constants.PACKAGE_LIST);
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (InterruptedException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (JAXBException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (XMLStreamException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/TctGui.java b/src/org/tizen/tct/tool/mgr/TctGui.java
new file mode 100644 (file)
index 0000000..effdc41
--- /dev/null
@@ -0,0 +1,37 @@
+/**\r
+ * \r
+ */\r
+package org.tizen.tct.tool.mgr;\r
+\r
+import javax.swing.JFrame;\r
+import javax.swing.SwingUtilities;\r
+\r
+import org.jdesktop.application.Application;\r
+import org.tizen.tct.tool.mgr.view.PlanJFrame;\r
+\r
+/**\r
+ * @author stang23\r
+ *\r
+ */\r
+public class TctGui extends Application{\r
+\r
+       /**\r
+        * @param args\r
+        */\r
+       public static void main(String[] args) {\r
+               launch(TctGui.class, args);\r
+       }\r
+\r
+       @Override\r
+       protected void startup() {\r
+               SwingUtilities.invokeLater(new Runnable() {\r
+                       public void run() {\r
+                               PlanJFrame inst = new PlanJFrame();\r
+                               inst.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r
+                               inst.setLocationRelativeTo(null);\r
+                               inst.setVisible(true);\r
+                       }\r
+               });\r
+       }\r
+\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/device/DeviceList.java b/src/org/tizen/tct/tool/mgr/device/DeviceList.java
new file mode 100644 (file)
index 0000000..c2a7002
--- /dev/null
@@ -0,0 +1,125 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.device;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.listener.StartTestActionListener;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class DeviceList {
+       private static final Logger logger = Logger.getLogger(DeviceList.class);
+
+       public final static String[] SDB_LIST_DEVICE = { "sdb", "devices" };
+
+       private Map<String, SdbDevice> devices;
+
+       private SdbDevice selectedDevice = null;
+
+       private final static DeviceList instance = new DeviceList();
+
+       private DeviceList() {
+
+       }
+
+       public static DeviceList getInstance() {
+               return instance;
+       }
+
+       private synchronized void resetDevices(List<SdbDevice> devices) {
+               this.devices = new HashMap<String, SdbDevice>();
+               for (SdbDevice device : devices) {
+                       this.devices.put(device.getId(), device);
+               }
+       }
+
+       public boolean isSelectedDeviceAvailable() {
+               if (this.isOnlyOneDevice()) {
+                       for (SdbDevice device : this.devices.values()) {
+                               this.selectedDevice = device;
+                       }
+                       return true;
+               } else {
+                       if (null != this.selectedDevice) {
+                               return this.devices.containsKey(this.selectedDevice.getId());
+                       } else {
+                               return false;
+                       }
+               }
+       }
+
+       public String getSelectedDeviceId() {
+               if (null != this.selectedDevice) {
+                       return this.selectedDevice.getId();
+               } else {
+                       return null;
+               }
+       }
+
+       public Collection<SdbDevice> getSdbDeviceList() {
+               return this.devices.values();
+       }
+
+       public void setSelectedDevice(String id) {
+               this.selectedDevice = this.devices.get(id);
+       }
+
+       public boolean isOnlyOneDevice() {
+               return this.devices.size() == 1;
+       }
+
+       public boolean isDeviceAvailable() {
+               return this.devices.size() > 0;
+       }
+
+       @Override
+       public String toString() {
+               StringBuffer sb = new StringBuffer();
+               sb.append("Device List:\n");
+               for (SdbDevice device : this.devices.values()) {
+                       sb.append(device.toString()).append("\n");
+               }
+               return sb.toString();
+       }
+
+       public static DeviceList loadDeviceList() throws IOException {
+               Process tr = Runtime.getRuntime().exec(SDB_LIST_DEVICE);
+               BufferedReader rd = new BufferedReader(new InputStreamReader(
+                               tr.getInputStream()));
+               List<SdbDevice> devices = new ArrayList<SdbDevice>();
+               String s = null;
+               boolean skip = true;
+               System.out.println("sdb devices:");
+               while ((s = rd.readLine()) != null) {
+                       s = s.trim();
+                       logger.debug("SDB output: " + s);
+                       System.out.println(s);
+                       if (s.startsWith("*")) {
+                               continue;
+                       }
+                       if (skip) {
+                               skip = false;
+                       } else {
+                               SdbDevice device = SdbDevice.parseDevice(s);
+                               if (null != device) {
+                                       devices.add(device);
+                               }
+                       }
+               }
+               instance.resetDevices(devices);
+               return instance;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/device/SdbDevice.java b/src/org/tizen/tct/tool/mgr/device/SdbDevice.java
new file mode 100644 (file)
index 0000000..4efbe75
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.device;
+
+/**
+ * @author shaofeng
+ * 
+ */
+
+public class SdbDevice{ 
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 5771013934036861368L;
+
+       private String id;
+
+       private String name;
+
+       private String type;
+
+       private SdbDevice(String id, String type, String name) {
+               super();
+               this.id = id;
+               this.name = name;
+               this.type = type;
+       }
+
+       public static SdbDevice parseDevice(String deviceInfo) {
+               SdbDevice device = null;
+               if (null != deviceInfo) {
+                       String[] infos = deviceInfo.split("\t");
+                       if (infos.length == 3) {
+                               device = new SdbDevice(infos[0], infos[1], infos[2]);
+                       }
+               }
+               return device;
+       }
+
+       @Override
+       public String toString() {
+               return "[Device]:" + this.name + "     [id]:" + this.id;
+       }
+       
+       public String getId() {
+               return id;
+       }
+
+       public String getName() {
+               return name;
+       }
+
+       public String getType() {
+               return type;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.java b/src/org/tizen/tct/tool/mgr/device/view/ChooseDeviceDialog.java
new file mode 100644 (file)
index 0000000..84ff2da
--- /dev/null
@@ -0,0 +1,97 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.device.view;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.GridLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.Collection;
+
+import javax.swing.ButtonGroup;
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.device.DeviceList;
+import org.tizen.tct.tool.mgr.device.SdbDevice;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class ChooseDeviceDialog extends JDialog {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 4965963790690763054L;
+
+       private JPanel panel;
+
+       private JFrame frame;
+
+       private String selectidx;
+
+       public ChooseDeviceDialog(JFrame frame, boolean modal,
+                       Collection<SdbDevice> devices) {
+               super(frame, modal);
+               this.frame = frame;
+               JLabel title = new JLabel("Choose target device");
+               title.setFont(Constants.POPUP_TITLE_FONT);
+               ButtonGroup group = new ButtonGroup();
+               JPanel devicePanel = new JPanel(new GridLayout(0, 1));
+               for (SdbDevice device : devices) {
+                       JRadioButton radio = new JRadioButton();
+                       radio.setText(device.toString());
+                       radio.setActionCommand(device.getId());
+                       radio.setFont(Constants.POPUP_TEXT_FONT);
+                       radio.addActionListener(new ActionListener() {
+                               @Override
+                               public void actionPerformed(ActionEvent e) {
+                                       selectidx = e.getActionCommand();
+                               }
+                       });
+                       if (device.getId().equals(
+                                       DeviceList.getInstance().getSelectedDeviceId())) {
+                               radio.setSelected(true);
+                               selectidx = device.getId();
+                       }
+                       group.add(radio);
+                       devicePanel.add(radio);
+               }
+               JPanel tailPanel = new JPanel(new FlowLayout());
+               JButton btnok = new JButton("Ok");
+               btnok.setPreferredSize(Constants.BUTTON_DIMENSION);
+               btnok.addActionListener(new ActionListener() {
+                       @Override
+                       public void actionPerformed(ActionEvent e) {
+                               if(null != selectidx) {
+                                       DeviceList.getInstance().setSelectedDevice(selectidx);
+                                       setVisible(false);
+                               }
+                       }
+               });
+               tailPanel.add(btnok);
+               panel = new JPanel(new BorderLayout());
+               panel.add(title, BorderLayout.NORTH);
+               panel.add(devicePanel, BorderLayout.CENTER);
+               panel.add(tailPanel, BorderLayout.SOUTH);
+               panel.setPreferredSize(new Dimension(380, 100));
+       }
+
+       public void startDialog() {
+               getContentPane().add(this.panel);
+               setResizable(false);
+               pack();
+               setLocationRelativeTo(this.frame);
+               setVisible(true);
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/StartTestActionListener.java b/src/org/tizen/tct/tool/mgr/listener/StartTestActionListener.java
new file mode 100644 (file)
index 0000000..e981b5a
--- /dev/null
@@ -0,0 +1,247 @@
+/**\r
+ * \r
+ */\r
+package org.tizen.tct.tool.mgr.listener;\r
+\r
+import java.awt.event.ActionListener;\r
+import java.io.File;\r
+import java.io.IOException;\r
+import java.util.ArrayList;\r
+import java.util.HashMap;\r
+import java.util.List;\r
+import java.util.Map;\r
+\r
+import javax.swing.JFrame;\r
+import javax.swing.JOptionPane;\r
+import javax.swing.JPanel;\r
+import javax.swing.SwingUtilities;\r
+\r
+import org.apache.commons.io.FileUtils;\r
+import org.apache.log4j.Logger;\r
+import org.tizen.tct.tool.mgr.Constants;\r
+import org.tizen.tct.tool.mgr.device.DeviceList;\r
+import org.tizen.tct.tool.mgr.device.view.ChooseDeviceDialog;\r
+import org.tizen.tct.tool.mgr.lite.HealthCheckCallback;\r
+import org.tizen.tct.tool.mgr.lite.HealthCheckWorker;\r
+import org.tizen.tct.tool.mgr.lite.SdbCommand;\r
+import org.tizen.tct.tool.mgr.lite.util.AnalyJSONFile;\r
+import org.tizen.tct.tool.mgr.lite.util.AnalyPreInputsFile;\r
+import org.tizen.tct.tool.mgr.lite.util.AnalyPreStepsFile;\r
+import org.tizen.tct.tool.mgr.view.HealthCheckDlg;\r
+import org.tizen.tct.tool.mgr.view.PreConfigurationDlg;\r
+\r
+/**\r
+ * @author shaofeng.tang@intel.com\r
+ * \r
+ */\r
+public abstract class StartTestActionListener implements ActionListener {\r
+\r
+       private static final Logger logger = Logger\r
+                       .getLogger(StartTestActionListener.class);\r
+\r
+       private int checkstatus;\r
+\r
+       private boolean finished;\r
+\r
+       protected abstract JPanel getParent();\r
+\r
+       protected JFrame getTopFrame() {\r
+               return (JFrame) SwingUtilities.getWindowAncestor(this.getParent());\r
+       }\r
+\r
+       /**\r
+        * Check if device work\r
+        * \r
+        * \r
+        * Step: invoke "sdb devices" to get the devices list\r
+        * \r
+        * @return true. if the selected device is available.\r
+        */\r
+       protected boolean isDeviceReady() {\r
+               logger.debug("Entering isDeviceReady()");\r
+               DeviceList deviceList = null;\r
+               boolean ready = true;\r
+               try {\r
+                       deviceList = DeviceList.loadDeviceList();\r
+               } catch (IOException e) {\r
+                       e.printStackTrace();\r
+               }\r
+               if (null != deviceList) {\r
+                       if (!deviceList.isDeviceAvailable()) {\r
+                               ready = false;\r
+                               JOptionPane\r
+                                               .showMessageDialog(getParent(),\r
+                                                               "No device is connected, please check or try to reconnect it again.");\r
+                       } else if (!deviceList.isSelectedDeviceAvailable()) {\r
+                               ChooseDeviceDialog dialog = new ChooseDeviceDialog(\r
+                                               getTopFrame(), true, deviceList.getSdbDeviceList());\r
+                               dialog.startDialog();\r
+                       }\r
+               }\r
+               logger.debug("Return from isDeviceReady, return value:" + ready);\r
+               return ready;\r
+       }\r
+\r
+       private void removeDeviceCapability() {\r
+               File deviceCapability = new File(Constants.LOCAL_CAPABILITY_PATH);\r
+               if (deviceCapability.exists()) {\r
+                       FileUtils.deleteQuietly(deviceCapability);\r
+               }\r
+       }\r
+\r
+       public boolean extractDeviceCapability() {\r
+               this.removeDeviceCapability();\r
+               try {\r
+                       SdbCommand.getCapabilityBack();\r
+               } catch (IOException e) {\r
+                       e.printStackTrace();\r
+               }\r
+               if (checkFileExist(Constants.LOCAL_CAPABILITY_PATH)) {\r
+                       return true;\r
+               } else {\r
+                       JOptionPane\r
+                                       .showMessageDialog(\r
+                                                       getParent(),\r
+                                                       "Fail to extract the capability.xml from device: "\r
+                                                                       + Constants.DEVICE_CAPABILITY_PATH\r
+                                                                       + ".\n Please try it later or re-execute tct-config-device again.");\r
+                       return false;\r
+               }\r
+       }\r
+\r
+       public boolean getClosed() {\r
+               return this.finished;\r
+       }\r
+\r
+       public void setCheckStatus(int statuscode) {\r
+               this.checkstatus = statuscode;\r
+       }\r
+\r
+       public boolean isHealthCheckPassed() {\r
+               logger.debug("Entering isHealthCheckPassed()");\r
+               HealthCheckDlg chkDlg = new HealthCheckDlg(getTopFrame(), true,\r
+                               getParent());\r
+               HealthCheckCallback hkcallback = new HealthCheckCallback() {\r
+                       @Override\r
+                       public void finalize(int statuscode) {\r
+                               // TODO Auto-generated method stub\r
+                               setCheckStatus(statuscode);\r
+                       }\r
+\r
+                       @Override\r
+                       public boolean isCanceled() {\r
+                               // TODO Auto-generated method stub\r
+                               return getClosed();\r
+                       }\r
+               };\r
+               // add health check for run mode\r
+               this.finished = false;\r
+               this.checkstatus = Constants.HEALTH_CHECK_INIT;\r
+               new HealthCheckWorker(chkDlg, hkcallback).execute();\r
+               chkDlg.startDialog();\r
+               this.finished = true;\r
+               logger.debug("Return from isHealthCheckPassed(), return value:"\r
+                               + this.checkstatus);\r
+               return (this.checkstatus == Constants.HEALTH_CHECK_OK);\r
+       }\r
+\r
+       private boolean checkFileExist(String filepath) {\r
+               File file = new File(filepath);\r
+               return file.exists();\r
+       }\r
+\r
+       public void writeToConfig(AnalyPreInputsFile parser, AnalyJSONFile jparser,\r
+                       Map<String, Map<String, String>> m) {\r
+               logger.debug("Entering writeToConfig()");\r
+               for (String key : m.keySet()) {\r
+                       for (String key1 : m.get(key).keySet()) {\r
+                               parser.setItemValue(key, key1, m.get(key).get(key1));\r
+                               jparser.AddItem(0, key1, m.get(key).get(key1));\r
+                       }\r
+               }\r
+               parser.write(Constants.PRE_CONF_FILE_INI);\r
+               jparser.write(Constants.PRE_CONF_HOST_JSON);\r
+       }\r
+\r
+       public boolean isPreconfigPassed(List<String> selectedSuites,\r
+                       boolean useDefault) {\r
+               logger.debug("Entering isPreconfigPassed()");\r
+               boolean passed = false;\r
+               int checknum = 0;\r
+               AnalyPreInputsFile iniparser = new AnalyPreInputsFile();\r
+               AnalyPreStepsFile xmlparser = new AnalyPreStepsFile();\r
+               AnalyJSONFile jsonparser = new AnalyJSONFile();\r
+               Map<String, Map<String, String>> inputsteps = new HashMap<String, Map<String, String>>();\r
+               Map<String, ArrayList<String>> manualsteps = new HashMap<String, ArrayList<String>>();\r
+               try {\r
+                       if (!checkFileExist(Constants.PRE_CONF_FILE_INI)) {\r
+                               SdbCommand.sdbPull(Constants.PRE_CONF_FILE_DEVICE,\r
+                                               Constants.PRE_CONF_FILE_INI);\r
+                               if (!checkFileExist(Constants.PRE_CONF_FILE_INI)) {\r
+                                       return false;\r
+                               }\r
+                       }\r
+                       if (!checkFileExist(Constants.PRE_CONF_HOST_JSON)) {\r
+                               SdbCommand.sdbPull(Constants.PRE_CONF_DATA_DEVICE,\r
+                                               Constants.PRE_CONF_HOST_JSON);\r
+                               if (!checkFileExist(Constants.PRE_CONF_HOST_JSON)) {\r
+                                       return false;\r
+                               }\r
+                       }\r
+\r
+                       if (!checkFileExist(Constants.PRE_CONF_XML_HOST)) {\r
+                               SdbCommand.sdbPull(Constants.PRE_CONF_XML_DEVICE,\r
+                                               Constants.PRE_CONF_XML_HOST);\r
+                               if (!checkFileExist(Constants.PRE_CONF_XML_HOST)) {\r
+                                       return false;\r
+                               }\r
+                       }\r
+                       iniparser.load(Constants.PRE_CONF_FILE_INI);\r
+                       xmlparser.load(Constants.PRE_CONF_XML_HOST);\r
+                       jsonparser.load(Constants.PRE_CONF_HOST_JSON);\r
+\r
+                       for (int i = 0; i < selectedSuites.size(); i++) {\r
+                               String pn = selectedSuites.get(i);\r
+                               if (iniparser.isFound(pn)) {\r
+                                       ++checknum;\r
+                                       Map<String, String> configItem = iniparser.items(pn);\r
+                                       inputsteps.put(pn, configItem);\r
+                               }\r
+                               if (xmlparser.isFound(pn)) {\r
+                                       ++checknum;\r
+                                       ArrayList<String> stepItem = xmlparser.items(pn);\r
+                                       manualsteps.put(pn, stepItem);\r
+                               }\r
+                       }\r
+               } catch (IOException e) {\r
+                       logger.error("isPreconfigPassed: get IO error");\r
+                       return false;\r
+               }\r
+\r
+               if (checknum == 0) {\r
+                       logger.info("isPreconfigPassed: no steps found");\r
+                       return true;\r
+               }\r
+\r
+               if (!useDefault && (inputsteps.size() > 0 || manualsteps.size() > 0)) {\r
+                       PreConfigurationDlg prfDlg = new PreConfigurationDlg(getTopFrame(),\r
+                                       true, getParent(), inputsteps, manualsteps);\r
+                       if (prfDlg.startDialog() != null) {\r
+                               writeToConfig(iniparser, jsonparser, inputsteps);\r
+                       } else {\r
+                               return false;\r
+                       }\r
+               }\r
+\r
+               try {\r
+                       SdbCommand.sdbPush(Constants.PRE_CONF_HOST_JSON,\r
+                                       Constants.PRE_CONF_DEVICE_JSON);\r
+                       passed = true;\r
+               } catch (IOException e) {\r
+                       e.printStackTrace();\r
+                       passed = false;\r
+               }\r
+               logger.debug("Return from isPreconfigPassed, return value:" + passed);\r
+               return passed;\r
+       }\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.java b/src/org/tizen/tct/tool/mgr/listener/menu/AboutActionListener.java
new file mode 100644 (file)
index 0000000..0897337
--- /dev/null
@@ -0,0 +1,27 @@
+package org.tizen.tct.tool.mgr.listener.menu;
+
+import java.awt.Component;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JFrame;
+import javax.swing.SwingUtilities;
+
+import org.tizen.tct.tool.mgr.view.menu.VersionDialog;
+
+public class AboutActionListener implements ActionListener {
+
+       private Component parent;
+
+       public AboutActionListener(Component parent) {
+               this.parent = parent;
+       }
+
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               VersionDialog version = new VersionDialog(
+                               (JFrame) SwingUtilities.getWindowAncestor(parent), true);
+               version.showDialog();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.java b/src/org/tizen/tct/tool/mgr/listener/menu/ChooseDeviceListener.java
new file mode 100644 (file)
index 0000000..1e63a6a
--- /dev/null
@@ -0,0 +1,54 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.menu;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.IOException;
+
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+
+import org.tizen.tct.tool.mgr.device.DeviceList;
+import org.tizen.tct.tool.mgr.device.view.ChooseDeviceDialog;
+
+/**
+ * @author cathy
+ * 
+ */
+public class ChooseDeviceListener implements ActionListener {
+
+       private JFrame frame;
+
+       public ChooseDeviceListener(JFrame frame) {
+               this.frame = frame;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+        */
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               DeviceList list = null;
+               try {
+                       list = DeviceList.loadDeviceList();
+               } catch (IOException e1) {
+                       e1.printStackTrace();
+               }
+
+               if (null == list || !list.isDeviceAvailable()) {
+                       JOptionPane
+                                       .showMessageDialog(frame,
+                                                       "No device is connected, please check or try to reconnect it again.");
+               } else {
+                       ChooseDeviceDialog dialog = new ChooseDeviceDialog(this.frame,
+                                       true, list.getSdbDeviceList());
+                       dialog.startDialog();
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.java b/src/org/tizen/tct/tool/mgr/listener/menu/HelpActionListener.java
new file mode 100644 (file)
index 0000000..5548b74
--- /dev/null
@@ -0,0 +1,20 @@
+package org.tizen.tct.tool.mgr.listener.menu;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.IOException;
+
+import org.tizen.tct.tool.mgr.Constants;
+
+public class HelpActionListener implements ActionListener {
+
+       @Override
+       public void actionPerformed(ActionEvent arg0) {
+               try {
+                       Runtime.getRuntime().exec("xdg-open " + Constants.GUIDE_PATH);
+               } catch (IOException e) {
+                       e.printStackTrace();
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.java b/src/org/tizen/tct/tool/mgr/listener/navi/ExecuteLabelListener.java
new file mode 100644 (file)
index 0000000..0840838
--- /dev/null
@@ -0,0 +1,29 @@
+/**\r
+ * \r
+ */\r
+package org.tizen.tct.tool.mgr.listener.navi;\r
+\r
+import java.awt.event.ActionEvent;\r
+import java.awt.event.ActionListener;\r
+\r
+import org.tizen.tct.tool.mgr.view.PlanJFrame;\r
+\r
+/**\r
+ * @author stang23\r
+ * \r
+ */\r
+public class ExecuteLabelListener implements ActionListener {\r
+       \r
+       private PlanJFrame mainFrameRef;\r
+       \r
+       public ExecuteLabelListener(PlanJFrame mainFrame){\r
+               mainFrameRef = mainFrame;\r
+       }\r
+\r
+       @Override\r
+       public void actionPerformed(ActionEvent e) {\r
+               mainFrameRef.removeContentsAll();\r
+               mainFrameRef.showExecutePage();\r
+       }\r
+\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.java b/src/org/tizen/tct/tool/mgr/listener/navi/PlanLabelListener.java
new file mode 100644 (file)
index 0000000..478f61b
--- /dev/null
@@ -0,0 +1,30 @@
+/**\r
+ * \r
+ */\r
+package org.tizen.tct.tool.mgr.listener.navi;\r
+\r
+import java.awt.event.ActionEvent;\r
+import java.awt.event.ActionListener;\r
+\r
+import org.tizen.tct.tool.mgr.view.PlanJFrame;\r
+\r
+\r
+/**\r
+ * @author stang23\r
+ *\r
+ */\r
+public class PlanLabelListener implements ActionListener {\r
+       \r
+       private PlanJFrame mainFrameRef;\r
+       \r
+       public PlanLabelListener(PlanJFrame mainFrame){\r
+               mainFrameRef = mainFrame;\r
+       }\r
+\r
+       @Override\r
+       public void actionPerformed(ActionEvent e) {\r
+               mainFrameRef.removeContentsAll();\r
+               mainFrameRef.returnPlanContents();\r
+       }\r
+\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.java b/src/org/tizen/tct/tool/mgr/listener/navi/ReportLabelListener.java
new file mode 100644 (file)
index 0000000..129e968
--- /dev/null
@@ -0,0 +1,28 @@
+/**\r
+ * \r
+ */\r
+package org.tizen.tct.tool.mgr.listener.navi;\r
+\r
+import java.awt.event.ActionEvent;\r
+import java.awt.event.ActionListener;\r
+\r
+import org.tizen.tct.tool.mgr.view.PlanJFrame;\r
+\r
+/**\r
+ * @author stang23\r
+ *\r
+ */\r
+public class ReportLabelListener implements ActionListener {\r
+       \r
+       private PlanJFrame mainFrameRef;\r
+       \r
+       public ReportLabelListener(PlanJFrame mainFrame){\r
+               mainFrameRef = mainFrame;\r
+       }\r
+\r
+       @Override\r
+       public void actionPerformed(ActionEvent e) {\r
+               mainFrameRef.removeContentsAll();\r
+               mainFrameRef.showReportContents();\r
+       }\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.java b/src/org/tizen/tct/tool/mgr/listener/plan/ExecuteTypeChangedItemListener.java
new file mode 100644 (file)
index 0000000..8aca7c4
--- /dev/null
@@ -0,0 +1,28 @@
+package org.tizen.tct.tool.mgr.listener.plan;
+
+import java.awt.event.ItemEvent;
+import java.awt.event.ItemListener;
+
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+
+public class ExecuteTypeChangedItemListener implements ItemListener {
+       
+       private ItemChangedCallback callback;
+
+       /**
+        * 
+        */
+       public ExecuteTypeChangedItemListener(ItemChangedCallback panel) {
+               this.callback = panel;
+       }
+       
+       @Override
+       public void itemStateChanged(ItemEvent event) {
+               if (event.getStateChange() == ItemEvent.SELECTED) {
+                       String item = (String)event.getItem();
+                       ExecuteType et = ExecuteType.createExecuteType(item);
+                       this.callback.updateSuiteTableForEtype(et);
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.java b/src/org/tizen/tct/tool/mgr/listener/plan/ItemChangedCallback.java
new file mode 100644 (file)
index 0000000..8340361
--- /dev/null
@@ -0,0 +1,19 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.plan;
+
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+/**
+ * @author shaofeng
+ *
+ */
+public interface ItemChangedCallback {
+       
+       void updateExecuteType(String planName);
+       
+       void updateSelectedSuites(String planName);
+       
+       void updateSuiteTableForEtype(ExecuteType et);
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.java b/src/org/tizen/tct/tool/mgr/listener/plan/PlanChangedItemListener.java
new file mode 100644 (file)
index 0000000..daf6d0c
--- /dev/null
@@ -0,0 +1,37 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.plan;
+
+import java.awt.event.ItemEvent;
+import java.awt.event.ItemListener;
+
+import org.tizen.tct.tool.mgr.model.plan.SingleTctPlanList;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class PlanChangedItemListener implements ItemListener {
+
+       private ItemChangedCallback callback;
+
+       /**
+        * 
+        */
+       public PlanChangedItemListener(ItemChangedCallback panel) {
+               this.callback = panel;
+       }
+
+       @Override
+       public void itemStateChanged(ItemEvent event) {
+               if (event.getStateChange() == ItemEvent.SELECTED) {
+                       String item = (String) event.getItem();
+                       SingleTctPlanList list = SingleTctPlanList.getInstance();
+                       list.setSelectedPlan(item);
+                       this.callback.updateExecuteType(item);
+                       this.callback.updateSelectedSuites(item);
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.java b/src/org/tizen/tct/tool/mgr/listener/plan/RunButtonActionListener.java
new file mode 100644 (file)
index 0000000..75ef61c
--- /dev/null
@@ -0,0 +1,266 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.plan;
+
+import java.awt.event.ActionEvent;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.SwingUtilities;
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.StartTestActionListener;
+import org.tizen.tct.tool.mgr.lite.PlanExecutor;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.plan.FullTctSuites;
+import org.tizen.tct.tool.mgr.model.plan.SingleTctPlanList;
+import org.tizen.tct.tool.mgr.model.plan.TctPlanFactory;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.planpage.PlanChangedDialog;
+import org.tizen.tct.tool.mgr.view.planpage.PlanPanel;
+import org.tizen.tct.tool.mgr.view.runpage.RunPanel;
+import org.tizen.tct.tool.mgr.view.safequit.ExecutorRegister;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class RunButtonActionListener extends StartTestActionListener {
+
+       public PlanPanel panel;
+
+       private RunPanel runPanel;
+
+       /**
+        * 
+        */
+       public RunButtonActionListener(PlanPanel panel) {
+               this.panel = panel;
+       }
+
+       private void writePlan(TctTestPlan plan) {
+               try {
+                       plan.writeObjectIntoXml(plan.getName() + ".xml");
+               } catch (IOException e) {
+                       e.printStackTrace();
+               } catch (JAXBException e) {
+                       e.printStackTrace();
+               } catch (XMLStreamException e) {
+                       e.printStackTrace();
+               }
+       }
+
+       private TctTestPlan createTempPlan(ExecuteType selectedEt,
+                       List<String> selectedSuites, TctTestPlan plan) {
+               TctTestPlan tmpPlan = null;
+               if (Constants.TMP_PLAN_NAME.equals(plan.getName())) {
+                       plan.overridePlan(selectedEt, selectedSuites);
+                       this.writePlan(plan);
+                       tmpPlan = plan;
+               } else {
+                       tmpPlan = TctPlanFactory.createTempPlan(selectedEt, selectedSuites);
+                       this.writePlan(tmpPlan);
+               }
+               if (null != tmpPlan) {
+                       SingleTctPlanList.getInstance().addPlan(tmpPlan.getName(), tmpPlan);
+               }
+               return tmpPlan;
+       }
+
+       private TctTestPlan createNewPlan(ExecuteType selectedEt,
+                       List<String> selectedSuites) {
+               String planName = JOptionPane.showInputDialog(this.panel,
+                               "Please input the new plan name", "New Plan",
+                               JOptionPane.PLAIN_MESSAGE);
+               TctTestPlan plan = null;
+               if (null == planName) {
+                       // do nothing
+               }
+               // Check file name, max-length 14,
+               else if (planName.length() > 14) {
+                       JOptionPane.showMessageDialog(this.panel,
+                                       "Max length of plan name is 14.\n" + "the name '"
+                                                       + planName + "' is too long. \n"
+                                                       + "Please enter a new name.", "Long name",
+                                       JOptionPane.INFORMATION_MESSAGE);
+                       plan = this.createNewPlan(selectedEt, selectedSuites);
+               }
+               // Check if the plan name existed already.
+               else if (SingleTctPlanList.getInstance().contains(planName)) {
+                       int reply = JOptionPane.showConfirmDialog(this.panel, "The plan '"
+                                       + planName + "' is existed, Override it?", "Plan existed",
+                                       JOptionPane.YES_NO_OPTION);
+                       if (reply == JOptionPane.YES_OPTION) {
+                               plan = this.overrideOldPlan(selectedEt, selectedSuites,
+                                               SingleTctPlanList.getInstance().getPlan(planName));
+                       } else {
+                               plan = this.createNewPlan(selectedEt, selectedSuites);
+                       }
+               } else {
+                       if (null != planName) {
+                               plan = TctPlanFactory.createNewPlan(planName, selectedEt,
+                                               selectedSuites);
+                               this.writePlan(plan);
+                       }
+                       if (null != plan) {
+                               SingleTctPlanList.getInstance().addPlan(plan.getName(), plan);
+                       }
+               }
+               return plan;
+       }
+
+       private TctTestPlan overrideOldPlan(ExecuteType selectedEt,
+                       List<String> selectedSuites, TctTestPlan plan) {
+               plan.overridePlan(selectedEt, selectedSuites);
+               this.writePlan(plan);
+               return plan;
+       }
+
+       private TctTestPlan confirmPlan(ExecuteType selectedEt,
+                       List<String> selectedSuites, TctTestPlan plan) {
+
+               PlanChangedDialog dialog = new PlanChangedDialog(
+                               (JFrame) SwingUtilities.getWindowAncestor(this.panel), plan);
+               int reply = dialog.getChoice();
+               TctTestPlan confirmedPlan = null;
+               if (reply == JOptionPane.YES_OPTION) {
+                       confirmedPlan = this.createTempPlan(selectedEt, selectedSuites,
+                                       plan);
+               } else if (reply == JOptionPane.NO_OPTION) {
+                       confirmedPlan = this.createNewPlan(selectedEt, selectedSuites);
+               } else if (reply == JOptionPane.CANCEL_OPTION) {
+                       confirmedPlan = this.overrideOldPlan(selectedEt, selectedSuites,
+                                       plan);
+               } else if (reply == JOptionPane.CLOSED_OPTION) {
+                       // Do nothing
+               }
+
+               return confirmedPlan;
+       }
+
+       private List<String> filterSuiteWithExecuteType(
+                       List<String> selectedSuites, ExecuteType selectedEt) {
+               if (ExecuteType.ALL == selectedEt) {
+                       return selectedSuites;
+               } else {
+                       List<String> filtered = new ArrayList<String>();
+                       FullTctSuites suiteList = null;
+                       try {
+                               suiteList = FullTctSuites.extractSuiteFromPackageLists();
+                       } catch (IOException e) {
+                               e.printStackTrace();
+                       } catch (InterruptedException e) {
+                               e.printStackTrace();
+                       }
+                       if (null != suiteList) {
+                               for (String suiteName : selectedSuites) {
+                                       TctTestSuite suite = suiteList.getSuite(suiteName);
+                                       Collection<TctTestSuite> suites = suiteList
+                                                       .getSuites(selectedEt);
+                                       if (suites.contains(suite)) {
+                                               filtered.add(suiteName);
+                                       }
+                               }
+                       }
+                       return filtered;
+               }
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+        */
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               if (isDeviceReady()) {
+                       String selectedPlanName = this.panel.getSelectedPlan();
+                       ExecuteType selectedEt = ExecuteType.createExecuteType(this.panel
+                                       .getSelectedEType());
+                       List<String> selectedSuites = this.panel.getSelectedSuites();
+
+                       if (null == selectedSuites || selectedSuites.isEmpty()) {
+                               JOptionPane
+                                               .showMessageDialog(panel,
+                                                               "No suite is selected. Please select at least 1 suite to run.");
+                       } else {
+                               List<String> filtered = filterSuiteWithExecuteType(
+                                               selectedSuites, selectedEt);
+                               if (null == filtered || filtered.isEmpty()) {
+                                       JOptionPane
+                                                       .showMessageDialog(
+                                                                       panel,
+                                                                       "With the execution type '"
+                                                                                       + (ExecuteType.AUTO == selectedEt ? ExecuteType.automated
+                                                                                                       : selectedEt)
+                                                                                       + "', no suite will be executed.");
+                               } else {
+                                       TctTestPlan plan = SingleTctPlanList.getInstance().getPlan(
+                                                       selectedPlanName);
+                                       if (plan.isChanged(selectedEt, selectedSuites)) {
+                                               plan = this.confirmPlan(selectedEt, selectedSuites,
+                                                               plan);
+                                       }
+
+                                       if (null != plan) {
+                                               if (isHealthCheckPassed()) {
+                                                       if (isPreconfigPassed(selectedSuites,
+                                                                       this.panel.getSelectPreconf())) {
+                                                               if (this.extractDeviceCapability()) {
+                                                                       if (SingleRunningPlan.getInstance()
+                                                                                       .setRunningPlan(plan, false)) {
+
+                                                                               this.runPanel = this.panel
+                                                                                               .turnToRunPage(plan);
+                                                                               this.runPanel.resetTreeAndLog();
+                                                                               this.runPanel.resetProcessBar();
+                                                                               PropertyChangeListener listener = new PropertyChangeListener() {
+                                                                                       public void propertyChange(
+                                                                                                       PropertyChangeEvent event) {
+                                                                                               if ("progress".equals(event
+                                                                                                               .getPropertyName())) {
+                                                                                                       runPanel.progressChanged((Integer) event
+                                                                                                                       .getNewValue());
+                                                                                               }
+                                                                                       }
+                                                                               };
+                                                                               Constants.resetPipe();
+                                                                               this.runPanel.startRefresh();
+                                                                               PlanExecutor executor = new PlanExecutor(
+                                                                                               plan, this.runPanel, listener,
+                                                                                               null);
+                                                                               ExecutorRegister.getInstance()
+                                                                                               .registerExecutor(executor);
+                                                                               executor.start();
+                                                                       } else {
+                                                                               JOptionPane
+                                                                                               .showMessageDialog(panel,
+                                                                                                               "Another plan is running, please stop it or wait");
+                                                                       }
+                                                               }
+                                                       }
+                                               }
+                                       }
+                               }
+                       }
+               }
+       }
+
+       @Override
+       protected JPanel getParent() {
+               return this.panel;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.java b/src/org/tizen/tct/tool/mgr/listener/report/EditManualActionListener.java
new file mode 100644 (file)
index 0000000..6b66c1d
--- /dev/null
@@ -0,0 +1,80 @@
+package org.tizen.tct.tool.mgr.listener.report;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.File;
+import java.util.Iterator;
+
+import javax.swing.JOptionPane;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.lite.CalculatResultThread;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.editablesuite.PlanManualResult;
+import org.tizen.tct.tool.mgr.model.plan.TctPlanFactory;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.ContentPanel;
+import org.tizen.tct.tool.mgr.view.runpage.RunPanel;
+import org.tizen.tct.tool.mgr.view.safequit.ExecutorRegister;
+
+/**
+ * @author shaofeng
+ * @deprecated
+ */
+public class EditManualActionListener implements ActionListener {
+
+       private TctResultReport report;
+
+       private ContentPanel parent;
+
+       public EditManualActionListener(TctResultReport report, ContentPanel parent) {
+               this.report = report;
+               this.parent = parent;
+       }
+
+       private void prepareEditing(TctTestPlan plan, String resultFolder) {
+               RunPanel runPanel = parent.turnToRunPage(plan);
+               runPanel.resetTreeAndLog();
+               runPanel.resetProcessBar();
+
+               runPanel.liteDone(resultFolder, this.report.getExecutedManuals(), false);
+               ExecutorRegister.getInstance().registerResultFolder(resultFolder);
+               PlanManualResult results = PlanManualResult.getPlanManualResult(
+                               resultFolder, this.report.getExecutedManuals());
+               for (Iterator<String> iter = results.getSavingSuiteIterator(); iter
+                               .hasNext();) {
+                       String suiteName = iter.next();
+                       new CalculatResultThread(results.getResultFolder(), suiteName,
+                                       ExecuteType.MANUAL, runPanel).start();
+                       plan.getSuiteForManualExecute(null, suiteName);
+               }
+       }
+
+       @Override
+       public void actionPerformed(ActionEvent arg0) {
+               // check if manual suite is included, if not show error
+               if (null == this.report.getExecutedManuals()
+                               || this.report.getExecutedManuals().isEmpty()) {
+                       JOptionPane.showMessageDialog(parent,
+                                       "[Edit Manual Suite Result]: No manual suite is included");
+               }
+               // if yes, create TctTestPlan and related MANUAL suites
+               else {
+                       String resultFolder = Constants.RESULT_FOLDER + File.separator
+                                       + report.getFolderName();
+                       TctTestPlan plan = TctPlanFactory.createEditManualPlan(
+                                       report.getPlanName(), ExecuteType.MANUAL,
+                                       this.report.getExecutedManuals(), resultFolder);
+
+                       if (SingleRunningPlan.getInstance().setRunningPlan(plan, false)) {
+                               prepareEditing(plan, resultFolder);
+                       } else {
+                               JOptionPane
+                                               .showMessageDialog(parent,
+                                                               "Another plan is running, please try to edit the result later.");
+                       }
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.java b/src/org/tizen/tct/tool/mgr/listener/report/ExportActionListener.java
new file mode 100644 (file)
index 0000000..31d61f7
--- /dev/null
@@ -0,0 +1,75 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.report;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.File;
+import java.io.IOException;
+
+import javax.swing.JFileChooser;
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.SwingUtilities;
+
+import org.apache.commons.io.FileUtils;
+import org.tizen.tct.tool.mgr.lite.util.ResultZipper;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ExportActionListener implements ActionListener {
+
+       private JPanel parent;
+
+       private TctResultReport report;
+
+       public ExportActionListener(TctResultReport report, JPanel parent) {
+               super();
+               this.parent = parent;
+               this.report = report;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+        */
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               JFileChooser fileChooser = new JFileChooser();
+               fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
+               int result = fileChooser.showSaveDialog((JFrame) SwingUtilities
+                               .getWindowAncestor(parent));
+               if (result == JFileChooser.APPROVE_OPTION) {
+                       File selectedFile = fileChooser.getSelectedFile();
+                       if (!selectedFile.exists()) {
+                               int reply = JOptionPane.showConfirmDialog(this.parent,
+                                               "Selected folder \"" + selectedFile.getAbsolutePath()
+                                                               + "\" does not exist, Create it?");
+                               if (reply == JOptionPane.YES_OPTION) {
+                                       try {
+                                               FileUtils.forceMkdir(selectedFile);
+                                       } catch (IOException e1) {
+                                               JOptionPane.showMessageDialog(this.parent,
+                                                               "Fail to create the selected folder \""
+                                                                               + selectedFile.getAbsolutePath()
+                                                                               + "\". [Message]:" + e1.getMessage());
+                                       }
+                               }
+                       }
+                       if (selectedFile.exists()) {
+                               String fileName = ResultZipper.reportExport(selectedFile,
+                                               report.getFolder(), parent);
+                               JOptionPane.showMessageDialog(this.parent, "File '" + fileName
+                                               + "' is saved in '" + selectedFile + "'");
+                       }
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.java b/src/org/tizen/tct/tool/mgr/listener/report/PrepareRerunXmlWorker.java
new file mode 100644 (file)
index 0000000..7757057
--- /dev/null
@@ -0,0 +1,97 @@
+package org.tizen.tct.tool.mgr.listener.report;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+
+import javax.swing.JOptionPane;
+import javax.swing.SwingWorker;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.definition.TestDefinition;
+import org.tizen.tct.tool.mgr.lite.CalculatResultThread;
+import org.tizen.tct.tool.mgr.lite.util.ResultFilter;
+import org.tizen.tct.tool.mgr.model.report.SuitePath;
+import org.tizen.tct.tool.mgr.view.ProgressDialog;
+import org.tizen.tct.tool.mgr.view.ProgressInformable;
+
+/**
+ * 
+ * @author shaofeng
+ * 
+ */
+
+public class PrepareRerunXmlWorker extends SwingWorker<List<String>, String> {
+
+       private ProgressInformable informable;
+
+       private Set<SuitePath> allSuitePath;
+
+       public PrepareRerunXmlWorker(ProgressInformable informable,
+                       Set<SuitePath> allSuitePath) {
+               super();
+               this.informable = informable;
+               this.allSuitePath = allSuitePath;
+       }
+
+       private boolean checkUifw(String suiteName) {
+               boolean isUifw = false;
+               if (null != suiteName) {
+                       String lowcase = suiteName.toLowerCase();
+                       if (lowcase.indexOf("uifw") != -1) {
+                               isUifw = true;
+                               JOptionPane
+                                               .showMessageDialog(
+                                                               (ProgressDialog) this.informable,
+                                                               "This is a limitation for web UIFW. TCT doesn't support to rerun Web UIFW suite '"
+                                                                               + suiteName + "'.", "UIFW Limitation",
+                                                               JOptionPane.INFORMATION_MESSAGE);
+                       }
+               }
+               return isUifw;
+       }
+
+       @Override
+       protected List<String> doInBackground() throws Exception {
+               int progress = 1;
+               List<String> result = null;
+               for (SuitePath suitePath : allSuitePath) {
+                       if (this.checkUifw(suitePath.getSuiteName())) {
+                               continue;
+                       } else {
+                               publish("Filter suite '" + suitePath.getSuiteName()
+                                               + "' for removeing PASS test cases");
+                               File resultXml = new File(suitePath.getSuiteResultName());
+                               File rerunXml = new File(suitePath.getSuiteRerunName());
+                               TestDefinition suiteXml = CalculatResultThread
+                                               .loadResultXML(resultXml);
+                               suiteXml = ResultFilter.filterPassResult(suiteXml);
+                               if (null != suiteXml) {
+                                       publish("Saving suite '" + suitePath.getSuiteName()
+                                                       + "' filtered rerun definition.");
+                                       Constants.writeObjIntoXml(rerunXml, TestDefinition.class,
+                                                       suiteXml, null);
+                                       if (null == result) {
+                                               result = new ArrayList<String>();
+                                       }
+                                       result.add(suitePath.getSuiteName());
+                               } else {
+                                       publish("Suite '" + suitePath.getSuiteName()
+                                                       + "' contain no Not-Pass testcases, skipped.");
+                               }
+                       }
+                       this.informable.setProgress(progress);
+                       progress++;
+               }
+               this.informable.closeDialog();
+               return result;
+       }
+
+       @Override
+       protected void process(List<String> chunks) {
+               for (String message : chunks) {
+                       informable.messageChanged(message);
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.java b/src/org/tizen/tct/tool/mgr/listener/report/RemoveReportActionListener.java
new file mode 100644 (file)
index 0000000..1fb0313
--- /dev/null
@@ -0,0 +1,52 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.report;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+
+import org.tizen.tct.tool.mgr.view.reportpage.DeleteReportCallback;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class RemoveReportActionListener implements ActionListener {
+
+       private DeleteReportCallback callback;
+
+       private JFrame frame;
+
+       public RemoveReportActionListener(DeleteReportCallback callback,
+                       JFrame frame) {
+               this.callback = callback;
+               this.frame = frame;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+        */
+       @Override
+       public void actionPerformed(ActionEvent event) {
+               if (this.callback.isItemSelected()) {
+                       int res = JOptionPane.showConfirmDialog(this.frame,
+                                       "Do you want to remove selected reports?",
+                                       "Remove selected reports", JOptionPane.YES_NO_OPTION);
+                       if (res == JOptionPane.YES_OPTION) {
+                               callback.deleteSelectedItem();
+                       }
+               }else{
+                       JOptionPane
+                       .showMessageDialog(this.frame,
+                                       "No report is selected. Please select reports firstly.");
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.java b/src/org/tizen/tct/tool/mgr/listener/report/RerunActionListener.java
new file mode 100644 (file)
index 0000000..6118024
--- /dev/null
@@ -0,0 +1,149 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.report;
+
+import java.awt.event.ActionEvent;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.io.File;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.concurrent.ExecutionException;
+
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.SwingUtilities;
+import javax.swing.SwingWorker;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.StartTestActionListener;
+import org.tizen.tct.tool.mgr.lite.PlanExecutor;
+import org.tizen.tct.tool.mgr.model.plan.TctPlanFactory;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.report.SuitePath;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.ContentPanel;
+import org.tizen.tct.tool.mgr.view.ProgressDialog;
+import org.tizen.tct.tool.mgr.view.runpage.RunPanel;
+import org.tizen.tct.tool.mgr.view.safequit.ExecutorRegister;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class RerunActionListener extends StartTestActionListener {
+
+       private static final Logger logger = Logger
+                       .getLogger(RerunActionListener.class);
+
+       private TctResultReport report;
+
+       private ContentPanel parent;
+
+       private RunPanel runPanel;
+
+       public RerunActionListener(TctResultReport report, ContentPanel parent) {
+               this.report = report;
+               this.parent = parent;
+       }
+
+       private void startRerun(List<String> rerunSuites) {
+               Set<SuitePath> rerunSuiteSet = new HashSet<SuitePath>();
+               String resultFolder = Constants.RESULT_FOLDER + File.separator
+                               + this.report.getFolderName();
+               Constants.copyFile(resultFolder + "/tct-testconfig.ini",
+                               Constants.PRE_CONF_FILE_INI);
+               for (String rerunSuite : rerunSuites) {
+                       rerunSuiteSet.add(new SuitePath(rerunSuite, resultFolder));
+               }
+               TctTestPlan plan = TctPlanFactory.createRerunPlan(this.report.getEt(),
+                               rerunSuiteSet, resultFolder);
+               if (null != plan) {
+                       if (!isPreconfigPassed(rerunSuites, parent.getPlanPanel()
+                                       .getSelectPreconf())) {
+                               JOptionPane.showMessageDialog(parent,
+                                               "Please do preconfigure properly!");
+                               return;
+                       }
+                       if (SingleRunningPlan.getInstance().setRunningPlan(plan, true)) {
+                               this.runPanel = parent.turnToRunPage(plan);
+                               this.runPanel.resetTreeAndLog();
+                               this.runPanel.resetProcessBar();
+                               PropertyChangeListener listener = new PropertyChangeListener() {
+                                       public void propertyChange(PropertyChangeEvent event) {
+                                               if ("progress".equals(event.getPropertyName())) {
+                                                       runPanel.progressChanged((Integer) event
+                                                                       .getNewValue());
+                                               }
+                                       }
+                               };
+                               Constants.resetPipe();
+                               this.runPanel.startRefresh();
+                               PlanExecutor executor = new PlanExecutor(plan, this.runPanel,
+                                               listener, resultFolder);
+                               ExecutorRegister.getInstance().registerExecutor(executor);
+                               executor.start();
+                       } else {
+                               JOptionPane.showMessageDialog(parent,
+                                               "Another plan is running, please stop it or wait");
+                       }
+
+               }
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+        */
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               int res = JOptionPane.showConfirmDialog(
+                               this.getTopFrame(),
+                               "Rerun all Not-Pass testcases in the plan '"
+                                               + this.report.getPlanName() + "'",
+                               "Rerun known failure", JOptionPane.YES_NO_OPTION);
+               if (res == JOptionPane.YES_OPTION) {
+                       Set<SuitePath> allSuites = this.report.getAllSuitePath();
+                       if (null == allSuites || allSuites.isEmpty()) {
+                               JOptionPane.showMessageDialog(parent,
+                                               "[Rerun known failed case]: No suite is included");
+                       } else {
+                               ProgressDialog dialog = new ProgressDialog(
+                                               (JFrame) SwingUtilities.getWindowAncestor(parent),
+                                               true, allSuites.size(), null);
+                               SwingWorker<List<String>, String> worker = new PrepareRerunXmlWorker(
+                                               dialog, allSuites);
+                               dialog.startWorker(worker);
+                               try {
+                                       if (worker.isDone()) {
+                                               List<String> rerunSuites = worker.get();
+                                               dialog.closeDialog();
+                                               if (null == rerunSuites || rerunSuites.isEmpty()) {
+                                                       JOptionPane
+                                                                       .showMessageDialog(parent,
+                                                                                       "[Rerun known failed case]: All result of testcase are PASS.");
+                                               } else if (isDeviceReady() && isHealthCheckPassed()) {
+                                                       this.startRerun(rerunSuites);
+                                               }
+                                       }
+                               } catch (InterruptedException e1) {
+                                       e1.printStackTrace();
+                               } catch (ExecutionException e1) {
+                                       e1.printStackTrace();
+                               }
+                       }
+               }
+       }
+
+       @Override
+       protected JPanel getParent() {
+               return this.parent;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.java b/src/org/tizen/tct/tool/mgr/listener/report/ResumeActionListener.java
new file mode 100644 (file)
index 0000000..ef83e2d
--- /dev/null
@@ -0,0 +1,114 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.report;
+
+import java.awt.event.ActionEvent;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.StartTestActionListener;
+import org.tizen.tct.tool.mgr.lite.CalculatResultThread;
+import org.tizen.tct.tool.mgr.lite.PlanExecutor;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.plan.TctPlanFactory;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.ContentPanel;
+import org.tizen.tct.tool.mgr.view.runpage.RunPanel;
+import org.tizen.tct.tool.mgr.view.safequit.ExecutorRegister;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class ResumeActionListener extends StartTestActionListener {
+
+       private TctResultReport report;
+
+       private ContentPanel parent;
+
+       private RunPanel runPanel;
+
+       public ResumeActionListener(TctResultReport report, ContentPanel parent) {
+               this.report = report;
+               this.parent = parent;
+       }
+
+       private void showResultStatics(String resultFolder) {
+               for (String suiteName : this.report.getExecutedAutos()) {
+                       new CalculatResultThread(resultFolder, suiteName, ExecuteType.AUTO,
+                                       this.runPanel).start();
+               }
+               for (String suiteName : this.report.getExecutedManuals()) {
+                       new CalculatResultThread(resultFolder, suiteName,
+                                       ExecuteType.MANUAL, this.runPanel).start();
+               }
+       }
+
+       @Override
+       public void actionPerformed(ActionEvent arg0) {
+               int res = JOptionPane.showConfirmDialog(this.getTopFrame(),
+                               "Resume the plan '" + this.report.getPlanName()
+                                               + "' execution?", "Resume plan execution",
+                               JOptionPane.YES_NO_OPTION);
+               if (res == JOptionPane.YES_OPTION) {
+                       if (isDeviceReady() && isHealthCheckPassed()) {
+                               TctTestPlan plan = TctPlanFactory.createResumePlan(this.report);
+                               String resultFolder = Constants.RESULT_FOLDER + File.separator
+                                               + this.report.getFolderName();
+                               Constants.copyFile(resultFolder + "/tct-testconfig.ini",
+                                               Constants.PRE_CONF_FILE_INI);
+                               if (null != plan) {
+                                       List<String> suiteslist = new ArrayList<String>();
+                                       suiteslist.addAll(plan.getAllSuiteNames());
+                                       if (SingleRunningPlan.getInstance().setRunningPlan(plan,
+                                                       false)) {
+                                               if (!isPreconfigPassed(suiteslist, parent
+                                                               .getPlanPanel().getSelectPreconf())) {
+                                                       JOptionPane.showMessageDialog(parent,
+                                                                       "Please do preconfigure properly!");
+                                                       return;
+                                               }
+                                               this.runPanel = parent.turnToRunPage(plan);
+                                               this.runPanel.resetTreeAndLog();
+                                               this.runPanel.resetProcessBar();
+                                               PropertyChangeListener listener = new PropertyChangeListener() {
+                                                       public void propertyChange(PropertyChangeEvent event) {
+                                                               if ("progress".equals(event.getPropertyName())) {
+                                                                       runPanel.progressChanged((Integer) event
+                                                                                       .getNewValue());
+                                                               }
+                                                       }
+                                               };
+                                               Constants.resetPipe();
+                                               this.runPanel.startRefresh();
+                                               this.showResultStatics(resultFolder);
+                                               PlanExecutor executor = new PlanExecutor(plan,
+                                                               this.runPanel, listener, resultFolder);
+                                               ExecutorRegister.getInstance().registerExecutor(
+                                                               executor);
+                                               executor.start();
+                                       } else {
+                                               JOptionPane
+                                                               .showMessageDialog(parent,
+                                                                               "Another plan is running, please stop it or wait");
+                                       }
+                               }
+                       }
+               }
+       }
+
+       @Override
+       protected JPanel getParent() {
+               return this.parent;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.java b/src/org/tizen/tct/tool/mgr/listener/report/UrlStyleCursorListener.java
new file mode 100644 (file)
index 0000000..e23b953
--- /dev/null
@@ -0,0 +1,41 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.report;
+
+import java.awt.Cursor;
+import java.awt.Point;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+
+import javax.swing.JTable;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class UrlStyleCursorListener extends MouseAdapter {
+
+       private JTable table;
+
+       private int columnIndex;
+
+       public UrlStyleCursorListener(JTable table, int columnIndex) {
+               super();
+               this.table = table;
+               this.columnIndex = columnIndex;
+       }
+
+       @Override
+       public void mouseMoved(MouseEvent e) {
+               if (null != this.table) {
+                       Point p = e.getPoint();
+                       int column = table.columnAtPoint(p);
+                       if (column == this.columnIndex) {
+                               this.table.setCursor(new Cursor(Cursor.HAND_CURSOR));
+                       } else {
+                               this.table.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
+                       }
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.java b/src/org/tizen/tct/tool/mgr/listener/run/ExportLogListener.java
new file mode 100644 (file)
index 0000000..a8e6f56
--- /dev/null
@@ -0,0 +1,89 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.run;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.File;
+import java.io.IOException;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+
+import javax.swing.JComponent;
+import javax.swing.JFileChooser;
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import javax.swing.JTextArea;
+import javax.swing.SwingUtilities;
+
+import org.apache.commons.io.FileUtils;
+import org.tizen.tct.tool.mgr.Constants;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ExportLogListener implements ActionListener {
+
+       private JTextArea logArea;
+
+       private JComponent parent;
+
+       public ExportLogListener(JTextArea logArea, JComponent parent) {
+               this.logArea = logArea;
+               this.parent = parent;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+        */
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               JFileChooser fileChooser = new JFileChooser();
+               fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
+               int result = fileChooser.showSaveDialog((JFrame) SwingUtilities
+                               .getWindowAncestor(logArea));
+               if (result == JFileChooser.APPROVE_OPTION) {
+                       Calendar current = Calendar.getInstance();
+                       SimpleDateFormat sdf = new SimpleDateFormat(
+                                       Constants.LOG_TIMESTMAP_PATTERN);
+                       String timestamp = sdf.format(current.getTime());
+                       File folder = fileChooser.getSelectedFile();
+                       if (!folder.exists()) {
+                               int reply = JOptionPane.showConfirmDialog(this.parent,
+                                               "Selected folder \"" + folder.getAbsolutePath()
+                                                               + "\" does not exist, Create it?");
+                               if (reply == JOptionPane.YES_OPTION) {
+                                       try {
+                                               FileUtils.forceMkdir(folder);
+                                       } catch (IOException e1) {
+                                               JOptionPane.showMessageDialog(this.parent,
+                                                               "Fail to create the selected folder \""
+                                                                               + folder.getAbsolutePath()
+                                                                               + "\". [Message]:" + e1.getMessage());
+                                       }
+                               }
+                       }
+                       if (folder.exists()) {
+                               try {
+                                       String fileName = "device_log_exported_" + timestamp
+                                                       + ".log";
+                                       FileUtils.writeStringToFile(
+                                                       new File(folder.getAbsolutePath() + File.separator
+                                                                       + fileName), this.logArea.getText());
+                                       JOptionPane.showMessageDialog(
+                                                       this.parent,
+                                                       "File '" + fileName + "' is saved in '"
+                                                                       + folder.getAbsolutePath() + "'");
+                               } catch (IOException e1) {
+                                       e1.printStackTrace();
+                               }
+                       }
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/run/StopActionListener.java b/src/org/tizen/tct/tool/mgr/listener/run/StopActionListener.java
new file mode 100644 (file)
index 0000000..1d96dc5
--- /dev/null
@@ -0,0 +1,28 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.run;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+
+/**
+ * @author cathy
+ * 
+ */
+public class StopActionListener implements ActionListener {
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
+        */
+       @Override
+       public void actionPerformed(ActionEvent arg0) {
+               SingleRunningPlan.getInstance().stop();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.java b/src/org/tizen/tct/tool/mgr/listener/run/edit/EditSuiteCallback.java
new file mode 100644 (file)
index 0000000..19f2a7d
--- /dev/null
@@ -0,0 +1,27 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.run.edit;
+
+import java.util.Iterator;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public interface EditSuiteCallback {
+
+       void saveSelectedSuite(String suiteName);
+
+       int getSavingSuiteNumber();
+
+       Iterator<String> getSavingSuiteIterator();
+       
+       String getResultFolder();
+       
+       void selectAllSuites();
+       
+       boolean needUninstall();
+       
+       boolean isChanged();
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.java b/src/org/tizen/tct/tool/mgr/listener/run/edit/FinishButtonListener.java
new file mode 100644 (file)
index 0000000..ada6f42
--- /dev/null
@@ -0,0 +1,99 @@
+package org.tizen.tct.tool.mgr.listener.run.edit;
+
+import java.awt.Component;
+import java.awt.event.MouseEvent;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.SwingUtilities;
+import javax.swing.SwingWorker;
+import javax.swing.event.MouseInputAdapter;
+
+import org.tizen.tct.tool.mgr.lite.WorkerStatus;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.ProgressDialog;
+import org.tizen.tct.tool.mgr.view.runpage.Informable;
+import org.tizen.tct.tool.mgr.view.safequit.ExecutorRegister;
+
+public class FinishButtonListener extends MouseInputAdapter {
+
+       private EditSuiteCallback callback;
+
+       private JButton button;
+
+       private Informable informable;
+
+       private JPanel parent;
+
+       public FinishButtonListener(EditSuiteCallback callback, JButton button,
+                       Informable informable, JPanel parent) {
+               this.callback = callback;
+               this.button = button;
+               this.informable = informable;
+               this.parent = parent;
+       }
+
+       private void savingResults() {
+               callback.selectAllSuites();
+               int progressSize = callback.getSavingSuiteNumber();
+               Component c = SwingUtilities.getRoot(parent);
+               ProgressDialog dialog = new ProgressDialog(
+                               (JFrame) SwingUtilities.getRoot(parent), true, progressSize,
+                               null);
+               SwingWorker<String, String> worker = new SaveResultXmlWorker(callback,
+                               dialog, button);
+               dialog.startWorker(worker);
+       }
+
+       private void uninstallManualSuites() {
+               if (callback.needUninstall()) {
+                       callback.selectAllSuites();
+                       int progressSize = callback.getSavingSuiteNumber();
+                       ProgressDialog dialog = new ProgressDialog(
+                                       (JFrame) SwingUtilities.getRoot(parent), true,
+                                       progressSize, null);
+                       SwingWorker<String, String> worker = new FinishUninstallWorker(
+                                       callback, dialog, button);
+                       dialog.startWorker(worker);
+               } else {
+                       SingleRunningPlan.getInstance().finishedPlan(
+                                       this.callback.getResultFolder());
+                       this.button.setEnabled(true);
+               }
+       }
+
+       @Override
+       public void mouseClicked(MouseEvent e) {
+               if (null != button) {
+                       synchronized (button) {
+                               if (button.isEnabled()) {
+                                       button.setEnabled(false);
+                                       if (callback.isChanged()) {
+                                               int reply = JOptionPane.showConfirmDialog(
+                                                               (JFrame) SwingUtilities
+                                                                               .getWindowAncestor(parent),
+                                                               "Result changes are not saved yet, save them?",
+                                                               "Unsaved changes",
+                                                               JOptionPane.YES_NO_CANCEL_OPTION);
+                                               if (reply == JOptionPane.YES_OPTION) {
+                                                       savingResults();
+                                               } else if (reply == JOptionPane.CANCEL_OPTION
+                                                               || reply == JOptionPane.CLOSED_OPTION) {
+                                                       button.setEnabled(true);
+                                                       return;
+                                               }
+                                       }
+                                       String planName = SingleRunningPlan.getInstance()
+                                                       .getRunningPlan().getName();
+                                       this.informable.messageChanged(new WorkerStatus(planName,
+                                                       "Plan '" + planName + "' is finished", 0, ""));
+                                       uninstallManualSuites();
+                                       this.informable.finishEdit();
+                                       ExecutorRegister.getInstance().unregisterExecutor();
+                               }
+                       }
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.java b/src/org/tizen/tct/tool/mgr/listener/run/edit/FinishUninstallWorker.java
new file mode 100644 (file)
index 0000000..f2efe82
--- /dev/null
@@ -0,0 +1,79 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.run.edit;
+
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.swing.JButton;
+import javax.swing.SwingWorker;
+
+import org.tizen.tct.tool.mgr.lite.CalculatResultThread;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.ProgressInformable;
+import org.tizen.tct.tool.mgr.view.runpage.Informable;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class FinishUninstallWorker extends SwingWorker<String, String> {
+
+       private EditSuiteCallback callback;
+
+       private ProgressInformable informable;
+
+       private JButton button;
+
+       public FinishUninstallWorker(EditSuiteCallback callback,
+                       ProgressInformable informable, JButton button) {
+               this.callback = callback;
+               this.informable = informable;
+               this.button = button;
+       }
+
+       @Override
+       protected String doInBackground() throws Exception {
+               int progress = 1;
+               if (this.callback.needUninstall()) {
+                       publish("Uninstalling suites");
+                       TctTestPlan plan = SingleRunningPlan.getInstance().getRunningPlan();
+                       if (null != plan) {
+                               for (String suiteName : plan.getManuSortedSuiteNames()) {
+                                       TctTestSuite suite = plan
+                                                       .getSuiteForManualInstall(suiteName);
+                                       publish("Uninstalling the suite '" + suiteName + "'");
+                                       if (null != suite) {
+                                               try {
+                                                       if (suite.sdbCheckSuite()) {
+                                                               suite.sdbUninstall();
+                                                       }
+                                               } catch (IOException e) {
+                                                       e.printStackTrace();
+                                               }
+                                       }
+                                       this.informable.setProgress(progress);
+                                       progress++;
+                               }
+                       }
+               }
+               SingleRunningPlan.getInstance().finishedPlan(
+                               this.callback.getResultFolder());
+
+               this.button.setEnabled(true);
+               this.informable.closeDialog();
+               return "Done";
+       }
+       
+       @Override
+       protected void process(List<String> chunks) {
+               for (String message : chunks) {
+                       informable.messageChanged(message);
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.java b/src/org/tizen/tct/tool/mgr/listener/run/edit/ManualSuiteEditListener.java
new file mode 100644 (file)
index 0000000..d9f1b03
--- /dev/null
@@ -0,0 +1,62 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.run.edit;
+
+import javax.swing.JTree;
+import javax.swing.event.TreeSelectionEvent;
+import javax.swing.event.TreeSelectionListener;
+import javax.swing.tree.DefaultMutableTreeNode;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.run.NamedVector;
+import org.tizen.tct.tool.mgr.model.run.TreeNodeUserObject;
+import org.tizen.tct.tool.mgr.view.runpage.TreeNodeSelectedCallback;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ManualSuiteEditListener implements TreeSelectionListener {
+
+       private JTree tree;
+
+       private TreeNodeSelectedCallback callback;
+
+       public ManualSuiteEditListener(JTree tree, TreeNodeSelectedCallback callback) {
+               this.tree = tree;
+               this.callback = callback;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * javax.swing.event.TreeSelectionListener#valueChanged(javax.swing.event
+        * .TreeSelectionEvent)
+        */
+       @Override
+       public void valueChanged(TreeSelectionEvent e) {
+               DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree
+                               .getLastSelectedPathComponent();
+
+               if (node == null) {
+                       return;
+               }
+               Object nodeInfo = node.getUserObject();
+               if (null != nodeInfo) {
+                       if (nodeInfo instanceof TreeNodeUserObject) {
+                               TreeNodeUserObject nodeObj = (TreeNodeUserObject) nodeInfo;
+                               if (nodeObj.isManualNode()) {
+                                       callback.treeNodeChanged(nodeObj.getName());
+                               }
+                       } else if (nodeInfo instanceof NamedVector) {
+                               NamedVector nodeObj = (NamedVector) nodeInfo;
+                               if (nodeObj.getName().startsWith(Constants.MANUAL_NODE_STR)) {
+                                       callback.treeNodeChanged(null);
+                               }
+                       }
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.java b/src/org/tizen/tct/tool/mgr/listener/run/edit/SaveButtonListener.java
new file mode 100644 (file)
index 0000000..4bc59b6
--- /dev/null
@@ -0,0 +1,59 @@
+package org.tizen.tct.tool.mgr.listener.run.edit;
+
+import java.awt.event.MouseEvent;
+import java.util.Iterator;
+
+import javax.swing.JButton;
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+import javax.swing.SwingUtilities;
+import javax.swing.SwingWorker;
+import javax.swing.event.MouseInputAdapter;
+import javax.swing.event.MouseInputListener;
+
+import org.tizen.tct.tool.mgr.lite.CalculatResultThread;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.view.ProgressDialog;
+import org.tizen.tct.tool.mgr.view.runpage.Informable;
+
+public class SaveButtonListener extends MouseInputAdapter {
+
+       private EditSuiteCallback callback;
+
+       private Informable informable;
+
+       private JButton button;
+
+       private JPanel parent;
+
+       public SaveButtonListener(EditSuiteCallback callback, JButton button,
+                       Informable informable, JPanel parent) {
+               this.callback = callback;
+               this.button = button;
+               this.informable = informable;
+               this.parent = parent;
+       }
+
+       @Override
+       public void mouseClicked(MouseEvent e) {
+               if (null != button) {
+                       synchronized (button) {
+                               if (button.isEnabled()) {
+                                       button.setEnabled(false);
+                                       ProgressDialog dialog = new ProgressDialog(
+                                                       (JFrame) SwingUtilities.getWindowAncestor(parent),
+                                                       true, callback.getSavingSuiteNumber(), null);
+                                       SwingWorker<String, String> worker = new SaveResultXmlWorker(
+                                                       callback, dialog, button);
+                                       dialog.startWorker(worker);
+                                       for (Iterator<String> iter = callback
+                                                       .getSavingSuiteIterator(); iter.hasNext();) {
+                                               new CalculatResultThread(callback.getResultFolder(),
+                                                               iter.next(), ExecuteType.MANUAL,
+                                                               this.informable).start();
+                                       }
+                               }
+                       }
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.java b/src/org/tizen/tct/tool/mgr/listener/run/edit/SaveResultXmlWorker.java
new file mode 100644 (file)
index 0000000..f758270
--- /dev/null
@@ -0,0 +1,68 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.listener.run.edit;
+
+import java.util.Iterator;
+import java.util.List;
+
+import javax.swing.JButton;
+import javax.swing.SwingWorker;
+
+import org.tizen.tct.tool.mgr.view.ProgressInformable;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class SaveResultXmlWorker extends SwingWorker<String, String> {
+
+       private EditSuiteCallback callback;
+
+       private ProgressInformable informable;
+
+       private JButton button;
+
+       public SaveResultXmlWorker(EditSuiteCallback callback,
+                       ProgressInformable informable, JButton button) {
+               this.callback = callback;
+               this.informable = informable;
+               this.button = button;
+       }
+
+       @Override
+       protected String doInBackground() throws Exception {
+               int progress = 1;
+               for (Iterator<String> iter = this.callback.getSavingSuiteIterator(); iter
+                               .hasNext();) {
+                       String item = iter.next();
+                       publish("Saving the manual XML for the suite: " + item);
+                       this.callback.saveSelectedSuite(item);
+                       this.getInformable().setProgress(progress);
+                       progress++;
+               }
+               this.button.setEnabled(true);
+               this.informable.closeDialog();
+               return "Done";
+       }
+
+       @Override
+       protected void process(List<String> chunks) {
+               for (String message : chunks) {
+                       informable.messageChanged(message);
+               }
+       }
+       
+       protected EditSuiteCallback getCallback() {
+               return callback;
+       }
+
+       protected ProgressInformable getInformable() {
+               return informable;
+       }
+       
+       protected JButton getButton() {
+               return button;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.java b/src/org/tizen/tct/tool/mgr/lite/AutoSuiteWorker.java
new file mode 100644 (file)
index 0000000..6c6d8fe
--- /dev/null
@@ -0,0 +1,195 @@
+package org.tizen.tct.tool.mgr.lite;
+
+import java.util.List;
+
+import javax.swing.SwingWorker;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.runpage.Informable;
+
+public class AutoSuiteWorker extends SwingWorker<String, WorkerStatus>
+               implements InterruptableWorker {
+
+       private static final Logger logger = Logger
+                       .getLogger(AutoSuiteWorker.class);
+
+       private TctTestPlan plan;
+
+       private Informable informable;
+
+       private String resultFolder;
+
+       private WorkerCallback callback;
+
+       private TctTestSuite runningSuite;
+
+       private boolean running = true;
+
+       private boolean quiting = false;
+       
+       private boolean finished;
+
+       public AutoSuiteWorker(TctTestPlan plan, Informable informable,
+                       String resultFolder, WorkerCallback callback) {
+               logger.debug("Creating auto worker, [PLAN]:" + plan.getName());
+               this.plan = plan;
+               this.informable = informable;
+               this.resultFolder = resultFolder;
+               this.callback = callback;
+               
+               this.finished = false;
+       }
+       
+       private void waitForQuitting(){
+               while (this.quiting) {
+                       try {
+                               Thread.sleep(10);
+                       } catch (InterruptedException e) {
+                               logger.warn("InterruptedException is thrown in waiting testkit-lite quit.");
+                       }
+               }
+       }
+
+       @Override
+       protected String doInBackground() throws Exception {
+               logger.info("The Auto worker is working");
+               String[] suiteNames = this.plan.getAutoSortedSuiteNames();
+               int i = 1;
+               int length = this.plan.getSuitTasksNum();
+               String executedSuite = null;
+               logger.info("Switch to SDB root");
+               SdbCommand.sdbRootOn();
+               for (String suiteName : suiteNames) {
+                       waitForQuitting();
+                       if (!this.running) {
+                               break;
+                       }
+                       runningSuite = this.plan.getSuiteForAutoExecute(suiteName,
+                                       executedSuite);
+                       logger.info("Uploading the suite '" + suiteName + "'");
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Uploading the suite '" + suiteName + "'", 0, suiteName));
+                       runningSuite.sdbPush();
+
+                       logger.info("Checking if the suite '" + suiteName
+                                       + "' is installed already.");
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Checking if the suite  '" + suiteName
+                                                       + "' is installed already.", 0, suiteName));
+                       if (runningSuite.sdbCheckSuite()) {
+                               logger.info("The suite '" + suiteName
+                                               + "' is existed. uninstalling.");
+                               publish(new WorkerStatus(this.plan.getName(),
+                                               "Uninstalling the existed suite  '" + suiteName
+                                                               + "' first.", 0, suiteName));
+                               runningSuite.sdbUninstall();
+                       }
+
+                       logger.info("Installing the suite '" + suiteName + "'");
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Installing the suite '" + suiteName + "'", 0, suiteName));
+                       runningSuite.sdbInstall();
+
+                       logger.info("Removing the suite pkg file of the suite '" + suiteName
+                                       + "'");
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Removing the suite pkg file of the suite '" + suiteName + "'",
+                                       0, suiteName));
+                       runningSuite.sdbRemove();
+
+                       logger.info("Executing the suite '" + suiteName
+                                       + "' in testkit-lite.");
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Executing the suite '" + suiteName + "' in testkit-lite.",
+                                       0, suiteName));
+                       this.informable.enableStop();
+                       if (!this.quiting) {
+                               runningSuite.executeAuto(this.resultFolder);
+                       }
+                       this.informable.disableStop();
+
+                       executedSuite = suiteName;
+                       logger.info("Saving the dlog of the suite '" + suiteName + "'");
+                       Constants.copyDlog(this.resultFolder);
+                       setProgress(i * 100 / length);
+                       i++;
+                       logger.debug("Show the result summary of the suite '" + suiteName
+                                       + "'");
+                       new CalculatResultThread(this.resultFolder, suiteName,
+                                       ExecuteType.AUTO, this.informable).start();
+
+                       logger.info("Uninstalling the suite '" + suiteName + "'");
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Uninstalling the suite '" + suiteName + "'", 0, suiteName));
+                       runningSuite.sdbUninstall();
+
+                       runningSuite = null;
+               }
+
+               waitForQuitting();
+
+               if (this.running) {
+                       logger.info("The last auto suite '" + executedSuite + "' is done");
+                       this.plan.setLastAutoSuite(executedSuite);
+               }
+
+               logger.info("Finished to execute all auto test-cases");
+               publish(new WorkerStatus(this.plan.getName(),
+                               "Finished to execute all auto test-cases", 0, ""));
+               
+               this.finished = true;
+               
+               if (null != this.callback && this.running) {
+                       logger.debug("Go on to execute manual suites");
+                       this.callback.inokeNext(this.resultFolder,
+                                       this.plan.getAutoSuitTasksNum());
+               } else {
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Plan '" + this.plan.getName() + "' is finished", 0, ""));
+                       SingleRunningPlan.getInstance().finishedPlan(this.resultFolder);
+                       this.informable.finishEdit();
+               }
+               return "Done";
+       }
+
+       @Override
+       protected void process(List<WorkerStatus> chunks) {
+               for (WorkerStatus message : chunks) {
+                       informable.messageChanged(message);
+               }
+       }
+
+       @Override
+       public void interruptSuite() {
+               logger.info("Interrupt the worker");
+               this.quiting = true;
+               if (null != this.runningSuite) {
+                       runningSuite.stopLite();
+                       logger.debug("Quiting testkit-lite");
+                       System.out.print("Quiting testkit-lite");
+                       while (null != runningSuite && !runningSuite.isCanceled()) {
+                               System.out.print(".");
+                               try {
+                                       Thread.sleep(1000);
+                               } catch (InterruptedException e) {
+                                       logger.warn("InterruptedException is thrown in waiting testkit-lite quit.");
+                               }
+                       }
+                       System.out.println("\n");
+                       logger.debug("testkit-lite is stopped");
+               }
+               this.running = false;
+               this.quiting = false;
+       }
+       
+       @Override
+       public boolean isFinished(){
+               return this.finished;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/CalculatResultThread.java b/src/org/tizen/tct/tool/mgr/lite/CalculatResultThread.java
new file mode 100644 (file)
index 0000000..74bd696
--- /dev/null
@@ -0,0 +1,125 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.lite;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+
+import org.tizen.tct.tool.mgr.jaxb.definition.Set;
+import org.tizen.tct.tool.mgr.jaxb.definition.Suite;
+import org.tizen.tct.tool.mgr.jaxb.definition.TestDefinition;
+import org.tizen.tct.tool.mgr.jaxb.definition.Testcase;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.model.run.SuiteResultSummary;
+import org.tizen.tct.tool.mgr.view.runpage.Informable;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class CalculatResultThread extends Thread {
+
+       public final static String TESTCASE_PASS = "PASS";
+
+       public final static String TESTCASE_FAIL = "FAIL";
+
+       public final static String TESTCASE_BLOCK = "BLOCK";
+
+       public final static String TESTCASE_NA = "N/A";
+
+       private String resultFolder;
+
+       private String suiteName;
+
+       private Informable informable;
+
+       private ExecuteType et;
+
+       /**
+        * 
+        */
+       public CalculatResultThread(String resultFolder, String suiteName,
+                       ExecuteType et, Informable informable) {
+               this.resultFolder = resultFolder;
+               this.suiteName = suiteName;
+               this.informable = informable;
+               this.et = et;
+       }
+
+       public static TestDefinition loadResultXML(File resultXml) {
+               TestDefinition resultRoot = null;
+               if (resultXml.exists()) {
+                       try {
+                               JAXBContext context = JAXBContext
+                                               .newInstance(TestDefinition.class);
+                               Unmarshaller um = context.createUnmarshaller();
+                               try {
+                                       resultRoot = (TestDefinition) um
+                                                       .unmarshal(new FileInputStream(resultXml));
+                               } catch (FileNotFoundException e) {
+                                       e.printStackTrace();
+                               }
+                       } catch (JAXBException e) {
+                               e.printStackTrace();
+                       }
+               }
+               return resultRoot;
+       }
+
+       public static synchronized SuiteResultSummary statics(
+                       TestDefinition resultRoot, String suiteName) {
+               SuiteResultSummary summary = null;
+               if (null != resultRoot) {
+                       int passed = 0, failed = 0, blocked = 0, na = 0;
+
+                       for (Object obj : resultRoot.getEnvironmentAndSummaryAndSuite()) {
+                               if (obj instanceof Suite) {
+                                       Suite suite = (Suite) obj;
+                                       for (Set set : suite.getSet()) {
+                                               for (Testcase tc : set.getTestcase()) {
+                                                       if (TESTCASE_PASS.equals(tc.getResult())) {
+                                                               passed++;
+                                                       } else if (TESTCASE_FAIL.equals(tc.getResult())) {
+                                                               failed++;
+                                                       } else if (TESTCASE_BLOCK.equals(tc.getResult())) {
+                                                               blocked++;
+                                                       } else {
+                                                               na++;
+                                                       }
+                                               }
+                                       }
+                               }
+                       }
+                       summary = new SuiteResultSummary(passed, failed, blocked, na,
+                                       suiteName);
+               }
+               return summary;
+       }
+
+       @Override
+       public void run() {
+               File resultXml = null;
+               if (ExecuteType.AUTO == et) {
+                       resultXml = new File(resultFolder + File.separator + suiteName
+                                       + SingleRunningPlan.getInstance().getAutoResultSuffix());
+               } else {
+                       resultXml = new File(resultFolder + File.separator + suiteName
+                                       + SingleRunningPlan.getInstance().getManualResultSuffix());
+               }
+               TestDefinition resultRoot = loadResultXML(resultXml);
+
+               SuiteResultSummary summary = statics(resultRoot, suiteName);
+               if (ExecuteType.AUTO == et) {
+                       this.informable.updateAutoSuiteResult(summary);
+               } else {
+                       this.informable.updateManualSuiteResult(summary);
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.java b/src/org/tizen/tct/tool/mgr/lite/HealthCheckCallback.java
new file mode 100644 (file)
index 0000000..149fe28
--- /dev/null
@@ -0,0 +1,9 @@
+package org.tizen.tct.tool.mgr.lite;
+
+public interface HealthCheckCallback {
+
+       boolean isCanceled();
+
+       void finalize(int statuscode);
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.java b/src/org/tizen/tct/tool/mgr/lite/HealthCheckWorker.java
new file mode 100644 (file)
index 0000000..8d8361e
--- /dev/null
@@ -0,0 +1,136 @@
+package org.tizen.tct.tool.mgr.lite;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+
+import javax.swing.SwingWorker;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.device.DeviceList;
+import org.tizen.tct.tool.mgr.lite.util.AnalyHealthFile;
+import org.tizen.tct.tool.mgr.view.ProgressInformable;
+
+public class HealthCheckWorker extends SwingWorker<String, String> {
+
+       private static final Logger logger = Logger
+                       .getLogger(HealthCheckWorker.class);
+       private ProgressInformable checkInfo;
+       private HealthCheckCallback callback;
+
+       public HealthCheckWorker(ProgressInformable chkFrm,
+                       HealthCheckCallback callback) {
+               this.checkInfo = chkFrm;
+               this.callback = callback;
+       }
+
+       private boolean executeCmd(String procId, int timeout) {
+               try {
+                       String hkcmd = Constants.HEALTH_CHECK_CMD + " proc=" + procId
+                                       + " deviceid="
+                                       + DeviceList.getInstance().getSelectedDeviceId();
+                       logger.info("Health check command:" + hkcmd);
+                       String[] commands = hkcmd.split(" ");
+                       Process process = Runtime.getRuntime().exec(commands);
+                       StringBuilder out = new StringBuilder();
+                       BufferedReader br = new BufferedReader(new InputStreamReader(
+                                       process.getInputStream()));
+                       String line = null, previous = null;
+                       int timecnt = 0;
+                       while ((line = br.readLine()) != null) {
+                               if (!line.equals(previous)) {
+                                       previous = line;
+                                       out.append(line).append('\n');
+                               }
+                               if (callback.isCanceled()) {
+                                       logger.debug(procId + " closed!");
+                                       process.destroy();
+                                       return false;
+                               }
+                               if (process.waitFor() == 0) {
+                                       logger.debug(procId + " get success!");
+                                       return true;
+                               }
+                               System.out.println(timecnt);
+                               Thread.sleep(500);
+                               timecnt += 1;
+                               if (timecnt >= timeout) {
+                                       return false;
+                               }
+                       }
+               } catch (IOException e) {
+                       logger.error("IOException: " + e);
+               } catch (InterruptedException i) {
+                       logger.error("InterruptedException: " + i);
+               }
+
+               return false;
+       }
+
+       @Override
+       protected String doInBackground() throws Exception {
+               logger.debug("Entering doInBackground()");
+               AnalyHealthFile fd = new AnalyHealthFile(Constants.HEALTH_CHECK_CONF);
+               List<String> healthSteps = fd.readFileToSteps();
+               String result = "pass";
+               for (String step : healthSteps) {
+                       String[] items = step.split(":");
+                       if (items.length < 2) {
+                               continue;
+                       }
+                       String stepdscr = items[0];
+                       String procId = items[1];
+                       logger.debug("Health check step:" + step);
+                       this.publish(stepdscr + "......");
+                       if (!executeCmd(procId, 10)) {
+                               result = "fail";
+                               break;
+                       }
+                       if (callback.isCanceled()) {
+                               logger.debug("Health check:break off");
+                               break;
+                       }
+                       this.publish(result);
+               }
+               logger.debug("Health check get:" + result);
+               return result;
+       }
+
+       @Override
+       protected void done() {
+               // TODO Auto-generated method stub
+               logger.debug("Entering done()");
+               super.done();
+               try {
+                       String result = this.get();
+                       if (result.equals("fail")) {
+                               checkInfo.failProcess();
+                               callback.finalize(Constants.HEALTH_CHECK_FAIL);
+                       } else {
+                               checkInfo.closeDialog();
+                               callback.finalize(Constants.HEALTH_CHECK_OK);
+                       }
+               } catch (InterruptedException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (ExecutionException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+       @Override
+       protected void process(List<String> chunks) {
+               logger.debug("Entering process()");
+               for (String message : chunks) {
+                       if (message.equals("pass") || message.equals("fail")) {
+                               message = "[" + message + "]\r\n";
+                       }
+                       checkInfo.messageChanged(message);
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/InterruptableWorker.java b/src/org/tizen/tct/tool/mgr/lite/InterruptableWorker.java
new file mode 100644 (file)
index 0000000..661004a
--- /dev/null
@@ -0,0 +1,18 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.lite;
+
+/**
+ * @author cathy
+ *
+ */
+public interface InterruptableWorker {
+       
+       void interruptSuite();
+       
+       boolean isFinished();
+       
+       boolean cancel(boolean mayInterruptIfRunning);
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.java b/src/org/tizen/tct/tool/mgr/lite/ManualSuiteWorker.java
new file mode 100644 (file)
index 0000000..200132d
--- /dev/null
@@ -0,0 +1,215 @@
+package org.tizen.tct.tool.mgr.lite;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.swing.SwingWorker;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.view.runpage.Informable;
+import org.tizen.tct.tool.mgr.view.safequit.ExecutorRegister;
+
+public class ManualSuiteWorker extends SwingWorker<String, WorkerStatus>
+               implements InterruptableWorker {
+       private static final Logger logger = Logger
+                       .getLogger(ManualSuiteWorker.class);
+
+       private TctTestPlan plan;
+
+       private Informable informable;
+
+       private String resultFolder;
+
+       private int startAt;
+
+       private TctTestSuite runningSuite;
+
+       private boolean running = true;
+
+       private boolean quiting = false;
+
+       private boolean installing = false;
+
+       private List<TctTestSuite> installedSuites = null;
+
+       public ManualSuiteWorker(TctTestPlan plan, Informable informable,
+                       String resultFolder, int startAt) {
+               logger.debug("Creating manual worker, [PLAN]:" + plan.getName());
+               this.plan = plan;
+               this.informable = informable;
+               this.resultFolder = resultFolder;
+               this.startAt = startAt;
+       }
+
+       private void installAllSuites(String[] suiteNames) throws IOException {
+               installing = true;
+               installedSuites = new ArrayList<TctTestSuite>();
+               for (String suiteName : suiteNames) {
+                       if (!this.quiting) {
+                               logger.info("Installing the suite '" + suiteName
+                                               + "' for manual testing");
+                               publish(new WorkerStatus(this.plan.getName(),
+                                               "Installing the suite '" + suiteName
+                                                               + "' for manual testing", 0, suiteName));
+                               TctTestSuite suite = this.plan
+                                               .getSuiteForManualInstall(suiteName);
+                               suite.sdbPush();
+                               if (suite.sdbCheckSuite()) {
+                                       suite.sdbUninstall();
+                               }
+                               suite.sdbInstall();
+                               suite.sdbRemove();
+                               installedSuites.add(suite);
+                       } else {
+                               logger.info("Quiting installation...");
+                               break;
+                       }
+               }
+               logger.info("All manual suites are installed");
+               installing = false;
+       }
+
+       private void waitForQuitting() {
+               while (this.quiting) {
+                       try {
+                               Thread.sleep(10);
+                       } catch (InterruptedException e) {
+                               logger.warn("InterruptedException is thrown in waiting testkit-lite quit.");
+                       }
+               }
+       }
+
+       private void executeManaulSuite(String[] suiteNames) throws IOException {
+               logger.debug("Enter executeManaulSuite(String[] suiteNames)");
+               int length = this.plan.getSuitTasksNum();
+               int i = this.startAt + 1;
+               String executedSuite = null;
+               for (String suiteName : suiteNames) {
+                       waitForQuitting();
+                       if (!this.running) {
+                               break;
+                       }
+                       this.runningSuite = this.plan.getSuiteForManualExecute(suiteName,
+                                       executedSuite);
+                       logger.info("Executing the manual suite '" + suiteName + "'");
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Executing the manual suite '" + suiteName + "'", 0,
+                                       suiteName));
+                       if (!this.quiting) {
+                               this.runningSuite.executeManual(this.resultFolder);
+                       }
+
+                       executedSuite = suiteName;
+                       logger.info("Saving the dlog of the suite '" + suiteName + "'");
+                       Constants.copyDlog(this.resultFolder);
+                       setProgress(i * 100 / length);
+                       i++;
+                       logger.debug("Show the result summary of the suite '" + suiteName
+                                       + "'");
+                       new CalculatResultThread(this.resultFolder, suiteName,
+                                       ExecuteType.MANUAL, this.informable).start();
+                       this.runningSuite = null;
+               }
+               waitForQuitting();
+               if (this.running) {
+                       logger.info("The last manual suite '" + executedSuite + "' is done");
+                       publish(new WorkerStatus(this.plan.getName(),
+                                       "Finished to execute all manual test-cases", 0, ""));
+                       this.plan.setLastManualSuite(executedSuite);
+               }
+       }
+
+       @Override
+       protected String doInBackground() throws Exception {
+               logger.info("The Manual worker is working");
+               String[] suiteNames = this.plan.getManuSortedSuiteNames();
+               logger.info("Switch to SDB root");
+               SdbCommand.sdbRootOn();
+               installAllSuites(suiteNames);
+               logger.debug("Starting testkit-lite");
+               this.informable.enableStop();
+               executeManaulSuite(suiteNames);
+               this.informable.disableStop();
+               logger.debug("testkit-lite process is done.");
+               if (this.running) {
+                       this.informable.liteDone(this.resultFolder,
+                                       this.plan.getManualSuiteNames(), true);
+               }
+               ExecutorRegister.getInstance().unregisterExecutor();
+               ExecutorRegister.getInstance().registerResultFolder(resultFolder);
+               ExecutorRegister.getInstance().registerInstalledSuites(
+                               this.installedSuites);
+               if (this.running) {
+                       this.installedSuites = null;
+               }
+               return "Done";
+       }
+
+       @Override
+       protected void process(List<WorkerStatus> chunks) {
+               for (WorkerStatus message : chunks) {
+                       informable.messageChanged(message);
+               }
+       }
+       
+       @Override
+       public boolean isFinished(){
+               return this.isDone();
+       }
+
+       @Override
+       public void interruptSuite() {
+               logger.info("Interrupt the worker");
+               this.quiting = true;
+               if (null != this.runningSuite) {
+                       this.runningSuite.stopLite();
+               }
+               logger.debug("Quiting testkit-lite");
+               while (null != this.runningSuite && !this.runningSuite.isCanceled()) {
+                       System.out.print(".");
+                       try {
+                               Thread.sleep(1000);
+                       } catch (InterruptedException e) {
+                               logger.warn("InterruptedException is thrown in waiting testkit-lite quit.");
+                       }
+               }
+               System.out.println("\n");
+               logger.debug("testkit-lite is stopped");
+               while (this.installing) {
+                       logger.info("Wait 2 seconds for stopping installation");
+                       try {
+                               Thread.sleep(2000);
+                       } catch (InterruptedException e) {
+                               logger.warn("InterruptedException is thrown in waiting testkit-lite quit.");
+                       }
+               }
+               logger.debug("Uninstalling suites: " + this.installedSuites);
+               if (null != this.installedSuites) {
+                       for (TctTestSuite suite : this.installedSuites) {
+                               if (null != suite) {
+                                       logger.info("Uninstalling the suite '" + suite.getName()
+                                                       + "'");
+                                       try {
+                                               if (suite.sdbCheckSuite()) {
+                                                       suite.sdbUninstall();
+                                               }
+                                       } catch (IOException e) {
+                                               logger.error("Fail to uninstall the suite '"
+                                                               + suite.getName() + "'; [Message]:"
+                                                               + e.getMessage());
+                                       }
+                               }
+                       }
+
+                       this.installedSuites = null;
+               }
+               this.running = false;
+               this.quiting = false;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/PlanExecutor.java b/src/org/tizen/tct/tool/mgr/lite/PlanExecutor.java
new file mode 100644 (file)
index 0000000..270994c
--- /dev/null
@@ -0,0 +1,132 @@
+package org.tizen.tct.tool.mgr.lite;
+
+import java.beans.PropertyChangeListener;
+import java.io.File;
+import java.io.IOException;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.runpage.Informable;
+
+public class PlanExecutor extends Thread {
+
+       private static final Logger logger = Logger.getLogger(PlanExecutor.class);
+
+       private TctTestPlan plan;
+
+       private Informable informable;
+
+       private AutoSuiteWorker autoWorker;
+
+       private ManualSuiteWorker manualWorker;
+
+       private PropertyChangeListener autoExecutinglistener;
+
+       private String resultFolder;
+
+       private String createResultFolder() throws IOException {
+               logger.debug("Entering createResultFolder().");
+               Calendar current = Calendar.getInstance();
+               SimpleDateFormat sdf = new SimpleDateFormat(Constants.TIMESTMAP_PATTERN);
+               String timestamp = sdf.format(current.getTime());
+               timestamp = Constants.RESULT_FOLDER + File.separator + timestamp;
+               logger.info("Creating the result folder: " + timestamp);
+               FileUtils.forceMkdir(new File(timestamp));
+               logger.debug("Return from createResultFolder(), return value: "
+                               + timestamp);
+               return timestamp;
+       }
+
+       public PlanExecutor(TctTestPlan plan, Informable informable,
+                       PropertyChangeListener autoExecutinglistener, String resultFolder) {
+               logger.debug("Creating PlanExecutor, with [Plan]: " + plan
+                               + "\n[resultFolder]: " + resultFolder);
+               this.plan = plan;
+               this.informable = informable;
+               this.autoExecutinglistener = autoExecutinglistener;
+               this.resultFolder = resultFolder;
+       }
+
+       public void run() {
+               logger.debug("Start PlanExecutor thread, ");
+               if (null == resultFolder) {
+                       try {
+                               resultFolder = this.createResultFolder();
+                       } catch (IOException e) {
+                               logger.error("Failed to create result folder. [Message]: "
+                                               + e.getMessage());
+                       }
+               }
+               if (null != resultFolder) {
+                       logger.info("Deploying the pre-configure file of the executing PLAN");
+                       Constants.copyFile(Constants.PRE_CONF_FILE_INI, resultFolder
+                                       + "/tct-testconfig.ini");
+                       if (this.plan.geteType() == ExecuteType.ALL) {
+                               if (this.plan.containExecutingManualSuite()) {
+                                       WorkerCallback callback = new WorkerCallback() {
+                                               @Override
+                                               public void inokeNext(String resultFolder, int startAt) {
+                                                       executeMenual(resultFolder, startAt);
+                                               }
+                                       };
+                                       executeAuto(resultFolder, callback);
+                               } else {
+                                       executeAuto(resultFolder, null);
+                               }
+                       } else if (this.plan.geteType() == ExecuteType.AUTO) {
+                               executeAuto(resultFolder, null);
+                       } else {
+                               executeMenual(resultFolder, 0);
+                       }
+               }
+       }
+
+       private void checkWorkerStatus(InterruptableWorker worker) {
+               logger.debug("Start checking Workers.");
+               while (!worker.isFinished()) {
+                       try {
+                               Thread.sleep(100);
+                       } catch (InterruptedException e) {
+                               Thread.currentThread().interrupt();
+                               break;
+                       }
+
+                       if (SingleRunningPlan.getInstance().isStopped()) {
+                               logger.info("Execution is interrupted, start to stop the executing testkit-lite.");
+                               this.informable.disableStop();
+                               worker.interruptSuite();
+                               logger.info("Stop refreshing of the Console TextArea");
+                               this.informable.stopRefresh();
+                               SingleRunningPlan.getInstance().finishedPlan(this.resultFolder);
+                               this.informable.finishEdit();
+                               Thread.currentThread().interrupt();
+                               break;
+                       }
+               }
+       }
+
+       private void executeAuto(String resultFolder, WorkerCallback callback) {
+               logger.info("Start executing Auto test suites.");
+               this.autoWorker = new AutoSuiteWorker(this.plan, this.informable,
+                               resultFolder, callback);
+               this.autoWorker.addPropertyChangeListener(this.autoExecutinglistener);
+               this.autoWorker.execute();
+               checkWorkerStatus(this.autoWorker);
+       }
+
+       private void executeMenual(String resultFolder, int startAt) {
+               logger.info("Start executing Menu test suites.");
+               this.manualWorker = new ManualSuiteWorker(this.plan, this.informable,
+                               resultFolder, startAt);
+               this.manualWorker.addPropertyChangeListener(this.autoExecutinglistener);
+               this.manualWorker.execute();
+               checkWorkerStatus(this.manualWorker);
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/SdbCommand.java b/src/org/tizen/tct/tool/mgr/lite/SdbCommand.java
new file mode 100644 (file)
index 0000000..135b717
--- /dev/null
@@ -0,0 +1,148 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.lite;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.device.DeviceList;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class SdbCommand {
+
+       private static final Logger logger = Logger.getLogger(SdbCommand.class);
+
+       public final static String SDB = "sdb";
+
+       public final static String SDB_PUSH = "push";
+
+       public final static String SDB_PULL = "pull";
+
+       public final static String SDB_SHELL = "shell";
+
+       public final static String CHECK_FOLDER = "ls";
+
+       public final static String CHECK_FOLDER_OPTION = "-al";
+
+       public final static String CHECK_FOLDER_RESPONSE = "No such file or directory";
+
+       private static synchronized void sdbCommand(String[] command)
+                       throws IOException {
+               StringBuffer sb = new StringBuffer();
+               for (String c : command) {
+                       sb.append(c).append(" ");
+               }
+               logger.info("SDB Command:>" + sb.toString());
+               Process tr = Runtime.getRuntime().exec(sb.toString());
+               BufferedReader rd = new BufferedReader(new InputStreamReader(
+                               tr.getInputStream()));
+               String s = null;
+               while ((s = rd.readLine()) != null) {
+                       Constants.POUT.write((s + "\n").getBytes());
+               }
+       }
+
+       private static synchronized String sdbCommandWithResult(String[] command)
+                       throws IOException {
+               StringBuffer sb = new StringBuffer();
+               for (String c : command) {
+                       sb.append(c).append(" ");
+               }
+               logger.info("SDB Command:>" + sb.toString());
+               Process tr = Runtime.getRuntime().exec(sb.toString());
+               BufferedReader rd = new BufferedReader(new InputStreamReader(
+                               tr.getInputStream()));
+               String s = null;
+               StringBuffer responseBuffer = new StringBuffer();
+               while ((s = rd.readLine()) != null) {
+                       responseBuffer.append(s + "\n");
+               }
+               logger.debug("Response: " + responseBuffer.toString());
+               return responseBuffer.toString();
+       }
+
+       public static void sdbRootOn() throws IOException {
+               logger.debug("Entering sdbRootOn()");
+               sdbCommand(new String[] { SDB, "-s",
+                               DeviceList.getInstance().getSelectedDeviceId(), "root", "on" });
+       }
+
+       public static boolean checkFolderExist(String folderName)
+                       throws IOException {
+               logger.debug("Entering checkFolderExist(folderName: " + folderName
+                               + ")");
+               boolean existed = true;
+               try {
+                       String response = sdbCommandWithResult(new String[] { SDB, "-s",
+                                       DeviceList.getInstance().getSelectedDeviceId(), SDB_SHELL,
+                                       CHECK_FOLDER, CHECK_FOLDER_OPTION, folderName });
+                       if (response.trim().isEmpty()
+                                       || response.trim().endsWith(CHECK_FOLDER_RESPONSE)) {
+                               existed = false;
+                       }
+               } catch (IOException e) {
+                       logger.error("Fail to check if the suite is existed on device. [Message]:"
+                                       + e.getMessage());
+               }
+               return existed;
+       }
+
+       public static void sdbPush(String pkgFilePath, String target)
+                       throws IOException {
+               logger.debug("Entering sdbPush(pkgFilePath: " + pkgFilePath
+                               + ", target: " + target + ")");
+               sdbCommand(new String[] { SDB, "-s",
+                               DeviceList.getInstance().getSelectedDeviceId(), SDB_PUSH,
+                               pkgFilePath, target });
+       }
+
+       public static void sdbPull(String target, String localFolder)
+                       throws IOException {
+               logger.debug("Entering sdbPull(target: " + target + ", localFolder: "
+                               + localFolder + ")");
+               sdbCommand(new String[] { SDB, "-s",
+                               DeviceList.getInstance().getSelectedDeviceId(), SDB_PULL,
+                               target, localFolder });
+       }
+
+       public static void sdbShell(String command) throws IOException {
+               logger.debug("Entering sdbShell(command: " + command + ")");
+               sdbCommand(new String[] { SDB, "-s",
+                               DeviceList.getInstance().getSelectedDeviceId(), SDB_SHELL,
+                               command });
+       }
+
+       public static void getCapabilityBack() throws IOException {
+               logger.debug("Entering getCapabilityBack()");
+               sdbCommand(new String[] { SDB, "-s",
+                               DeviceList.getInstance().getSelectedDeviceId(), SDB_PULL,
+                               Constants.DEVICE_CAPABILITY_PATH,
+                               Constants.LOCAL_CAPABILITY_PATH });
+       }
+
+       public static boolean isSuiteExisted(String suiteName) {
+               logger.debug("Entering checkSuiteExisted(String suiteName: "
+                               + suiteName + ")");
+               boolean existed = true;
+               try {
+                       String response = sdbCommandWithResult(new String[] { SDB, "-s",
+                                       DeviceList.getInstance().getSelectedDeviceId(), SDB_SHELL,
+                                       "wrt-launcher", "-l", "|", "grep", suiteName });
+                       if (response.trim().isEmpty()) {
+                               existed = false;
+                       }
+               } catch (IOException e) {
+                       logger.error("Fail to check if the suite is existed on device. [Message]:"
+                                       + e.getMessage());
+               }
+               return existed;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/WorkerCallback.java b/src/org/tizen/tct/tool/mgr/lite/WorkerCallback.java
new file mode 100644 (file)
index 0000000..47dc365
--- /dev/null
@@ -0,0 +1,8 @@
+package org.tizen.tct.tool.mgr.lite;
+
+
+public interface WorkerCallback {
+
+       void inokeNext(String resultFolder, int startAt);
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/WorkerStatus.java b/src/org/tizen/tct/tool/mgr/lite/WorkerStatus.java
new file mode 100644 (file)
index 0000000..4ea5c50
--- /dev/null
@@ -0,0 +1,38 @@
+package org.tizen.tct.tool.mgr.lite;
+
+public class WorkerStatus {
+
+       private String planName;
+
+       private String statusMsg;
+
+       private int executedCases;
+
+       private String executingSuite;
+
+       public WorkerStatus(String planName, String statusMsg, int executedCases,
+                       String executingSuite) {
+               super();
+               this.planName = planName;
+               this.statusMsg = statusMsg;
+               this.executedCases = executedCases;
+               this.executingSuite = executingSuite;
+       }
+
+       public String getPlanName() {
+               return planName;
+       }
+
+       public String getStatusMsg() {
+               return statusMsg;
+       }
+
+       public int getExecutedCases() {
+               return executedCases;
+       }
+
+       public String getExecutingSuite() {
+               return executingSuite;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.java b/src/org/tizen/tct/tool/mgr/lite/util/AnalyHealthFile.java
new file mode 100644 (file)
index 0000000..adc275e
--- /dev/null
@@ -0,0 +1,65 @@
+package org.tizen.tct.tool.mgr.lite.util;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.apache.log4j.Logger;
+
+public class AnalyHealthFile {
+
+       private static final Logger logger = Logger
+                       .getLogger(AnalyHealthFile.class);
+       private String fileName;
+
+       public AnalyHealthFile(String srcFile) {
+               this.fileName = srcFile;
+       }
+
+       public List<String> readFileToSteps() {
+               logger.debug("Entering readFileToSteps(fileName:" + fileName + ")");
+               File file = new File(fileName);
+               BufferedReader reader = null;
+               List<String> healtSteps = new ArrayList<String>();
+               String t = null;
+               String p = null;
+               if (file.exists()) {
+                       try {
+                               reader = new BufferedReader(new FileReader(file));
+                               String tempString = null;
+                               while ((tempString = reader.readLine()) != null) {
+                                       if (tempString.startsWith("step")) {
+                                               Matcher m = Pattern.compile("=(.*?),").matcher(
+                                                               tempString);
+                                               while (m.find()) {
+                                                       t = m.group(1);
+                                               }
+                                               Matcher n = Pattern.compile(",(.*?),").matcher(
+                                                               tempString);
+                                               while (n.find()) {
+                                                       p = n.group(1);
+                                               }
+                                               healtSteps.add(t + ':' + p);
+                                               logger.debug("get step:" + t + ", procid: " + p);
+                                       }
+                               }
+                               reader.close();
+                       } catch (IOException e) {
+                               e.printStackTrace();
+                       } finally {
+                               if (reader != null) {
+                                       try {
+                                               reader.close();
+                                       } catch (IOException e1) {
+                                       }
+                               }
+                       }
+               }
+               return healtSteps;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.java b/src/org/tizen/tct/tool/mgr/lite/util/AnalyJSONFile.java
new file mode 100644 (file)
index 0000000..50de9ff
--- /dev/null
@@ -0,0 +1,56 @@
+package org.tizen.tct.tool.mgr.lite.util;
+
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.Iterator;
+
+import org.json.simple.JSONArray;
+import org.json.simple.JSONObject;
+import org.json.simple.parser.JSONParser;
+import org.json.simple.parser.ParseException;
+import org.apache.log4j.Logger;
+
+public class AnalyJSONFile {
+
+       private static final Logger logger = Logger.getLogger(AnalyJSONFile.class);
+       private JSONArray jsonobj;
+
+       public AnalyJSONFile() {
+       }
+
+       public void load(String srcfile) {
+               JSONParser parser = new JSONParser();
+
+               try {
+                       this.jsonobj = (JSONArray) parser.parse(new FileReader(srcfile));
+               } catch (FileNotFoundException e) {
+                       e.printStackTrace();
+               } catch (IOException e) {
+                       e.printStackTrace();
+               } catch (ParseException e) {
+                       e.printStackTrace();
+               }
+       }
+
+       public void AddItem(int index, String key, String value) {
+               JSONObject obj = (JSONObject) this.jsonobj.get(0);
+               obj.put(key, value);
+               this.jsonobj.set(index, obj);
+       }
+
+       public void write(String srcfile) {
+               logger.debug("Entering write(file:" + srcfile + ")");
+               try {
+                       FileWriter file = new FileWriter(srcfile);
+                       file.write(this.jsonobj.toJSONString());
+                       file.flush();
+                       file.close();
+
+               } catch (IOException e) {
+                       e.printStackTrace();
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.java b/src/org/tizen/tct/tool/mgr/lite/util/AnalyPreInputsFile.java
new file mode 100644 (file)
index 0000000..3940db0
--- /dev/null
@@ -0,0 +1,310 @@
+package org.tizen.tct.tool.mgr.lite.util;
+
+import java.io.BufferedReader;
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.TreeMap;
+
+import org.apache.log4j.Logger;
+
+public class AnalyPreInputsFile {
+
+       private static final Logger logger = Logger
+                       .getLogger(AnalyPreInputsFile.class);
+       private static final String DEFAULT_FILE = "pre_condition.conf";
+       private static final String DEFAULT_SECTION = "default_section";
+       private List<Section> mSectionList;
+       private String mFileName;
+
+       public AnalyPreInputsFile() {
+               this.mFileName = DEFAULT_FILE;
+               this.mSectionList = new ArrayList<AnalyPreInputsFile.Section>();
+       }
+
+       public List<Section> getConfs() {
+               return mSectionList;
+       }
+
+       public Set<String> sections() {
+               Set<String> keys = new HashSet<String>();
+               for (Section section : this.mSectionList) {
+                       keys.add(section.section);
+               }
+               return keys;
+       }
+
+       public Set<String> keys(String section) {
+               Map<String, String> map = items(section);
+               return map.keySet();
+       }
+
+       public Map<String, String> items(String section) {
+               int index = this.mSectionList.indexOf(new Section(section));
+               Map<String, String> map = new TreeMap<String, String>();
+               if (index >= 0) {
+                       Section sec = this.mSectionList.get(index);
+                       for (Item item : sec.items) {
+                               map.put(item.name, item.value);
+                       }
+               }
+               return map;
+       }
+
+       public boolean isFound(String section) {
+               int index = this.mSectionList.indexOf(new Section(section));
+               if (index >= 0) {
+                       return true;
+               }
+               return false;
+       }
+
+       public void setItemValue(String section, String name, String value) {
+               int index = this.mSectionList.indexOf(new Section(section));
+               if (index >= 0) {
+                       Section sec = mSectionList.get(index);
+                       sec.putItem(name, value);
+               } else {
+                       logger.error("Error: setItemValue(section:" + section + ", name:"
+                                       + name + ", value:" + value + ")");
+               }
+       }
+
+       public synchronized void load(String filePath) {
+               logger.debug("Entering load(filePath:" + filePath + ")");
+               if (filePath != null && filePath.trim().length() > 0) {
+                       this.mFileName = filePath;
+               }
+               this.load(new File(mFileName));
+       }
+
+       public synchronized void load(File file) {
+               BufferedReader br;
+               try {
+                       br = new BufferedReader(new FileReader(file));
+                       this.load(br);
+               } catch (FileNotFoundException e) {
+                       e.printStackTrace();
+                       logger.error("Can't find file -> " + file);
+               } catch (IOException e) {
+                       e.printStackTrace();
+                       logger.error("Get io error.");
+               }
+       }
+
+       private boolean isEmpty(String str) {
+               return str == null || str.trim().length() <= 0;
+       }
+
+       public void write(String file) {
+               logger.debug("Entering write(file:" + file + ")");
+               String path = mFileName;
+               if (!isEmpty(file)) {
+                       path = file;
+               }
+               BufferedWriter bw = null;
+               try {
+                       bw = new BufferedWriter(new FileWriter(path));
+                       for (Section section : mSectionList) {
+                               String comm = section.getComment();
+                               if (!isEmpty(comm)) {
+                                       bw.write(comm);
+                                       bw.newLine();
+                               }
+                               String sec = isEmpty(section.section) ? DEFAULT_SECTION
+                                               : section.section;
+                               bw.write("[" + sec + "]");
+                               bw.newLine();
+                               for (Item item : section.items) {
+                                       comm = item.getComment();
+                                       if (!isEmpty(comm)) {
+                                               bw.write(comm);
+                                               bw.newLine();
+                                       }
+                                       String im = item.name + "=" + item.value;
+                                       bw.write(im);
+                                       bw.newLine();
+                               }
+                               bw.newLine();
+                       }
+                       bw.flush();
+               } catch (IOException e) {
+                       e.printStackTrace();
+                       logger.error("write(file:" + file + "),get io error");
+               } finally {
+                       if (bw != null) {
+                               try {
+                                       bw.close();
+                               } catch (IOException e) {
+                                       logger.error("write(file:" + file + "),get io error");
+                               }
+                       }
+               }
+       }
+
+       private void load(BufferedReader reader) throws IOException {
+               String line;
+               Section section = null;
+               String comment = null;
+               while ((line = reader.readLine()) != null) {
+                       line = line.trim();
+                       if (line.length() <= 0)
+                               continue;
+                       if (line.matches("\\[.*\\]")) {
+                               String sec = line.replaceFirst("\\[(.*)\\]", "$1");
+                               section = new Section(sec);
+                               if (comment != null) {
+                                       section.setComment(comment);
+                                       comment = null;
+                               }
+                               mSectionList.add(section);
+                       } else if (line.matches(".*=.*")) {
+                               int i = line.indexOf("=");
+                               String name = line.substring(0, i).trim();
+                               String value = line.substring(i + 1).trim();
+                               Item item = null;
+                               if (name.length() > 0) {
+                                       item = new Item(name, value);
+                                       if (comment != null) {
+                                               item.setComment(comment);
+                                               comment = null;
+                                       }
+                                       if (section == null) {
+                                               section = new Section();
+                                       }
+                                       section.putItem(item);
+                               }
+                       } else if (line.startsWith("#")) {
+                               comment = line;
+                       } else {
+                               section = null;
+                       }
+               }
+       }
+
+       private class Base {
+               private String comment;
+
+               public Base(String c) {
+                       this.comment = c;
+               }
+
+               public void setComment(String comm) {
+                       this.comment = comm;
+               }
+
+               public String getComment() {
+                       return this.comment;
+               }
+       }
+
+       private class Section extends Base {
+               private String section;
+               private List<Item> items;
+
+               public Section() {
+                       this(DEFAULT_SECTION);
+               }
+
+               public Section(String section) {
+                       this(section, null);
+               }
+
+               public Section(String section, String comm) {
+                       super(comm);
+                       this.section = section;
+                       items = new ArrayList<AnalyPreInputsFile.Item>();
+               }
+
+               public void putItem(String n, String v) {
+                       putItem(new Item(n, v));
+               }
+
+               public void putItem(String n, String v, String comm) {
+                       this.putItem(new Item(n, v, comm));
+               }
+
+               public void putItem(Item item) {
+                       int index = this.items.indexOf(item);
+                       if (index >= 0) {
+                               Item it = items.get(index);
+                               it.value = item.value;
+                       } else {
+                               this.items.add(item);
+                       }
+               }
+
+               @Override
+               public int hashCode() {
+                       return this.section.hashCode();
+               }
+
+               @Override
+               public boolean equals(Object obj) {
+                       if (obj != null && (obj instanceof Section)) {
+                               Section sec = (Section) obj;
+                               return this.section.equals(sec.section);
+                       }
+                       return false;
+               }
+
+               @Override
+               public String toString() {
+                       StringBuffer sb = new StringBuffer();
+                       sb.append(section + ":{");
+                       int size = this.items.size();
+                       for (int i = 0; i < size; i++) {
+                               sb.append(this.items.get(i));
+                               if (i < size - 1) {
+                                       sb.append(", ");
+                               }
+                       }
+                       sb.append("}");
+                       return sb.toString();
+               }
+
+       }
+
+       private class Item extends Base {
+               private String name;
+               private String value;
+
+               public Item(String n, String v) {
+                       this(n, v, null);
+               }
+
+               public Item(String n, String v, String c) {
+                       super(c);
+                       this.name = n;
+                       this.value = v;
+               }
+
+               @Override
+               public boolean equals(Object obj) {
+                       if (obj != null && (obj instanceof Item)) {
+                               Item item = (Item) obj;
+                               return this.name.equals(item.name);
+                       }
+                       return false;
+               }
+
+               @Override
+               public int hashCode() {
+                       return this.name.hashCode();
+               }
+
+               @Override
+               public String toString() {
+                       return name + "=" + value;
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.java b/src/org/tizen/tct/tool/mgr/lite/util/AnalyPreStepsFile.java
new file mode 100644 (file)
index 0000000..fcfc66d
--- /dev/null
@@ -0,0 +1,81 @@
+
+package org.tizen.tct.tool.mgr.lite.util;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.jaxb.definition.Set;
+import org.tizen.tct.tool.mgr.jaxb.definition.Suite;
+import org.tizen.tct.tool.mgr.jaxb.definition.TestDefinition;
+import org.tizen.tct.tool.mgr.jaxb.definition.Testcase;
+import org.tizen.tct.tool.mgr.model.editablesuite.CaseStep;
+import org.tizen.tct.tool.mgr.model.editablesuite.ManualCaseResult;
+
+public class AnalyPreStepsFile {
+
+       private static final Logger logger = Logger.getLogger(AnalyPreStepsFile.class);    
+       private final static Class DEFINITION_JAXB_CLASS = TestDefinition.class;
+       private Map<String, ArrayList<String>> packagelist;
+
+    public AnalyPreStepsFile() {
+        this.packagelist = new HashMap<String, ArrayList<String>>();
+    }
+
+    public boolean isFound(String pkg) {
+        return this.packagelist.containsKey(pkg);
+    }
+
+    public ArrayList<String> items(String pkg) {
+        return this.packagelist.get(pkg);
+    }
+
+    public void load(String xmlfile) throws FileNotFoundException {
+                   logger.debug("Entering load(xmlfile:"+xmlfile+")");
+            String setName = null;
+            TestDefinition def = null;
+               File suiteXml = new File(xmlfile);
+            try {
+                JAXBContext context = JAXBContext
+                        .newInstance(DEFINITION_JAXB_CLASS);
+                Unmarshaller um = context.createUnmarshaller();
+                def = (TestDefinition) um.unmarshal(new FileInputStream(suiteXml));
+                List<ManualCaseResult> manualCases = new ArrayList<ManualCaseResult>();
+                for (Object obj : def.getEnvironmentAndSummaryAndSuite()) {
+                    if (obj instanceof Suite) {
+                        Suite suite = (Suite) obj;
+                        for (Set set : suite.getSet()) {
+                            setName = set.getName();
+                            for (Testcase tc : set.getTestcase()) {
+                                ManualCaseResult caseResult = ManualCaseResult
+                                        .createInstance(tc);
+                                caseResult.getSteps();
+                                manualCases.add(caseResult);
+                                ArrayList<String> desc = new ArrayList<String>();
+                                int i = 0;
+                                for (CaseStep step : caseResult.getSteps()) {
+                                    i++;
+                                    String msg = i + "." + step.getStep_desc();
+                                    desc.add(msg);
+                                }
+                                packagelist.put(setName, desc);
+                            }
+                        }
+                        
+                    }
+                }
+            } catch (JAXBException e) {
+                e.printStackTrace();
+                System.out.println("XML: " + suiteXml.getAbsolutePath());
+            }
+    }
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/util/ResultFilter.java b/src/org/tizen/tct/tool/mgr/lite/util/ResultFilter.java
new file mode 100644 (file)
index 0000000..70f3fa9
--- /dev/null
@@ -0,0 +1,64 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.lite.util;
+
+import java.util.Iterator;
+
+import org.tizen.tct.tool.mgr.jaxb.definition.Set;
+import org.tizen.tct.tool.mgr.jaxb.definition.Suite;
+import org.tizen.tct.tool.mgr.jaxb.definition.TestDefinition;
+import org.tizen.tct.tool.mgr.jaxb.definition.Testcase;
+import org.tizen.tct.tool.mgr.model.CaseResult;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ResultFilter {
+
+       public static TestDefinition filterPassResult(TestDefinition origin) {
+               if (null != origin && null != origin.getEnvironmentAndSummaryAndSuite()) {
+                       for (Iterator<Object> suiteIter = origin
+                                       .getEnvironmentAndSummaryAndSuite().iterator(); suiteIter
+                                       .hasNext();) {
+                               Object obj = suiteIter.next();
+                               if (obj instanceof Suite) {
+                                       Suite suite = (Suite) obj;
+                                       for (Iterator<Set> setIter = suite.getSet().iterator(); setIter
+                                                       .hasNext();) {
+                                               Set set = setIter.next();
+                                               for (Iterator<Testcase> iter = set.getTestcase()
+                                                               .iterator(); iter.hasNext();) {
+                                                       Testcase tc = iter.next();
+                                                       CaseResult result = CaseResult
+                                                                       .getCaseResultInstance(tc.getResult());
+                                                       if (CaseResult.PASS == result) {
+                                                               iter.remove();
+                                                       } else {
+                                                               tc.setResult(null);
+                                                               tc.setResultInfo(null);
+                                                       }
+                                               }
+                                               if (set.getTestcase().isEmpty()) {
+                                                       setIter.remove();
+                                               }
+                                       }
+                                       if (suite.getSet().isEmpty()) {
+                                               suiteIter.remove();
+                                       }
+                               } else {
+                                       suiteIter.remove();
+                               }
+                       }
+                       if (origin.getEnvironmentAndSummaryAndSuite().isEmpty()) {
+                               origin = null;
+                       }
+                       return origin;
+               }else{
+                       return null;
+               }
+
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/util/ResultMerger.java b/src/org/tizen/tct/tool/mgr/lite/util/ResultMerger.java
new file mode 100644 (file)
index 0000000..36c614d
--- /dev/null
@@ -0,0 +1,281 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.lite.util;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.definition.Set;
+import org.tizen.tct.tool.mgr.jaxb.definition.Suite;
+import org.tizen.tct.tool.mgr.jaxb.definition.TestDefinition;
+import org.tizen.tct.tool.mgr.jaxb.definition.Testcase;
+import org.tizen.tct.tool.mgr.lite.CalculatResultThread;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.plan.RerunTctTestPlan;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ResultMerger {
+
+       public final static String AUTO_RESULT_SUFFIX = ".auto.xml";
+
+       public final static String MANUAL_RESULT_SUFFIX = ".manual.xml";
+
+       public final static String RERUN_AUTO_RESULT_SUFFIX = ".auto.rerun.xml";
+
+       public final static String RERUN_MANUAL_RESULT_SUFFIX = ".manual.rerun.xml";
+
+       public final static String RERUN_DEF_SUFFIX = ".rerun.xml";
+
+       public final static String SUITE_XSLT = "./style/testresult.xsl";
+
+       public static void mergeRerunResult(String resultFolder,
+                       RerunTctTestPlan plan) {
+               List<String> autoSuiteNames = plan.getAutoSuiteNames();
+               List<String> manualSuiteNames = plan.getManualSuiteNames();
+               for (String suiteName : autoSuiteNames) {
+                       TestDefinition rerunResult = CalculatResultThread
+                                       .loadResultXML(new File(resultFolder + File.separator
+                                                       + suiteName + RERUN_AUTO_RESULT_SUFFIX));
+                       File originResultFile = new File(resultFolder + File.separator
+                                       + suiteName + AUTO_RESULT_SUFFIX);
+                       if (null != rerunResult) {
+                               mergeRerunSuite(rerunResult, originResultFile);
+                       }
+               }
+               for (String suiteName : manualSuiteNames) {
+                       TestDefinition rerunResult = CalculatResultThread
+                                       .loadResultXML(new File(resultFolder + File.separator
+                                                       + suiteName + RERUN_MANUAL_RESULT_SUFFIX));
+                       File originResultFile = new File(resultFolder + File.separator
+                                       + suiteName + MANUAL_RESULT_SUFFIX);
+                       if (null != rerunResult) {
+                               mergeRerunSuite(rerunResult, originResultFile);
+                       }
+               }
+       }
+
+       private static void mergeRerunSuite(TestDefinition rerunResult,
+                       File originResultFile) {
+               TestDefinition originResult = CalculatResultThread
+                               .loadResultXML(originResultFile);
+               for (Object obj : rerunResult.getEnvironmentAndSummaryAndSuite()) {
+                       if (obj instanceof Suite) {
+                               Suite suite = (Suite) obj;
+                               Suite originSuite = containSuite(originResult, suite);
+                               if (null != originSuite) {
+                                       for (Set set : suite.getSet()) {
+                                               Set originSet = containSet(originSuite, set);
+                                               if (null != originSet) {
+                                                       for (Testcase tc : set.getTestcase()) {
+                                                               originSet = removeTestcase(originSet, tc);
+                                                               originSet.getTestcase().add(tc);
+                                                       }
+                                               } else {
+                                                       originSuite.getSet().add(set);
+                                               }
+                                       }
+                               } else {
+                                       rerunResult.getEnvironmentAndSummaryAndSuite().add(suite);
+                               }
+                       }
+               }
+
+               try {
+                       Constants.writeObjIntoXml(originResultFile, TestDefinition.class,
+                                       originResult, null);
+               } catch (FileNotFoundException e) {
+                       e.printStackTrace();
+               } catch (JAXBException e) {
+                       e.printStackTrace();
+               } catch (XMLStreamException e) {
+                       e.printStackTrace();
+               }
+       }
+
+       private static Set removeTestcase(Set originSet, Testcase thisTc) {
+               for (Iterator<Testcase> iter = originSet.getTestcase().iterator(); iter
+                               .hasNext();) {
+                       Testcase originTc = iter.next();
+                       if (originTc.getId().equals(thisTc.getId())) {
+                               iter.remove();
+                               break;
+                       }
+               }
+               return originSet;
+       }
+
+       public static void mergeResult(String resultFolder, TctTestPlan plan) {
+               if (ExecuteType.ALL == plan.geteType()) {
+                       mergeResultforAll(resultFolder, plan);
+               } else {
+                       mergeResultforNotAll(resultFolder, plan);
+               }
+       }
+
+       private static void mergeResultforAll(String resultFolder, TctTestPlan plan) {
+               List<String> autoSuiteNames = plan.getAutoSuiteNames();
+               List<String> manualSuiteNames = plan.getManualSuiteNames();
+
+               List<String> mergingSuites = new ArrayList<String>();
+               java.util.Set<String> manualSuiteSet = new HashSet<String>(
+                               manualSuiteNames);
+               for (Iterator<String> iter = autoSuiteNames.iterator(); iter.hasNext();) {
+                       String item = iter.next();
+                       if (manualSuiteSet.contains(item)) {
+                               iter.remove();
+                               manualSuiteNames.remove(item);
+                               mergingSuites.add(item);
+                       }
+               }
+               Map<String, String> unmergingSuites = new HashMap<String, String>();
+               for (String suiteName : autoSuiteNames) {
+                       unmergingSuites.put(suiteName + AUTO_RESULT_SUFFIX, suiteName
+                                       + ".xml");
+               }
+               for (String suiteName : manualSuiteNames) {
+                       unmergingSuites.put(suiteName + MANUAL_RESULT_SUFFIX, suiteName
+                                       + ".xml");
+               }
+               mergeAutoManual(mergingSuites, resultFolder);
+               copyUnmergingResult(unmergingSuites, resultFolder);
+       }
+
+       private static void mergeResultforNotAll(String resultFolder,
+                       TctTestPlan plan) {
+               Map<String, String> unmergingSuites = new HashMap<String, String>();
+               if (ExecuteType.AUTO == plan.geteType()) {
+                       List<String> autoSuiteNames = plan.getAutoSuiteNames();
+                       for (String suiteName : autoSuiteNames) {
+                               unmergingSuites.put(suiteName + AUTO_RESULT_SUFFIX, suiteName
+                                               + ".xml");
+                       }
+                       copyUnmergingResult(unmergingSuites, resultFolder);
+               } else if (ExecuteType.MANUAL == plan.geteType()) {
+                       List<String> manualSuiteNames = plan
+                                       .getManualSuiteNames();
+                       for (String suiteName : manualSuiteNames) {
+                               unmergingSuites.put(suiteName + MANUAL_RESULT_SUFFIX, suiteName
+                                               + ".xml");
+                       }
+                       copyUnmergingResult(unmergingSuites, resultFolder);
+               }
+       }
+
+       private static void copyUnmergingResult(
+                       Map<String, String> unmergingSuites, String resultFolder) {
+               for (String src : unmergingSuites.keySet()) {
+                       String dest = unmergingSuites.get(src);
+                       File srcFile = new File(resultFolder + File.separator + src);
+                       File destFile = new File(resultFolder + File.separator + dest);
+                       if (srcFile.exists()) {
+                               Constants.copyXml(srcFile, destFile, SUITE_XSLT);
+                       }
+               }
+       }
+
+       private static TestDefinition mergeSuiteAutoManual(TestDefinition autoRoot,
+                       TestDefinition manualRoot) {
+               List<Object> manualSuites = manualRoot
+                               .getEnvironmentAndSummaryAndSuite();
+               for (Object obj : manualSuites) {
+                       if (obj instanceof Suite) {
+                               Suite suite = (Suite) obj;
+                               Suite targetSuite = containSuite(autoRoot, suite);
+                               if (null != targetSuite) {
+                                       for (Set set : suite.getSet()) {
+                                               Set targetSet = containSet(targetSuite, set);
+                                               if (null != targetSet) {
+                                                       targetSet.getTestcase().addAll(set.getTestcase());
+                                               } else {
+                                                       targetSuite.getSet().add(set);
+                                               }
+                                       }
+                               } else {
+                                       autoRoot.getEnvironmentAndSummaryAndSuite().add(suite);
+                               }
+                       }
+               }
+               return autoRoot;
+       }
+
+       private static void mergeAutoManual(List<String> mergingSuites,
+                       String resultFolder) {
+               for (String suiteName : mergingSuites) {
+                       File autoResult = new File(resultFolder + File.separator
+                                       + suiteName + AUTO_RESULT_SUFFIX);
+                       File manualResult = new File(resultFolder + File.separator
+                                       + suiteName + MANUAL_RESULT_SUFFIX);
+                       File targetResult = new File(resultFolder + File.separator
+                                       + suiteName + ".xml");
+
+                       TestDefinition autoRoot = CalculatResultThread
+                                       .loadResultXML(autoResult);
+                       TestDefinition manualRoot = CalculatResultThread
+                                       .loadResultXML(manualResult);
+                       TestDefinition targetRoot = null;
+
+                       if (null != autoRoot && null != manualRoot) {
+                               targetRoot = mergeSuiteAutoManual(autoRoot, manualRoot);
+                       } else {
+                               targetRoot = (null != autoRoot ? autoRoot : manualRoot);
+                       }
+
+                       if (null != targetRoot) {
+                               try {
+                                       Constants.writeObjIntoXml(targetResult,
+                                                       TestDefinition.class, targetRoot, SUITE_XSLT);
+                               } catch (FileNotFoundException e) {
+                                       e.printStackTrace();
+                               } catch (JAXBException e) {
+                                       e.printStackTrace();
+                               } catch (XMLStreamException e) {
+                                       e.printStackTrace();
+                               }
+                       }
+               }
+       }
+
+       private static Suite containSuite(TestDefinition root, Suite thisSuite) {
+               Suite targetSuite = null;
+               if (null != root) {
+                       for (Object obj : root.getEnvironmentAndSummaryAndSuite()) {
+                               if (obj instanceof Suite) {
+                                       Suite suite = (Suite) obj;
+                                       if (suite.getName().equals(thisSuite.getName())) {
+                                               targetSuite = suite;
+                                               break;
+                                       }
+                               }
+                       }
+               }
+               return targetSuite;
+       }
+
+       private static Set containSet(Suite targetSuite, Set thisSet) {
+               Set targetSet = null;
+               for (Set set : targetSuite.getSet()) {
+                       if (set.getName().equals(thisSet.getName())) {
+                               targetSet = set;
+                               break;
+                       }
+               }
+
+               return targetSet;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/util/ResultZipper.java b/src/org/tizen/tct/tool/mgr/lite/util/ResultZipper.java
new file mode 100644 (file)
index 0000000..ed27a90
--- /dev/null
@@ -0,0 +1,70 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.lite.util;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipOutputStream;
+
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+
+import org.apache.commons.io.FileUtils;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class ResultZipper {
+
+       public static String reportExport(File dstDir, File srcDir, JPanel parent) {
+               File zipFile = new File(dstDir.getAbsolutePath() + File.separator
+                               + srcDir.getName() + ".zip");
+               if (zipFile.exists()) {
+                       int reply = JOptionPane.showConfirmDialog(parent, "The file '"
+                                       + srcDir.getName() + ".zip' is existed. Override it?",
+                                       "Override existed?", JOptionPane.YES_NO_OPTION);
+                       if (reply == JOptionPane.YES_OPTION) {
+                               FileUtils.deleteQuietly(zipFile);
+                       } else {
+                               return null;
+                       }
+               }
+
+               int temp = 0;
+               ZipOutputStream zipOut = null;
+               try {
+                       zipOut = new ZipOutputStream(new FileOutputStream(zipFile));
+                       for (File x : srcDir.listFiles()) {
+                               if (x.isFile()) {
+                                       zipOut.putNextEntry(new ZipEntry(x.getName()));
+                                       FileInputStream input = new FileInputStream(x);
+                                       while ((temp = input.read()) != -1) {
+                                               zipOut.write(temp);
+                                       }
+                                       input.close();
+                               } else {
+                                       for (File y : x.listFiles()) {
+                                               String entryName = y.getParentFile().getName()
+                                                               + File.separator + y.getName();
+                                               zipOut.putNextEntry(new ZipEntry(entryName));
+                                               FileInputStream input = new FileInputStream(y);
+                                               while ((temp = input.read()) != -1) {
+                                                       zipOut.write(temp);
+                                               }
+                                               input.close();
+                                       }
+                               }
+                       }
+                       zipOut.close();
+               } catch (IOException e) {
+                       e.printStackTrace();
+               }
+               return zipFile.getName();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.java b/src/org/tizen/tct/tool/mgr/lite/util/SummaryGenerator.java
new file mode 100644 (file)
index 0000000..d4ed495
--- /dev/null
@@ -0,0 +1,270 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.lite.util;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.List;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.stream.XMLStreamException;
+
+import org.apache.commons.io.FileUtils;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.capability.Capabilities;
+import org.tizen.tct.tool.mgr.jaxb.definition.BuildInfoType;
+import org.tizen.tct.tool.mgr.jaxb.definition.SummaryType;
+import org.tizen.tct.tool.mgr.jaxb.definition.TestDefinition;
+import org.tizen.tct.tool.mgr.jaxb.summary.ObjectFactory;
+import org.tizen.tct.tool.mgr.jaxb.summary.ResultSummary;
+import org.tizen.tct.tool.mgr.lite.CalculatResultThread;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.run.SuiteResultSummary;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class SummaryGenerator {
+
+       public final static String RESULT_TIME_FORMAT_STR = "yyyy-MM-dd_HH_mm_ss";
+
+       public final static String SUMMARY_XSLT = "./style/summary.xsl";
+
+       public final static SimpleDateFormat RESULT_TIME_FORMAT = new SimpleDateFormat(
+                       RESULT_TIME_FORMAT_STR);
+
+       public static void deployStyle(String resultFolder) {
+               try {
+                       FileUtils.copyDirectory(new File(Constants.STYLE_FOLDER), new File(
+                                       resultFolder + "/style/"));
+               } catch (IOException e) {
+                       e.printStackTrace();
+               }
+       }
+
+       public static ResultSummary loadExistedSummary(File summaryFile) {
+               ResultSummary summary = null;
+               if (summaryFile.exists()) {
+                       try {
+                               JAXBContext context = JAXBContext
+                                               .newInstance(ResultSummary.class);
+                               Unmarshaller um = context.createUnmarshaller();
+                               try {
+                                       summary = (ResultSummary) um.unmarshal(new FileInputStream(
+                                                       summaryFile));
+                               } catch (FileNotFoundException e) {
+                                       e.printStackTrace();
+                               }
+                       } catch (JAXBException e) {
+                               e.printStackTrace();
+                       }
+               }
+               return summary;
+       }
+
+       public static Capabilities loadDeviceCapability() {
+               org.tizen.tct.tool.mgr.jaxb.capability.Capabilities capability = null;
+               File capabilityFile = new File(Constants.LOCAL_CAPABILITY_PATH);
+               if (capabilityFile.exists()) {
+                       try {
+                               JAXBContext context = JAXBContext
+                                               .newInstance(org.tizen.tct.tool.mgr.jaxb.capability.Capabilities.class);
+                               Unmarshaller um = context.createUnmarshaller();
+                               try {
+                                       capability = (org.tizen.tct.tool.mgr.jaxb.capability.Capabilities) um
+                                                       .unmarshal(new FileInputStream(capabilityFile));
+                               } catch (FileNotFoundException e) {
+                                       e.printStackTrace();
+                               }
+                       } catch (JAXBException e) {
+                               e.printStackTrace();
+                       }
+               }
+               return capability;
+       }
+
+       private static ResultSummary.Capabilities copyCapibilities() {
+               ResultSummary.Capabilities capabilities = null;
+               Capabilities deviceCaps = loadDeviceCapability();
+               if (null != deviceCaps) {
+                       ObjectFactory factory = new ObjectFactory();
+                       capabilities = factory.createResultSummaryCapabilities();
+                       for (Capabilities.Capability deviceCap : deviceCaps.getCapability()) {
+                               ResultSummary.Capabilities.Capability cap = factory
+                                               .createResultSummaryCapabilitiesCapability();
+                               cap.setName(deviceCap.getName());
+                               cap.setSupport(deviceCap.getSupport());
+                               cap.setType(deviceCap.getType());
+                               cap.setValue(deviceCap.getValue());
+                               capabilities.getCapability().add(cap);
+                       }
+               }
+               return capabilities;
+       }
+
+       private static ResultSummary.Capabilities extractCapability(File summaryFile) {
+               ResultSummary summary = loadExistedSummary(summaryFile);
+               ResultSummary.Capabilities capabilities = null;
+               if (null != summary && null != summary.getCapabilities()
+                               && null != summary.getCapabilities().getCapability()
+                               && (!summary.getCapabilities().getCapability().isEmpty())) {
+                       capabilities = summary.getCapabilities();
+               } else {
+                       capabilities = copyCapibilities();
+               }
+               return capabilities;
+       }
+
+       public static void generateSummary(String resultFolder, TctTestPlan plan) {
+               File summaryFile = new File(resultFolder + File.separator
+                               + Constants.SUMMARY_FILE_NAME);
+               ResultSummary.Environment env = null;
+               ResultSummary.Summary sum = null;
+               Calendar startAt = null;
+               Calendar endAt = null;
+               List<SuiteResultSummary> suites = new ArrayList<SuiteResultSummary>();
+               for (String suiteName : plan.getAllSuiteNames()) {
+                       File suiteFile = new File(resultFolder + File.separator + suiteName
+                                       + ".xml");
+                       TestDefinition suiteRoot = CalculatResultThread
+                                       .loadResultXML(suiteFile);
+                       if (null != suiteRoot) {
+                               for (Object obj : suiteRoot.getEnvironmentAndSummaryAndSuite()) {
+                                       if (null == env || null == sum) {
+                                               if (null == env && obj instanceof BuildInfoType) {
+                                                       env = copyEnvironment((BuildInfoType) obj);
+                                               } else if (null == sum && obj instanceof SummaryType) {
+                                                       sum = copySummary((SummaryType) obj);
+                                                       startAt = transTimestamp(sum.getStartAt());
+                                                       endAt = transTimestamp(sum.getEndAt());
+                                               }
+                                       }
+                                       if (null != sum && obj instanceof SummaryType) {
+                                               SummaryType suiteSummary = (SummaryType) obj;
+                                               startAt = compareTime(startAt,
+                                                               suiteSummary.getStartAt(), true);
+                                               endAt = compareTime(endAt, suiteSummary.getEndAt(),
+                                                               false);
+                                       }
+                               }
+                               suites.add(CalculatResultThread.statics(suiteRoot, suiteName));
+                       }
+               }
+               if (null != sum) {
+                       sum.setStartAt(RESULT_TIME_FORMAT.format(startAt.getTime()));
+                       sum.setEndAt(RESULT_TIME_FORMAT.format(endAt.getTime()));
+               }
+               if (!suites.isEmpty()) {
+                       ResultSummary summary = createSummaryRoot(env, sum, suites);
+                       summary.setPlanName(plan.getOriginPlanName());
+                       ResultSummary.Capabilities cap = extractCapability(summaryFile);
+                       if (null != cap) {
+                               summary.setCapabilities(cap);
+                       }
+
+                       try {
+                               Constants.writeObjIntoXml(summaryFile, ResultSummary.class,
+                                               summary, SUMMARY_XSLT);
+                       } catch (FileNotFoundException e) {
+                               e.printStackTrace();
+                       } catch (JAXBException e) {
+                               e.printStackTrace();
+                       } catch (XMLStreamException e) {
+                               e.printStackTrace();
+                       }
+               } else {
+
+               }
+       }
+
+       private static ResultSummary createSummaryRoot(
+                       ResultSummary.Environment env, ResultSummary.Summary sum,
+                       List<SuiteResultSummary> suites) {
+               ObjectFactory factory = new ObjectFactory();
+               ResultSummary summary = factory.createResultSummary();
+               summary.setEnvironment(env);
+               summary.setSummary(sum);
+
+               for (SuiteResultSummary suite : suites) {
+                       summary.getSuite().add(suite.toSummarySuite());
+               }
+
+               return summary;
+       }
+
+       private static ResultSummary.Environment copyEnvironment(
+                       BuildInfoType origin) {
+               ObjectFactory factory = new ObjectFactory();
+               ResultSummary.Environment env = factory
+                               .createResultSummaryEnvironment();
+               env.setBuildId(origin.getBuildId());
+               env.setCtsVersion(origin.getCtsVersion());
+               env.setDeviceId(origin.getDeviceId());
+               env.setDeviceModel(origin.getDeviceModel());
+               env.setDeviceName(origin.getDeviceName());
+               env.setHost(origin.getHost());
+               env.setOsVersion(origin.getOsVersion());
+               env.setOther(origin.getOther());
+               env.setResolution(origin.getResolution());
+               env.setScreenSize(origin.getScreenSize());
+               env.setManufacturer(origin.getManufacturer());
+               return env;
+       }
+
+       private static ResultSummary.Summary copySummary(SummaryType origin) {
+               ObjectFactory factory = new ObjectFactory();
+               ResultSummary.Summary sum = factory.createResultSummarySummary();
+               sum.setTestPlanName(origin.getTestPlanName());
+               sum.setStartAt(origin.getStartAt());
+               sum.setEndAt(origin.getEndAt());
+               return sum;
+       }
+
+       private static Calendar compareTime(Calendar origin, String timestamp,
+                       boolean last) {
+               Calendar thisTime = transTimestamp(timestamp);
+               if (null == origin) {
+                       return thisTime;
+               } else if (null == thisTime) {
+                       return origin;
+               } else {
+                       if (origin.after(thisTime)) {
+                               if (last) {
+                                       return thisTime;
+                               } else {
+                                       return origin;
+                               }
+                       } else {
+                               if (last) {
+                                       return origin;
+                               } else {
+                                       return thisTime;
+                               }
+                       }
+               }
+       }
+
+       private static Calendar transTimestamp(String timestamp) {
+               Calendar time = null;
+               if (null != timestamp) {
+                       time = Calendar.getInstance();
+                       try {
+                               time.setTime(RESULT_TIME_FORMAT.parse(timestamp));
+                       } catch (ParseException e) {
+                               e.printStackTrace();
+                               time = null;
+                       }
+               }
+               return time;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/CaseResult.java b/src/org/tizen/tct/tool/mgr/model/CaseResult.java
new file mode 100644 (file)
index 0000000..5404aa2
--- /dev/null
@@ -0,0 +1,69 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class CaseResult {
+
+       private enum C_RESULT {
+               PASS, FAIL, BLOCK, NA
+       }
+
+       private final C_RESULT result;
+
+       private final String resultStr;
+
+       private final static String pass = "PASS";
+       private final static String fail = "FAIL";
+       private final static String block = "BLOCK";
+       private final static String na = "N/A";
+
+       private CaseResult(String result) {
+               if (pass.equalsIgnoreCase(result)) {
+                       this.result = C_RESULT.PASS;
+                       this.resultStr = pass;
+               } else if (fail.equalsIgnoreCase(result)) {
+                       this.result = C_RESULT.FAIL;
+                       this.resultStr = fail;
+               } else if (block.equalsIgnoreCase(result)) {
+                       this.result = C_RESULT.BLOCK;
+                       this.resultStr = block;
+               } else {
+                       this.result = C_RESULT.NA;
+                       this.resultStr = na;
+               }
+       }
+
+       public final static CaseResult PASS = new CaseResult(pass);
+
+       public final static CaseResult FAIL = new CaseResult(fail);
+
+       public final static CaseResult BLOCK = new CaseResult(block);
+
+       public final static CaseResult NA = new CaseResult(na);
+
+       public static CaseResult getCaseResultInstance(String result) {
+               if (pass.equalsIgnoreCase(result)) {
+                       return PASS;
+               } else if (fail.equalsIgnoreCase(result)) {
+                       return FAIL;
+               } else if (block.equalsIgnoreCase(result)) {
+                       return BLOCK;
+               } else {
+                       return NA;
+               }
+       }
+
+       public String toString() {
+               return resultStr;
+       }
+
+       public static String[] getAvailableResult() {
+               return new String[] { pass, fail, block, na };
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/ExecuteType.java b/src/org/tizen/tct/tool/mgr/model/ExecuteType.java
new file mode 100644 (file)
index 0000000..4b5a396
--- /dev/null
@@ -0,0 +1,122 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model;
+
+import org.tizen.tct.tool.mgr.jaxb.plan.ExecuteTypeType;
+import org.tizen.tct.tool.mgr.jaxb.plan.ObjectFactory;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ExecuteType {
+
+       private enum E_TYPE {
+               ALL, AUTO, MANUAL
+       }
+
+       private final E_TYPE type;
+
+       private final String typeStr;
+
+       private ExecuteType(String type) {
+               if (all.equalsIgnoreCase(type)) {
+                       this.type = E_TYPE.ALL;
+                       this.typeStr = all;
+               } else if (auto.equalsIgnoreCase(type)) {
+                       this.type = E_TYPE.AUTO;
+                       this.typeStr = auto;
+               } else {
+                       this.type = E_TYPE.MANUAL;
+                       this.typeStr = manual;
+               }
+       }
+
+       private final static String all = "All";
+       private final static String auto = "Auto";
+       public final static String automated = "Automated";
+       private final static String manual = "Manual";
+
+       public final static ExecuteType ALL = new ExecuteType(all);
+
+       public final static ExecuteType AUTO = new ExecuteType(auto);
+
+       public final static ExecuteType MANUAL = new ExecuteType(manual);
+
+       public static ExecuteType createExecuteType(String type) {
+               ExecuteType executeType = null;
+               if (all.equalsIgnoreCase(type)) {
+                       executeType = ALL;
+               } else if (auto.equalsIgnoreCase(type)
+                               || automated.equalsIgnoreCase(type)) {
+                       executeType = AUTO;
+               } else if (manual.equalsIgnoreCase(type)) {
+                       executeType = MANUAL;
+               }
+               return executeType;
+       }
+
+       public static ExecuteType createCaseExecuteType(String type) {
+               ExecuteType executeType = null;
+               if (manual.equalsIgnoreCase(type)) {
+                       executeType = MANUAL;
+               } else {
+                       executeType = AUTO;
+               }
+               return executeType;
+       }
+
+       @Override
+       public int hashCode() {
+               final int prime = 31;
+               int hash = 1;
+               hash = prime * hash + this.type.hashCode();
+               return hash;
+       }
+
+       @Override
+       public boolean equals(Object obj) {
+               if (this == obj) {
+                       return true;
+               } else {
+                       return false;
+               }
+       }
+
+       @Override
+       public String toString() {
+               return this.typeStr;
+       }
+
+       public String toLiteParam() {
+               switch (this.type) {
+               case AUTO:
+                       return " -A";
+               case MANUAL:
+                       return " -M";
+               default:
+                       return "";
+               }
+       }
+
+       public ExecuteTypeType toPlanXml() {
+               return ExecuteTypeType.fromValue(this.typeStr);
+       }
+
+       public static String[] getAllAvailableExecuteType() {
+               String[] tmp = new String[3];
+               tmp[0] = all;
+               tmp[1] = automated;
+               tmp[2] = manual;
+               return tmp;
+       }
+
+       public boolean contain(ExecuteType other) {
+               if (ALL == this) {
+                       return true;
+               } else {
+                       return this == other;
+               }
+       }
+}
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.java b/src/org/tizen/tct/tool/mgr/model/TctRerunTestSuite.java
new file mode 100644 (file)
index 0000000..0a92470
--- /dev/null
@@ -0,0 +1,62 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model;
+
+import java.io.File;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.device.DeviceList;
+import org.tizen.tct.tool.mgr.lite.util.ResultMerger;
+
+/**
+ * @author cathy
+ * 
+ */
+public class TctRerunTestSuite extends TctTestSuite {
+
+       private String resultFolder;
+
+       private TctRerunTestSuite(String name, Integer auto_num,
+                       Integer manual_num, String suite_pkg_name, String launcher,
+                       String resultFolder) {
+               super(name, auto_num, manual_num, suite_pkg_name, launcher, null);
+               this.resultFolder = resultFolder;
+       }
+
+       public static TctRerunTestSuite createRerunSuite(TctTestSuite suite,
+                       String resultFolder) {
+               TctRerunTestSuite rerunSuite = new TctRerunTestSuite(suite.getName(),
+                               suite.getAuto_num(), suite.getManual_num(),
+                               suite.getSuitePkgName(), suite.getLauncher(), resultFolder);
+               return rerunSuite;
+       }
+
+       @Override
+       protected String liteCommand(String resultFolder, ExecuteType et) {
+               StringBuffer cmd = new StringBuffer();
+               cmd.append(Constants.LITE_CMD + " ");
+               cmd.append(Constants.LOCAL_PRE + this.resultFolder + File.separator
+                               + this.getName() + ResultMerger.RERUN_DEF_SUFFIX + " ");
+               cmd.append(Constants.LITE_E_PARAM + " ");
+               cmd.append(et.toLiteParam() + " ");
+               cmd.append(Constants.LITE_NON_ACTIVE_PARAM + " ");
+               // device id
+               cmd.append(Constants.LITE_DEVICE_PARAM + " ");
+               cmd.append(DeviceList.getInstance().getSelectedDeviceId() + " ");
+               // capability
+               cmd.append(Constants.LITE_CAPABILITY_PARAM);
+               cmd.append(Constants.LOCAL_CAPABILITY_PATH).append(" ");
+               
+               cmd.append(Constants.LITE_OUTPUT_PARAM).append(resultFolder)
+                               .append(File.separator).append(this.getName());
+               if (et == ExecuteType.MANUAL) {
+                       cmd.append(ResultMerger.RERUN_MANUAL_RESULT_SUFFIX);
+               } else {
+                       cmd.append(ResultMerger.RERUN_AUTO_RESULT_SUFFIX);
+               }
+               System.out.println("Command: " + cmd.toString());
+               return cmd.toString();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/TctTestSuite.java b/src/org/tizen/tct/tool/mgr/model/TctTestSuite.java
new file mode 100644 (file)
index 0000000..02639f0
--- /dev/null
@@ -0,0 +1,414 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStreamReader;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.device.DeviceList;
+import org.tizen.tct.tool.mgr.jaxb.definition.Set;
+import org.tizen.tct.tool.mgr.jaxb.definition.Suite;
+import org.tizen.tct.tool.mgr.jaxb.definition.TestDefinition;
+import org.tizen.tct.tool.mgr.jaxb.definition.Testcase;
+import org.tizen.tct.tool.mgr.jaxb.plan.ObjectFactory;
+import org.tizen.tct.tool.mgr.jaxb.plan.SuiteType;
+import org.tizen.tct.tool.mgr.lite.SdbCommand;
+import org.tizen.tct.tool.mgr.lite.util.ResultMerger;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.run.SdbInstallable;
+import org.tizen.tct.tool.mgr.view.runpage.ConsoleRefreshThread;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class TctTestSuite implements Comparable<TctTestSuite>, SdbInstallable {
+
+       private static final Logger logger = Logger.getLogger(TctTestSuite.class);
+
+       private String name;
+
+       private Integer auto_num;
+
+       private Integer manual_num;
+
+       private String suite_pkg_name;
+
+       private String launcher;
+
+       private Process tr;
+
+       private BufferedReader rd;
+
+       private boolean executing;
+
+       private boolean canceled;
+
+       private String category;
+
+       private final static Class DEFINITION_JAXB_CLASS = TestDefinition.class;
+
+       public String getName() {
+               return name;
+       }
+
+       public Integer getAuto_num() {
+               return auto_num;
+       }
+
+       public Integer getManual_num() {
+               return manual_num;
+       }
+
+       protected String getSuitePkgName() {
+               return suite_pkg_name;
+       }
+
+       protected String getLauncher() {
+               return launcher;
+       }
+
+       public String getCategory() {
+               return category;
+       }
+
+       public void stopLite() {
+               this.executing = false;
+       }
+
+       public boolean isCanceled() {
+               return this.canceled;
+       }
+
+       protected String liteCommand(String resultFolder, ExecuteType et) {
+               StringBuffer cmd = new StringBuffer();
+               cmd.append(Constants.LITE_CMD + " ");
+               cmd.append(Constants.DEVICE_PRE + Constants.DEVICE_SUITE_FOLDER
+                               + this.name + Constants.DEVICE_SUITE_DEF + " ");
+               cmd.append(Constants.LITE_E_PARAM + " ");
+               cmd.append(et.toLiteParam() + " ");
+               cmd.append(Constants.LITE_NON_ACTIVE_PARAM + " ");
+               // device id
+               cmd.append(Constants.LITE_DEVICE_PARAM + " ");
+               cmd.append(DeviceList.getInstance().getSelectedDeviceId() + " ");
+               // capability
+               cmd.append(Constants.LITE_CAPABILITY_PARAM);
+               cmd.append(Constants.LOCAL_CAPABILITY_PATH).append(" ");
+               cmd.append(Constants.LITE_OUTPUT_PARAM).append(resultFolder)
+                               .append(File.separator).append(this.getName());
+               if (et == ExecuteType.MANUAL) {
+                       cmd.append(ResultMerger.MANUAL_RESULT_SUFFIX);
+               } else {
+                       cmd.append(ResultMerger.AUTO_RESULT_SUFFIX);
+               }
+               System.out.println("Command: " + cmd.toString());
+               return cmd.toString();
+       }
+
+       public void executeManual(String resultFolder) throws IOException {
+               Constants.POUT.write((ConsoleRefreshThread.MANUAL_SUITE_START
+                               + this.getName() + "\n").getBytes());
+               this.executeInLite(resultFolder, ExecuteType.MANUAL);
+       }
+
+       public void executeAuto(String resultFolder) throws IOException {
+               Constants.POUT.write((ConsoleRefreshThread.AUTO_SUITE_START
+                               + this.getName() + "\n").getBytes());
+               this.executeInLite(resultFolder, ExecuteType.AUTO);
+       }
+
+       private void executeInLite(String resultFolder, ExecuteType et)
+                       throws IOException {
+               String cmd = this.liteCommand(resultFolder, et);
+               this.executing = true;
+               this.canceled = false;
+               Constants.POUT
+                               .write(("Execute below command to invoking testkit-lite.\n")
+                                               .getBytes());
+               Constants.POUT.write((">" + cmd + "\n").getBytes());
+
+               this.tr = Runtime.getRuntime().exec(cmd);
+               this.rd = new BufferedReader(new InputStreamReader(tr.getInputStream()));
+               String s = null;
+               while ((s = this.rd.readLine()) != null && this.executing) {
+                       Constants.POUT.write((s + "\n").getBytes());
+               }
+               if (this.executing) {
+                       rd = new BufferedReader(new InputStreamReader(tr.getErrorStream()));
+                       s = null;
+                       while ((s = rd.readLine()) != null && this.executing) {
+                               Constants.POUT.write((s + "\n").getBytes());
+                               System.err.println(s);
+                       }
+               } else {
+                       this.tr.destroy();
+                       this.canceled = true;
+               }
+       }
+
+       @Override
+       public String toString() {
+               String str = "[Suite] Name: " + this.name + "\n";
+               str += "Auto: " + this.auto_num + "\n";
+               str += "Manual: " + this.manual_num + "\n";
+               str += "Launcher: " + this.launcher + "\n";
+               str += "SuitePkg: " + this.suite_pkg_name + "\n\n";
+               return str;
+       }
+
+       public Object[] toRowData(TctTestPlan plan) {
+               String version = this.suite_pkg_name;
+               version = getVersion();
+               boolean isSelected = false;
+               if (null != plan) {
+                       isSelected = plan.isIncludedSuite(this.name);
+               }
+               Object[] row = new Object[Constants.SUITE_LIST_COLUMNS.length];
+               row[0] = isSelected;
+               row[1] = this.name;
+               row[2] = this.auto_num;
+               row[3] = this.manual_num;
+               row[4] = this.auto_num + this.manual_num;
+               row[5] = version;
+
+               return row;
+       }
+
+       public String getVersion() {
+               return this.suite_pkg_name.substring(this.name.length() + 1,
+                               this.suite_pkg_name.length() - Constants.PKG_SUFFIX.length());
+       }
+
+       public TctTestSuite(String name, Integer auto_num, Integer manual_num,
+                       String suite_pkg_name, String launcher, String category) {
+               super();
+               this.name = name;
+               this.auto_num = auto_num;
+               this.manual_num = manual_num;
+               this.suite_pkg_name = suite_pkg_name;
+               this.launcher = launcher;
+               this.category = category;
+       }
+
+       public TctTestSuite(SuiteType jaxb_suite) {
+               this.name = jaxb_suite.getName();
+               this.launcher = jaxb_suite.getLauncher();
+               this.auto_num = jaxb_suite.getAutoTcn();
+               this.manual_num = jaxb_suite.getManualTcn();
+               this.suite_pkg_name = jaxb_suite.getPkgName();
+               this.category = jaxb_suite.getCategory();
+       }
+
+       public SuiteType toJaxbObject() {
+               ObjectFactory factory = new ObjectFactory();
+               SuiteType suiteType = factory.createSuiteType();
+               suiteType.setName(this.name);
+               suiteType.setAutoTcn(this.auto_num);
+               suiteType.setManualTcn(this.manual_num);
+               suiteType.setLauncher(this.launcher);
+               suiteType.setCategory(this.category);
+               suiteType.setPkgName(this.suite_pkg_name);
+               suiteType.setTotalTcn(this.auto_num + this.manual_num);
+               return suiteType;
+       }
+
+       /**
+        * 
+        * @param name
+        * @return
+        * @deprecated
+        */
+       private static String getRpmName(String name) {
+               String rpm_name = null;
+               for (File file : FileUtils.listFiles(
+                               new File(Constants.SUITES_REPOSITORY), new String[] { "rpm" },
+                               false)) {
+                       if (file.getName().startsWith(name)) {
+                               rpm_name = file.getName();
+                               break;
+                       }
+               }
+               return rpm_name;
+       }
+
+       private static String getSuitePackageFileName(String name) {
+               String suite_pkg_name = null;
+               for (File file : FileUtils.listFiles(
+                               new File(Constants.SUITES_REPOSITORY),
+                               new String[] { Constants.PKG_SUFFIX.substring(1) }, false)) {
+                       if (file.getName().startsWith(name)) {
+                               suite_pkg_name = file.getName();
+                               break;
+                       }
+               }
+               return suite_pkg_name;
+       }
+
+       public static TctTestSuite createTctTestSuite(File suiteXml, String name)
+                       throws FileNotFoundException {
+
+               TestDefinition def = null;
+               int auto_num = 0;
+               int manual_num = 0;
+               String launcher = null;
+               String suite_pkg_name = getSuitePackageFileName(name);
+               String category = null;
+               try {
+                       JAXBContext context = JAXBContext
+                                       .newInstance(DEFINITION_JAXB_CLASS);
+                       Unmarshaller um = context.createUnmarshaller();
+                       def = (TestDefinition) um.unmarshal(new FileInputStream(suiteXml));
+                       for (Object obj : def.getEnvironmentAndSummaryAndSuite()) {
+                               if (obj instanceof Suite) {
+                                       Suite suite = (Suite) obj;
+                                       if (null != suite.getLauncher()
+                                                       && suite.getLauncher().length() > 0) {
+                                               launcher = suite.getLauncher();
+                                       }
+                                       category = suite.getCategory();
+                                       for (Set set : suite.getSet()) {
+                                               for (Testcase tc : set.getTestcase()) {
+                                                       ExecuteType et = ExecuteType
+                                                                       .createCaseExecuteType(tc
+                                                                                       .getExecutionType().toString());
+                                                       if (et == ExecuteType.AUTO) {
+                                                               auto_num++;
+                                                       } else {
+                                                               manual_num++;
+                                                       }
+                                               }
+                                       }
+                               }
+                       }
+               } catch (JAXBException e) {
+                       e.printStackTrace();
+                       logger.error("Fail to parse the XML: " + suiteXml.getAbsolutePath());
+               }
+
+               TctTestSuite suite = new TctTestSuite(name, auto_num, manual_num,
+                               suite_pkg_name, launcher, category);
+               return suite;
+       }
+
+       @Override
+       public int compareTo(TctTestSuite other) {
+               return this.name.compareTo(other.name);
+       }
+
+       /**
+        * Push suite file(zip) on device
+        */
+       @Override
+       public void sdbPush() throws IOException {
+               if(!SdbCommand.checkFolderExist(Constants.DEVICE_TMP)){
+                       //create folder
+                       SdbCommand.sdbShell("mkdir " + Constants.DEVICE_TMP);
+               }
+               SdbCommand.sdbPush(Constants.SUITES_REPOSITORY + File.separator
+                               + this.suite_pkg_name, Constants.DEVICE_TMP);
+       }
+
+       @Override
+       public void sdbInstall() throws IOException {
+               // unzip
+               SdbCommand.sdbShell("unzip -o " + Constants.DEVICE_TMP + File.separator
+                               + this.suite_pkg_name + " -d " + Constants.DEVICE_SUITE_TARGET + " > /dev/null 2>&1");
+               // execute install script
+               SdbCommand.sdbShell(Constants.DEVICE_SUITE_FOLDER + this.name
+                               + File.separator + Constants.SUITE_INSTALL_SCRTPT);
+       }
+
+       @Override
+       public void sdbRemove() throws IOException {
+               SdbCommand.sdbShell("rm -f " + Constants.DEVICE_TMP + File.separator
+                               + this.suite_pkg_name);
+       }
+
+       @Override
+       public void sdbUninstall() throws IOException {
+               SdbCommand.sdbShell(Constants.DEVICE_SUITE_FOLDER + this.name
+                               + File.separator + Constants.SUITE_UNINSTALL_SCRTPT);
+               // remove the unzip files
+               SdbCommand.sdbShell("rm -rf " + Constants.DEVICE_SUITE_FOLDER
+                               + this.name);
+       }
+
+       @Override
+       public boolean sdbCheckSuite() {
+               return SdbCommand.isSuiteExisted(this.name);
+       }
+
+
+       @Override
+       public int hashCode() {
+               final int prime = 31;
+               int result = 1;
+               result = prime * result
+                               + ((auto_num == null) ? 0 : auto_num.hashCode());
+               result = prime * result
+                               + ((category == null) ? 0 : category.hashCode());
+               result = prime * result
+                               + ((launcher == null) ? 0 : launcher.hashCode());
+               result = prime * result
+                               + ((manual_num == null) ? 0 : manual_num.hashCode());
+               result = prime * result + ((name == null) ? 0 : name.hashCode());
+               result = prime * result
+                               + ((suite_pkg_name == null) ? 0 : suite_pkg_name.hashCode());
+               return result;
+       }
+
+       @Override
+       public boolean equals(Object obj) {
+               if (this == obj)
+                       return true;
+               if (obj == null)
+                       return false;
+               if (getClass() != obj.getClass())
+                       return false;
+               TctTestSuite other = (TctTestSuite) obj;
+               if (auto_num == null) {
+                       if (other.auto_num != null)
+                               return false;
+               } else if (!auto_num.equals(other.auto_num))
+                       return false;
+               if (category == null) {
+                       if (other.category != null)
+                               return false;
+               } else if (!category.equals(other.category))
+                       return false;
+               if (launcher == null) {
+                       if (other.launcher != null)
+                               return false;
+               } else if (!launcher.equals(other.launcher))
+                       return false;
+               if (manual_num == null) {
+                       if (other.manual_num != null)
+                               return false;
+               } else if (!manual_num.equals(other.manual_num))
+                       return false;
+               if (name == null) {
+                       if (other.name != null)
+                               return false;
+               } else if (!name.equals(other.name))
+                       return false;
+               if (suite_pkg_name == null) {
+                       if (other.suite_pkg_name != null)
+                               return false;
+               } else if (!suite_pkg_name.equals(other.suite_pkg_name))
+                       return false;
+               return true;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.java b/src/org/tizen/tct/tool/mgr/model/editablesuite/CaseStep.java
new file mode 100644 (file)
index 0000000..1bbb04f
--- /dev/null
@@ -0,0 +1,28 @@
+package org.tizen.tct.tool.mgr.model.editablesuite;
+
+import org.tizen.tct.tool.mgr.jaxb.definition.Step;
+
+public class CaseStep implements Comparable<CaseStep> {
+       private String step_desc;
+       private String expected_result;
+       private int order;
+
+       public CaseStep(Step step) {
+               this.step_desc = step.getStepDesc();
+               this.expected_result = step.getExpected();
+               this.order = step.getOrder();
+       }
+
+       @Override
+       public int compareTo(CaseStep other) {
+               return this.order - other.order;
+       }
+
+       public String getStep_desc() {
+               return step_desc;
+       }
+
+       public String getExpected_result() {
+               return expected_result;
+       }
+}
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.java b/src/org/tizen/tct/tool/mgr/model/editablesuite/ManualCaseResult.java
new file mode 100644 (file)
index 0000000..15ba6aa
--- /dev/null
@@ -0,0 +1,164 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.editablesuite;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import javax.xml.bind.JAXBElement;
+
+import org.tizen.tct.tool.mgr.jaxb.definition.Description;
+import org.tizen.tct.tool.mgr.jaxb.definition.ObjectFactory;
+import org.tizen.tct.tool.mgr.jaxb.definition.ResultInfoType;
+import org.tizen.tct.tool.mgr.jaxb.definition.Step;
+import org.tizen.tct.tool.mgr.jaxb.definition.Steps;
+import org.tizen.tct.tool.mgr.jaxb.definition.Testcase;
+import org.tizen.tct.tool.mgr.model.CaseResult;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ManualCaseResult implements Comparable {
+
+       private Testcase tc;
+
+       private String id;
+
+       private String purpose;
+
+       private String pre_condition;
+
+       private List<CaseStep> steps;
+
+       private String comments;
+
+       private CaseResult result;
+
+       private boolean changed = false;
+
+       private ManualCaseResult(Testcase tc) {
+               this.tc = tc;
+               this.id = tc.getId();
+               this.purpose = tc.getPurpose();
+               this.result = CaseResult.getCaseResultInstance(tc.getResult());
+
+               Description desc = tc.getDescription();
+               if (null != desc) {
+                       for (Object obj : desc.getNotesAndPreConditionAndPostCondition()) {
+                               if (obj instanceof JAXBElement) {
+                                       JAXBElement jaxb = (JAXBElement) obj;
+                                       if ("pre_condition".equalsIgnoreCase(jaxb.getName()
+                                                       .getLocalPart())) {
+                                               this.pre_condition = ((String) jaxb.getValue()).trim();
+                                       }
+                               }
+                               if (obj instanceof Steps) {
+                                       Steps xml_steps = (Steps) obj;
+                                       this.steps = new ArrayList<CaseStep>();
+                                       for (Step xml_step : xml_steps.getStep()) {
+                                               this.steps.add(new CaseStep(xml_step));
+                                       }
+                               }
+                       }
+               }
+       }
+
+       public static ManualCaseResult createInstance(Testcase tc) {
+               ManualCaseResult mcr = null;
+               if (null != tc) {
+                       mcr = new ManualCaseResult(tc);
+               }
+               return mcr;
+       }
+
+       public String getComments() {
+               return comments;
+       }
+
+       public void setComments(String comments) {
+               this.comments = comments;
+       }
+
+       public CaseResult getResult() {
+               return result;
+       }
+
+       public void setResult(CaseResult result) {
+               if (this.result != result) {
+                       this.changed = true;
+               }
+               this.result = result;
+               this.tc.setResult(result.toString());
+               ResultInfoType resultInfo = this.tc.getResultInfo();
+               if (null != resultInfo) {
+                       resultInfo.setActualResult(result.toString());
+               } else {
+                       ObjectFactory factory = new ObjectFactory();
+                       resultInfo = factory.createResultInfoType();
+                       resultInfo.setActualResult(result.toString());
+               }
+       }
+
+       public String getId() {
+               return id;
+       }
+
+       public String getPurpose() {
+               return purpose;
+       }
+
+       public String getPre_condition() {
+               return pre_condition;
+       }
+
+       public CaseStep[] getSteps() {
+               CaseStep[] stepArray = null;
+               if (null != this.steps && !this.steps.isEmpty()) {
+                       stepArray = this.steps.toArray(new CaseStep[this.steps.size()]);
+                       Arrays.sort(stepArray);
+               }
+               return stepArray;
+       }
+
+       public boolean isChanged() {
+               return changed;
+       }
+
+       public void setSaved() {
+               this.changed = false;
+       }
+
+       @Override
+       public int compareTo(Object o) {
+               ManualCaseResult other = (ManualCaseResult) o;
+               return this.id.compareTo(other.id);
+       }
+
+       @Override
+       public int hashCode() {
+               final int prime = 31;
+               int result = 1;
+               result = prime * result + ((id == null) ? 0 : id.hashCode());
+               return result;
+       }
+
+       @Override
+       public boolean equals(Object obj) {
+               if (this == obj)
+                       return true;
+               if (obj == null)
+                       return false;
+               if (getClass() != obj.getClass())
+                       return false;
+               ManualCaseResult other = (ManualCaseResult) obj;
+               if (id == null) {
+                       if (other.id != null)
+                               return false;
+               } else if (!id.equals(other.id))
+                       return false;
+               return true;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.java b/src/org/tizen/tct/tool/mgr/model/editablesuite/PlanManualResult.java
new file mode 100644 (file)
index 0000000..37cc445
--- /dev/null
@@ -0,0 +1,219 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.editablesuite;
+
+import java.io.FileNotFoundException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.swing.table.AbstractTableModel;
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.listener.run.edit.EditSuiteCallback;
+import org.tizen.tct.tool.mgr.model.CaseResult;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class PlanManualResult extends AbstractTableModel implements
+               EditSuiteCallback {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -9112760928514376328L;
+
+       private String[] columnNames = { "Name", "Description", "Result" };
+
+       private Map<String, SuiteManualResult> suiteManualResults = new HashMap<String, SuiteManualResult>();
+
+       private ManualCaseResult[] sortedManualCases = null;
+
+       private String selectedSuiteName = null;
+
+       private String resultFolder;
+
+       private boolean needUninstall = true;
+
+       private PlanManualResult(String resultFolder, List<String> suiteNames) {
+               this.resultFolder = resultFolder;
+               List<ManualCaseResult> manualCases = new ArrayList<ManualCaseResult>();
+               for (String suiteName : suiteNames) {
+                       SuiteManualResult result = SuiteManualResult.loadSuiteManualResult(
+                                       resultFolder, suiteName);
+                       if (null != result) {
+                               manualCases.addAll(result.getManualCases());
+                               this.suiteManualResults.put(suiteName, result);
+                       }
+               }
+               if (!manualCases.isEmpty()) {
+                       ManualCaseResult[] caseIdArray = manualCases
+                                       .toArray(new ManualCaseResult[manualCases.size()]);
+                       Arrays.sort(caseIdArray);
+                       this.sortedManualCases = caseIdArray;
+               }
+       }
+
+       public static PlanManualResult getPlanManualResult(String resultFolder,
+                       List<String> suiteNames) {
+               PlanManualResult resultes = null;
+               if (null != resultFolder && !suiteNames.isEmpty()) {
+                       resultes = new PlanManualResult(resultFolder, suiteNames);
+               }
+               return resultes;
+       }
+
+       public void setSelectedSuite(String suiteName) {
+               List<ManualCaseResult> manualCases = new ArrayList<ManualCaseResult>();
+               this.selectedSuiteName = suiteName;
+               if (null == suiteName) {
+                       for (SuiteManualResult result : this.suiteManualResults.values()) {
+                               manualCases.addAll(result.getManualCases());
+                       }
+               } else {
+                       SuiteManualResult result = this.suiteManualResults.get(suiteName);
+                       if (null != result) {
+                               manualCases.addAll(result.getManualCases());
+                       }
+               }
+               if (!manualCases.isEmpty()) {
+                       ManualCaseResult[] caseIdArray = manualCases
+                                       .toArray(new ManualCaseResult[manualCases.size()]);
+                       Arrays.sort(caseIdArray);
+                       this.sortedManualCases = caseIdArray;
+               }
+       }
+
+       public ManualCaseResult getManualCaseResult(int row) {
+               return this.sortedManualCases[row];
+       }
+
+       @Override
+       public int getRowCount() {
+               if (null != this.sortedManualCases) {
+                       return this.sortedManualCases.length;
+               } else {
+                       return 0;
+               }
+       }
+
+       @Override
+       public int getColumnCount() {
+               return this.columnNames.length;
+       }
+
+       @Override
+       public Object getValueAt(int rowIndex, int columnIndex) {
+               ManualCaseResult rowCase = this.sortedManualCases[rowIndex];
+               switch (columnIndex) {
+               case 0:
+                       return rowCase.getId();
+               case 1:
+                       return rowCase.getPurpose();
+               case 2:
+                       return rowCase.getResult();
+               default:
+                       return null;
+               }
+       }
+
+       @Override
+       public String getColumnName(int column) {
+               return this.columnNames[column];
+       }
+
+       @Override
+       public Class getColumnClass(int c) {
+               return getValueAt(0, c).getClass();
+       }
+
+       @Override
+       public boolean isCellEditable(int row, int col) {
+               if (col == 1) {
+                       return false;
+               } else {
+                       return true;
+               }
+       }
+
+       public void setValueAt(Object value, int row, int col) {
+               if (2 == col && value instanceof CaseResult) {
+                       CaseResult result = (CaseResult) value;
+                       ManualCaseResult rowCase = this.sortedManualCases[row];
+                       rowCase.setResult(result);
+               }
+       }
+
+       @Override
+       public void saveSelectedSuite(String suiteName) {
+               SuiteManualResult suite = suiteManualResults.get(suiteName);
+               try {
+                       suite.save();
+               } catch (FileNotFoundException e) {
+                       e.printStackTrace();
+               } catch (JAXBException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (XMLStreamException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+       @Override
+       public int getSavingSuiteNumber() {
+               if (null == this.selectedSuiteName) {
+                       return suiteManualResults.size();
+               } else {
+                       return 1;
+               }
+       }
+
+       @Override
+       public Iterator<String> getSavingSuiteIterator() {
+               if (null == this.selectedSuiteName) {
+                       return this.suiteManualResults.keySet().iterator();
+               } else {
+                       List<String> tmp = new ArrayList<String>(1);
+                       tmp.add(this.selectedSuiteName);
+                       return tmp.iterator();
+               }
+       }
+
+       public void setNeedUninstall(boolean needUninstall) {
+               this.needUninstall = needUninstall;
+       }
+
+       public String getResultFolder() {
+               return resultFolder;
+       }
+
+       @Override
+       public void selectAllSuites() {
+               this.selectedSuiteName = null;
+       }
+
+       @Override
+       public boolean needUninstall() {
+               return this.needUninstall;
+       }
+
+       @Override
+       public boolean isChanged() {
+               boolean changed = false;
+               for (SuiteManualResult suiteResult : this.suiteManualResults.values()) {
+                       changed = suiteResult.isChanged();
+                       if (changed) {
+                               break;
+                       }
+               }
+               return changed;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.java b/src/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResult.java
new file mode 100644 (file)
index 0000000..dd19533
--- /dev/null
@@ -0,0 +1,93 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.editablesuite;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.definition.Set;
+import org.tizen.tct.tool.mgr.jaxb.definition.Suite;
+import org.tizen.tct.tool.mgr.jaxb.definition.TestDefinition;
+import org.tizen.tct.tool.mgr.jaxb.definition.Testcase;
+import org.tizen.tct.tool.mgr.lite.CalculatResultThread;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class SuiteManualResult {
+
+       private List<ManualCaseResult> manualCases;
+
+       private TestDefinition resultRoot;
+
+       private File resultXml;
+
+       private SuiteManualResult(String suiteName, TestDefinition resultRoot,
+                       List<ManualCaseResult> manualCases, File resultXml) {
+               this.resultRoot = resultRoot;
+               this.manualCases = manualCases;
+               this.resultXml = resultXml;
+       }
+
+       public List<ManualCaseResult> getManualCases() {
+               return manualCases;
+       }
+
+       public void save() throws FileNotFoundException, JAXBException,
+                       XMLStreamException {
+               for (ManualCaseResult result : this.manualCases) {
+                       result.setSaved();
+               }
+               Constants.writeObjIntoXml(resultXml, TestDefinition.class, resultRoot,
+                               null);
+       }
+
+       public boolean isChanged() {
+               boolean changed = false;
+               for (ManualCaseResult result : this.manualCases) {
+                       changed = result.isChanged();
+                       if (changed) {
+                               break;
+                       }
+               }
+               return changed;
+       }
+
+       public static SuiteManualResult loadSuiteManualResult(String resultFolder,
+                       String suiteName) {
+               File resultXml = new File(resultFolder + File.separator + suiteName
+                               + SingleRunningPlan.getInstance().getManualResultSuffix());
+               TestDefinition resultRoot = CalculatResultThread
+                               .loadResultXML(resultXml);
+               List<ManualCaseResult> manualCases = new ArrayList<ManualCaseResult>();
+               if (null != resultRoot) {
+                       for (Object obj : resultRoot.getEnvironmentAndSummaryAndSuite()) {
+                               if (obj instanceof Suite) {
+                                       Suite suite = (Suite) obj;
+                                       for (Set set : suite.getSet()) {
+                                               for (Testcase tc : set.getTestcase()) {
+                                                       ManualCaseResult caseResult = ManualCaseResult
+                                                                       .createInstance(tc);
+                                                       manualCases.add(caseResult);
+                                               }
+                                       }
+                               }
+                       }
+               }
+               SuiteManualResult result = null;
+               if (!manualCases.isEmpty()) {
+                       result = new SuiteManualResult(suiteName, resultRoot, manualCases,
+                                       resultXml);
+               }
+               return result;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.java b/src/org/tizen/tct/tool/mgr/model/plan/CaseNumCounter.java
new file mode 100644 (file)
index 0000000..a8cfdc2
--- /dev/null
@@ -0,0 +1,52 @@
+package org.tizen.tct.tool.mgr.model.plan;
+
+public class CaseNumCounter {
+
+       private int auto_num = 0;
+
+       private int manual_num = 0;
+
+       private int max_length = 0;
+
+       public CaseNumCounter() {
+
+       }
+
+       public String adjustStrLength(String title, String number_str) {
+               // int span = this.max_length - title.length() - number_str.length();
+               // for (int i = 0; i < span; i++) {
+               // title += " ";
+               // }
+               // System.out.println(title + number_str);
+               return title + number_str;
+       }
+
+       void addAutoNum(int auto) {
+               this.auto_num += auto;
+       }
+
+       void addManual(int manual) {
+               this.manual_num += manual;
+       }
+
+       public int getTotalNum() {
+               return this.auto_num + this.manual_num;
+       }
+
+       public int getAuto_num() {
+               return auto_num;
+       }
+
+       public int getManual_num() {
+               return manual_num;
+       }
+
+       public int getMax_length() {
+               return max_length;
+       }
+
+       public void setMax_length(int max_length) {
+               this.max_length = max_length;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.java b/src/org/tizen/tct/tool/mgr/model/plan/DefaultTctTestPlan.java
new file mode 100644 (file)
index 0000000..a608170
--- /dev/null
@@ -0,0 +1,538 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.plan;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Vector;
+
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.plan.ObjectFactory;
+import org.tizen.tct.tool.mgr.jaxb.plan.Testplan;
+import org.tizen.tct.tool.mgr.jaxb.planstatus.PlanStatus;
+import org.tizen.tct.tool.mgr.jaxb.planstatus.TasksType;
+import org.tizen.tct.tool.mgr.lite.util.ResultMerger;
+import org.tizen.tct.tool.mgr.lite.util.SummaryGenerator;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.run.NamedVector;
+import org.tizen.tct.tool.mgr.model.run.TreeNodeUserObject;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class DefaultTctTestPlan implements TctTestPlan {
+
+       private String name;
+
+       private ExecuteType eType;
+
+       private Map<String, TctTestSuite> suites = new HashMap<String, TctTestSuite>();
+
+       private ArrayList<String> suitespreconf = new ArrayList<String>();
+
+       private boolean selected = false;
+
+       private final static Class STATUS_JAXB_CLASS = PlanStatus.class;
+
+       private ExecuteCounter counter;
+
+       private boolean canceled;
+
+       protected DefaultTctTestPlan(String name, ExecuteType eType,
+                       Collection<TctTestSuite> suites) {
+               this.name = name;
+               this.eType = eType;
+               this.counter = new ExecuteCounter(this.eType);
+               this.canceled = false;
+               for (TctTestSuite suite : suites) {
+                       this.suites.put(suite.getName(), suite);
+               }
+       }
+
+       protected Collection<TctTestSuite> getSuites() {
+               return this.suites.values();
+       }
+
+       protected void resetExecuteCounter() {
+               this.counter = new ExecuteCounter(this.eType);
+       }
+
+       @Override
+       public String getOriginPlanName() {
+               return this.name;
+       }
+
+       @Override
+       public TctTestSuite getSuiteForAutoExecute(String suiteName,
+                       String executedSuite) {
+               this.counter.addExecutedAutoSuite(executedSuite);
+               return this.getSuite(suiteName);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForManualExecute(String suiteName,
+                       String executedSuite) {
+               this.counter.addExecutedManualSuite(executedSuite);
+               return this.getSuite(suiteName);
+       }
+
+       @Override
+       public void setLastAutoSuite(String executedSuite) {
+               this.counter.addExecutedAutoSuite(executedSuite);
+       }
+
+       @Override
+       public void setLastManualSuite(String executedSuite) {
+               this.counter.addExecutedManualSuite(executedSuite);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForManualInstall(String suiteName) {
+               return this.getSuite(suiteName);
+       }
+
+       private TctTestSuite getSuite(String suiteName) {
+               return this.suites.get(suiteName);
+       }
+
+       @Override
+       public void uninstallManualSuites() {
+               if (null != suites) {
+                       for (TctTestSuite suite : suites.values()) {
+                               if (null != suite && suite.getManual_num() > 0) {
+                                       try {
+                                               suite.sdbUninstall();
+                                       } catch (IOException e) {
+                                               e.printStackTrace();
+                                       }
+                               }
+                       }
+               }
+       }
+
+       @Override
+       public void stopRunningSuite() {
+               if (null != suites) {
+                       for (TctTestSuite suite : suites.values()) {
+                               if (null != suite) {
+                                       suite.stopLite();
+                               }
+                       }
+               }
+       }
+
+       @Override
+       public java.util.Set<String> getAllSuiteNames() {
+               return this.suites.keySet();
+       }
+
+       @Override
+       public List<String> getAutoSuiteNames() {
+               if (this.isCanceled()) {
+                       return this.counter.getExecutedAutoSuite();
+               } else {
+                       return this.getFilteredSuiteNames(ExecuteType.AUTO);
+               }
+       }
+
+       @Override
+       public List<String> getManualSuiteNames() {
+               if (this.isCanceled()) {
+                       return this.counter.getExecutedManualSuite();
+               } else {
+                       return this.getFilteredSuiteNames(ExecuteType.MANUAL);
+               }
+       }
+
+       private List<String> getFilteredSuiteNames(ExecuteType et) {
+               List<String> filteredSuiteNames = new ArrayList<String>();
+               for (TctTestSuite suite : this.suites.values()) {
+                       if ((et == ExecuteType.AUTO && 0 < suite.getAuto_num())
+                                       || (et == ExecuteType.MANUAL && 0 < suite.getManual_num())) {
+                               filteredSuiteNames.add(suite.getName());
+                       }
+               }
+               return filteredSuiteNames;
+       }
+
+       private String[] getFilteredSortedSuiteNames(ExecuteType et) {
+               List<String> filteredSuiteNames = this.getFilteredSuiteNames(et);
+               String[] suiteNames = filteredSuiteNames
+                               .toArray(new String[filteredSuiteNames.size()]);
+               Arrays.sort(suiteNames);
+               return suiteNames;
+       }
+
+       @Override
+       public String[] getAutoSortedSuiteNames() {
+               return getFilteredSortedSuiteNames(ExecuteType.AUTO);
+       }
+
+       @Override
+       public String[] getManuSortedSuiteNames() {
+               return getFilteredSortedSuiteNames(ExecuteType.MANUAL);
+       }
+
+       @Override
+       public boolean containExecutingManualSuite() {
+               if (ExecuteType.AUTO == this.eType) {
+                       return false;
+               } else {
+                       if (getManuSortedSuiteNames().length > 0) {
+                               return true;
+                       } else {
+                               return false;
+                       }
+               }
+       }
+
+       @Override
+       public boolean containExecutingAutoSuite() {
+               if (ExecuteType.MANUAL == this.eType) {
+                       return false;
+               } else {
+                       if (getAutoSortedSuiteNames().length > 0) {
+                               return true;
+                       } else {
+                               return false;
+                       }
+               }
+       }
+
+       @Override
+       public int getSuitTasksNum() {
+               int auto_sum = 0;
+               int manual_sum = 0;
+               for (TctTestSuite suite : this.suites.values()) {
+                       if (suite.getAuto_num() > 0) {
+                               auto_sum++;
+                       }
+                       if (suite.getManual_num() > 0) {
+                               manual_sum++;
+                       }
+               }
+               if (ExecuteType.ALL == this.eType) {
+                       return auto_sum + manual_sum;
+               } else if (ExecuteType.MANUAL == this.eType) {
+                       return manual_sum;
+               } else {
+                       return auto_sum;
+               }
+       }
+
+       @Override
+       public int getAutoSuitTasksNum() {
+               int sum = 0;
+               for (TctTestSuite suite : this.suites.values()) {
+                       if (suite.getAuto_num() > 0) {
+                               sum++;
+                       }
+               }
+               return sum;
+       }
+
+       @Override
+       public boolean isSelected() {
+               return selected;
+       }
+
+       @Override
+       public void setSelected(boolean selected) {
+               this.selected = selected;
+       }
+
+       @Override
+       public boolean isIncludedSuite(String suiteName) {
+               return this.suites.containsKey(suiteName);
+       }
+
+       private CaseNumCounter getCaseCounter() {
+               CaseNumCounter counter = new CaseNumCounter();
+               for (TctTestSuite suite : this.suites.values()) {
+                       if (ExecuteType.ALL == this.eType) {
+                               counter.addAutoNum(suite.getAuto_num());
+                               counter.addManual(suite.getManual_num());
+                       } else if (ExecuteType.AUTO == this.eType) {
+                               counter.addAutoNum(suite.getAuto_num());
+                       } else {
+                               counter.addManual(suite.getManual_num());
+                       }
+                       int length = suite.getName().length();
+                       length += ("()" + suite.getAuto_num()).length();
+                       if (counter.getMax_length() < length) {
+                               counter.setMax_length(length);
+                       }
+               }
+               return counter;
+       }
+
+       @Override
+       public Vector toRunPageTreeNodes() {
+               CaseNumCounter counter = this.getCaseCounter();
+
+               List<TreeNodeUserObject> auto_nodes = new ArrayList<TreeNodeUserObject>();
+               List<TreeNodeUserObject> manual_nodes = new ArrayList<TreeNodeUserObject>();
+
+               String[] sortedSuites = this.suites.keySet().toArray(
+                               new String[this.suites.keySet().size()]);
+               Arrays.sort(sortedSuites);
+
+               for (String suiteName : sortedSuites) {
+                       TctTestSuite suite = this.suites.get(suiteName);
+                       if (ExecuteType.ALL == this.eType) {
+                               if (suite.getAuto_num() > 0) {
+                                       auto_nodes.add(new TreeNodeUserObject(suiteName, suite
+                                                       .getAuto_num(), ExecuteType.AUTO));
+                               }
+                               if (suite.getManual_num() > 0) {
+                                       manual_nodes.add(new TreeNodeUserObject(suiteName, suite
+                                                       .getManual_num(), ExecuteType.MANUAL));
+                               }
+                       } else if (ExecuteType.AUTO == this.eType) {
+                               if (suite.getAuto_num() > 0) {
+                                       auto_nodes.add(new TreeNodeUserObject(suiteName, suite
+                                                       .getAuto_num(), ExecuteType.AUTO));
+                               }
+                       } else {
+                               if (suite.getManual_num() > 0) {
+                                       manual_nodes.add(new TreeNodeUserObject(suiteName, suite
+                                                       .getManual_num(), ExecuteType.MANUAL));
+                               }
+                       }
+               }
+               Vector<Object> autoVestor = new NamedVector(Constants.AUTO_NODE_STR
+                               + counter.getAuto_num() + ")", 2,
+                               auto_nodes.toArray(new TreeNodeUserObject[auto_nodes.size()]));
+               Vector<Object> manualVestor = new NamedVector(
+                               Constants.MANUAL_NODE_STR + counter.getManual_num() + ")",
+                               2,
+                               manual_nodes.toArray(new TreeNodeUserObject[manual_nodes.size()]));
+               Object rootNodes[] = { autoVestor, manualVestor };
+               Vector<Object> rootVector = new NamedVector("Total: (" + counter.getTotalNum()
+                               + ")", 1, rootNodes);
+               rootVector = new NamedVector("Root", 0, new Object[] { rootVector });
+
+               return rootVector;
+       }
+
+       @Override
+       public void overridePlan(ExecuteType eType, List<String> suiteNames) {
+               this.eType = eType;
+               this.suites.clear();
+               this.counter = new ExecuteCounter(eType);
+               FullTctSuites fullSuites = null;
+               try {
+                       fullSuites = FullTctSuites.extractSuiteFromPackageLists();
+                       for (String suiteName : suiteNames) {
+                               TctTestSuite suite = fullSuites.getSuite(suiteName);
+                               this.suites.put(suite.getName(), suite);
+                       }
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (InterruptedException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+       @Override
+       public boolean isChanged(ExecuteType eType, List<String> suiteNames) {
+               boolean isChanged = (this.eType != eType);
+               if (!isChanged) {
+                       isChanged = (suiteNames.size() != this.suites.size());
+               }
+               if (!isChanged) {
+                       for (String suiteName : suiteNames) {
+                               if (!this.suites.containsKey(suiteName)) {
+                                       isChanged = true;
+                                       break;
+                               }
+                       }
+               }
+               return isChanged;
+       }
+
+       private Testplan toJaxbObject() {
+               ObjectFactory factory = new ObjectFactory();
+               Testplan planType = factory.createTestplan();
+               planType.setExecuteType(eType.toPlanXml());
+               planType.setName(this.name);
+               for (TctTestSuite suite : this.suites.values()) {
+                       planType.getSuite().add(suite.toJaxbObject());
+               }
+               return planType;
+       }
+
+       @Override
+       public void serializeStatus(String resultFolder) {
+               try {
+                       Constants
+                                       .writeObjIntoXml(
+                                                       new File(resultFolder + File.separator
+                                                                       + Constants.PLAN_STATUS_NAME),
+                                                       STATUS_JAXB_CLASS,
+                                                       this.counter.toJaxbObject(
+                                                                       this.name,
+                                                                       this.getFilteredSortedSuiteNames(ExecuteType.AUTO),
+                                                                       this.getFilteredSortedSuiteNames(ExecuteType.MANUAL)),
+                                                       null);
+               } catch (FileNotFoundException e) {
+                       e.printStackTrace();
+               } catch (JAXBException e) {
+                       e.printStackTrace();
+               } catch (XMLStreamException e) {
+                       e.printStackTrace();
+               }
+       }
+
+       @Override
+       public void prepareReport(String resultFolder) {
+               SummaryGenerator.deployStyle(resultFolder);
+               ResultMerger.mergeResult(resultFolder, this);
+               SummaryGenerator.generateSummary(resultFolder, this);
+       }
+
+       @Override
+       public void writeObjectIntoXml(String filename) throws IOException,
+                       JAXBException, XMLStreamException {
+               Constants.writeObjIntoXml(new File(Constants.PLAN_REPOSITORY
+                               + File.separator + filename), Testplan.class,
+                               this.toJaxbObject(), null);
+       }
+
+       @Override
+       public String getName() {
+               return name;
+       }
+
+       @Override
+       public void setName(String name) {
+               this.name = name;
+       }
+
+       @Override
+       public ExecuteType geteType() {
+               return eType;
+       }
+
+       @Override
+       public void seteType(ExecuteType eType) {
+               this.eType = eType;
+       }
+
+       @Override
+       public boolean isCanceled() {
+               return canceled;
+       }
+
+       @Override
+       public void setCanceled(boolean canceled) {
+               this.canceled = canceled;
+       }
+
+       @Override
+       public void resetCounter() {
+               this.counter = new ExecuteCounter(this.eType);
+       }
+
+       @Override
+       public String toString() {
+               StringBuffer sb = new StringBuffer();
+               sb.append("\n[Plan]:").append(this.name).append("\n{\n");
+               sb.append("[Class]:").append(this.getClass()).append("\n");
+               sb.append("[ExecuteType]:").append(this.eType).append("\n");
+               sb.append("[Suites]:").append(this.suites.keySet()).append("\n}\n");
+               return sb.toString();
+       }
+
+       class ExecuteCounter {
+
+               private List<String> executedAutoSuites;
+
+               private List<String> executedManualSuites;
+
+               private ExecuteType eType;
+
+               ExecuteCounter(ExecuteType eType) {
+                       this.eType = eType;
+                       executedAutoSuites = new ArrayList<String>();
+                       executedManualSuites = new ArrayList<String>();
+               }
+
+               void addExecutedAutoSuite(String suiteName) {
+                       if (null != suiteName) {
+                               this.executedAutoSuites.add(suiteName);
+                       }
+               }
+
+               void addExecutedManualSuite(String suiteName) {
+                       if (null != suiteName) {
+                               this.executedManualSuites.add(suiteName);
+                       }
+               }
+
+               List<String> getExecutedAutoSuite() {
+                       return Collections.unmodifiableList(this.executedAutoSuites);
+               }
+
+               List<String> getExecutedManualSuite() {
+                       return Collections.unmodifiableList(this.executedManualSuites);
+               }
+
+               List<String> filterExecutedSuites(String[] suites, List<String> executed) {
+                       List<String> tmp = new ArrayList<String>();
+                       if (null != suites && suites.length > executed.size()) {
+                               for (String suiteName : suites) {
+                                       if (!executed.contains(suiteName)) {
+                                               tmp.add(suiteName);
+                                       }
+                               }
+                       }
+                       return tmp;
+               }
+
+               PlanStatus toJaxbObject(String planName, String[] autoSuites,
+                               String[] manualSuites) {
+                       org.tizen.tct.tool.mgr.jaxb.planstatus.ObjectFactory factory = new org.tizen.tct.tool.mgr.jaxb.planstatus.ObjectFactory();
+                       PlanStatus status = factory.createPlanStatus();
+                       status.setName(planName);
+                       status.setExecuteType(this.eType.toString());
+                       TasksType auto = factory.createTasksType();
+                       TasksType manual = factory.createTasksType();
+
+                       if (this.eType.contain(ExecuteType.AUTO)) {
+                               auto.getExecuted().addAll(executedAutoSuites);
+                               auto.getExecuting().addAll(
+                                               this.filterExecutedSuites(autoSuites,
+                                                               this.executedAutoSuites));
+                       }
+
+                       if (this.eType.contain(ExecuteType.MANUAL)) {
+                               manual.getExecuted().addAll(executedManualSuites);
+                               manual.getExecuting().addAll(
+                                               this.filterExecutedSuites(manualSuites,
+                                                               this.executedManualSuites));
+                       }
+
+                       status.setAutoTasks(auto);
+                       status.setManualTasks(manual);
+                       return status;
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.java b/src/org/tizen/tct/tool/mgr/model/plan/EditManualTctTestPlan.java
new file mode 100644 (file)
index 0000000..a8045a2
--- /dev/null
@@ -0,0 +1,249 @@
+package org.tizen.tct.tool.mgr.model.plan;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.Vector;
+
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.planstatus.PlanStatus;
+import org.tizen.tct.tool.mgr.lite.util.ResultMerger;
+import org.tizen.tct.tool.mgr.lite.util.SummaryGenerator;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class EditManualTctTestPlan implements TctTestPlan {
+
+       private PlanStatus status;
+
+       private List<String> originAutoSuites;
+
+       private List<String> originManualSuites;
+
+       private Set<String> originAllSuites;
+
+       private TctTestPlan defaultPlan;
+       
+       private String resultFolder;
+
+       protected EditManualTctTestPlan(TctTestPlan defaultPlan, String resultFolder) {
+               this.defaultPlan = defaultPlan;
+               this.resultFolder = resultFolder;
+               this.loadStatus();
+       }
+
+       private void loadStatus() {
+               if (null == this.status) {
+                       this.status = TctResultReport.loadPlanStatus(new File(this.resultFolder
+                                       + File.separator + Constants.PLAN_STATUS_NAME));
+                       this.originAutoSuites = new ArrayList<String>();
+                       this.originAutoSuites.addAll(this.status.getAutoTasks()
+                                       .getExecuted());
+                       this.originAutoSuites.addAll(this.status.getAutoTasks()
+                                       .getExecuting());
+
+                       this.originManualSuites = new ArrayList<String>();
+                       this.originManualSuites.addAll(this.status.getManualTasks()
+                                       .getExecuted());
+                       this.originManualSuites.addAll(this.status.getManualTasks()
+                                       .getExecuting());
+
+                       this.originAllSuites = new HashSet<String>();
+                       this.originAllSuites.addAll(this.originAutoSuites);
+                       this.originAllSuites.addAll(this.originManualSuites);
+               }
+       }
+
+       @Override
+       public String getOriginPlanName() {
+               return this.status.getName();
+       }
+
+       @Override
+       public List<String> getAutoSuiteNames() {
+               return this.originAutoSuites;
+       }
+
+       @Override
+       public List<String> getManualSuiteNames() {
+               return this.originManualSuites;
+       }
+
+       @Override
+       public void serializeStatus(String resultFolder) {
+               // Do nothing
+       }
+
+       @Override
+       public Set<String> getAllSuiteNames() {
+               return this.originAllSuites;
+       }
+
+       @Override
+       public ExecuteType geteType() {
+               return ExecuteType.createExecuteType(this.status.getExecuteType());
+       }
+
+       @Override
+       public TctTestSuite getSuiteForAutoExecute(String suiteName,
+                       String executedSuite) {
+               return this.defaultPlan
+                               .getSuiteForAutoExecute(suiteName, executedSuite);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForManualExecute(String suiteName,
+                       String executedSuite) {
+               return this.defaultPlan.getSuiteForManualExecute(suiteName,
+                               executedSuite);
+       }
+
+       @Override
+       public void setLastAutoSuite(String executedSuite) {
+               this.defaultPlan.setLastAutoSuite(executedSuite);
+       }
+
+       @Override
+       public void setLastManualSuite(String executedSuite) {
+               this.defaultPlan.setLastManualSuite(executedSuite);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForManualInstall(String suiteName) {
+               return this.defaultPlan.getSuiteForManualInstall(suiteName);
+       }
+
+       @Override
+       public void uninstallManualSuites() {
+               this.defaultPlan.uninstallManualSuites();
+       }
+
+       @Override
+       public void stopRunningSuite() {
+               this.defaultPlan.stopRunningSuite();
+       }
+
+       @Override
+       public String[] getAutoSortedSuiteNames() {
+               return this.defaultPlan.getAutoSortedSuiteNames();
+       }
+
+       @Override
+       public String[] getManuSortedSuiteNames() {
+               return this.defaultPlan.getManuSortedSuiteNames();
+       }
+
+       @Override
+       public boolean containExecutingManualSuite() {
+               return this.defaultPlan.containExecutingManualSuite();
+       }
+
+       @Override
+       public int getSuitTasksNum() {
+               return this.defaultPlan.getSuitTasksNum();
+       }
+
+       @Override
+       public int getAutoSuitTasksNum() {
+               return this.defaultPlan.getAutoSuitTasksNum();
+       }
+
+       @Override
+       public boolean isSelected() {
+               return this.defaultPlan.isSelected();
+       }
+
+       @Override
+       public void setSelected(boolean selected) {
+               this.defaultPlan.setSelected(selected);
+       }
+
+       @Override
+       public boolean isIncludedSuite(String suiteName) {
+               return this.defaultPlan.isIncludedSuite(suiteName);
+       }
+
+       @Override
+       public Vector toRunPageTreeNodes() {
+               return this.defaultPlan.toRunPageTreeNodes();
+       }
+
+       @Override
+       public void overridePlan(ExecuteType eType, List<String> suiteNames) {
+               this.defaultPlan.overridePlan(eType, suiteNames);
+       }
+
+       @Override
+       public boolean isChanged(ExecuteType eType, List<String> suiteNames) {
+               return this.defaultPlan.isChanged(eType, suiteNames);
+       }
+
+       @Override
+       public void prepareReport(String resultFolder) {
+               ResultMerger.mergeResult(resultFolder, this);
+               SummaryGenerator.generateSummary(resultFolder, this);
+       }
+
+       @Override
+       public void writeObjectIntoXml(String filename) throws IOException,
+                       JAXBException, XMLStreamException {
+               this.defaultPlan.writeObjectIntoXml(filename);
+       }
+
+       @Override
+       public String getName() {
+               return this.defaultPlan.getName();
+       }
+
+       @Override
+       public void setName(String name) {
+               this.defaultPlan.setName(name);
+       }
+
+       @Override
+       public void seteType(ExecuteType eType) {
+               this.defaultPlan.seteType(eType);
+       }
+
+       @Override
+       public boolean isCanceled() {
+               return this.defaultPlan.isCanceled();
+       }
+
+       @Override
+       public void setCanceled(boolean canceled) {
+               this.defaultPlan.setCanceled(canceled);
+       }
+
+       @Override
+       public boolean containExecutingAutoSuite() {
+               return false;
+       }
+
+       @Override
+       public void resetCounter() {
+               this.defaultPlan.resetCounter();
+       }
+
+       @Override
+       public String toString() {
+               StringBuffer sb = new StringBuffer();
+               sb.append("\n[Plan]:").append(this.getName()).append("\n{\n");
+               sb.append("[Class]:").append(this.getClass()).append("\n");
+               sb.append("[ExecuteType]:").append(this.geteType()).append("\n");
+               sb.append("[Suites]:").append(this.originManualSuites).append("\n}\n");
+               return sb.toString();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.java b/src/org/tizen/tct/tool/mgr/model/plan/FullTctSuites.java
new file mode 100644 (file)
index 0000000..8f00f7b
--- /dev/null
@@ -0,0 +1,296 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.plan;
+
+import java.io.BufferedReader;
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.Writer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.stream.XMLStreamException;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.plan.ObjectFactory;
+import org.tizen.tct.tool.mgr.jaxb.plan.SuiteType;
+import org.tizen.tct.tool.mgr.jaxb.plan.Testplan;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class FullTctSuites {
+
+       private static final Logger logger = Logger.getLogger(FullTctSuites.class);
+
+       private Map<String, TctTestSuite> suites = new HashMap<String, TctTestSuite>();
+
+       private static FullTctSuites instance = null;
+
+       /**
+        * 
+        */
+       private FullTctSuites() {
+
+       }
+
+       public Collection<TctTestSuite> getSuites() {
+               return Collections.unmodifiableCollection(this.suites.values());
+       }
+
+       public Collection<TctTestSuite> getSuites(ExecuteType et) {
+               Collection<TctTestSuite> filteredSuites = null;
+               if (null == et || ExecuteType.ALL == et) {
+                       filteredSuites = this.getSuites();
+               } else {
+                       filteredSuites = new ArrayList<TctTestSuite>();
+                       for (TctTestSuite suite : this.suites.values()) {
+                               if ((ExecuteType.AUTO == et && suite.getAuto_num() > 0)
+                                               || (ExecuteType.MANUAL == et && suite.getManual_num() > 0)) {
+                                       filteredSuites.add(suite);
+                               }
+                       }
+               }
+               return filteredSuites;
+       }
+
+       private TctTestSuite[] getSortedFilteredSuiteArray(ExecuteType et) {
+               Collection<TctTestSuite> filteredSuites = getSuites(et);
+               TctTestSuite[] sortedFilteredSuites = filteredSuites
+                               .toArray(new TctTestSuite[filteredSuites.size()]);
+               Arrays.sort(sortedFilteredSuites);
+               return sortedFilteredSuites;
+       }
+
+       public Object[][] exportToTableRowData(TctTestPlan plan, ExecuteType et) {
+               TctTestSuite[] suiteArray = this.getSortedFilteredSuiteArray(et);
+               Object[][] rows = new Object[suiteArray.length][];
+
+               for (int i = 0; i < suiteArray.length; i++) {
+                       rows[i] = suiteArray[i].toRowData(plan);
+               }
+               return rows;
+       }
+
+       public void writeSuiteList() throws FileNotFoundException, JAXBException,
+                       XMLStreamException {
+               File packageList = new File(Constants.SUITES_REPOSITORY + File.separator
+                               + Constants.PACKAGE_LIST);
+               Constants.writeObjIntoXml(packageList, Testplan.class,
+                               this.toJaxbObject(), null);
+       }
+
+       private Object toJaxbObject() {
+               ObjectFactory factory = new ObjectFactory();
+               Testplan planType = factory.createTestplan();
+
+               for (TctTestSuite suite : this.suites.values()) {
+                       planType.getSuite().add(suite.toJaxbObject());
+               }
+               return planType;
+       }
+
+       public static synchronized FullTctSuites extractSuiteFromPackageLists()
+                       throws IOException, InterruptedException {
+               logger.debug("Entering FullTctSuites.extractSuiteFromPackageLists()");
+               if (null == instance) {
+                       instance = new FullTctSuites();
+                       logger.debug("Initialing FullTctSuites instance.");
+                       File packageList = new File(Constants.SUITES_REPOSITORY
+                                       + File.separator + Constants.PACKAGE_LIST);
+                       if (packageList.exists()) {
+                               logger.info("Package list is existed, Loading");
+                               Testplan jaxb_plan = null;
+                               try {
+                                       JAXBContext context = JAXBContext
+                                                       .newInstance(Testplan.class);
+                                       Unmarshaller um = context.createUnmarshaller();
+                                       jaxb_plan = (Testplan) um.unmarshal(new FileInputStream(
+                                                       packageList));
+                               } catch (JAXBException e) {
+                                       e.printStackTrace();
+                               }
+
+                               instance.suites.clear();
+                               if (null != jaxb_plan) {
+                                       for (SuiteType jaxb_suite : jaxb_plan.getSuite()) {
+                                               TctTestSuite suite = new TctTestSuite(jaxb_suite);
+                                               instance.suites.put(suite.getName(), suite);
+                                       }
+                               }
+                               logger.info(instance.suites.size() + " suites are loaded");
+                       } else {
+                               logger.info("Package list is not existed.");
+                               instance.analysisSuites(Constants.SUITES_REPOSITORY);
+                       }
+               }
+               return instance;
+       }
+
+       public TctTestSuite getSuite(String suiteName) {
+               return this.suites.get(suiteName);
+       }
+
+       private void extractSuites() throws FileNotFoundException {
+               logger.debug("Entering extractSuites()");
+               File folder = new File(Constants.TMP_EXTRACT_FOLDER);
+               for (File file : FileUtils.listFiles(folder, new String[] { "xml" },
+                               true)) {
+                       String pkg_name = file.getParentFile().getName();
+                       String name = file.getName();
+                       if (Constants.DEFINITION_XML.equals(name)) {
+                               TctTestSuite suite = TctTestSuite.createTctTestSuite(file,
+                                               pkg_name);
+                               this.suites.put(suite.getName(), suite);
+                               logger.debug("Loading suite '" + suite.getName() + "'");
+                       }
+               }
+               logger.info(this.suites);
+       }
+
+       public void analysisSuites(String suiteRepo) {
+               try {
+                       this.extractZips(suiteRepo);
+                       this.extractSuites();
+                       this.cleanTmpExtractFolder();
+               } catch (IOException e) {
+                       e.printStackTrace();
+               } catch (InterruptedException e) {
+                       e.printStackTrace();
+               }
+       }
+
+       private void cleanTmpExtractFolder() throws IOException {
+               FileUtils.deleteDirectory(new File(Constants.TMP_EXTRACT_FOLDER));
+       }
+
+       private void extractZips(String packageRepo) throws IOException,
+                       InterruptedException {
+               logger.debug("Entering extractZips(packageRepo = " + packageRepo + ")");
+               logger.info("Start to extract suite package...");
+               File folder = new File(packageRepo);
+               File[] listOfFiles = folder.listFiles();
+
+               File target = new File(Constants.TMP_EXTRACT_FOLDER);
+               if (!target.exists()) {
+                       target.mkdirs();
+               }
+
+               String command = "";
+
+               if (null != listOfFiles) {
+                       for (File file : listOfFiles) {
+                               if (file.isFile()
+                                               && file.getName().endsWith(Constants.PKG_SUFFIX)) {
+                                       command += "unzip " + file.getAbsolutePath() + "\n";
+                               }
+                       }
+                       writeExtractCmd(Constants.EXTRACT_CMD, command,
+                                       Constants.TMP_EXTRACT_FOLDER);
+                       logger.debug("The command for extracting suite packages:\n"
+                                       + command);
+
+                       executeExtractCmd(target);
+
+               } else {
+                       logger.info("The suite folder is empty, no test-suite package is found!");
+               }
+       }
+
+       /**
+        * 
+        * @param rpmRepo
+        * @throws IOException
+        * @throws InterruptedException
+        * @deprecated
+        */
+       private void extractRpms(String rpmRepo) throws IOException,
+                       InterruptedException {
+               File folder = new File(rpmRepo);
+               File[] listOfFiles = folder.listFiles();
+
+               File target = new File(Constants.TMP_EXTRACT_FOLDER);
+               if (!target.exists()) {
+                       target.mkdirs();
+               }
+
+               String command = "";
+
+               if (null != listOfFiles) {
+                       for (File file : listOfFiles) {
+                               if (file.isFile() && file.getName().endsWith(".rpm")) {
+                                       command += "rpm2cpio " + file.getAbsolutePath()
+                                                       + " | cpio -idmv\n";
+                               }
+                       }
+                       writeExtractCmd(Constants.EXTRACT_CMD, command,
+                                       Constants.TMP_EXTRACT_FOLDER);
+
+                       executeExtractCmd(target);
+
+               } else {
+                       System.out
+                                       .println("The suite folder is empty, no test-suite package is found!");
+               }
+       }
+
+       private void executeExtractCmd(File target) throws IOException,
+                       InterruptedException {
+               logger.debug("Entering executeExtractCmd(), target:"
+                               + target.getAbsolutePath());
+               List<String> commands = new ArrayList<String>();
+               commands.add(Constants.TMP_EXTRACT_FOLDER + Constants.EXTRACT_CMD);
+
+               logger.info("Executing command: " + commands);
+               ProcessBuilder pb = new ProcessBuilder(commands);
+               pb.directory(target);
+               pb.redirectErrorStream(true);
+               Process process = pb.start();
+
+               // Read output
+               StringBuilder out = new StringBuilder();
+               BufferedReader br = new BufferedReader(new InputStreamReader(
+                               process.getInputStream()));
+               String line = null, previous = null;
+               while ((line = br.readLine()) != null)
+                       if (!line.equals(previous)) {
+                               previous = line;
+                               out.append(line).append('\n');
+                               System.out.println(line);
+                       }
+
+               // Check result
+               if (process.waitFor() == 0)
+                       logger.info("Success!");
+       }
+
+       private void writeExtractCmd(String fileName, String command,
+                       String targetFolder) throws IOException {
+               Writer output = new BufferedWriter(new FileWriter(fileName));
+               output.write(command);
+               output.close();
+               FileUtils.deleteDirectory(new File(targetFolder));
+               FileUtils.moveFileToDirectory(new File(fileName),
+                               new File(targetFolder), true);
+               Runtime.getRuntime().exec("chmod u+x " + targetFolder + fileName);
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.java b/src/org/tizen/tct/tool/mgr/model/plan/RerunTctTestPlan.java
new file mode 100644 (file)
index 0000000..3f8ec14
--- /dev/null
@@ -0,0 +1,213 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.plan;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Set;
+import java.util.Vector;
+
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.lite.util.ResultMerger;
+import org.tizen.tct.tool.mgr.lite.util.SummaryGenerator;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class RerunTctTestPlan implements TctTestPlan {
+
+       private TctTestPlan defaultPlan;
+
+       protected RerunTctTestPlan(TctTestPlan defaultPlan) {
+               this.defaultPlan = defaultPlan;
+       }
+
+       @Override
+       public void prepareReport(String resultFolder) {
+               ResultMerger.mergeRerunResult(resultFolder, this);
+               ResultMerger.mergeResult(resultFolder, this);
+               SummaryGenerator.generateSummary(resultFolder, this);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForAutoExecute(String suiteName,
+                       String executedSuite) {
+               return this.defaultPlan
+                               .getSuiteForAutoExecute(suiteName, executedSuite);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForManualExecute(String suiteName,
+                       String executedSuite) {
+               return this.defaultPlan.getSuiteForManualExecute(suiteName,
+                               executedSuite);
+       }
+
+       @Override
+       public String getOriginPlanName() {
+               return this.defaultPlan.getOriginPlanName();
+       }
+
+       @Override
+       public Set<String> getAllSuiteNames() {
+               return this.defaultPlan.getAllSuiteNames();
+       }
+
+       @Override
+       public List<String> getAutoSuiteNames() {
+               return this.defaultPlan.getAutoSuiteNames();
+       }
+
+       @Override
+       public List<String> getManualSuiteNames() {
+               return this.defaultPlan.getManualSuiteNames();
+       }
+
+       @Override
+       public void serializeStatus(String resultFolder) {
+               // do nothing
+       }
+
+       @Override
+       public ExecuteType geteType() {
+               return this.defaultPlan.geteType();
+       }
+
+       @Override
+       public void setLastAutoSuite(String executedSuite) {
+               this.defaultPlan.setLastAutoSuite(executedSuite);
+       }
+
+       @Override
+       public void setLastManualSuite(String executedSuite) {
+               this.defaultPlan.setLastManualSuite(executedSuite);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForManualInstall(String suiteName) {
+               return this.defaultPlan.getSuiteForManualInstall(suiteName);
+       }
+
+       @Override
+       public void uninstallManualSuites() {
+               this.defaultPlan.uninstallManualSuites();
+       }
+
+       @Override
+       public void stopRunningSuite() {
+               this.defaultPlan.stopRunningSuite();
+       }
+
+       @Override
+       public String[] getAutoSortedSuiteNames() {
+               return this.defaultPlan.getAutoSortedSuiteNames();
+       }
+
+       @Override
+       public String[] getManuSortedSuiteNames() {
+               return this.defaultPlan.getManuSortedSuiteNames();
+       }
+
+       @Override
+       public boolean containExecutingManualSuite() {
+               return this.defaultPlan.containExecutingManualSuite();
+       }
+
+       @Override
+       public int getSuitTasksNum() {
+               return this.defaultPlan.getSuitTasksNum();
+       }
+
+       @Override
+       public int getAutoSuitTasksNum() {
+               return this.defaultPlan.getAutoSuitTasksNum();
+       }
+
+       @Override
+       public boolean isSelected() {
+               return this.defaultPlan.isSelected();
+       }
+
+       @Override
+       public void setSelected(boolean selected) {
+               this.defaultPlan.setSelected(selected);
+       }
+
+       @Override
+       public boolean isIncludedSuite(String suiteName) {
+               return this.defaultPlan.isIncludedSuite(suiteName);
+       }
+
+       @Override
+       public Vector toRunPageTreeNodes() {
+               return this.defaultPlan.toRunPageTreeNodes();
+       }
+
+       @Override
+       public void overridePlan(ExecuteType eType, List<String> suiteNames) {
+               this.defaultPlan.overridePlan(eType, suiteNames);
+       }
+
+       @Override
+       public boolean isChanged(ExecuteType eType, List<String> suiteNames) {
+               return this.defaultPlan.isChanged(eType, suiteNames);
+       }
+
+       @Override
+       public void writeObjectIntoXml(String filename) throws IOException,
+                       JAXBException, XMLStreamException {
+               this.defaultPlan.writeObjectIntoXml(filename);
+       }
+
+       @Override
+       public String getName() {
+               return this.defaultPlan.getName();
+       }
+
+       @Override
+       public void setName(String name) {
+               this.defaultPlan.setName(name);
+       }
+
+       @Override
+       public void seteType(ExecuteType eType) {
+               this.defaultPlan.seteType(eType);
+       }
+
+       @Override
+       public boolean isCanceled() {
+               return this.defaultPlan.isCanceled();
+       }
+
+       @Override
+       public void setCanceled(boolean canceled) {
+               this.defaultPlan.setCanceled(canceled);
+       }
+
+       @Override
+       public boolean containExecutingAutoSuite() {
+               return this.defaultPlan.containExecutingAutoSuite();
+       }
+
+       @Override
+       public void resetCounter() {
+               this.defaultPlan.resetCounter();                
+       }
+
+       @Override
+       public String toString() {
+               StringBuffer sb = new StringBuffer();
+               sb.append("\n[Plan]:").append(this.getName()).append("\n{\n");
+               sb.append("[Class]:").append(this.getClass()).append("\n");
+               sb.append("[ExecuteType]:").append(this.geteType()).append("\n");
+               sb.append("[Suites]:").append(this.getAllSuiteNames()).append("\n}\n");
+               return sb.toString();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.java b/src/org/tizen/tct/tool/mgr/model/plan/ResumeTctTestPlan.java
new file mode 100644 (file)
index 0000000..6a8426a
--- /dev/null
@@ -0,0 +1,246 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.plan;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Set;
+import java.util.Vector;
+
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.lite.util.ResultMerger;
+import org.tizen.tct.tool.mgr.lite.util.SummaryGenerator;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class ResumeTctTestPlan implements TctTestPlan {
+
+       private TctTestPlan defaultPlan;
+
+       private TctResultReport report;
+
+       protected ResumeTctTestPlan(TctTestPlan defaultPlan, TctResultReport report) {
+               this.defaultPlan = defaultPlan;
+               this.report = report;
+               String executedSuite = null;
+               for (String suite : this.report.getExecutedAutos()) {
+                       this.getSuiteForAutoExecute(suite, executedSuite);
+                       executedSuite = suite;
+               }
+               this.setLastAutoSuite(executedSuite);
+               executedSuite = null;
+               for (String suite : this.report.getExecutedManuals()) {
+                       this.getSuiteForManualExecute(suite, executedSuite);
+                       executedSuite = suite;
+               }
+               this.setLastManualSuite(executedSuite);
+       }
+
+       @Override
+       public void prepareReport(String resultFolder) {
+               ResultMerger.mergeResult(resultFolder, this);
+               SummaryGenerator.generateSummary(resultFolder, this);
+       }
+
+       @Override
+       public boolean containExecutingManualSuite() {
+               return !this.report.getTodoManualSuites().isEmpty();
+       }
+
+       @Override
+       public boolean containExecutingAutoSuite() {
+               return !this.report.getTodoAutoSuites().isEmpty();
+       }
+
+       @Override
+       public String[] getAutoSortedSuiteNames() {
+               Set<String> todoSuiteNames = this.report.getTodoAutoSuites();
+               String[] suiteNames = {};
+               if (null != todoSuiteNames && !todoSuiteNames.isEmpty()) {
+                       suiteNames = todoSuiteNames.toArray(new String[todoSuiteNames
+                                       .size()]);
+                       Arrays.sort(suiteNames);
+               }
+               return suiteNames;
+       }
+
+       @Override
+       public String[] getManuSortedSuiteNames() {
+               Set<String> todoSuiteNames = this.report.getTodoManualSuites();
+               String[] suiteNames = {};
+               if (null != todoSuiteNames && !todoSuiteNames.isEmpty()) {
+                       suiteNames = todoSuiteNames.toArray(new String[todoSuiteNames
+                                       .size()]);
+                       Arrays.sort(suiteNames);
+               }
+               return suiteNames;
+       }
+
+       @Override
+       public int getSuitTasksNum() {
+               return this.report.getTodoAutoSuites().size()
+                               + this.report.getTodoManualSuites().size();
+       }
+
+       @Override
+       public int getAutoSuitTasksNum() {
+               return this.report.getTodoAutoSuites().size();
+       }
+
+       // By default
+       @Override
+       public void serializeStatus(String resultFolder) {
+               this.defaultPlan.serializeStatus(resultFolder);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForAutoExecute(String suiteName,
+                       String executedSuite) {
+               return this.defaultPlan
+                               .getSuiteForAutoExecute(suiteName, executedSuite);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForManualExecute(String suiteName,
+                       String executedSuite) {
+               return this.defaultPlan.getSuiteForManualExecute(suiteName,
+                               executedSuite);
+       }
+
+       @Override
+       public String getOriginPlanName() {
+               return this.defaultPlan.getOriginPlanName();
+       }
+
+       @Override
+       public Set<String> getAllSuiteNames() {
+               return this.defaultPlan.getAllSuiteNames();
+       }
+
+       @Override
+       public List<String> getAutoSuiteNames() {
+               return this.defaultPlan.getAutoSuiteNames();
+       }
+
+       @Override
+       public List<String> getManualSuiteNames() {
+               return this.defaultPlan.getManualSuiteNames();
+       }
+
+       @Override
+       public ExecuteType geteType() {
+               return this.defaultPlan.geteType();
+       }
+
+       @Override
+       public void setLastAutoSuite(String executedSuite) {
+               this.defaultPlan.setLastAutoSuite(executedSuite);
+       }
+
+       @Override
+       public void setLastManualSuite(String executedSuite) {
+               this.defaultPlan.setLastManualSuite(executedSuite);
+       }
+
+       @Override
+       public TctTestSuite getSuiteForManualInstall(String suiteName) {
+               return this.defaultPlan.getSuiteForManualInstall(suiteName);
+       }
+
+       @Override
+       public void uninstallManualSuites() {
+               this.defaultPlan.uninstallManualSuites();
+       }
+
+       @Override
+       public void stopRunningSuite() {
+               this.defaultPlan.stopRunningSuite();
+       }
+
+       @Override
+       public boolean isSelected() {
+               return this.defaultPlan.isSelected();
+       }
+
+       @Override
+       public void setSelected(boolean selected) {
+               this.defaultPlan.setSelected(selected);
+       }
+
+       @Override
+       public boolean isIncludedSuite(String suiteName) {
+               return this.defaultPlan.isIncludedSuite(suiteName);
+       }
+
+       @Override
+       public Vector toRunPageTreeNodes() {
+               return this.defaultPlan.toRunPageTreeNodes();
+       }
+
+       @Override
+       public void overridePlan(ExecuteType eType, List<String> suiteNames) {
+               this.defaultPlan.overridePlan(eType, suiteNames);
+       }
+
+       @Override
+       public boolean isChanged(ExecuteType eType, List<String> suiteNames) {
+               return this.defaultPlan.isChanged(eType, suiteNames);
+       }
+
+       @Override
+       public void writeObjectIntoXml(String filename) throws IOException,
+                       JAXBException, XMLStreamException {
+               this.defaultPlan.writeObjectIntoXml(filename);
+       }
+
+       @Override
+       public String getName() {
+               return this.defaultPlan.getName();
+       }
+
+       @Override
+       public void setName(String name) {
+               this.defaultPlan.setName(name);
+       }
+
+       @Override
+       public void seteType(ExecuteType eType) {
+               this.defaultPlan.seteType(eType);
+       }
+
+       @Override
+       public boolean isCanceled() {
+               return this.defaultPlan.isCanceled();
+       }
+
+       @Override
+       public void setCanceled(boolean canceled) {
+               this.defaultPlan.setCanceled(canceled);
+       }
+
+       @Override
+       public void resetCounter() {
+               this.defaultPlan.resetCounter();
+       }
+
+       @Override
+       public String toString() {
+               StringBuffer sb = new StringBuffer();
+               sb.append("\n[Plan]:").append(this.getName()).append("\n{\n");
+               sb.append("[Class]:").append(this.getClass()).append("\n");
+               sb.append("[ExecuteType]:").append(this.geteType()).append("\n");
+               sb.append("[Suites]:").append(this.getAllSuiteNames()).append("\n}\n");
+               return sb.toString();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.java b/src/org/tizen/tct/tool/mgr/model/plan/SingleTctPlanList.java
new file mode 100644 (file)
index 0000000..8e86bbe
--- /dev/null
@@ -0,0 +1,117 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.plan;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Observable;
+
+import javax.xml.bind.JAXBException;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class SingleTctPlanList extends Observable {
+
+       private Map<String, TctTestPlan> plans = new HashMap<String, TctTestPlan>();
+
+       private TctTestPlan selectedPlan;
+
+       private static SingleTctPlanList instance = new SingleTctPlanList();
+
+       /**
+        * 
+        */
+       private SingleTctPlanList() {
+       }
+
+       public static SingleTctPlanList getInstance() {
+               return instance;
+       }
+
+       public TctTestPlan getSelectedPlan() {
+               if (null == this.selectedPlan) {
+                       return getFirstPlan();
+               } else {
+                       return this.selectedPlan;
+               }
+       }
+
+       public boolean contains(String planName) {
+               return this.plans.containsKey(planName);
+       }
+
+       public void setSelectedPlan(String planName) {
+               this.selectedPlan = this.plans.get(planName);
+       }
+
+       private TctTestPlan getFirstPlan() {
+               TctTestPlan first_plan = null;
+               if (!this.plans.isEmpty()) {
+                       String[] planNames = this.plans.keySet().toArray(
+                                       new String[this.plans.keySet().size()]);
+                       Arrays.sort(planNames);
+                       first_plan = this.plans.get(planNames[0]);
+               }
+               return first_plan;
+       }
+
+       public TctTestPlan getPlan(String planName) {
+               TctTestPlan plan = plans.get(planName);
+               if (null == plan) {
+                       plan = TctPlanFactory.createEmptyPlan();
+               }
+               return plan;
+       }
+
+       private void clearList() {
+               this.plans.clear();
+       }
+
+       public void addPlan(String name, TctTestPlan plan) {
+               this.plans.put(name, plan);
+               setChanged();
+               this.notifyObservers();
+       }
+
+       public void updatePlan(String name, TctTestPlan plan) {
+               this.plans.put(name, plan);
+       }
+
+       public String[] getPlans() {
+               String[] planNames = this.plans.keySet().toArray(
+                               new String[this.plans.keySet().size()]);
+               Arrays.sort(planNames);
+               return planNames;
+       }
+
+       public synchronized void loadPlanList(String planFolder) {
+               this.clearList();
+               File folder = new File(planFolder);
+               File[] listOfFiles = folder.listFiles();
+               if (null != listOfFiles) {
+                       for (File file : listOfFiles) {
+                               if (file.isFile() && file.getName().endsWith(".xml")) {
+                                       try {
+                                               TctTestPlan plan = TctPlanFactory
+                                                               .readObjectFromXml(file.getAbsolutePath());
+                                               this.addPlan(plan.getName(), plan);
+                                       } catch (IOException e) {
+                                               e.printStackTrace();
+                                       } catch (JAXBException e) {
+                                               e.printStackTrace();
+                                       }
+                               }
+                       }
+               } else {
+                       System.out
+                                       .println("The plan folder is empty, no test plan is found!");
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.java b/src/org/tizen/tct/tool/mgr/model/plan/TctPlanFactory.java
new file mode 100644 (file)
index 0000000..ec64b76
--- /dev/null
@@ -0,0 +1,120 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.plan;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.plan.SuiteType;
+import org.tizen.tct.tool.mgr.jaxb.plan.Testplan;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctRerunTestSuite;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.report.SuitePath;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class TctPlanFactory {
+
+       public static TctTestPlan createEditManualPlan(String planName,
+                       ExecuteType eType, List<String> suiteNames, String resultFolder) {
+               TctTestPlan plan = TctPlanFactory.createNewPlan(planName, eType,
+                               suiteNames);
+               EditManualTctTestPlan editPlan = new EditManualTctTestPlan(plan,
+                               resultFolder);
+               return editPlan;
+       }
+
+       public static TctTestPlan createResumePlan(TctResultReport report) {
+               TctTestPlan defaultPlan = TctPlanFactory.createNewPlan(
+                               report.getPlanName(), report.getEt(), report.getAllSuites());
+
+               return new ResumeTctTestPlan(defaultPlan, report);
+       }
+
+       public static TctTestPlan createRerunPlan(ExecuteType eType,
+                       Set<SuitePath> suitePaths, String resultFolder) {
+               String planName = "Rerun_known_failure";
+               List<TctTestSuite> suites = new ArrayList<TctTestSuite>();
+               for (SuitePath path : suitePaths) {
+                       try {
+                               TctTestSuite suite = TctTestSuite.createTctTestSuite(new File(
+                                               path.getSuiteRerunName()), path.getSuiteName());
+                               TctRerunTestSuite rerunSuite = TctRerunTestSuite
+                                               .createRerunSuite(suite, resultFolder);
+                               suites.add(rerunSuite);
+                       } catch (FileNotFoundException e) {
+                               e.printStackTrace();
+                       }
+               }
+
+               return new RerunTctTestPlan(new EditManualTctTestPlan(
+                               new DefaultTctTestPlan(planName, eType, suites), resultFolder));
+       }
+
+       public static TctTestPlan createEmptyPlan() {
+               return TctPlanFactory.createNewPlan(null, ExecuteType.ALL,
+                               new ArrayList<String>());
+       }
+
+       public static TctTestPlan createTempPlan(ExecuteType eType,
+                       List<String> suiteNames) {
+               return TctPlanFactory.createNewPlan(Constants.TMP_PLAN_NAME, eType,
+                               suiteNames);
+       }
+
+       public static TctTestPlan createNewPlan(String planName, ExecuteType eType,
+                       Collection<String> suiteNames) {
+               List<TctTestSuite> suites = new ArrayList<TctTestSuite>();
+               FullTctSuites fullSuites = null;
+               try {
+                       fullSuites = FullTctSuites.extractSuiteFromPackageLists();
+                       for (String suiteName : suiteNames) {
+                               suites.add(fullSuites.getSuite(suiteName));
+                       }
+               } catch (IOException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               } catch (InterruptedException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+               return new DefaultTctTestPlan(planName, eType, suites);
+       }
+
+       public static TctTestPlan readObjectFromXml(String filename)
+                       throws IOException, JAXBException {
+               DefaultTctTestPlan plan = null;
+               JAXBContext context = JAXBContext.newInstance(Testplan.class);
+               Unmarshaller um = context.createUnmarshaller();
+               Testplan jaxb_plan = (Testplan) um.unmarshal(new FileInputStream(
+                               filename));
+
+               String name = jaxb_plan.getName();
+               ExecuteType type = ExecuteType.createExecuteType(jaxb_plan
+                               .getExecuteType().value().trim());
+               List<TctTestSuite> suites = new ArrayList<TctTestSuite>();
+               for (SuiteType jaxb_suite : jaxb_plan.getSuite()) {
+                       TctTestSuite suite = new TctTestSuite(jaxb_suite);
+                       suites.add(suite);
+               }
+               plan = new DefaultTctTestPlan(name, type, suites);
+               return plan;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.java b/src/org/tizen/tct/tool/mgr/model/plan/TctTestPlan.java
new file mode 100644 (file)
index 0000000..768cab6
--- /dev/null
@@ -0,0 +1,85 @@
+package org.tizen.tct.tool.mgr.model.plan;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Set;
+import java.util.Vector;
+
+import javax.xml.bind.JAXBException;
+import javax.xml.stream.XMLStreamException;
+
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+
+public interface TctTestPlan {
+
+       String getOriginPlanName();
+
+       //For Auto and Manual Worker
+       TctTestSuite getSuiteForAutoExecute(String suiteName, String executedSuite);
+
+       TctTestSuite getSuiteForManualExecute(String suiteName, String executedSuite);
+       
+       TctTestSuite getSuiteForManualInstall(String suiteName);
+       
+       void resetCounter();
+       
+       void uninstallManualSuites();
+
+       void stopRunningSuite();
+       
+       String[] getAutoSortedSuiteNames();
+
+       String[] getManuSortedSuiteNames();
+       
+       int getSuitTasksNum();
+
+       int getAutoSuitTasksNum();
+       
+       boolean containExecutingManualSuite();
+       
+       boolean containExecutingAutoSuite();
+       
+       // for trace which suite is executed
+       void setLastAutoSuite(String executedSuite);
+
+       void setLastManualSuite(String executedSuite);
+       
+       //For handling result
+       Set<String> getAllSuiteNames();
+
+       List<String> getAutoSuiteNames();
+
+       List<String> getManualSuiteNames();
+
+       boolean isSelected();
+
+       void setSelected(boolean selected);
+
+       boolean isIncludedSuite(String suiteName);
+
+       Vector toRunPageTreeNodes();
+
+       void overridePlan(ExecuteType eType, List<String> suiteNames);
+
+       boolean isChanged(ExecuteType eType, List<String> suiteNames);
+
+       void serializeStatus(String resultFolder);
+
+       void prepareReport(String resultFolder);
+
+       void writeObjectIntoXml(String filename) throws IOException, JAXBException,
+                       XMLStreamException;
+
+       String getName();
+
+       void setName(String name);
+
+       ExecuteType geteType();
+
+       void seteType(ExecuteType eType);
+
+       boolean isCanceled();
+       
+       void setCanceled(boolean canceled);
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.java b/src/org/tizen/tct/tool/mgr/model/plan/suitetree/CategoryTreeNode.java
new file mode 100644 (file)
index 0000000..20d6f84
--- /dev/null
@@ -0,0 +1,173 @@
+package org.tizen.tct.tool.mgr.model.plan.suitetree;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Vector;
+
+import javax.swing.tree.MutableTreeNode;
+import javax.swing.tree.TreeNode;
+
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+
+public class CategoryTreeNode extends SelectableTreeNode {
+
+       private String name;
+
+       private SuiteTreeNode[] leaves;
+
+       private TreeNode parent;
+
+       public CategoryTreeNode(String name, List<SuiteTreeNode> nodes) {
+               this.name = name;
+               if (null != nodes) {
+                       this.leaves = nodes.toArray(new SuiteTreeNode[nodes.size()]);
+                       Arrays.sort(this.leaves);
+                       for (SuiteTreeNode suiteNode : this.leaves) {
+                               suiteNode.setCategoryNode(this);
+                       }
+               } else {
+                       this.leaves = null;
+               }
+       }
+
+       public boolean isSelected() {
+               boolean selected = true;
+               for (SuiteTreeNode node : this.leaves) {
+                       if (!node.isSelected()) {
+                               selected = false;
+                               break;
+                       }
+               }
+               return selected;
+       }
+
+       public void setSelected(boolean selected) {
+               for (SuiteTreeNode node : this.leaves) {
+                       node.setSelected(selected);
+               }
+       }
+
+       public void setRootNode(TreeNode root) {
+               this.parent = root;
+       }
+
+       public String getName() {
+               return name;
+       }
+
+       @Override
+       public TreeNode getChildAt(int childIndex) {
+               return null != this.leaves ? this.leaves[childIndex] : null;
+       }
+
+       @Override
+       public int getChildCount() {
+               return null != this.leaves ? this.leaves.length : 0;
+       }
+
+       @Override
+       public TreeNode getParent() {
+               return this.parent;
+       }
+
+       @Override
+       public int getIndex(TreeNode node) {
+               int index = -1;
+               int i = 0;
+               if (node instanceof SuiteTreeNode) {
+                       SuiteTreeNode other = (SuiteTreeNode) node;
+                       for (SuiteTreeNode suiteNode : this.leaves) {
+                               if (0 == suiteNode.compareTo(other)) {
+                                       index = i;
+                                       break;
+                               }
+                               i++;
+                       }
+               }
+               return index;
+       }
+
+       @Override
+       public boolean getAllowsChildren() {
+               return true;
+       }
+
+       @Override
+       public boolean isLeaf() {
+               return false;
+       }
+
+       @Override
+       public Enumeration<SuiteTreeNode> children() {
+               Vector<SuiteTreeNode> tmp = new Vector<SuiteTreeNode>();
+               for (SuiteTreeNode suiteNode : this.leaves) {
+                       tmp.add(suiteNode);
+               }
+               return tmp.elements();
+       }
+
+       @Override
+       public int hashCode() {
+               final int prime = 31;
+               int result = 1;
+               result = prime * result + ((name == null) ? 0 : name.hashCode());
+               return result;
+       }
+
+       @Override
+       public boolean equals(Object obj) {
+               if (this == obj)
+                       return true;
+               if (obj == null)
+                       return false;
+               if (getClass() != obj.getClass())
+                       return false;
+               CategoryTreeNode other = (CategoryTreeNode) obj;
+               if (name == null) {
+                       if (other.name != null)
+                               return false;
+               } else if (!name.equals(other.name))
+                       return false;
+               return true;
+       }
+
+       @Override
+       public List<SelectableTreeNode> getSelectedSuites() {
+               List<SelectableTreeNode> nodes = new ArrayList<SelectableTreeNode>();
+               for (SuiteTreeNode node : this.leaves) {
+                       List<SelectableTreeNode> tmp = node.getSelectedSuites();
+                       if (null != tmp) {
+                               nodes.addAll(tmp);
+                       }
+               }
+               return nodes;
+       }
+
+       @Override
+       public void setPlanSelected(TctTestPlan plan) {
+               for (SuiteTreeNode node : this.leaves) {
+                       node.setPlanSelected(plan);
+               }
+       }
+
+       @Override
+       public boolean containSelected() {
+               boolean contain = false;
+               for (SuiteTreeNode node : this.leaves) {
+                       if(node.isSelected()){
+                               contain = true;
+                               break;
+                       }
+               }
+               return contain;
+       }
+
+       @Override
+       public void setSuitesSelected(List<String> selectedSuites) {
+               for (SuiteTreeNode node : this.leaves) {
+                       node.setSuitesSelected(selectedSuites);
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.java b/src/org/tizen/tct/tool/mgr/model/plan/suitetree/SelectableTreeNode.java
new file mode 100644 (file)
index 0000000..b0b40bb
--- /dev/null
@@ -0,0 +1,49 @@
+package org.tizen.tct.tool.mgr.model.plan.suitetree;
+
+import java.util.List;
+
+import javax.swing.tree.MutableTreeNode;
+
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+
+public abstract class SelectableTreeNode implements MutableTreeNode {
+       
+       public abstract boolean isSelected();
+       
+       public abstract void setSelected(boolean selected);
+       
+       public abstract List<SelectableTreeNode> getSelectedSuites();
+       
+       public abstract void setPlanSelected(TctTestPlan plan);
+       
+       public abstract void setSuitesSelected(List<String> selectedSuites);
+       
+       public abstract boolean containSelected();
+       
+       public abstract String getName();
+       
+       @Override
+       public void insert(MutableTreeNode child, int index) {
+       }
+
+       @Override
+       public void remove(int index) {
+       }
+
+       @Override
+       public void remove(MutableTreeNode node) {
+       }
+
+       @Override
+       public void setUserObject(Object object) {
+       }
+
+       @Override
+       public void removeFromParent() {
+       }
+
+       @Override
+       public void setParent(MutableTreeNode newParent) {
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.java b/src/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeNode.java
new file mode 100644 (file)
index 0000000..d44d635
--- /dev/null
@@ -0,0 +1,175 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.plan.suitetree;
+
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+
+import javax.swing.tree.TreeNode;
+
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class SuiteTreeNode extends SelectableTreeNode implements
+               Comparable<SuiteTreeNode> {
+
+       private TctTestSuite suite;
+
+       private boolean selected;
+
+       private String category;
+
+       private TreeNode parent;
+
+       public TctTestSuite getSuite() {
+               return suite;
+       }
+
+       public boolean isSelected() {
+               return selected;
+       }
+
+       public void setSelected(boolean selected) {
+               this.selected = selected;
+       }
+
+       public String getCategory() {
+               return category;
+       }
+
+       public void setCategory(String category) {
+               this.category = category;
+       }
+
+       public SuiteTreeNode(TctTestSuite suite) {
+               this.suite = suite;
+               selected = false;
+               category = suite.getCategory();
+       }
+
+       public void setCategoryNode(CategoryTreeNode parent) {
+               this.parent = parent;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.tree.TreeNode#getChildAt(int)
+        */
+       @Override
+       public TreeNode getChildAt(int childIndex) {
+               // No children
+               return null;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.tree.TreeNode#getChildCount()
+        */
+       @Override
+       public int getChildCount() {
+               // No children
+               return 0;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.tree.TreeNode#getParent()
+        */
+       @Override
+       public TreeNode getParent() {
+               return parent;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.tree.TreeNode#getIndex(javax.swing.tree.TreeNode)
+        */
+       @Override
+       public int getIndex(TreeNode node) {
+               // No children
+               return -1;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.tree.TreeNode#getAllowsChildren()
+        */
+       @Override
+       public boolean getAllowsChildren() {
+               // No children
+               return false;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.tree.TreeNode#isLeaf()
+        */
+       @Override
+       public boolean isLeaf() {
+               return true;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.tree.TreeNode#children()
+        */
+       @Override
+       public Enumeration children() {
+               // No children
+               return null;
+       }
+
+       @Override
+       public int compareTo(SuiteTreeNode other) {
+               return this.suite.getName().compareTo(other.suite.getName());
+       }
+
+       @Override
+       public List<SelectableTreeNode> getSelectedSuites() {
+               if (this.isSelected()) {
+                       List<SelectableTreeNode> tmp = new ArrayList<SelectableTreeNode>();
+                       tmp.add(this);
+                       return tmp;
+               } else {
+                       return null;
+               }
+       }
+
+       @Override
+       public void setPlanSelected(TctTestPlan plan) {
+               if (plan.isIncludedSuite(this.getName())) {
+                       this.setSelected(true);
+               }
+       }
+
+       @Override
+       public String getName() {
+               return this.suite.getName();
+       }
+
+       @Override
+       public boolean containSelected() {
+               return false;
+       }
+
+       @Override
+       public void setSuitesSelected(List<String> selectedSuites) {
+               if (selectedSuites.contains(this.getName())) {
+                       this.setSelected(true);
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.java b/src/org/tizen/tct/tool/mgr/model/plan/suitetree/SuiteTreeRootNode.java
new file mode 100644 (file)
index 0000000..d5f3ed3
--- /dev/null
@@ -0,0 +1,195 @@
+package org.tizen.tct.tool.mgr.model.plan.suitetree;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Enumeration;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.TreeMap;
+import java.util.Vector;
+
+import javax.swing.tree.TreeNode;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.plan.FullTctSuites;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+
+public class SuiteTreeRootNode extends SelectableTreeNode {
+
+       private static final Logger logger = Logger
+                       .getLogger(SuiteTreeRootNode.class);
+
+       private CategoryTreeNode[] categories;
+
+       private SuiteTreeRootNode(CategoryTreeNode[] categories) {
+               this.categories = categories;
+               for (CategoryTreeNode cNode : this.categories) {
+                       cNode.setRootNode(this);
+               }
+       }
+
+       private synchronized static CategoryTreeNode[] generateCategoryNode(
+                       List<SuiteTreeNode> nodes) {
+               Map<String, List<SuiteTreeNode>> categories = new TreeMap<String, List<SuiteTreeNode>>();
+               for (SuiteTreeNode node : nodes) {
+                       if (null == node.getCategory()) {
+                               node.setCategory(Constants.UNDEFINED_CATEGORY);
+                       }
+                       if (categories.containsKey(node.getCategory())) {
+                               categories.get(node.getCategory()).add(node);
+                       } else {
+                               List<SuiteTreeNode> leaves = new ArrayList<SuiteTreeNode>();
+                               leaves.add(node);
+                               categories.put(node.getCategory(), leaves);
+                       }
+               }
+               CategoryTreeNode[] categoryNodes = new CategoryTreeNode[categories
+                               .size()];
+               int index = 0;
+               for (Iterator<String> iter = categories.keySet().iterator(); iter
+                               .hasNext();) {
+                       String item = iter.next();
+                       CategoryTreeNode cNode = new CategoryTreeNode(item,
+                                       categories.get(item));
+                       categoryNodes[index] = cNode;
+                       index++;
+               }
+               return categoryNodes;
+       }
+
+       public synchronized static SuiteTreeRootNode getSuiteTreeModel(
+                       ExecuteType et) {
+               List<SuiteTreeNode> nodes = new ArrayList<SuiteTreeNode>();
+               FullTctSuites fullList = null;
+               try {
+                       fullList = FullTctSuites.extractSuiteFromPackageLists();
+               } catch (IOException e) {
+                       e.printStackTrace();
+               } catch (InterruptedException e) {
+                       e.printStackTrace();
+               }
+
+               if (null != fullList) {
+                       for (TctTestSuite suite : fullList.getSuites(et)) {
+                               nodes.add(new SuiteTreeNode(suite));
+                       }
+               }
+               return new SuiteTreeRootNode(generateCategoryNode(nodes));
+       }
+
+       public boolean isSelected() {
+               boolean selected = true;
+               for (CategoryTreeNode node : this.categories) {
+                       if (!node.isSelected()) {
+                               selected = false;
+                               break;
+                       }
+               }
+               return selected;
+       }
+
+       public void setSelected(boolean selected) {
+               for (CategoryTreeNode node : this.categories) {
+                       node.setSelected(selected);
+               }
+       }
+
+       @Override
+       public TreeNode getChildAt(int childIndex) {
+               return null != this.categories ? this.categories[childIndex] : null;
+       }
+
+       @Override
+       public int getChildCount() {
+               return null != this.categories ? this.categories.length : 0;
+       }
+
+       @Override
+       public TreeNode getParent() {
+               return null;
+       }
+
+       @Override
+       public int getIndex(TreeNode node) {
+               int index = -1;
+               int i = 0;
+               for (CategoryTreeNode cNode : this.categories) {
+                       if (cNode.equals(node)) {
+                               index = i;
+                               break;
+                       }
+                       i++;
+               }
+               return index;
+       }
+
+       @Override
+       public boolean getAllowsChildren() {
+               return true;
+       }
+
+       @Override
+       public boolean isLeaf() {
+               return false;
+       }
+
+       @Override
+       public Enumeration<CategoryTreeNode> children() {
+               Vector<CategoryTreeNode> tmp = new Vector<CategoryTreeNode>();
+               for (CategoryTreeNode suiteNode : this.categories) {
+                       tmp.add(suiteNode);
+               }
+               return tmp.elements();
+       }
+
+       @Override
+       public List<SelectableTreeNode> getSelectedSuites() {
+               List<SelectableTreeNode> nodes = new ArrayList<SelectableTreeNode>();
+               for (CategoryTreeNode node : this.categories) {
+                       List<SelectableTreeNode> tmp = node.getSelectedSuites();
+                       if (null != tmp) {
+                               nodes.addAll(tmp);
+                       }
+               }
+               return nodes;
+       }
+
+       @Override
+       public void setPlanSelected(TctTestPlan plan) {
+               if (null != plan) {
+                       for (CategoryTreeNode node : this.categories) {
+                               node.setPlanSelected(plan);
+                       }
+               }
+       }
+
+       @Override
+       public String getName() {
+               return "All";
+       }
+
+       @Override
+       public boolean containSelected() {
+               boolean contain = false;
+               for (CategoryTreeNode node : this.categories) {
+                       if (node.isSelected()) {
+                               contain = true;
+                               break;
+                       }
+               }
+               return contain;
+       }
+
+       @Override
+       public void setSuitesSelected(List<String> selectedSuites) {
+               for (CategoryTreeNode node : this.categories) {
+                       node.setSuitesSelected(selectedSuites);
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/report/SuitePath.java b/src/org/tizen/tct/tool/mgr/model/report/SuitePath.java
new file mode 100644 (file)
index 0000000..a5c5bfc
--- /dev/null
@@ -0,0 +1,46 @@
+package org.tizen.tct.tool.mgr.model.report;
+
+import java.io.File;
+
+import org.tizen.tct.tool.mgr.lite.util.ResultMerger;
+
+public class SuitePath {
+       private String suiteName;
+       private String suiteRerunName;
+       private String suiteResultName;
+       private String suiteManaulName;
+       private String suiteAutoName;
+
+       public SuitePath(String suiteName, String resultFolder) {
+               this.suiteName = suiteName;
+               this.suiteAutoName = resultFolder + File.separator + suiteName
+                               + ResultMerger.AUTO_RESULT_SUFFIX;
+               this.suiteManaulName = resultFolder + File.separator + suiteName
+                               + ResultMerger.MANUAL_RESULT_SUFFIX;
+               this.suiteRerunName = resultFolder + File.separator + suiteName
+                               + ResultMerger.RERUN_DEF_SUFFIX;
+               this.suiteResultName = resultFolder + File.separator + suiteName
+                               + ".xml";
+       }
+
+       public String getSuiteName() {
+               return suiteName;
+       }
+
+       public String getSuiteRerunName() {
+               return suiteRerunName;
+       }
+
+       public String getSuiteResultName() {
+               return suiteResultName;
+       }
+
+       public String getSuiteManaulName() {
+               return suiteManaulName;
+       }
+
+       public String getSuiteAutoName() {
+               return suiteAutoName;
+       }
+
+}
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.java b/src/org/tizen/tct/tool/mgr/model/report/TctReportTableModel.java
new file mode 100644 (file)
index 0000000..51aa899
--- /dev/null
@@ -0,0 +1,155 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.report;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.swing.table.AbstractTableModel;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.filefilter.IOFileFilter;
+import org.apache.commons.io.filefilter.TrueFileFilter;
+import org.tizen.tct.tool.mgr.Constants;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class TctReportTableModel extends AbstractTableModel {
+
+       private final static String[] HEADERS = { "", "Test Time", "Test Plan",
+                       "Device Model", "Status (Auto)", "Status (Manual)", "Operation" };
+
+       private TctResultReport[] sortedReports;
+
+       private Map<String, TctResultReport> reports = new HashMap<String, TctResultReport>();
+
+       private TctReportTableModel(List<TctResultReport> tmpReports) {
+               for (TctResultReport report : tmpReports) {
+                       this.reports.put(report.getFolderName(), report);
+               }
+               this.sortedReports = this.reports.values().toArray(
+                               new TctResultReport[this.reports.size()]);
+               Arrays.sort(this.sortedReports);
+       }
+
+       public static TctReportTableModel loadReports() {
+               File folder = new File(Constants.RESULT_FOLDER);
+               List<TctResultReport> reports = new ArrayList<TctResultReport>();
+               for (File file : FileUtils.listFiles(folder, new IOFileFilter() {
+
+                       @Override
+                       public boolean accept(File file) {
+                               if (Constants.SUMMARY_FILE_NAME.equalsIgnoreCase(file.getName())) {
+                                       return true;
+                               } else {
+                                       return false;
+                               }
+                       }
+
+                       @Override
+                       public boolean accept(File dir, String name) {
+                               if (Constants.SUMMARY_FILE_NAME.equalsIgnoreCase(name)) {
+                                       return true;
+                               } else {
+                                       return false;
+                               }
+                       }
+
+               }, TrueFileFilter.INSTANCE)) {
+                       TctResultReport report = TctResultReport.createReportModel(file);
+                       if (null != report) {
+                               reports.add(report);
+                       }
+               }
+               return new TctReportTableModel(reports);
+       }
+
+       public void deleteSelectedReport() {
+               List<TctResultReport> selected = new ArrayList<TctResultReport>();
+               List<TctResultReport> unselected = new ArrayList<TctResultReport>();
+               for (TctResultReport report : this.reports.values()) {
+                       if (report.isSelected()) {
+                               selected.add(report);
+                       } else {
+                               unselected.add(report);
+                       }
+               }
+               for (TctResultReport report : selected) {
+                       this.reports.remove(report.getFolderName());
+                       FileUtils.deleteQuietly(new File(Constants.RESULT_FOLDER
+                                       + File.separator + report.getFolderName()));
+               }
+               this.reports.clear();
+               for (TctResultReport report : unselected) {
+                       this.reports.put(report.getFolderName(), report);
+               }
+               this.sortedReports = this.reports.values().toArray(
+                               new TctResultReport[this.reports.size()]);
+               Arrays.sort(this.sortedReports);
+       }
+
+       public boolean isReportSelected() {
+               boolean selected = false;
+               for (TctResultReport report : this.reports.values()) {
+                       if (report.isSelected()) {
+                               selected = true;
+                               break;
+                       }
+               }
+               return selected;
+       }
+
+       @Override
+       public int getColumnCount() {
+               return HEADERS.length;
+       }
+
+       @Override
+       public int getRowCount() {
+               return this.sortedReports.length;
+       }
+
+       @Override
+       public Object getValueAt(int row, int col) {
+               switch (col) {
+               case 0:
+                       return sortedReports[row].isSelected();
+               case 1:
+                       return sortedReports[row].getFolderName();
+               case 2:
+                       return sortedReports[row].getPlanName();
+               case 3:
+                       return sortedReports[row].getDevice();
+               case 4:
+                       return sortedReports[row].isAutoFinished();
+               case 5:
+                       return sortedReports[row].isManualFinished();
+               default:
+                       return sortedReports[row];
+               }
+       }
+
+       @Override
+       public String getColumnName(int column) {
+               return HEADERS[column];
+       }
+
+       @Override
+       public void setValueAt(Object aValue, int row, int col) {
+               if (0 == col) {
+                       sortedReports[row].setSelected((Boolean) aValue);
+               }
+       }
+
+       @Override
+       public Class<?> getColumnClass(int column) {
+               return getValueAt(0, column).getClass();
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/report/TctResultReport.java b/src/org/tizen/tct/tool/mgr/model/report/TctResultReport.java
new file mode 100644 (file)
index 0000000..cd1e8d1
--- /dev/null
@@ -0,0 +1,214 @@
+package org.tizen.tct.tool.mgr.model.report;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.jaxb.planstatus.PlanStatus;
+import org.tizen.tct.tool.mgr.jaxb.planstatus.TasksType;
+import org.tizen.tct.tool.mgr.jaxb.summary.ResultSummary;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+
+public class TctResultReport implements Comparable<TctResultReport> {
+
+       private String folderName;
+
+       private String planName;
+
+       private String device;
+
+       private boolean autoFinished;
+
+       private boolean manualFinished;
+
+       private boolean selected;
+
+       private List<String> executedManuals;
+
+       private Set<SuitePath> allSuitePath;
+
+       private Set<String> allSuites;
+
+       private Set<String> todoManulSuites;
+
+       private Set<String> todoAutoSuites;
+
+       private List<String> executedAutos;
+
+       private ExecuteType et;
+
+       private TctResultReport(String folderName, ResultSummary resultSummary,
+                       PlanStatus status) {
+               this.folderName = folderName;
+               this.planName = status.getName();
+               this.et = ExecuteType.createExecuteType(status.getExecuteType());
+               ResultSummary.Environment env = resultSummary.getEnvironment();
+               if (null != env) {
+                       this.device = env.getDeviceModel();
+               }
+               this.executedManuals = new ArrayList<String>();
+               this.executedManuals.addAll(status.getManualTasks().getExecuted());
+               this.executedAutos = new ArrayList<String>();
+               this.executedAutos.addAll(status.getAutoTasks().getExecuted());
+
+               Set<String> tmp = new HashSet<String>();
+               tmp.addAll(status.getAutoTasks().getExecuted());
+               tmp.addAll(this.executedManuals);
+
+               this.allSuitePath = new HashSet<SuitePath>();
+               if (!tmp.isEmpty()) {
+                       for (String suiteName : tmp) {
+                               this.allSuitePath.add(new SuitePath(suiteName,
+                                               Constants.RESULT_FOLDER + File.separator
+                                                               + this.folderName));
+                       }
+               }
+
+               this.todoManulSuites = new HashSet<String>();
+               this.todoManulSuites.addAll(status.getManualTasks().getExecuting());
+               this.todoAutoSuites = new HashSet<String>();
+               this.todoAutoSuites.addAll(status.getAutoTasks().getExecuting());
+
+               this.allSuites = new HashSet<String>();
+               this.allSuites.addAll(this.executedManuals);
+               this.allSuites.addAll(this.executedAutos);
+               this.allSuites.addAll(this.todoManulSuites);
+               this.allSuites.addAll(this.todoAutoSuites);
+
+               this.autoFinished = checkFinished(status.getAutoTasks());
+               this.manualFinished = checkFinished(status.getManualTasks());
+       }
+
+       /**
+        * 
+        * @return
+        * @deprecated
+        */
+       public boolean isManualExcluded() {
+               return this.executedManuals.isEmpty();
+       }
+
+       private static boolean checkFinished(TasksType task) {
+               if (null == task || null == task.getExecuting()
+                               || task.getExecuting().isEmpty()) {
+                       return true;
+               } else {
+                       return false;
+               }
+       }
+
+       private static ResultSummary loadSummary(File summaryXml) {
+               ResultSummary resultSummary = null;
+               try {
+                       JAXBContext context = JAXBContext.newInstance(ResultSummary.class);
+                       Unmarshaller um = context.createUnmarshaller();
+                       resultSummary = (ResultSummary) um.unmarshal(summaryXml);
+               } catch (JAXBException e) {
+                       e.printStackTrace();
+               }
+               return resultSummary;
+       }
+
+       public static PlanStatus loadPlanStatus(File statusXml) {
+               PlanStatus status = null;
+               try {
+                       JAXBContext context = JAXBContext.newInstance(PlanStatus.class);
+                       Unmarshaller um = context.createUnmarshaller();
+                       status = (PlanStatus) um.unmarshal(statusXml);
+               } catch (JAXBException e) {
+                       e.printStackTrace();
+               }
+               return status;
+       }
+
+       public static TctResultReport createReportModel(File summaryXml) {
+               File folder = summaryXml.getParentFile();
+               File statusXml = new File(folder.getAbsoluteFile() + File.separator
+                               + Constants.PLAN_STATUS_NAME);
+               TctResultReport report = null;
+               if (statusXml.exists() && summaryXml.exists()) {
+                       ResultSummary resultSummary = loadSummary(summaryXml);
+                       PlanStatus status = loadPlanStatus(statusXml);
+                       if (null != resultSummary && null != status) {
+                               report = new TctResultReport(folder.getName(), resultSummary,
+                                               status);
+                       }
+               }
+               return report;
+       }
+
+       public boolean isSelected() {
+               return selected;
+       }
+
+       public void setSelected(boolean selected) {
+               this.selected = selected;
+       }
+
+       public String getFolderName() {
+               return folderName;
+       }
+
+       public String getPlanName() {
+               return planName;
+       }
+
+       public ExecuteType getEt() {
+               return et;
+       }
+
+       public String getDevice() {
+               return device;
+       }
+
+       public boolean isAutoFinished() {
+               return autoFinished;
+       }
+
+       public boolean isManualFinished() {
+               return manualFinished;
+       }
+
+       public List<String> getExecutedManuals() {
+               return Collections.unmodifiableList(executedManuals);
+       }
+
+       public Set<String> getAllSuites() {
+               return Collections.unmodifiableSet(allSuites);
+       }
+
+       public Set<SuitePath> getAllSuitePath() {
+               return Collections.unmodifiableSet(allSuitePath);
+       }
+
+       public Set<String> getTodoManualSuites() {
+               return Collections.unmodifiableSet(this.todoManulSuites);
+       }
+
+       public Set<String> getTodoAutoSuites() {
+               return Collections.unmodifiableSet(this.todoAutoSuites);
+       }
+
+       public List<String> getExecutedAutos() {
+               return Collections.unmodifiableList(executedAutos);
+       }
+
+       public File getFolder() {
+               return new File(Constants.RESULT_FOLDER + File.separator
+                               + this.folderName);
+       }
+
+       @Override
+       public int compareTo(TctResultReport other) {
+               return other.folderName.compareTo(this.folderName);
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/run/NamedVector.java b/src/org/tizen/tct/tool/mgr/model/run/NamedVector.java
new file mode 100644 (file)
index 0000000..8c2d9a8
--- /dev/null
@@ -0,0 +1,41 @@
+package org.tizen.tct.tool.mgr.model.run;
+
+import java.util.Vector;
+
+public class NamedVector extends Vector<Object> {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 3068901480978878794L;
+
+       private String name;
+
+       private int level;
+
+       public NamedVector(String name, int level) {
+               this.name = name;
+               this.level = level;
+       }
+
+       public NamedVector(String name, int level, Object elements[]) {
+               super(elements.length);
+               this.name = name;
+               this.level = level;
+               for (int i = 0; i < elements.length; i++) {
+                       add(elements[i]);
+               }
+       }
+
+       public String toString() {
+               return name;
+       }
+
+       public String getName() {
+               return this.name;
+       }
+
+       public int getLevel() {
+               return level;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/run/SdbInstallable.java b/src/org/tizen/tct/tool/mgr/model/run/SdbInstallable.java
new file mode 100644 (file)
index 0000000..090e3e8
--- /dev/null
@@ -0,0 +1,17 @@
+package org.tizen.tct.tool.mgr.model.run;
+
+import java.io.IOException;
+
+public interface SdbInstallable {
+
+       void sdbPush() throws IOException;
+
+       void sdbInstall() throws IOException;
+
+       void sdbRemove() throws IOException;
+
+       void sdbUninstall() throws IOException;
+
+       boolean sdbCheckSuite();
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.java b/src/org/tizen/tct/tool/mgr/model/run/SingleRunningPlan.java
new file mode 100644 (file)
index 0000000..c8c731e
--- /dev/null
@@ -0,0 +1,95 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.model.run;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.lite.util.ResultMerger;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.view.safequit.ExecutorRegister;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class SingleRunningPlan {
+
+       private static final Logger logger = Logger
+                       .getLogger(SingleRunningPlan.class);
+
+       private TctTestPlan running;
+
+       private boolean isRerun;
+
+       private boolean stopped;
+
+       private static SingleRunningPlan instance = new SingleRunningPlan();
+
+       private SingleRunningPlan() {
+
+       }
+
+       public static SingleRunningPlan getInstance() {
+               return instance;
+       }
+
+       public synchronized boolean setRunningPlan(TctTestPlan running,
+                       boolean isRerun) {
+               if (null == this.running) {
+                       logger.info("Running plan '" + running.getName() + "'");
+                       this.running = running;
+                       this.isRerun = isRerun;
+                       return true;
+               } else {
+                       return false;
+               }
+       }
+
+       public String getAutoResultSuffix() {
+               if (this.isRerun) {
+                       return ResultMerger.RERUN_AUTO_RESULT_SUFFIX;
+               } else {
+                       return ResultMerger.AUTO_RESULT_SUFFIX;
+               }
+       }
+
+       public String getManualResultSuffix() {
+               if (this.isRerun) {
+                       return ResultMerger.RERUN_MANUAL_RESULT_SUFFIX;
+               } else {
+                       return ResultMerger.MANUAL_RESULT_SUFFIX;
+               }
+       }
+
+       public TctTestPlan finishedPlan(String resultFolder) {
+               TctTestPlan executed = null;
+               if (null != this.running) {
+                       executed = this.running;
+                       logger.info("Finishing plan '" + executed.getName() + "'");
+                       this.running = null;
+                       ExecutorRegister.getInstance().unregisterExecutor();
+                       this.stopped = false;
+                       logger.info("Generating plan status and summary");
+                       executed.serializeStatus(resultFolder);
+                       executed.prepareReport(resultFolder);
+                       executed.resetCounter();
+               }
+               return executed;
+       }
+
+       public synchronized TctTestPlan getRunningPlan() {
+               return this.running;
+       }
+
+       public boolean isFinished() {
+               return null == this.running;
+       }
+
+       public boolean isStopped() {
+               return stopped;
+       }
+
+       public void stop() {
+               this.stopped = true;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.java b/src/org/tizen/tct/tool/mgr/model/run/SuiteResultSummary.java
new file mode 100644 (file)
index 0000000..226f622
--- /dev/null
@@ -0,0 +1,81 @@
+package org.tizen.tct.tool.mgr.model.run;
+
+import java.text.DecimalFormat;
+
+import org.tizen.tct.tool.mgr.jaxb.summary.ObjectFactory;
+import org.tizen.tct.tool.mgr.jaxb.summary.ResultSummary.Suite;
+
+public class SuiteResultSummary {
+       private int pass;
+
+       private int fail;
+
+       private int block;
+
+       private int na;
+
+       private String suiteName;
+
+       public SuiteResultSummary(int pass, int fail, int block, int na,
+                       String suiteName) {
+               super();
+               this.pass = pass;
+               this.fail = fail;
+               this.block = block;
+               this.na = na;
+               this.suiteName = suiteName;
+       }
+
+       public Suite toSummarySuite() {
+               ObjectFactory factory = new ObjectFactory();
+               Suite suite = factory.createResultSummarySuite();
+
+               suite.setName(this.suiteName);
+               int total = this.getBlock() + this.getFail() + this.getNa()
+                               + this.getPass();
+               suite.setTotalCase(total);
+
+               suite.setBlockCase(this.getBlock());
+               suite.setFailCase(this.getFail());
+               suite.setNaCase(this.getNa());
+               suite.setPassCase(this.getPass());
+               
+//             NumberFormat format = NumberFormat.getNumberInstance();
+//             format.setMinimumFractionDigits(2);
+               DecimalFormat format = new DecimalFormat("#0.00");
+
+               if (total > 0) {
+                       suite.setBlockRate(format.format(this.getBlock() * 100f / total));
+                       suite.setFailRate(format.format(this.getFail() * 100f / total));
+                       suite.setNaRate(format.format(this.getNa() * 100f / total));
+                       suite.setPassRate(format.format(this.getPass() * 100f / total));
+               } else {
+                       suite.setBlockRate("0.00");
+                       suite.setFailRate("0.00");
+                       suite.setNaRate("0.00");
+                       suite.setPassRate("0.00");
+               }
+               return suite;
+       }
+
+       public int getPass() {
+               return pass;
+       }
+
+       public int getFail() {
+               return fail;
+       }
+
+       public int getBlock() {
+               return block;
+       }
+
+       public int getNa() {
+               return na;
+       }
+
+       public String getSuiteName() {
+               return suiteName;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.java b/src/org/tizen/tct/tool/mgr/model/run/TreeNodeUserObject.java
new file mode 100644 (file)
index 0000000..1523d30
--- /dev/null
@@ -0,0 +1,68 @@
+package org.tizen.tct.tool.mgr.model.run;
+
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+
+public class TreeNodeUserObject {
+
+       private String name;
+
+       private int caseNum;
+
+       private int executed;
+
+       private SuiteResultSummary summary;
+
+       private ExecuteType et;
+
+       public TreeNodeUserObject(String name, int caseNum, ExecuteType et) {
+               super();
+               this.name = name;
+               this.caseNum = caseNum;
+               this.et = et;
+       }
+
+       public boolean isManualNode() {
+               return this.et == ExecuteType.MANUAL;
+       }
+
+       public void setResultSummary(SuiteResultSummary summary) {
+               this.summary = summary;
+       }
+
+       public boolean summaryAvailable() {
+               return null != this.summary;
+       }
+
+       public String getName() {
+               return name;
+       }
+
+       public int getCaseNum() {
+               return caseNum;
+       }
+
+       public int getExecuted() {
+               return executed;
+       }
+
+       public void setExecuted(int executed) {
+               this.executed = executed;
+       }
+
+       public int getPass() {
+               return summary.getPass();
+       }
+
+       public int getFail() {
+               return summary.getFail();
+       }
+
+       public int getBlock() {
+               return summary.getBlock();
+       }
+
+       public int getNa() {
+               return summary.getNa();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/ContentPanel.java b/src/org/tizen/tct/tool/mgr/view/ContentPanel.java
new file mode 100644 (file)
index 0000000..45f4d8d
--- /dev/null
@@ -0,0 +1,118 @@
+/**\r
+ * \r
+ */\r
+package org.tizen.tct.tool.mgr.view;\r
+\r
+import java.awt.BorderLayout;\r
+import java.awt.FlowLayout;\r
+import java.awt.LayoutManager;\r
+\r
+import javax.swing.JButton;\r
+import javax.swing.JFrame;\r
+import javax.swing.JLabel;\r
+import javax.swing.JPanel;\r
+import javax.swing.SwingUtilities;\r
+\r
+import org.tizen.tct.tool.mgr.Constants;\r
+import org.tizen.tct.tool.mgr.listener.report.RemoveReportActionListener;\r
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;\r
+import org.tizen.tct.tool.mgr.view.navi.LogoPanel;\r
+import org.tizen.tct.tool.mgr.view.planpage.PlanPanel;\r
+import org.tizen.tct.tool.mgr.view.reportpage.ReportListScrollPane;\r
+import org.tizen.tct.tool.mgr.view.runpage.RunPanel;\r
+\r
+/**\r
+ * @author stang23\r
+ * \r
+ */\r
+public class ContentPanel extends JPanel {\r
+\r
+       /**\r
+        * \r
+        */\r
+       private static final long serialVersionUID = -4194537410800602228L;\r
+\r
+       private PlanPanel planPanel;\r
+       private RunPanel runPanel;\r
+\r
+       private JPanel reportListTitlePanel;\r
+       private ReportListScrollPane reportListPanel;\r
+\r
+       private LogoPanel navi;\r
+\r
+       public ContentPanel(LogoPanel navi) {\r
+               this.navi = navi;\r
+       }\r
+\r
+       public void initPlanPage() {\r
+               this.setLayout(new BorderLayout());\r
+               if (null == planPanel) {\r
+                       planPanel = new PlanPanel(this);\r
+               }\r
+               planPanel.initPlanPage();\r
+               this.add(planPanel, BorderLayout.CENTER);\r
+               this.navi.highLightPlanLabel();\r
+               this.revalidate();\r
+               this.repaint();\r
+       }\r
+\r
+       public void initExecutePage() {\r
+               this.setLayout(new BorderLayout());\r
+               if (null == runPanel) {\r
+                       runPanel = new RunPanel(this);\r
+               }\r
+               runPanel.initRunPage();\r
+               this.add(runPanel, BorderLayout.CENTER);\r
+               this.navi.highLightExecuteLabel();\r
+               this.revalidate();\r
+               this.repaint();\r
+       }\r
+\r
+       public void initReportPage() {\r
+               JButton deleteButton = new JButton("Remove");\r
+               deleteButton.setPreferredSize(Constants.BUTTON_DIMENSION);\r
+               deleteButton.setFont(Constants.BUTTON_LABEL_FONT);\r
+               JPanel buttonPanel = new JPanel(new FlowLayout());\r
+               buttonPanel.add(deleteButton);\r
+               JLabel titleLable = new JLabel("Reports for all test executions");\r
+               reportListTitlePanel = new JPanel(new BorderLayout());\r
+               reportListTitlePanel.add(titleLable, BorderLayout.WEST);\r
+               reportListTitlePanel.add(buttonPanel, BorderLayout.EAST);\r
+               reportListTitlePanel.setPreferredSize(new java.awt.Dimension(\r
+                               Constants.FRAME_WIDTH, 40));\r
+\r
+               reportListPanel = ReportListScrollPane.createReportListPanel(this);\r
+               reportListPanel.setPreferredSize(new java.awt.Dimension(\r
+                               Constants.FRAME_WIDTH, Constants.CONTENT_PANEL_HIGHT));\r
+               deleteButton.addActionListener(new RemoveReportActionListener(\r
+                               reportListPanel, (JFrame) SwingUtilities\r
+                                               .getWindowAncestor(this)));\r
+\r
+               this.add(reportListTitlePanel, BorderLayout.NORTH);\r
+               this.add(reportListPanel, BorderLayout.CENTER);\r
+               this.navi.highLightReportLabel();\r
+               this.revalidate();\r
+               this.repaint();\r
+       }\r
+\r
+       public RunPanel getRunPanel() {\r
+               return this.runPanel;\r
+       }\r
+\r
+       public PlanPanel getPlanPanel() {\r
+               return this.planPanel;\r
+       }\r
+\r
+       public ContentPanel(LayoutManager layout) {\r
+               super(layout);\r
+       }\r
+\r
+       public RunPanel turnToRunPage(TctTestPlan plan) {\r
+               this.removeAll();\r
+               this.initExecutePage();\r
+               this.repaint();\r
+\r
+               return this.getRunPanel();\r
+       }\r
+\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/view/HealthCheckDlg.java b/src/org/tizen/tct/tool/mgr/view/HealthCheckDlg.java
new file mode 100644 (file)
index 0000000..56b5a8b
--- /dev/null
@@ -0,0 +1,108 @@
+package org.tizen.tct.tool.mgr.view;
+
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+import javax.swing.JTextArea;
+import javax.swing.JLabel;
+import javax.swing.SwingUtilities;
+
+import org.tizen.tct.tool.mgr.Constants;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+public class HealthCheckDlg extends JDialog implements ProgressInformable,
+               ActionListener {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 2990443947671731265L;
+
+       private JPanel parent;
+       private JTextArea textContent;
+       private JButton btnClose;
+
+       public HealthCheckDlg(JFrame frame, boolean modal, JPanel parent) {
+               // TODO Auto-generated constructor stub
+               super(frame, modal);
+               this.parent = parent;
+               initDlg();
+       }
+
+       public void actionPerformed(ActionEvent e) {
+               dispose();
+       }
+
+       private void initDlg() {
+               try {
+                       // Top title
+                       JLabel toptitle = new JLabel("Performing health check...");
+                       toptitle.setFont(Constants.POPUP_TITLE_FONT);
+                       toptitle.setOpaque(true);
+
+                       // Main content
+                       this.textContent = new JTextArea();
+                       this.textContent.setFont(Constants.POPUP_TEXT_FONT);
+
+                       // Bottom button
+                       this.btnClose = new JButton("Cancel");
+                       this.btnClose.setFont(Constants.POPUP_TEXT_FONT);
+                       btnClose.setPreferredSize(Constants.BUTTON_DIMENSION);
+                       btnClose.setVisible(false);
+                       btnClose.addActionListener(this);
+                       JPanel buttonPanel = new JPanel(new FlowLayout());
+                       buttonPanel.add(btnClose);
+                       JPanel tailPanel = new JPanel(new BorderLayout());
+                       tailPanel.add(buttonPanel, BorderLayout.CENTER);
+
+                       add(toptitle, BorderLayout.NORTH);
+                       add(this.textContent, BorderLayout.CENTER);
+                       add(tailPanel, BorderLayout.SOUTH);
+                       setPreferredSize(new Dimension(400, 300));
+               } catch (Exception e) {
+                       e.printStackTrace();
+               }
+       }
+
+       @Override
+       public void messageChanged(String message) {
+               this.textContent.append(message);
+       }
+
+       @Override
+       public void closeDialog() {
+               try {
+                       Thread.sleep(100);
+               } catch (InterruptedException e) {
+                       e.printStackTrace();
+               }
+               dispose();
+       }
+
+       public void startDialog() {
+               setResizable(false);
+               pack();
+               setLocationRelativeTo((JFrame) SwingUtilities.getWindowAncestor(parent));
+               setVisible(true);
+       }
+
+       @Override
+       public void failProcess() {
+               this.textContent.append("Health check get failed!");
+               this.btnClose.setVisible(true);
+       }
+
+       @Override
+       public void setProgress(int value) {
+               // No progress bar in this dialog
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/PlanJFrame.java b/src/org/tizen/tct/tool/mgr/view/PlanJFrame.java
new file mode 100644 (file)
index 0000000..e860145
--- /dev/null
@@ -0,0 +1,196 @@
+package org.tizen.tct.tool.mgr.view;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Image;
+import java.awt.event.KeyEvent;
+import java.awt.event.WindowEvent;
+import java.awt.event.WindowListener;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.imageio.ImageIO;
+import javax.swing.JFrame;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JMenuItem;
+import javax.swing.JOptionPane;
+import javax.swing.SwingWorker;
+import javax.swing.WindowConstants;
+
+import org.jdesktop.application.Application;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.menu.AboutActionListener;
+import org.tizen.tct.tool.mgr.listener.menu.ChooseDeviceListener;
+import org.tizen.tct.tool.mgr.listener.menu.HelpActionListener;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.navi.LogoPanel;
+import org.tizen.tct.tool.mgr.view.safequit.ExecutorRegister;
+import org.tizen.tct.tool.mgr.view.safequit.SafeQuitDialog;
+import org.tizen.tct.tool.mgr.view.safequit.SafeQuitWorker;
+
+public class PlanJFrame extends JFrame implements WindowListener {
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 231749724272699189L;
+
+       private LogoPanel titlePanel;
+       private ContentPanel contents;
+
+       public PlanJFrame() {
+               super();
+               initGUI();
+               this.setTitle(Constants.APP_TITLE);
+               this.addWindowListener(this);
+               this.setJMenuBar(this.createMenuBar());
+       }
+
+       private void initGUI() {
+               try {
+                       setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
+                       titlePanel = new LogoPanel(this);
+                       getContentPane().add(titlePanel, BorderLayout.NORTH);
+                       titlePanel.highLightPlanLabel();
+
+                       contents = new ContentPanel(titlePanel);
+                       getContentPane().add(contents, BorderLayout.CENTER);
+                       contents.initPlanPage();
+                       pack();
+                       this.setSize(Constants.FRAME_WIDTH, Constants.FRAME_HEIGHT);
+                       Dimension dim = new Dimension(Constants.FRAME_WIDTH, 600);
+                       this.setMinimumSize(dim);
+                       List<Image> iconlist = new ArrayList<Image>();
+                       for (int i = 0; i < Constants.FRAME_IMAGE_PATHS.length; i++) {
+                               iconlist.add(ImageIO.read(PlanJFrame.class
+                                               .getResourceAsStream(Constants.FRAME_IMAGE_PATHS[i])));
+                       }
+                       this.setIconImages(iconlist);
+                       Application.getInstance().getContext().getResourceMap(getClass())
+                                       .injectComponents(getContentPane());
+               } catch (Exception e) {
+                       e.printStackTrace();
+               }
+       }
+
+       public JMenuBar createMenuBar() {
+               JMenuBar menuBar = new JMenuBar();
+               JMenu settingMenu = new JMenu("Settings");
+               settingMenu.setMnemonic(KeyEvent.VK_S);
+               settingMenu.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+               settingMenu.setForeground(Constants.MENU_BAR_LABEL_ICON);
+               JMenuItem cd = new JMenuItem("Choose Device", KeyEvent.VK_D);
+               cd.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+               cd.addActionListener(new ChooseDeviceListener(this));
+               settingMenu.add(cd);
+
+               JMenu helpMenu = new JMenu(" Help");
+               helpMenu.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+               helpMenu.setMnemonic(KeyEvent.VK_H);
+               JMenuItem guideMenuItem = new JMenuItem("User Guide", KeyEvent.VK_G);
+               JMenuItem aboutMenuItem = new JMenuItem("About TCT-Manager",
+                               KeyEvent.VK_A);
+               guideMenuItem.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+               aboutMenuItem.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+
+               guideMenuItem.addActionListener(new HelpActionListener());
+               aboutMenuItem.addActionListener(new AboutActionListener(aboutMenuItem));
+               helpMenu.setForeground(Constants.MENU_BAR_LABEL_ICON);
+               
+               helpMenu.add(guideMenuItem);
+               helpMenu.addSeparator();
+               helpMenu.add(aboutMenuItem);
+
+               //menuBar.add(Box.createHorizontalGlue());
+               menuBar.add(settingMenu);
+               menuBar.add(helpMenu);
+               return menuBar;
+       }
+
+       public void removeContentsAll() {
+               this.contents.removeAll();
+       }
+
+       public void returnPlanContents() {
+               this.contents.initPlanPage();
+       }
+
+       public void showReportContents() {
+               this.contents.initReportPage();
+       }
+
+       public void showExecutePage() {
+               this.contents.initExecutePage();
+       }
+
+       @Override
+       public void windowOpened(WindowEvent e) {
+               // TODO May be some welcome information
+
+       }
+
+       @Override
+       public void windowClosing(WindowEvent e) {
+               TctTestPlan plan = SingleRunningPlan.getInstance().getRunningPlan();
+               if (null != plan) {
+                       int reply = JOptionPane.showOptionDialog(this,
+                                       "The plan '" + plan.getName()
+                                                       + "' is executing. Do you still want to quit?",
+                                       "Stop execution?", JOptionPane.YES_NO_CANCEL_OPTION,
+                                       JOptionPane.QUESTION_MESSAGE, null, new String[] {
+                                                       "Yes, quit immediately",
+                                                       "Yes, stop execution and quit", "Cancel" },
+                                       "default");
+                       if (reply == JOptionPane.YES_OPTION) {
+                               plan.stopRunningSuite();
+                               System.exit(0);
+                       } else if (reply == JOptionPane.NO_OPTION) {
+                               SingleRunningPlan.getInstance().stop();
+                               SafeQuitDialog dialog = new SafeQuitDialog(this, true, 100);
+                               SwingWorker<Integer, String> worker = new SafeQuitWorker(
+                                               dialog, ExecutorRegister.getInstance());
+                               dialog.startWorker(worker);
+                               System.exit(0);
+                       } else if (reply == JOptionPane.CANCEL_OPTION) {
+                               // Do nothing
+                       } else if (reply == JOptionPane.CLOSED_OPTION) {
+                               // Do nothing
+                       }
+               } else {
+                       System.exit(0);
+               }
+       }
+
+       @Override
+       public void windowClosed(WindowEvent e) {
+               // TODO Auto-generated method stub
+
+       }
+
+       @Override
+       public void windowIconified(WindowEvent e) {
+               // TODO Auto-generated method stub
+
+       }
+
+       @Override
+       public void windowDeiconified(WindowEvent e) {
+               // TODO Auto-generated method stub
+
+       }
+
+       @Override
+       public void windowActivated(WindowEvent e) {
+               // TODO Auto-generated method stub
+
+       }
+
+       @Override
+       public void windowDeactivated(WindowEvent e) {
+               // TODO Auto-generated method stub
+
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.java b/src/org/tizen/tct/tool/mgr/view/PreConfigurationDlg.java
new file mode 100644 (file)
index 0000000..ec8aa24
--- /dev/null
@@ -0,0 +1,228 @@
+package org.tizen.tct.tool.mgr.view;
+
+import java.awt.BorderLayout;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.Rectangle;
+
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JLabel;
+import javax.swing.JTextField;
+import javax.swing.JTextPane;
+import javax.swing.SwingUtilities;
+import javax.swing.border.EmptyBorder;
+import javax.swing.text.BadLocationException;
+import javax.swing.text.Document;
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+import org.tizen.tct.tool.mgr.Constants;
+
+import java.awt.event.ActionListener;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class PreConfigurationDlg extends JDialog {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 2990443947671731265L;
+
+       private Object returnVal;
+       private JLabel toptitle;
+       private JPanel parent;
+       private JScrollPane panelscroll;
+       private JPanel panelContent;
+       private JPanel panelinputs;
+       private JTextPane textArea;
+       private JPanel panelsteps;
+       private JPanel panelbtns;
+       private JButton btnSave;
+       private JButton btnClose;
+       private Map<String, Map<String, String>> input_steps;
+       private Map<String, ArrayList<String>> manual_steps;
+       private Map<String, JTextField> field_items;
+
+       public PreConfigurationDlg(JFrame frame, boolean modal, JPanel parent,
+                       Map<String, Map<String, String>> inputsteps,
+                       Map<String, ArrayList<String>> manualsteps) {
+               super(frame, modal);
+               this.parent = parent;
+               this.input_steps = inputsteps;
+               this.manual_steps = manualsteps;
+               this.field_items = new HashMap<String, JTextField>();
+               initDlg();
+       }
+
+       public void setReturnCode(boolean cancel) {
+               if (cancel) {
+                       returnVal = null;
+               } else {
+                       for (String pkgname : input_steps.keySet()) {
+                               Map<String, String> pkg = input_steps.get(pkgname);
+                               for (String itemname : pkg.keySet()) {
+                                       String keyfull = pkgname + ":" + itemname;
+                                       String txtvalue = field_items.get(keyfull).getText();
+                                       pkg.put(itemname, txtvalue);
+                               }
+                               input_steps.put(pkgname, pkg);
+                       }
+                       returnVal = 1;
+               }
+               this.dispose();
+       }
+
+       private ActionListener btnListener = new java.awt.event.ActionListener() {
+               public void actionPerformed(java.awt.event.ActionEvent e) {
+                       setReturnCode(e.getSource() == btnClose);
+               }
+       };
+
+       public void insertDocument(String text, boolean bold) {
+               SimpleAttributeSet set = new SimpleAttributeSet();
+               StyleConstants.setBold(set, bold);
+               Document doc = this.textArea.getStyledDocument();
+               if (!text.endsWith("\n")) {
+                       text += "\n";
+               }
+               try {
+                       doc.insertString(doc.getLength(), text, set);
+               } catch (BadLocationException e) {
+                       // TODO
+               }
+       }
+
+       private void initDlg() {
+               try {
+                       // Top title
+                       this.toptitle = new JLabel(
+                                       "Please check the pre-configuration of TCT");
+                       this.toptitle.setFont(Constants.POPUP_TITLE_FONT);
+                       this.toptitle.setOpaque(true);
+
+                       // Input Steps
+                       this.panelinputs = new JPanel();
+                       GridBagLayout formLayout = new GridBagLayout();
+                       this.panelinputs.setLayout(formLayout);
+                       int lines = 0;
+                       for (Entry<String, Map<String, String>> entry : input_steps
+                                       .entrySet()) {
+                               String pkgname = entry.getKey();
+                               Map<String, String> items = entry.getValue();
+                               for (Entry<String, String> subEntry : items.entrySet()) {
+                                       String title = subEntry.getKey();
+                                       String value = subEntry.getValue();
+                                       JLabel lab = new JLabel(title, JLabel.TRAILING);
+                                       lab.setFont(Constants.POPUP_TEXT_FONT);
+                                       JTextField textField = new JTextField(10);
+                                       textField.setFont(Constants.POPUP_TEXT_FONT);
+                                       textField.setPreferredSize(new Dimension(300, 20));
+                                       textField.setText(value);
+                                       GridBagConstraints gbcleft = new FormGridBagConstraints(0,
+                                                       lines, 1, 0.3);
+                                       GridBagConstraints gbcright = new FormGridBagConstraints(1,
+                                                       lines, 1, 0.7);
+                                       formLayout.setConstraints(lab, gbcleft);
+                                       formLayout.setConstraints(textField, gbcright);
+                                       lab.setLabelFor(textField);
+                                       panelinputs.add(lab);
+                                       panelinputs.add(textField);
+                                       String keyfull = pkgname + ":" + title;
+                                       field_items.put(keyfull, textField);
+                                       ++lines;
+                               }
+                       }
+
+                       // Manual Steps
+                       this.panelsteps = new JPanel(new BorderLayout());
+                       this.textArea = new JTextPane();
+                       this.textArea.setEditable(false);
+                       this.textArea.setFont(Constants.POPUP_TEXT_FONT);
+                       for (Entry<String, ArrayList<String>> entry : manual_steps
+                                       .entrySet()) {
+                               String pkgname = entry.getKey();
+                               insertDocument(pkgname, true);
+                               ArrayList<String> steps = entry.getValue();
+                               for (String line : steps) {
+                                       insertDocument(line, false);
+                               }
+                               insertDocument("\n", true);
+                       }
+                       textArea.setPreferredSize(new Dimension(580, 400));
+                       panelscroll = new JScrollPane(textArea);
+                       textArea.scrollRectToVisible(new Rectangle(10, 10, 10, 10));
+                       panelsteps.add(panelscroll);
+                       panelsteps.setPreferredSize(new Dimension(600, 400));
+                       panelsteps.setBorder(new EmptyBorder(5, 5, 5, 5));
+
+                       // Bottom buttons
+                       this.panelbtns = new JPanel(new FlowLayout());
+                       btnSave = new JButton("Continue");
+                       btnSave.setFont(Constants.POPUP_TEXT_FONT);
+                       btnSave.addActionListener(btnListener);
+                       btnSave.setPreferredSize(Constants.BUTTON_DIMENSION);
+                       panelbtns.add(btnSave);
+                       btnClose = new JButton("Cancel");
+                       btnClose.setFont(Constants.POPUP_TEXT_FONT);
+                       btnClose.addActionListener(btnListener);
+                       btnClose.setPreferredSize(Constants.BUTTON_DIMENSION);
+                       panelbtns.add(btnClose);
+
+                       this.panelContent = new JPanel(new BorderLayout());
+                       this.panelContent.add(panelinputs, BorderLayout.NORTH);
+                       this.panelContent.add(panelsteps, BorderLayout.CENTER);
+
+                       add(toptitle, BorderLayout.NORTH);
+                       add(panelContent, BorderLayout.CENTER);
+                       add(panelbtns, BorderLayout.SOUTH);
+                       setSize(new Dimension(600, 800));
+               } catch (Exception e) {
+                       e.printStackTrace();
+               }
+       }
+
+       public Object startDialog() {
+               setResizable(false);
+               pack();
+               setLocationRelativeTo((JFrame) SwingUtilities.getWindowAncestor(parent));
+               setVisible(true);
+               return this.returnVal;
+       }
+
+       class FormGridBagConstraints extends GridBagConstraints {
+
+               private static final long serialVersionUID = 3331787154959117547L;
+
+               FormGridBagConstraints() {
+                       this(0, 0, 1, 0);
+               }
+
+               FormGridBagConstraints(int x, int y, int width, double ratio) {
+                       this.gridx = x;
+                       this.gridy = y;
+                       this.gridwidth = width;
+                       this.weightx = ratio;
+                       this.anchor = GridBagConstraints.CENTER;
+                       this.fill = GridBagConstraints.HORIZONTAL;
+                       this.insets = new Insets(2, 2, 2, 2);
+                       this.ipadx = 2;
+                       this.ipady = 2;
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/ProgressDialog.java b/src/org/tizen/tct/tool/mgr/view/ProgressDialog.java
new file mode 100644 (file)
index 0000000..5fc2635
--- /dev/null
@@ -0,0 +1,101 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+import javax.swing.SwingWorker;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ProgressDialog extends JDialog implements ProgressInformable {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -378127601187202049L;
+
+       private JProgressBar progress;
+
+       private JLabel title;
+
+       private JPanel panel;
+
+       private JFrame frame;
+
+       private static final Dimension defaultDim = new Dimension(600, 100);
+
+       public ProgressDialog(JFrame frame, boolean modal, int max, Dimension dim) {
+               super(frame, modal);
+               this.frame = frame;
+               this.panel = new JPanel(new BorderLayout());
+               this.title = new JLabel("Progress...");
+
+               this.progress = new JProgressBar();
+               this.progress.setStringPainted(true);
+               this.progress.setMaximum(max);
+               this.progress.setMinimum(0);
+               this.progress.setString(0 + "/" + max);
+
+               panel.add(title, BorderLayout.CENTER);
+               panel.add(progress, BorderLayout.SOUTH);
+               if (null == dim) {
+                       panel.setPreferredSize(defaultDim);
+               } else {
+                       panel.setPreferredSize(dim);
+               }
+               getContentPane().add(this.panel);
+               this.setResizable(false);
+       }
+
+       public void startWorker(@SuppressWarnings("rawtypes") SwingWorker worker) {
+               worker.execute();
+               pack();
+               setLocationRelativeTo(this.frame);
+               setVisible(true);
+       }
+
+       protected JPanel getMainPanel() {
+               return this.panel;
+       }
+
+       protected JProgressBar getProgressBar() {
+               return this.progress;
+       }
+
+       @Override
+       public void messageChanged(String message) {
+               this.title.setText(message);
+       }
+
+       public void closeDialog() {
+               try {
+                       Thread.sleep(100);
+               } catch (InterruptedException e) {
+                       e.printStackTrace();
+               }
+               setVisible(false);
+       }
+
+       @Override
+       public void failProcess() {
+
+       }
+
+       @Override
+       public void setProgress(int value) {
+               this.progress.setValue(value);
+               this.progress.setString(value + "/" + this.progress.getMaximum());
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/ProgressInformable.java b/src/org/tizen/tct/tool/mgr/view/ProgressInformable.java
new file mode 100644 (file)
index 0000000..162c974
--- /dev/null
@@ -0,0 +1,20 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public interface ProgressInformable {
+
+       void messageChanged(String message);
+       
+       void setProgress(int value);
+
+       void closeDialog();
+       
+       void failProcess();
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.java b/src/org/tizen/tct/tool/mgr/view/general/CheckBoxHeader.java
new file mode 100644 (file)
index 0000000..6b21aa9
--- /dev/null
@@ -0,0 +1,117 @@
+package org.tizen.tct.tool.mgr.view.general;
+
+import java.awt.Component;
+import java.awt.event.ItemListener;
+import java.awt.event.MouseEvent;
+import java.awt.event.MouseListener;
+
+import javax.swing.JCheckBox;
+import javax.swing.JTable;
+import javax.swing.UIManager;
+import javax.swing.table.JTableHeader;
+import javax.swing.table.TableCellRenderer;
+import javax.swing.table.TableColumnModel;
+
+/**
+ * 
+ * @author shaofeng
+ *
+ */
+public class CheckBoxHeader extends JCheckBox implements TableCellRenderer,
+               MouseListener {
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 4586582461806320898L;
+
+       protected CheckBoxHeader renderComp;
+       protected int column;
+       protected boolean mousePred = false;
+
+       public CheckBoxHeader(ItemListener itemListener) {
+               renderComp = this;
+               renderComp.addItemListener(itemListener);
+       }
+
+       public Component getTableCellRendererComponent(JTable table, Object value,
+                       boolean isSelected, boolean hasFocus, int row, int column) {
+               if (table != null) {
+                       JTableHeader header = table.getTableHeader();
+                       if (header != null) {
+                               renderComp.setForeground(header.getForeground());
+                               renderComp.setBackground(header.getBackground());
+                               renderComp.setFont(header.getFont());
+                               header.addMouseListener(renderComp);
+                       }
+               }
+               setColumn(column);
+               renderComp.setText("All");
+               setBorder(UIManager.getBorder("TableHeader.cellBorder"));
+               return renderComp;
+       }
+
+       /**
+        * Record the column
+        * @param column 
+        */
+       protected void setColumn(int column) {
+               this.column = column;
+       }
+
+       /**
+        * Get the column
+        * @return
+        */
+       public int getColumn() {
+               return column;
+       }
+
+       protected void handleClickEvent(MouseEvent e) {
+               if (mousePred) {
+                       mousePred = false;
+                       JTableHeader header = (JTableHeader) (e.getSource());
+                       JTable table = header.getTable();
+                       TableColumnModel colModel = table.getColumnModel();
+                       int viewColumn = colModel.getColumnIndexAtX(e.getX());
+                       int column = table.convertColumnIndexToModel(viewColumn);
+
+                       if (viewColumn == this.column && e.getClickCount() == 1
+                                       && column != -1) {
+                               doClick();
+                       }
+               }
+       }
+
+       /**
+        * Handle the mouse event, when the header is clicked
+        */
+       public void mouseClicked(MouseEvent e) {
+               handleClickEvent(e);
+               ((JTableHeader) e.getSource()).repaint();
+       }
+
+       /**
+        * Record if the mouse is pressed
+        */
+       public void mousePressed(MouseEvent e) {
+               mousePred = true;
+       }
+
+       /**
+        * Do nothing for mouse release
+        */
+       public void mouseReleased(MouseEvent e) {
+       }
+
+       /**
+        * Do nothing for mouse enter
+        */
+       public void mouseEntered(MouseEvent e) {
+       }
+
+       /**
+        * Do nothing for mouse existed
+        */
+       public void mouseExited(MouseEvent e) {
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.java b/src/org/tizen/tct/tool/mgr/view/general/CheckBoxItemListener.java
new file mode 100644 (file)
index 0000000..cfc45d0
--- /dev/null
@@ -0,0 +1,25 @@
+package org.tizen.tct.tool.mgr.view.general;
+
+import java.awt.event.ItemEvent;
+import java.awt.event.ItemListener;
+
+import javax.swing.AbstractButton;
+import javax.swing.JTable;
+
+public class CheckBoxItemListener implements ItemListener {
+       private JTable table;
+
+       public CheckBoxItemListener(JTable table) {
+               this.table = table;
+       }
+
+       public void itemStateChanged(ItemEvent e) {
+               Object source = e.getSource();
+               if (source instanceof AbstractButton == false)
+                       return;
+               boolean checked = e.getStateChange() == ItemEvent.SELECTED;
+               for (int x = 0, y = table.getRowCount(); x < y; x++) {
+                       table.setValueAt(new Boolean(checked), x, 0);
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/menu/VersionDialog.java b/src/org/tizen/tct/tool/mgr/view/menu/VersionDialog.java
new file mode 100644 (file)
index 0000000..71fdd22
--- /dev/null
@@ -0,0 +1,155 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.menu;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Graphics;
+import java.awt.GridLayout;
+import java.awt.Image;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+import java.io.IOException;
+
+import javax.imageio.ImageIO;
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.view.navi.LogoPanel;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class VersionDialog extends JDialog {
+
+       public final static String TITLE = " Tizen Compliance Test Manager";
+
+       public final static String VERSION = " Version: 3.0.3";
+
+       public final static String LICENSE = " License: Apache v2.0";
+
+       public final static String COPYRIGHT = " Copyright Â©Intel Corporation 2013. All rights reserved.";
+       
+       public final static String URL = " https://source.tizen.org/compliance";
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -182809854010688975L;
+
+       private JPanel panel;
+
+       private JFrame frame;
+
+       public VersionDialog(JFrame frame, boolean modal) {
+               super(frame, modal);
+               this.frame = frame;
+               this.setTitle(Constants.ABOUT_DIALOG_TITLE);
+
+               JPanel info = new JPanel(new GridLayout(3, 1));
+               JLabel title = new JLabel(TITLE);
+               title.setFont(Constants.POPUP_TITLE_FONT);
+               JLabel version = new JLabel(VERSION);
+               version.setFont(Constants.POPUP_TEXT_FONT);
+               JLabel license = new JLabel(LICENSE);
+               license.setFont(Constants.POPUP_TEXT_FONT);
+               JLabel copyright = new JLabel(COPYRIGHT);
+               copyright.setFont(Constants.POPUP_TEXT_FONT);
+               JLabel url = new JLabel(URL);
+               url.setFont(Constants.URL_LINK_FONT);
+               url.setForeground(Constants.URL_LINK_COLOR);
+               url.addMouseListener(new MouseAdapter() {
+
+                       @Override
+                       public void mouseClicked(MouseEvent e) {
+                               String command = "firefox" + URL;
+                               try {
+                                       Runtime.getRuntime().exec(command);
+                               } catch (IOException e1) {
+                                       e1.printStackTrace();
+                               }
+                       }
+
+               });
+               JButton close = new JButton("OK");
+               close.setFont(Constants.BUTTON_LABEL_FONT);
+               close.setPreferredSize(Constants.BUTTON_DIMENSION);
+               close.addActionListener(new CloseActionListener(this));
+               JPanel btnPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 15));
+               btnPanel.add(close);
+               JPanel titlePanel = new JPanel(new GridLayout(4, 1));
+               titlePanel.add(new JLabel());
+               titlePanel.add(title);
+               titlePanel.add(version);
+               
+               JPanel licensePanel = new JPanel(new GridLayout(3, 1));
+               licensePanel.add(license);
+               licensePanel.add(copyright);
+               licensePanel.add(url);
+               
+               info.add(titlePanel);
+               info.add(licensePanel);
+               info.add(btnPanel);
+
+               JPanel icon = new IconPanel();
+               icon.setPreferredSize(new Dimension(140, 200));
+               panel = new JPanel(new BorderLayout());
+               panel.add(icon, BorderLayout.WEST);
+               panel.add(info, BorderLayout.CENTER);
+               panel.setPreferredSize(new Dimension(500, 200));
+       }
+
+       public void showDialog() {
+               getContentPane().add(this.panel);
+               this.setResizable(false);
+               pack();
+               setLocationRelativeTo(this.frame);
+               setVisible(true);
+       }
+
+       class IconPanel extends JPanel {
+               /**
+                * 
+                */
+               private static final long serialVersionUID = 369376719039658491L;
+
+               public void paint(Graphics g) {
+                       super.paint(g);
+                       Image logoImage = null;
+                       try {
+                               logoImage = ImageIO.read(LogoPanel.class
+                                               .getResourceAsStream(Constants.TITLE_IMAGE_PATH));
+                       } catch (IOException e) {
+                               System.err.println("Fail to load the title image. [Message]:"
+                                               + e.getMessage());
+                       }
+                       this.setBackground(Color.BLACK);
+                       g.drawImage(logoImage, 0, 50, null);
+               }
+       }
+
+       class CloseActionListener implements ActionListener {
+
+               private JDialog dialog;
+
+               CloseActionListener(JDialog dialog) {
+                       this.dialog = dialog;
+               }
+
+               @Override
+               public void actionPerformed(ActionEvent arg0) {
+                       dialog.dispose();
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/navi/LogoPanel.java b/src/org/tizen/tct/tool/mgr/view/navi/LogoPanel.java
new file mode 100644 (file)
index 0000000..0dc2b65
--- /dev/null
@@ -0,0 +1,137 @@
+/**\r
+ * \r
+ */\r
+package org.tizen.tct.tool.mgr.view.navi;\r
+\r
+import java.awt.Color;\r
+import java.awt.Dimension;\r
+import java.awt.FlowLayout;\r
+import java.awt.Graphics;\r
+import java.awt.GridLayout;\r
+import java.awt.Image;\r
+import java.awt.image.ImageObserver;\r
+import java.io.IOException;\r
+\r
+import javax.imageio.ImageIO;\r
+import javax.swing.JButton;\r
+import javax.swing.JLabel;\r
+import javax.swing.JPanel;\r
+\r
+import org.tizen.tct.tool.mgr.Constants;\r
+import org.tizen.tct.tool.mgr.listener.navi.ExecuteLabelListener;\r
+import org.tizen.tct.tool.mgr.listener.navi.PlanLabelListener;\r
+import org.tizen.tct.tool.mgr.listener.navi.ReportLabelListener;\r
+import org.tizen.tct.tool.mgr.view.PlanJFrame;\r
+\r
+/**\r
+ * @author stang23\r
+ * \r
+ */\r
+public class LogoPanel extends JPanel {\r
+\r
+       /**\r
+        * \r
+        */\r
+       private static final long serialVersionUID = 1L;\r
+       private JLabel logoLabel;\r
+       private NaviLabel planLabel;\r
+       private NaviLabel executeLabel;\r
+       private NaviLabel reportLabel;\r
+\r
+       public LogoPanel() {\r
+               initGUI();\r
+       }\r
+\r
+       public LogoPanel(PlanJFrame mainFrame) {\r
+               initGUI();\r
+               planLabel.addActionListener(new PlanLabelListener(mainFrame));\r
+               executeLabel.addActionListener(new ExecuteLabelListener(mainFrame));\r
+               reportLabel.addActionListener(new ReportLabelListener(mainFrame));\r
+       }\r
+\r
+       private void initGUI() {\r
+               this.setLayout(new FlowLayout(FlowLayout.LEFT, 30, 0));\r
+               this.planLabel = new NaviLabel("Plan");\r
+               this.executeLabel = new NaviLabel("Execute");\r
+               this.reportLabel = new NaviLabel("Reports");\r
+               this.add(this.planLabel);\r
+               this.add(this.executeLabel);\r
+               this.add(this.reportLabel);\r
+\r
+               Dimension navi_dim = new Dimension(Constants.FRAME_WIDTH,\r
+                               Constants.NAVI_PANEL_HIGHT);\r
+               this.setPreferredSize(navi_dim);\r
+       }\r
+\r
+       public void paint(Graphics g) {\r
+               super.paint(g);\r
+               Image logoImage = null;\r
+               try {\r
+                       logoImage = ImageIO.read(LogoPanel.class\r
+                                       .getResourceAsStream(Constants.TITLE_IMAGE_PATH));\r
+               } catch (IOException e) {\r
+                       System.err.println("Fail to load the title image. [Message]:"\r
+                                       + e.getMessage());\r
+               }\r
+               this.setBackground(Color.BLACK);\r
+               ImageObserver ob = new ImageObserver() {\r
+\r
+                       @Override\r
+                       public boolean imageUpdate(Image img, int infoflags, int x, int y,\r
+                                       int width, int height) {\r
+                               return false;\r
+                       }\r
+\r
+               };\r
+               int width = this.getWidth();\r
+               int imageWidth = logoImage.getWidth(ob);\r
+               g.drawImage(logoImage, width - imageWidth, 0, null);\r
+       }\r
+\r
+       private class NaviLabel extends JButton {\r
+\r
+               /**\r
+                * \r
+                */\r
+               private static final long serialVersionUID = 4221892058382335470L;\r
+\r
+               NaviLabel(String label) {\r
+                       super(label);\r
+                       this.setPreferredSize(new Dimension(90, Constants.NAVI_PANEL_HIGHT));\r
+                       this.setFont(Constants.NAVI_FONT);\r
+                       this.setContentAreaFilled(false);\r
+                       this.setBorderPainted(false);\r
+               }\r
+\r
+               void setLabelUnselected() {\r
+                       this.setForeground(Constants.NAVI_LABEL_COLOR);\r
+               }\r
+\r
+               void setLabelHighLight() {\r
+                       this.setForeground(Constants.NAVI_HIGHT_LIGHT_LABEL_COLOR);\r
+               }\r
+\r
+       }\r
+\r
+       private void setLabelColorBack() {\r
+               this.planLabel.setLabelUnselected();\r
+               this.executeLabel.setLabelUnselected();\r
+               this.reportLabel.setLabelUnselected();\r
+       }\r
+\r
+       public void highLightPlanLabel() {\r
+               setLabelColorBack();\r
+               this.planLabel.setLabelHighLight();\r
+       }\r
+\r
+       public void highLightExecuteLabel() {\r
+               setLabelColorBack();\r
+               this.executeLabel.setLabelHighLight();\r
+       }\r
+\r
+       public void highLightReportLabel() {\r
+               setLabelColorBack();\r
+               this.reportLabel.setLabelHighLight();\r
+       }\r
+\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.java b/src/org/tizen/tct/tool/mgr/view/planpage/PlanChangedDialog.java
new file mode 100644 (file)
index 0000000..58d35eb
--- /dev/null
@@ -0,0 +1,182 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.planpage;
+
+import java.awt.ComponentOrientation;
+import java.awt.FlowLayout;
+import java.awt.Frame;
+import java.awt.GridLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.ButtonGroup;
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class PlanChangedDialog extends JDialog implements ActionListener {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -3672810401509930776L;
+
+       public final static String TITLE = "Test Plan Changed";
+
+       public final static String EMPTY_TITLE = "Create Test Plan";
+
+       public final static String CHANGED = " Changes have been made to the test plan 'PLANNAME'.";
+
+       public final static String EMPTY_DESC = " No plan exists.";
+
+       public final static String QUESTION = " What would you like to to?";
+
+       public final static String OVERRIDE_OPTION = "Override 'PLANNAME' plan";
+
+       public final static String TEMP_OPTION = "Execute as 'temp' plan";
+
+       public final static String CREATE_OPTION = "Create a new plan";
+
+       private int option = JOptionPane.CLOSED_OPTION;
+
+       private ButtonGroup group;
+
+       public PlanChangedDialog(Frame owner, TctTestPlan plan) {
+               super(owner, true);
+               JPanel panel = new JPanel(new GridLayout(3, 1));
+               JPanel desPanel = new JPanel(new GridLayout(3, 1));
+               JPanel optionWrapPanel = new JPanel(new FlowLayout(FlowLayout.CENTER,
+                               0, 0));
+               JPanel optionPanel;
+               JPanel btnPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 20, 10));
+
+               JButton ok = new ConfirmButton("OK");
+               JButton cancel = new ConfirmButton("Cancel");
+               ok.setEnabled(false);
+               ok.addActionListener(this);
+               cancel.addActionListener(new ActionListener() {
+                       @Override
+                       public void actionPerformed(ActionEvent e) {
+                               setVisible(false);
+                               dispose();
+                       }
+               });
+
+               JRadioButton override = new OptionRadio(OVERRIDE_OPTION, ok,
+                               JOptionPane.CANCEL_OPTION);
+               JRadioButton create = new OptionRadio(CREATE_OPTION, ok,
+                               JOptionPane.NO_OPTION);
+               JRadioButton tmp = new OptionRadio(TEMP_OPTION, ok,
+                               JOptionPane.YES_OPTION);
+               group = new ButtonGroup();
+
+               JLabel desc = new JLabel();
+               desc.setFont(Constants.MAIN_TEXT_FONT);
+               JLabel question = new JLabel(QUESTION);
+               question.setFont(Constants.MAIN_TEXT_FONT);
+
+               if (null == plan.getName()) {
+                       this.setTitle(EMPTY_TITLE);
+                       desc.setText(EMPTY_DESC);
+                       optionPanel = new JPanel(new GridLayout(2, 1));
+               } else {
+                       this.setTitle(TITLE);
+                       desc.setText(CHANGED.replaceAll("PLANNAME", plan.getName()));
+                       optionPanel = new JPanel(new GridLayout(3, 1));
+                       override.setText(OVERRIDE_OPTION.replaceAll("PLANNAME",
+                                       plan.getName()));
+                       optionPanel.add(override);
+                       group.add(override);
+               }
+               optionPanel.add(create);
+               optionPanel.add(tmp);
+               optionWrapPanel.add(optionPanel);
+               group.add(create);
+               group.add(tmp);
+
+               btnPanel.add(cancel);
+               btnPanel.add(ok);
+
+               desPanel.add(desc);
+               desPanel.add(question);
+
+               panel.add(desPanel);
+               panel.add(optionWrapPanel);
+               panel.add(btnPanel);
+               getContentPane().applyComponentOrientation(
+                               ComponentOrientation.getOrientation(getContentPane()
+                                               .getLocale()));
+               getContentPane().add(panel);
+               this.setResizable(false);
+               pack();
+               setLocationRelativeTo(owner);
+               setVisible(true);
+       }
+
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               this.option = Integer.parseInt(this.group.getSelection()
+                               .getActionCommand());
+               setVisible(false);
+               this.dispose();
+       }
+
+       public int getChoice() {
+               return this.option;
+       }
+}
+
+class OptionRadio extends JRadioButton {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -5628219693554028570L;
+
+       public OptionRadio(String text, JButton ok, int actionCommand) {
+               super(text);
+               setFont(Constants.MAIN_TEXT_FONT);
+               addActionListener(new RadioListener(ok));
+               setActionCommand(Integer.toString(actionCommand));
+       }
+
+}
+
+class ConfirmButton extends JButton {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -1238053823129372345L;
+
+       public ConfirmButton(String text) {
+               super(text);
+               setPreferredSize(Constants.BUTTON_DIMENSION);
+               setFont(Constants.BUTTON_LABEL_FONT);
+       }
+
+}
+
+class RadioListener implements ActionListener {
+       private JButton ok;
+
+       RadioListener(JButton ok) {
+               this.ok = ok;
+       }
+
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               ok.setEnabled(true);
+       }
+}
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.java b/src/org/tizen/tct/tool/mgr/view/planpage/PlanDashPanel.java
new file mode 100644 (file)
index 0000000..7c0fd3a
--- /dev/null
@@ -0,0 +1,172 @@
+package org.tizen.tct.tool.mgr.view.planpage;\r
+\r
+import java.awt.BorderLayout;\r
+import java.awt.FlowLayout;\r
+import java.awt.GridBagConstraints;\r
+import java.awt.GridBagLayout;\r
+import java.awt.event.ActionEvent;\r
+import java.awt.event.ActionListener;\r
+import java.awt.Insets;\r
+import java.util.Observable;\r
+import java.util.Observer;\r
+\r
+import javax.swing.DefaultComboBoxModel;\r
+import javax.swing.JButton;\r
+import javax.swing.JCheckBox;\r
+import javax.swing.JComboBox;\r
+import javax.swing.JLabel;\r
+import javax.swing.JPanel;\r
+import javax.swing.border.EmptyBorder;\r
+\r
+import org.tizen.tct.tool.mgr.Constants;\r
+import org.tizen.tct.tool.mgr.listener.plan.ExecuteTypeChangedItemListener;\r
+import org.tizen.tct.tool.mgr.listener.plan.PlanChangedItemListener;\r
+import org.tizen.tct.tool.mgr.listener.plan.RunButtonActionListener;\r
+import org.tizen.tct.tool.mgr.model.ExecuteType;\r
+import org.tizen.tct.tool.mgr.model.plan.SingleTctPlanList;\r
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;\r
+\r
+public class PlanDashPanel extends JPanel implements Observer {\r
+\r
+       /**\r
+        * \r
+        */\r
+       private static final long serialVersionUID = 1L;\r
+\r
+       private final JLabel testplanLable = new JLabel("Test Plan:");\r
+\r
+       private final JLabel executeTypeLable = new JLabel("Execution Type:");\r
+\r
+       private JComboBox<String> planComboBox = null;\r
+\r
+       private JComboBox<String> executeTypeComboBox = null;\r
+\r
+       private JButton executeButton = new JButton("Run");\r
+\r
+       private JCheckBox preconCheckbox = new JCheckBox("Pre-Configure");\r
+\r
+       public PlanDashPanel(PlanPanel parent) {\r
+               super(new BorderLayout());\r
+               JPanel dashPanel = new JPanel();\r
+\r
+               GridBagLayout planDashPanelLayout = new GridBagLayout();\r
+               dashPanel.setLayout(planDashPanelLayout);\r
+               GridBagConstraints gbc = new DashGridBagConstraints();\r
+               GridBagConstraints gbc2 = new DashGridBagConstraints(1, 0, 2);\r
+               GridBagConstraints gbc3 = new DashGridBagConstraints(0, 1, 1);\r
+               GridBagConstraints gbc4 = new DashGridBagConstraints(1, 1, 2);\r
+\r
+               SingleTctPlanList sl = SingleTctPlanList.getInstance();\r
+               sl.loadPlanList(Constants.PLAN_REPOSITORY);\r
+               sl.addObserver(this);\r
+\r
+               String[] plans = sl.getPlans();\r
+               planComboBox = new JComboBox<String>();\r
+               planComboBox.setModel(new DefaultComboBoxModel<String>(plans));\r
+               executeTypeComboBox = new JComboBox<String>(\r
+                               ExecuteType.getAllAvailableExecuteType());\r
+               if (null != plans && plans.length > 0) {\r
+                       TctTestPlan plan = SingleTctPlanList.getInstance()\r
+                                       .getPlan(plans[0]);\r
+                       executeTypeComboBox.setSelectedItem(plan.geteType().toString());\r
+                       if (plan.geteType() == ExecuteType.AUTO) {\r
+                               executeTypeComboBox.setSelectedItem(ExecuteType.automated);\r
+                       }\r
+               }\r
+\r
+               planDashPanelLayout.setConstraints(testplanLable, gbc);\r
+               planDashPanelLayout.setConstraints(planComboBox, gbc2);\r
+               planDashPanelLayout.setConstraints(executeTypeLable, gbc3);\r
+               planDashPanelLayout.setConstraints(executeTypeComboBox, gbc4);\r
+\r
+               testplanLable.setFont(Constants.DASH_LABEL_FONT);\r
+               planComboBox.setFont(Constants.MAIN_TEXT_FONT);\r
+               executeTypeLable.setFont(Constants.DASH_LABEL_FONT);\r
+               executeTypeComboBox.setFont(Constants.MAIN_TEXT_FONT);\r
+               planComboBox.addItemListener(new PlanChangedItemListener(parent));\r
+\r
+               dashPanel.add(testplanLable);\r
+               dashPanel.add(planComboBox);\r
+               dashPanel.add(executeTypeLable);\r
+               dashPanel.add(executeTypeComboBox);\r
+\r
+               executeButton.setFont(Constants.BUTTON_LABEL_FONT);\r
+               executeButton.addActionListener(new RunButtonActionListener(parent));\r
+               executeButton.setPreferredSize(Constants.BUTTON_DIMENSION);\r
+               JPanel btnPanel = new JPanel(new FlowLayout());\r
+               btnPanel.add(executeButton);\r
+\r
+               preconCheckbox.setFont(Constants.TABLE_CELL_FONT);\r
+               JPanel checkPanel = new JPanel(new FlowLayout());\r
+               checkPanel.add(preconCheckbox);\r
+               JPanel commandPanel = new JPanel();\r
+               GridBagLayout runbuttonLayout = new GridBagLayout();\r
+               commandPanel.setLayout(runbuttonLayout);\r
+               GridBagConstraints gb1 = new DashGridBagConstraints();\r
+               GridBagConstraints gb2 = new DashGridBagConstraints(0, 1, 1);\r
+\r
+               runbuttonLayout.setConstraints(btnPanel, gb1);\r
+               runbuttonLayout.setConstraints(checkPanel, gb2);\r
+               commandPanel.add(btnPanel);\r
+               commandPanel.add(checkPanel);\r
+               commandPanel.setPreferredSize(Constants.RUN_DIMENSION);\r
+\r
+               this.add(dashPanel, BorderLayout.WEST);\r
+               this.add(commandPanel, BorderLayout.EAST);\r
+               this.setPreferredSize(new java.awt.Dimension(Constants.FRAME_WIDTH,\r
+                               Constants.PLAN_DASH_HIGHT));\r
+       }\r
+\r
+       public void setExecuteType(String planName) {\r
+               TctTestPlan plan = SingleTctPlanList.getInstance().getPlan(planName);\r
+               if (plan.geteType() == ExecuteType.AUTO) {\r
+                       executeTypeComboBox.setSelectedItem(ExecuteType.automated);\r
+               } else {\r
+                       executeTypeComboBox.setSelectedItem(plan.geteType().toString());\r
+               }\r
+       }\r
+\r
+       public boolean getSelectPreconf() {\r
+               return preconCheckbox.isSelected();\r
+       }\r
+\r
+       public String getSelectedPlan() {\r
+               if (null != planComboBox.getSelectedItem()) {\r
+                       return planComboBox.getSelectedItem().toString();\r
+               } else {\r
+                       return null;\r
+               }\r
+       }\r
+\r
+       public String getSelectedEType() {\r
+               return executeTypeComboBox.getSelectedItem().toString();\r
+       }\r
+\r
+       class DashGridBagConstraints extends GridBagConstraints {\r
+               /**\r
+                * \r
+                */\r
+               private static final long serialVersionUID = 3330787154959118547L;\r
+\r
+               DashGridBagConstraints() {\r
+                       this(0, 0, 1);\r
+               }\r
+\r
+               DashGridBagConstraints(int x, int y, int width) {\r
+                       this.gridx = x;\r
+                       this.gridy = y;\r
+                       this.gridwidth = width;\r
+                       this.anchor = GridBagConstraints.NORTH;\r
+                       this.fill = GridBagConstraints.HORIZONTAL;\r
+                       this.insets = new Insets(5, 5, 5, 10);\r
+                       this.ipadx = 20;\r
+                       this.ipady = 10;\r
+               }\r
+       }\r
+\r
+       @Override\r
+       public void update(Observable o, Object arg) {\r
+               planComboBox.setModel(new DefaultComboBoxModel<String>(\r
+                               SingleTctPlanList.getInstance().getPlans()));\r
+       }\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.java b/src/org/tizen/tct/tool/mgr/view/planpage/PlanPanel.java
new file mode 100644 (file)
index 0000000..0943569
--- /dev/null
@@ -0,0 +1,110 @@
+package org.tizen.tct.tool.mgr.view.planpage;
+
+import java.awt.BorderLayout;
+import java.awt.GridLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.List;
+
+import javax.swing.JButton;
+import javax.swing.JPanel;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.plan.ItemChangedCallback;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.view.ContentPanel;
+import org.tizen.tct.tool.mgr.view.reportpage.ReportButton;
+import org.tizen.tct.tool.mgr.view.runpage.RunPanel;
+
+public class PlanPanel extends JPanel implements ItemChangedCallback {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -5766005453976148122L;
+
+       private PlanDashPanel planDashPanel;
+
+       private SuiteListJScrollPane suiteListPanel;
+
+       private ContentPanel parent = null;
+
+       public PlanPanel(ContentPanel parent) {
+               this.parent = parent;
+       }
+
+       public void initPlanPage() {
+               if (null == planDashPanel || null == suiteListPanel) {
+                       this.setLayout(new BorderLayout());
+                       planDashPanel = new PlanDashPanel(this);
+                       this.add(planDashPanel, BorderLayout.NORTH);
+
+                       suiteListPanel = SuiteListJScrollPane.createSuiteListPanel();
+                       JPanel treeWrapper = new JPanel(new BorderLayout());
+                       JPanel treeBtnPanel = new JPanel(new BorderLayout());
+                       JPanel btnPanel = new JPanel(new GridLayout(1, 2));
+                       
+                       JButton collapse = new ReportButton(Constants.COLLAPSE_IMAGE_PATH,
+                                       "Collapse Categories");
+                       JButton expands = new ReportButton(Constants.EXPANDS_IMAGE_PATH,
+                                       "Expands Categories");
+                       collapse.addActionListener(new ActionListener() {
+                               @Override
+                               public void actionPerformed(ActionEvent e) {
+                                       suiteListPanel.collapseTree();
+                               }
+                       });
+                       expands.addActionListener(new ActionListener() {
+                               @Override
+                               public void actionPerformed(ActionEvent e) {
+                                       suiteListPanel.expandTree();
+                               }
+                       });
+                       btnPanel.add(collapse);
+                       btnPanel.add(expands);
+                       treeBtnPanel.add(btnPanel, BorderLayout.WEST);
+                       treeWrapper.add(treeBtnPanel, BorderLayout.NORTH);
+                       treeWrapper.add(suiteListPanel, BorderLayout.CENTER);
+                       this.add(treeWrapper, BorderLayout.CENTER);
+                       suiteListPanel.setPreferredSize(new java.awt.Dimension(
+                                       Constants.FRAME_WIDTH, Constants.CONTENT_PANEL_HIGHT));
+                       this.revalidate();
+               }
+       }
+
+       public RunPanel turnToRunPage(TctTestPlan plan) {
+               return this.parent.turnToRunPage(plan);
+       }
+
+       @Override
+       public void updateExecuteType(String planName) {
+               this.planDashPanel.setExecuteType(planName);
+       }
+
+       @Override
+       public void updateSelectedSuites(String planName) {
+               this.suiteListPanel.updateSelectedSuites(planName);
+       }
+
+       public String getSelectedPlan() {
+               return this.planDashPanel.getSelectedPlan();
+       }
+
+       public String getSelectedEType() {
+               return this.planDashPanel.getSelectedEType();
+       }
+
+       public List<String> getSelectedSuites() {
+               return this.suiteListPanel.getSelectedSuites();
+       }
+
+       @Override
+       public void updateSuiteTableForEtype(ExecuteType et) {
+               this.suiteListPanel.updateSuiteListTree(et);
+       }
+
+       public boolean getSelectPreconf() {
+               return this.planDashPanel.getSelectPreconf();
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.java b/src/org/tizen/tct/tool/mgr/view/planpage/SuiteListJScrollPane.java
new file mode 100644 (file)
index 0000000..dd012a1
--- /dev/null
@@ -0,0 +1,109 @@
+package org.tizen.tct.tool.mgr.view.planpage;\r
+\r
+import java.util.ArrayList;\r
+import java.util.List;\r
+\r
+import javax.swing.JScrollPane;\r
+import javax.swing.JTree;\r
+\r
+import org.tizen.tct.tool.mgr.model.ExecuteType;\r
+import org.tizen.tct.tool.mgr.model.plan.SingleTctPlanList;\r
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;\r
+import org.tizen.tct.tool.mgr.model.plan.suitetree.SelectableTreeNode;\r
+import org.tizen.tct.tool.mgr.model.plan.suitetree.SuiteTreeRootNode;\r
+import org.tizen.tct.tool.mgr.view.planpage.suitetree.SuiteTreeCellEditor;\r
+import org.tizen.tct.tool.mgr.view.planpage.suitetree.SuiteTreeCellRenderer;\r
+\r
+public class SuiteListJScrollPane extends JScrollPane {\r
+\r
+       private JTree suiteTree;\r
+\r
+       /**\r
+        * \r
+        */\r
+       private static final long serialVersionUID = 1L;\r
+\r
+       private SuiteListJScrollPane(JTree tree) {\r
+               super(tree);\r
+               this.suiteTree = tree;\r
+       }\r
+\r
+       public List<String> getSelectedSuites() {\r
+               List<String> selected = new ArrayList<String>();\r
+               SuiteTreeRootNode root = (SuiteTreeRootNode) this.suiteTree.getModel()\r
+                               .getRoot();\r
+               if (null != root) {\r
+                       for (SelectableTreeNode node : root.getSelectedSuites()) {\r
+                               selected.add(node.getName());\r
+                       }\r
+               }\r
+               return selected;\r
+       }\r
+\r
+       private static JTree initSuiteTree(ExecuteType et,\r
+                       List<String> selectedSuites) {\r
+               SuiteTreeRootNode model = SuiteTreeRootNode.getSuiteTreeModel(et);\r
+               if (null == selectedSuites) {\r
+                       model.setPlanSelected(SingleTctPlanList.getInstance()\r
+                                       .getSelectedPlan());\r
+               }else{\r
+                       model.setSuitesSelected(selectedSuites);\r
+               }\r
+               JTree tree = new JTree(model);\r
+               tree.setCellRenderer(new SuiteTreeCellRenderer());\r
+               tree.setCellEditor(new SuiteTreeCellEditor());\r
+               tree.setEditable(true);\r
+               tree.setShowsRootHandles(true);\r
+               for (int i = 0; i < tree.getRowCount(); i++) {\r
+                       tree.expandRow(i);\r
+               }\r
+               javax.swing.ToolTipManager.sharedInstance().registerComponent(tree);\r
+               return tree;\r
+       }\r
+\r
+       public static SuiteListJScrollPane createSuiteListPanel() {\r
+               JTree suiteList = initSuiteTree(null, null);\r
+               return new SuiteListJScrollPane(suiteList);\r
+       }\r
+\r
+       public void updateSuiteListTree(ExecuteType et) {\r
+               List<String> selectedSuites = this.getSelectedSuites();\r
+               this.stopEditing();\r
+               this.getViewport().remove(this.suiteTree);\r
+               this.suiteTree = initSuiteTree(et, selectedSuites);\r
+               this.getViewport().add(this.suiteTree);\r
+               this.suiteTree.setVisible(true);\r
+               this.validate();\r
+       }\r
+\r
+       public void updateSelectedSuites(String planName) {\r
+               TctTestPlan plan = SingleTctPlanList.getInstance().getPlan(planName);\r
+               SuiteTreeRootNode root = (SuiteTreeRootNode) this.suiteTree.getModel()\r
+                               .getRoot();\r
+               this.stopEditing();\r
+               if (null != root) {\r
+                       root.setSelected(false);\r
+                       root.setPlanSelected(plan);\r
+                       this.suiteTree.repaint();\r
+               }\r
+       }\r
+       \r
+       public void stopEditing(){\r
+               this.suiteTree.getCellEditor().stopCellEditing();\r
+               this.suiteTree.clearSelection();\r
+       }\r
+\r
+       public void expandTree() {\r
+               for (int i = 0; i < this.suiteTree.getRowCount(); i++) {\r
+                       this.suiteTree.expandRow(i);\r
+               }\r
+       }\r
+\r
+       public void collapseTree() {\r
+               for (int i = 0; i < this.suiteTree.getRowCount(); i++) {\r
+                       if (i > 0) {\r
+                               this.suiteTree.collapseRow(i);\r
+                       }\r
+               }\r
+       }\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.java b/src/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellEditor.java
new file mode 100644 (file)
index 0000000..b403d4f
--- /dev/null
@@ -0,0 +1,151 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.planpage.suitetree;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.GridLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.AbstractCellEditor;
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTree;
+import javax.swing.tree.DefaultTreeCellRenderer;
+import javax.swing.tree.TreeCellEditor;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.plan.suitetree.CategoryTreeNode;
+import org.tizen.tct.tool.mgr.model.plan.suitetree.SelectableTreeNode;
+import org.tizen.tct.tool.mgr.model.plan.suitetree.SuiteTreeNode;
+import org.tizen.tct.tool.mgr.model.plan.suitetree.SuiteTreeRootNode;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class SuiteTreeCellEditor extends AbstractCellEditor implements
+               TreeCellEditor {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 2947462771933751546L;
+
+       private DefaultTreeCellRenderer defaultRenderer = new DefaultTreeCellRenderer();
+
+       private Color backgroundSelectionColor;
+
+       private SelectableTreeNode node;
+
+       public SuiteTreeCellEditor() {
+               backgroundSelectionColor = defaultRenderer
+                               .getBackgroundSelectionColor();
+       }
+
+       @Override
+       public Object getCellEditorValue() {
+               return this.node;
+       }
+
+       @Override
+       public Component getTreeCellEditorComponent(JTree tree, Object value,
+                       boolean selected, boolean expanded, boolean leaf, int row) {
+               JPanel panel = new JPanel(new GridLayout(1, 2));
+               JPanel titlePanel = new JPanel(new BorderLayout());
+               JCheckBox checkbox = new JCheckBox();
+               titlePanel.add(checkbox, BorderLayout.WEST);
+               JPanel detailPanel = new JPanel(new GridLayout(1, 4));
+               panel.add(titlePanel);
+               panel.add(detailPanel);
+               JLabel name = null;
+               if (value instanceof SuiteTreeRootNode) {
+                       SuiteTreeRootNode node = (SuiteTreeRootNode) value;
+                       name = new JLabel("All");
+                       if (node.containSelected()) {
+                               name.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+                       } else {
+                               name.setFont(Constants.MAIN_TEXT_FONT);
+                       }
+                       titlePanel.add(name, BorderLayout.CENTER);
+                       detailPanel = SuiteTreeCellRenderer.initialDetailTitle(detailPanel);
+                       panel.setPreferredSize(Constants.SUITE_TREE_TITLE_DIM);
+               } else if (value instanceof CategoryTreeNode) {
+                       CategoryTreeNode node = (CategoryTreeNode) value;
+                       name = new JLabel(node.getName());
+                       if (node.containSelected()) {
+                               name.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+                       } else {
+                               name.setFont(Constants.MAIN_TEXT_FONT);
+                       }
+                       titlePanel.add(name, BorderLayout.CENTER);
+               } else if (value instanceof SuiteTreeNode) {
+                       SuiteTreeNode node = (SuiteTreeNode) value;
+                       name = new JLabel(node.getSuite().getName());
+                       name.setFont(Constants.MAIN_TEXT_FONT);
+                       titlePanel.add(name, BorderLayout.CENTER);
+
+                       detailPanel = SuiteTreeCellRenderer.initialDetailSuite(detailPanel,
+                                       node);
+                       panel.setPreferredSize(Constants.SUITE_TREE_LEAVE_DIM);
+               }
+
+               checkbox.setBackground(backgroundSelectionColor);
+               panel.setBackground(backgroundSelectionColor);
+
+               if (value instanceof SelectableTreeNode) {
+                       node = (SelectableTreeNode) value;
+                       checkbox.setSelected(!node.isSelected());
+                       if (!(value instanceof SuiteTreeNode)) {
+                               if (checkbox.isSelected()) {
+                                       name.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+                               } else {
+                                       name.setFont(Constants.MAIN_TEXT_FONT);
+                               }
+                       }
+                       checkbox.addActionListener(new CheckSuiteActionListener(checkbox,
+                                       node, tree, name));
+                       node.setSelected(!node.isSelected());
+                       tree.repaint();
+               }
+
+               return panel;
+       }
+
+       class CheckSuiteActionListener implements ActionListener {
+
+               private JCheckBox checkbox;
+
+               private SelectableTreeNode node;
+
+               private JTree tree;
+
+               private JLabel name;
+
+               public CheckSuiteActionListener(JCheckBox checkbox,
+                               SelectableTreeNode node, JTree tree, JLabel name) {
+                       this.checkbox = checkbox;
+                       this.node = node;
+                       this.tree = tree;
+                       this.name = name;
+               }
+
+               @Override
+               public void actionPerformed(ActionEvent e) {
+                       this.node.setSelected(this.checkbox.isSelected());
+                       if (null != this.name) {
+                               if (node.isSelected()) {
+                                       this.name.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+                               } else {
+                                       this.name.setFont(Constants.MAIN_TEXT_FONT);
+                               }
+                       }
+                       tree.repaint();
+               }
+
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.java b/src/org/tizen/tct/tool/mgr/view/planpage/suitetree/SuiteTreeCellRenderer.java
new file mode 100644 (file)
index 0000000..646406d
--- /dev/null
@@ -0,0 +1,149 @@
+package org.tizen.tct.tool.mgr.view.planpage.suitetree;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.GridLayout;
+
+import javax.swing.JCheckBox;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTree;
+import javax.swing.tree.DefaultTreeCellRenderer;
+import javax.swing.tree.TreeCellRenderer;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.plan.suitetree.CategoryTreeNode;
+import org.tizen.tct.tool.mgr.model.plan.suitetree.SelectableTreeNode;
+import org.tizen.tct.tool.mgr.model.plan.suitetree.SuiteTreeNode;
+import org.tizen.tct.tool.mgr.model.plan.suitetree.SuiteTreeRootNode;
+
+public class SuiteTreeCellRenderer implements TreeCellRenderer {
+
+       private DefaultTreeCellRenderer defaultRenderer = new DefaultTreeCellRenderer();
+
+       private Color backgroundSelectionColor;
+
+       private Color backgroundNonSelectionColor;
+
+       public SuiteTreeCellRenderer() {
+               backgroundSelectionColor = defaultRenderer
+                               .getBackgroundSelectionColor();
+               backgroundNonSelectionColor = defaultRenderer
+                               .getBackgroundNonSelectionColor();
+       }
+
+       static JPanel initialDetailTitle(JPanel detailPanel) {
+               JLabel aColLabel = new JLabel(ExecuteType.automated);
+               JLabel mColLabel = new JLabel(ExecuteType.MANUAL.toString());
+               JLabel tColLabel = new JLabel("Total");
+               JLabel vColLabel = new JLabel("Version");
+               aColLabel.setFont(Constants.TABLE_CELL_FONT);
+               mColLabel.setFont(Constants.TABLE_CELL_FONT);
+               tColLabel.setFont(Constants.TABLE_CELL_FONT);
+               vColLabel.setFont(Constants.TABLE_CELL_FONT);
+
+               aColLabel.setForeground(Constants.SUITE_AUTO_COLOR);
+               mColLabel.setForeground(Constants.SUITE_MANU_COLOR);
+               tColLabel.setForeground(Constants.SUITE_TOTAL_COLOR);
+               vColLabel.setForeground(Constants.SUITE_VERSION_COLOR);
+               detailPanel.add(aColLabel);
+               detailPanel.add(mColLabel);
+               detailPanel.add(tColLabel);
+               detailPanel.add(vColLabel);
+
+               return detailPanel;
+       }
+
+       static JPanel initialDetailSuite(JPanel detailPanel, SuiteTreeNode node) {
+               TctTestSuite suite = node.getSuite();
+               JLabel auto = new JLabel(suite.getAuto_num().toString());
+               JLabel manual = new JLabel(suite.getManual_num().toString());
+               JLabel total = new JLabel(Integer.toString(suite.getAuto_num()
+                               + suite.getManual_num()));
+               JLabel version = new JLabel(suite.getVersion());
+               auto.setForeground(Constants.SUITE_AUTO_COLOR);
+               manual.setForeground(Constants.SUITE_MANU_COLOR);
+               total.setForeground(Constants.SUITE_TOTAL_COLOR);
+               version.setForeground(Constants.SUITE_VERSION_COLOR);
+               auto.setFont(Constants.MAIN_TEXT_FONT);
+               manual.setFont(Constants.MAIN_TEXT_FONT);
+               total.setFont(Constants.MAIN_TEXT_FONT);
+               version.setFont(Constants.MAIN_TEXT_FONT);
+               detailPanel.add(auto);
+               detailPanel.add(manual);
+               detailPanel.add(total);
+               detailPanel.add(version);
+
+               return detailPanel;
+       }
+
+       @Override
+       public Component getTreeCellRendererComponent(JTree tree, Object value,
+                       boolean selected, boolean expanded, boolean leaf, int row,
+                       boolean hasFocus) {
+               JPanel panel = new JPanel(new GridLayout(1, 2));
+               JPanel titlePanel = new JPanel(new BorderLayout());
+               JCheckBox checkbox = new JCheckBox();
+               titlePanel.add(checkbox, BorderLayout.WEST);
+               JPanel detailPanel = new JPanel(new GridLayout(1, 4));
+               panel.add(titlePanel);
+               panel.add(detailPanel);
+               if (value instanceof SelectableTreeNode) {
+                       SelectableTreeNode node = (SelectableTreeNode) value;
+                       checkbox.setSelected(node.isSelected());
+               }
+
+               if (value instanceof SuiteTreeRootNode) {
+                       SuiteTreeRootNode node = (SuiteTreeRootNode) value;
+                       JLabel name = new JLabel("All");
+                       if (node.containSelected()) {
+                               name.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+                       } else {
+                               name.setFont(Constants.MAIN_TEXT_FONT);
+                       }
+                       detailPanel = initialDetailTitle(detailPanel);
+                       titlePanel.add(name, BorderLayout.CENTER);
+                       panel.setToolTipText("All Suites");
+                       panel.setPreferredSize(Constants.SUITE_TREE_TITLE_DIM);
+               } else if (value instanceof CategoryTreeNode) {
+                       CategoryTreeNode node = (CategoryTreeNode) value;
+                       JLabel name = new JLabel(node.getName());
+                       if (node.containSelected()) {
+                               name.setFont(Constants.MAIN_BOLD_TEXT_FONT);
+                       } else {
+                               name.setFont(Constants.MAIN_TEXT_FONT);
+                       }
+                       titlePanel.add(name, BorderLayout.CENTER);
+                       panel.setToolTipText("Category: " + node.getName());
+                       panel.setPreferredSize(Constants.SUITE_TREE_TITLE_DIM);
+               } else if (value instanceof SuiteTreeNode) {
+                       SuiteTreeNode node = (SuiteTreeNode) value;
+                       JLabel name = new JLabel(node.getSuite().getName());
+                       name.setFont(Constants.MAIN_TEXT_FONT);
+                       titlePanel.add(name, BorderLayout.CENTER);
+                       detailPanel = initialDetailSuite(detailPanel, node);
+                       panel.setToolTipText("Suite: " + node.getName() + "("
+                                       + ExecuteType.automated + ": "
+                                       + node.getSuite().getAuto_num() + ", " + ExecuteType.MANUAL
+                                       + ": " + node.getSuite().getManual_num() + ", Version: "
+                                       + node.getSuite().getVersion() + ")");
+                       panel.setPreferredSize(Constants.SUITE_TREE_LEAVE_DIM);
+               }
+               if (selected) {
+                       checkbox.setBackground(backgroundSelectionColor);
+                       panel.setBackground(backgroundSelectionColor);
+                       titlePanel.setBackground(backgroundSelectionColor);
+                       detailPanel.setBackground(backgroundSelectionColor);
+               } else {
+                       checkbox.setBackground(backgroundNonSelectionColor);
+                       panel.setBackground(backgroundNonSelectionColor);
+                       titlePanel.setBackground(backgroundNonSelectionColor);
+                       detailPanel.setBackground(backgroundNonSelectionColor);
+               }
+               return panel;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.java b/src/org/tizen/tct/tool/mgr/view/reportpage/DeleteReportCallback.java
new file mode 100644 (file)
index 0000000..2ec9b8c
--- /dev/null
@@ -0,0 +1,15 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.reportpage;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public interface DeleteReportCallback {
+       
+       void deleteSelectedItem();
+
+       boolean isItemSelected();
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.java b/src/org/tizen/tct/tool/mgr/view/reportpage/ReportButton.java
new file mode 100644 (file)
index 0000000..62c42b6
--- /dev/null
@@ -0,0 +1,48 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.reportpage;
+
+import java.awt.Image;
+import java.io.IOException;
+
+import javax.imageio.ImageIO;
+import javax.swing.BorderFactory;
+import javax.swing.ImageIcon;
+import javax.swing.JButton;
+import javax.swing.border.Border;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class ReportButton extends JButton {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 4491973943280119601L;
+
+       private static Image loadImage(String imagePath) {
+               Image image = null;
+               try {
+                       image = ImageIO.read(ReportCellRender.class
+                                       .getResourceAsStream(imagePath));
+               } catch (IOException e1) {
+                       e1.printStackTrace();
+               }
+
+               return image;
+       }
+
+       public ReportButton(String iconPath, String tooltip) {
+               super(new ImageIcon(loadImage(iconPath)));
+               this.setToolTipText(tooltip);
+               this.setContentAreaFilled(false); 
+       }
+
+       public ReportButton(String iconPath) {
+               super(new ImageIcon(loadImage(iconPath)));
+               this.setContentAreaFilled(false); 
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.java b/src/org/tizen/tct/tool/mgr/view/reportpage/ReportCellEditor.java
new file mode 100644 (file)
index 0000000..40af4da
--- /dev/null
@@ -0,0 +1,81 @@
+package org.tizen.tct.tool.mgr.view.reportpage;
+
+import java.awt.Component;
+import java.awt.GridLayout;
+
+import javax.swing.AbstractCellEditor;
+import javax.swing.JButton;
+import javax.swing.JPanel;
+import javax.swing.JTable;
+import javax.swing.table.TableCellEditor;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.report.ExportActionListener;
+import org.tizen.tct.tool.mgr.listener.report.RerunActionListener;
+import org.tizen.tct.tool.mgr.listener.report.ResumeActionListener;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+import org.tizen.tct.tool.mgr.view.ContentPanel;
+
+public class ReportCellEditor extends AbstractCellEditor implements
+               TableCellEditor {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -1853204021061679258L;
+
+       private TctResultReport report = null;
+
+       private ContentPanel parent;
+
+       public ReportCellEditor(ContentPanel parent) {
+               this.parent = parent;
+       }
+
+       private JPanel resetPanel(TctResultReport report, JTable table) {
+               JButton exportButton = new ReportButton(Constants.EXPORT_IMAGE_PATH);
+               JButton rerunButton = new ReportButton(Constants.RERUN_IMAGE_PATH);
+               // JButton editButton = new ReportButton(Constants.EDIT_IMAGE_PATH);
+               JButton resumeButton = new ReportButton(Constants.RESUME_IMAGE_PATH);
+
+               exportButton.addActionListener(new ExportActionListener(this.report,
+                               parent));
+               // editButton.addActionListener(new
+               // EditManualActionListener(this.report,
+               // parent));
+               rerunButton.addActionListener(new RerunActionListener(this.report,
+                               parent));
+               resumeButton.addActionListener(new ResumeActionListener(this.report,
+                               parent));
+               JPanel panel = new JPanel();
+               panel.setLayout(new GridLayout(1, 3));
+               panel.removeAll();
+               panel.add(exportButton);
+               panel.add(rerunButton);
+               // panel.add(editButton);
+               panel.add(resumeButton);
+               if (report.isAutoFinished() && report.isManualFinished()) {
+                       resumeButton.setEnabled(false);
+               }
+               // if (report.isManualExcluded()) {
+               // editButton.setEnabled(false);
+               // }
+               panel.setBackground(table.getSelectionBackground());
+               return panel;
+       }
+
+       @Override
+       public Component getTableCellEditorComponent(JTable table, Object value,
+                       boolean isSelected, int row, int column) {
+               if (value instanceof TctResultReport) {
+                       this.report = (TctResultReport) value;
+                       return resetPanel(report, table);
+               }
+               return new JPanel();
+       }
+
+       @Override
+       public Object getCellEditorValue() {
+               return this.report;
+       }
+}
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.java b/src/org/tizen/tct/tool/mgr/view/reportpage/ReportCellRender.java
new file mode 100644 (file)
index 0000000..78a6132
--- /dev/null
@@ -0,0 +1,59 @@
+package org.tizen.tct.tool.mgr.view.reportpage;
+
+import java.awt.Component;
+import java.awt.GridLayout;
+
+import javax.swing.JButton;
+import javax.swing.JPanel;
+import javax.swing.JTable;
+import javax.swing.table.TableCellRenderer;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.report.TctResultReport;
+
+public class ReportCellRender implements TableCellRenderer {
+
+       public ReportCellRender() {
+       }
+
+       private JPanel initPanel(TctResultReport report, boolean selected,
+                       JTable table) {
+               JButton exportButton = new ReportButton(Constants.EXPORT_IMAGE_PATH,
+                               "Export results");
+               JButton rerunButton = new ReportButton(Constants.RERUN_IMAGE_PATH,
+                               "Re-execute known failures");
+               // JButton editButton = new ReportButton(Constants.EDIT_IMAGE_PATH,
+               // "Edit manual Results");
+               JButton resumeButton = new ReportButton(Constants.RESUME_IMAGE_PATH,
+                               "Resume plan executing");
+
+               JPanel panel = new JPanel();
+               panel.setLayout(new GridLayout());
+               panel.add(exportButton);
+               panel.add(rerunButton);
+               // panel.add(editButton);
+               panel.add(resumeButton);
+               if (report.isAutoFinished() && report.isManualFinished()) {
+                       resumeButton.setEnabled(false);
+               }
+               // if (report.isManualExcluded()) {
+               // editButton.setEnabled(false);
+               // }
+               if (selected) {
+                       panel.setBackground(table.getSelectionBackground());
+               } else {
+                       panel.setBackground(table.getBackground());
+               }
+               return panel;
+       }
+
+       public Component getTableCellRendererComponent(JTable table, Object value,
+                       boolean isSelected, boolean hasFocus, int row, int column) {
+               if (value instanceof TctResultReport) {
+                       TctResultReport report = (TctResultReport) value;
+                       return initPanel(report, isSelected, table);
+               }
+               return new JPanel();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.java b/src/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailEditor.java
new file mode 100644 (file)
index 0000000..15e839b
--- /dev/null
@@ -0,0 +1,60 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.reportpage;
+
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.io.File;
+import java.io.IOException;
+
+import javax.swing.AbstractCellEditor;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTable;
+import javax.swing.table.TableCellEditor;
+
+import org.tizen.tct.tool.mgr.Constants;
+
+/**
+ * @author shaofeng.tang@intel.com
+ * 
+ */
+public class ReportDetailEditor extends AbstractCellEditor implements
+               TableCellEditor {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -6053813226987686090L;
+
+       private JLabel forderLabel = null;
+
+       @Override
+       public Object getCellEditorValue() {
+               return forderLabel.getText();
+       }
+
+       @Override
+       public Component getTableCellEditorComponent(JTable table, Object value,
+                       boolean isSelected, int row, int column) {
+               JPanel panel = new JPanel(new BorderLayout());
+               if (value instanceof String) {
+                       String folderName = (String) value;
+                       forderLabel = new JLabel((String) value);
+                       forderLabel.setFont(Constants.TABLE_CELL_FONT);
+                       panel.add(forderLabel, BorderLayout.CENTER);
+                       panel.setBackground(table.getSelectionBackground());
+                       String command = "firefox file://" + Constants.RESULT_FOLDER
+                                       + File.separator + folderName + File.separator
+                                       + Constants.SUMMARY_FILE_NAME;
+                       try {
+                               Runtime.getRuntime().exec(command);
+                       } catch (IOException e1) {
+                               e1.printStackTrace();
+                       }
+               }
+               return panel;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.java b/src/org/tizen/tct/tool/mgr/view/reportpage/ReportDetailRenderer.java
new file mode 100644 (file)
index 0000000..fe3a9f7
--- /dev/null
@@ -0,0 +1,46 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.reportpage;
+
+import java.awt.BorderLayout;
+import java.awt.Component;
+
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTable;
+import javax.swing.table.TableCellRenderer;
+
+import org.tizen.tct.tool.mgr.Constants;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ReportDetailRenderer implements TableCellRenderer {
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * javax.swing.table.TableCellRenderer#getTableCellRendererComponent(javax
+        * .swing.JTable, java.lang.Object, boolean, boolean, int, int)
+        */
+       @Override
+       public Component getTableCellRendererComponent(JTable table, Object value,
+                       boolean isSelected, boolean hasFocus, int row, int column) {
+               JPanel panel = new JPanel(new BorderLayout());
+               if (value instanceof String) {
+                       JLabel forderLabel = new JLabel((String) value);
+                       forderLabel.setFont(Constants.URL_LINK_FONT);
+                       forderLabel.setForeground(Constants.URL_LINK_COLOR);
+                       panel.add(forderLabel, BorderLayout.CENTER);
+                       if (isSelected) {
+                               panel.setBackground(table.getSelectionBackground());
+                       } else {
+                               panel.setBackground(table.getBackground());
+                       }
+               }
+               return panel;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.java b/src/org/tizen/tct/tool/mgr/view/reportpage/ReportListScrollPane.java
new file mode 100644 (file)
index 0000000..fb26402
--- /dev/null
@@ -0,0 +1,167 @@
+/**\r
+ * \r
+ */\r
+package org.tizen.tct.tool.mgr.view.reportpage;\r
+\r
+import java.awt.Component;\r
+import java.awt.Point;\r
+import java.awt.Rectangle;\r
+import java.awt.event.MouseEvent;\r
+\r
+import javax.swing.JComponent;\r
+import javax.swing.JScrollPane;\r
+import javax.swing.JTable;\r
+import javax.swing.table.TableCellRenderer;\r
+import javax.swing.table.TableColumn;\r
+\r
+import org.tizen.tct.tool.mgr.Constants;\r
+import org.tizen.tct.tool.mgr.listener.report.UrlStyleCursorListener;\r
+import org.tizen.tct.tool.mgr.model.ExecuteType;\r
+import org.tizen.tct.tool.mgr.model.report.TctReportTableModel;\r
+import org.tizen.tct.tool.mgr.view.ContentPanel;\r
+import org.tizen.tct.tool.mgr.view.general.CheckBoxHeader;\r
+import org.tizen.tct.tool.mgr.view.general.CheckBoxItemListener;\r
+\r
+public class ReportListScrollPane extends JScrollPane implements\r
+               DeleteReportCallback {\r
+\r
+       /**\r
+        * \r
+        */\r
+       private static final long serialVersionUID = 9198909526374254802L;\r
+\r
+       private JTable reportTable = null;\r
+\r
+       private ReportListScrollPane(JTable jtable) {\r
+               super(jtable);\r
+               this.reportTable = jtable;\r
+       }\r
+\r
+       private static JTable createReportTable(ContentPanel parent) {\r
+               JTable reportTable = new JTable(TctReportTableModel.loadReports()) {\r
+\r
+                       /**\r
+                        * \r
+                        */\r
+                       private static final long serialVersionUID = 3054738973864856398L;\r
+\r
+                       @Override\r
+                       public boolean isCellEditable(int row, int col) {\r
+                               return col == 0 || col == 1 || col == 6;\r
+                       }\r
+\r
+                       @Override\r
+                       public String getToolTipText(MouseEvent event) {\r
+                               String tip = null;\r
+                               Point p = event.getPoint();\r
+\r
+                               // Locate the renderer under the event location\r
+                               int hitColumnIndex = columnAtPoint(p);\r
+                               int hitRowIndex = rowAtPoint(p);\r
+\r
+                               if (hitColumnIndex != -1 && hitRowIndex != -1) {\r
+                                       TableCellRenderer renderer = getCellRenderer(hitRowIndex,\r
+                                                       hitColumnIndex);\r
+                                       Component component = prepareRenderer(renderer,\r
+                                                       hitRowIndex, hitColumnIndex);\r
+                                       Rectangle cellRect = getCellRect(hitRowIndex,\r
+                                                       hitColumnIndex, false);\r
+                                       component.setBounds(cellRect);\r
+                                       component.validate();\r
+                                       component.doLayout();\r
+                                       p.translate(-cellRect.x, -cellRect.y);\r
+                                       Component comp = component.getComponentAt(p);\r
+                                       if (comp instanceof JComponent) {\r
+                                               return ((JComponent) comp).getToolTipText();\r
+                                       }\r
+                               }\r
+\r
+                               if (tip == null) {\r
+                                       tip = getToolTipText();\r
+                               }\r
+                               return tip;\r
+                       }\r
+               };\r
+\r
+               TableColumn tc = reportTable.getColumnModel().getColumn(0);\r
+               tc.setCellEditor(reportTable.getDefaultEditor(Boolean.class));\r
+               tc.setCellRenderer(reportTable.getDefaultRenderer(Boolean.class));\r
+               tc.setHeaderRenderer(new CheckBoxHeader(new CheckBoxItemListener(\r
+                               reportTable)));\r
+\r
+               reportTable.setPreferredScrollableViewportSize(reportTable\r
+                               .getPreferredSize());\r
+               reportTable.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);\r
+               reportTable.getColumnModel().getColumn(0).setPreferredWidth(45);\r
+               reportTable.getColumnModel().getColumn(1).setPreferredWidth(230);\r
+               reportTable.getColumnModel().getColumn(2).setPreferredWidth(80);\r
+               reportTable.getColumnModel().getColumn(3).setPreferredWidth(100);\r
+               reportTable.getColumnModel().getColumn(4).setPreferredWidth(100);\r
+               reportTable.getColumnModel().getColumn(5).setPreferredWidth(100);\r
+               reportTable.getColumnModel().getColumn(6).setMinWidth(120);\r
+\r
+               reportTable.getColumnModel().getColumn(1)\r
+                               .setCellEditor(new ReportDetailEditor());\r
+               reportTable.getColumnModel().getColumn(1)\r
+                               .setCellRenderer(new ReportDetailRenderer());\r
+               reportTable.getColumnModel().getColumn(6)\r
+                               .setCellRenderer(new ReportCellRender());\r
+               reportTable.getColumnModel().getColumn(6)\r
+                               .setCellEditor(new ReportCellEditor(parent));\r
+\r
+               reportTable\r
+                               .getColumnModel()\r
+                               .getColumn(4)\r
+                               .setCellRenderer(\r
+                                               new ReportStatusRenderer(ExecuteType.automated\r
+                                                               + " suites are "));\r
+               reportTable\r
+                               .getColumnModel()\r
+                               .getColumn(5)\r
+                               .setCellRenderer(\r
+                                               new ReportStatusRenderer(ExecuteType.MANUAL\r
+                                                               + " suites are "));\r
+\r
+               reportTable.setRowHeight(30);\r
+\r
+               reportTable.getTableHeader().setFont(Constants.TABLE_HEADER_FONT);\r
+               reportTable.setFont(Constants.TABLE_CELL_FONT);\r
+\r
+               reportTable.addMouseMotionListener(new UrlStyleCursorListener(\r
+                               reportTable, 1));\r
+\r
+               return reportTable;\r
+       }\r
+\r
+       public static ReportListScrollPane createReportListPanel(ContentPanel parent) {\r
+               return new ReportListScrollPane(createReportTable(parent));\r
+       }\r
+\r
+       /*\r
+        * (non-Javadoc)\r
+        * \r
+        * @see com.intel.otc.tool.tct.mgr.view.reportpage.DeleteReportCallback#\r
+        * deleteSelectedItem()\r
+        */\r
+       @Override\r
+       public void deleteSelectedItem() {\r
+               TctReportTableModel model = (TctReportTableModel) reportTable\r
+                               .getModel();\r
+               model.deleteSelectedReport();\r
+               reportTable.repaint();\r
+       }\r
+\r
+       /*\r
+        * (non-Javadoc)\r
+        * \r
+        * @see com.intel.otc.tool.tct.mgr.view.reportpage.DeleteReportCallback#\r
+        * isItemSelected()\r
+        */\r
+       @Override\r
+       public boolean isItemSelected() {\r
+               TctReportTableModel model = (TctReportTableModel) reportTable\r
+                               .getModel();\r
+               return model.isReportSelected();\r
+       }\r
+\r
+}\r
diff --git a/src/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.java b/src/org/tizen/tct/tool/mgr/view/reportpage/ReportStatusRenderer.java
new file mode 100644 (file)
index 0000000..77e50f2
--- /dev/null
@@ -0,0 +1,49 @@
+package org.tizen.tct.tool.mgr.view.reportpage;
+
+import java.awt.BorderLayout;
+import java.awt.Component;
+
+import javax.swing.JButton;
+import javax.swing.JPanel;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableCellRenderer;
+import javax.swing.table.TableCellRenderer;
+
+import org.tizen.tct.tool.mgr.Constants;
+
+public class ReportStatusRenderer implements TableCellRenderer {
+
+       private DefaultTableCellRenderer defaultRender = new DefaultTableCellRenderer();
+
+       private String tooltip;
+
+       public ReportStatusRenderer(String tooltip) {
+               this.tooltip = tooltip;
+       }
+
+       @Override
+       public Component getTableCellRendererComponent(JTable table, Object value,
+                       boolean isSelected, boolean hasFocus, int row, int column) {
+               if (value instanceof Boolean) {
+                       Boolean finished = (Boolean) value;
+                       JButton statusButton = new ReportButton(
+                                       Constants.COMPLETED_IMAGE_PATH, tooltip
+                                                       + (finished ? "finished" : "suspended"));
+                       JPanel panel = new JPanel(new BorderLayout());
+                       panel.add(statusButton, BorderLayout.CENTER);
+                       if (!finished) {
+                               statusButton.setEnabled(false);
+                       }
+                       if (isSelected) {
+                               panel.setBackground(table.getSelectionBackground());
+                       } else {
+                               panel.setBackground(table.getBackground());
+                       }
+                       return panel;
+               } else {
+                       return defaultRender.getTableCellRendererComponent(table, value,
+                                       isSelected, hasFocus, row, column);
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.java b/src/org/tizen/tct/tool/mgr/view/rerun/FilterResultDialog.java
new file mode 100644 (file)
index 0000000..536ffa9
--- /dev/null
@@ -0,0 +1,24 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.rerun;
+
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+
+import javax.swing.JDialog;
+
+/**
+ * @author cathy
+ * 
+ */
+public class FilterResultDialog extends JDialog implements
+               PropertyChangeListener {
+
+       @Override
+       public void propertyChange(PropertyChangeEvent arg0) {
+               // TODO Auto-generated method stub
+               
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.java b/src/org/tizen/tct/tool/mgr/view/runpage/ConsoleRefreshThread.java
new file mode 100644 (file)
index 0000000..4ce0fe2
--- /dev/null
@@ -0,0 +1,102 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage;
+
+import java.util.Arrays;
+
+import javax.swing.JTextArea;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.Constants;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ConsoleRefreshThread extends Thread {
+
+       private static final Logger logger = Logger
+                       .getLogger(ConsoleRefreshThread.class);
+
+       public final static String AUTO_SUITE_START = "[Suite] Start to executing ";
+
+       public final static String MANUAL_SUITE_START = "[Manual_Suite] Start to executing ";
+
+       public final static String TESTCASE_START = "execute case:";
+
+       public final static String CORE_TESTCASE_START = "[core test] execute case:";
+
+       public final static String WEBUIFW_TESTCASE_START = "[webuifw] execute case:";
+
+       public final static String TIMEOUT_START = "[ Warning: time is out, test case ";
+
+       private JTextArea logArea;
+
+       private TreeLogSplitPane parent;
+
+       private boolean stopped = false;
+
+       public ConsoleRefreshThread(JTextArea logArea, TreeLogSplitPane parent) {
+               super();
+               this.logArea = logArea;
+               this.parent = parent;
+       }
+
+       public synchronized void stopRefresh() {
+               this.stopped = true;
+       }
+
+       public void run() {
+               try {
+                       byte[] b = new byte[Constants.PIPE_SIZE];
+                       String suffixLog = null;
+                       String[] log = null;
+                       String suiteName = null;
+                       int executed = 0;
+                       int readLength = 0;
+                       String preLine = "";
+                       String thisLine = "";
+                       while (!stopped
+                                       && (-1 != (readLength = Constants.getPipeInput().read(b)))) {
+                               byte[] read = Arrays.copyOf(b, readLength);
+                               suffixLog = new String(read);
+
+                               if (!suffixLog.endsWith("\n")) {
+                                       thisLine = suffixLog
+                                                       .substring(suffixLog.lastIndexOf("\n") + 1);
+                                       suffixLog = suffixLog.substring(0,
+                                                       suffixLog.lastIndexOf("\n") + 1);
+                                       logger.debug("Unending line:" + thisLine);
+                               } else {
+                                       thisLine = "";
+                               }
+                               logArea.append(preLine + suffixLog);
+                               this.parent.enableExport();
+                               log = (preLine + suffixLog).split("\n");
+                               preLine = thisLine;
+
+                               for (String line : log) {
+                                       if (line.startsWith(AUTO_SUITE_START)) {
+                                               suiteName = line.substring(AUTO_SUITE_START.length())
+                                                               .trim();
+                                               executed = 0;
+                                       } else if (line.startsWith(TESTCASE_START)
+                                                       || line.startsWith(TIMEOUT_START)
+                                                       || line.startsWith(CORE_TESTCASE_START)
+                                                       || line.startsWith(WEBUIFW_TESTCASE_START)) {
+                                               executed++;
+                                               if (null != suiteName) {
+                                                       parent.updateExecutingAutoNode(suiteName, executed);
+                                               }
+                                               logger.info(line);
+                                       }
+                               }
+                               b = new byte[Constants.PIPE_SIZE];
+                               logArea.setCaretPosition(logArea.getDocument().getLength());
+                       }
+               } catch (Exception e) {
+                       logger.warn(e.getMessage());
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/Informable.java b/src/org/tizen/tct/tool/mgr/view/runpage/Informable.java
new file mode 100644 (file)
index 0000000..482010a
--- /dev/null
@@ -0,0 +1,28 @@
+package org.tizen.tct.tool.mgr.view.runpage;
+
+import java.util.List;
+
+import org.tizen.tct.tool.mgr.lite.WorkerStatus;
+import org.tizen.tct.tool.mgr.model.run.SuiteResultSummary;
+
+public interface Informable {
+       void messageChanged(WorkerStatus message);
+
+       void progressChanged(Integer progress);
+
+       void updateAutoSuiteResult(SuiteResultSummary summary);
+       
+       void updateManualSuiteResult(SuiteResultSummary summary);
+       
+       void liteDone(String resultFolder, List<String> suiteNames, boolean needUninstall);
+       
+       void finishEdit();
+       
+       void enableStop();
+       
+       void disableStop();
+       
+       void startRefresh();
+       
+       void stopRefresh();
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/PlanTree.java b/src/org/tizen/tct/tool/mgr/view/runpage/PlanTree.java
new file mode 100644 (file)
index 0000000..81135ea
--- /dev/null
@@ -0,0 +1,52 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage;
+
+import java.util.Vector;
+
+import javax.swing.JTree;
+import javax.swing.tree.TreeSelectionModel;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class PlanTree extends JTree {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -9154917717241473091L;
+
+       public boolean isEmpty() {
+               System.out.println("this.getRowCount(): " + this.getRowCount());
+               return 0 == this.getRowCount();
+       }
+
+       private PlanTree(Vector root) {
+               super(root);
+               this.setCellRenderer(new PlanTreeCellRender());
+               this.setEditable(false);
+               for (int i = 0; i < this.getRowCount(); i++) {
+                       this.expandRow(i);
+               }
+               this.setFont(Constants.MAIN_TEXT_FONT);
+               this.setVisibleRowCount(200);
+               this.getSelectionModel().setSelectionMode(
+                               TreeSelectionModel.SINGLE_TREE_SELECTION);
+       }
+
+       public static PlanTree createPlanTree() {
+               TctTestPlan plan = SingleRunningPlan.getInstance().getRunningPlan();
+               if (plan != null) {
+                       return new PlanTree(plan.toRunPageTreeNodes());
+               } else {
+                       return new PlanTree(null);
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.java b/src/org/tizen/tct/tool/mgr/view/runpage/PlanTreeCellRender.java
new file mode 100644 (file)
index 0000000..d946f54
--- /dev/null
@@ -0,0 +1,178 @@
+package org.tizen.tct.tool.mgr.view.runpage;
+
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.GridLayout;
+
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+import javax.swing.JTree;
+import javax.swing.tree.DefaultMutableTreeNode;
+import javax.swing.tree.DefaultTreeCellRenderer;
+import javax.swing.tree.TreeCellRenderer;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.run.NamedVector;
+import org.tizen.tct.tool.mgr.model.run.TreeNodeUserObject;
+
+public class PlanTreeCellRender implements TreeCellRenderer {
+
+       private DefaultTreeCellRenderer defaultRenderer = new DefaultTreeCellRenderer();
+
+       private Color backgroundSelectionColor;
+
+       private Color backgroundNonSelectionColor;
+
+       public PlanTreeCellRender() {
+               backgroundSelectionColor = defaultRenderer
+                               .getBackgroundSelectionColor();
+               backgroundNonSelectionColor = defaultRenderer
+                               .getBackgroundNonSelectionColor();
+       }
+
+       private JPanel initialExecutingSuitePanel(TreeNodeUserObject model,
+                       boolean selected) {
+               JPanel renderer = new JPanel(new GridLayout(1, 2));
+               JLabel titleLabel = new JLabel(model.getName() + "("
+                               + model.getCaseNum() + ")");
+               titleLabel.setFont(Constants.MAIN_TEXT_FONT);
+               renderer.add(titleLabel);
+               JProgressBar progressBar = new JProgressBar();
+               progressBar.setStringPainted(true);
+               progressBar.setMaximum(model.getCaseNum());
+               progressBar.setValue(model.getExecuted());
+               progressBar.setString(model.getExecuted() + "/" + model.getCaseNum());
+               if (model.isManualNode()) {
+                       progressBar.setVisible(false);
+               } else {
+                       progressBar.setVisible(true);
+               }
+               renderer.add(progressBar);
+               if (selected) {
+                       renderer.setBackground(backgroundSelectionColor);
+               } else {
+                       renderer.setBackground(backgroundNonSelectionColor);
+               }
+               progressBar.setPreferredSize(new Dimension(100, 25));
+               renderer.setPreferredSize(new Dimension(400, 25));
+               return renderer;
+       }
+
+       private JPanel initialExecutedSuitePanel(TreeNodeUserObject model,
+                       boolean selected) {
+               JPanel renderer = new JPanel(new GridLayout(1, 2));
+               JLabel titleLabel = new JLabel(model.getName() + "("
+                               + model.getCaseNum() + ")");
+               titleLabel.setFont(Constants.MAIN_TEXT_FONT);
+               renderer.add(titleLabel);
+
+               JLabel passLabel = new JLabel(Integer.toString(model.getPass()));
+               passLabel.setForeground(Constants.RESULT_PASS_COLOR);
+               passLabel.setFont(Constants.MAIN_TEXT_FONT);
+               JLabel failLabel = new JLabel(Integer.toString(model.getFail()));
+               failLabel.setForeground(Constants.RESULT_FAIL_COLOR);
+               failLabel.setFont(Constants.MAIN_TEXT_FONT);
+               JLabel blockLabel = new JLabel(Integer.toString(model.getBlock()));
+               blockLabel.setForeground(Constants.RESULT_BLOCK_COLOR);
+               blockLabel.setFont(Constants.MAIN_TEXT_FONT);
+               JLabel naLabel = new JLabel(Integer.toString(model.getNa()));
+               naLabel.setForeground(Constants.RESULT_NA_COLOR);
+               naLabel.setFont(Constants.MAIN_TEXT_FONT);
+
+               JPanel resultPanel = new JPanel(new GridLayout(1, 5));
+               resultPanel.add(new JLabel(""));
+               resultPanel.add(passLabel);
+               resultPanel.add(failLabel);
+               resultPanel.add(blockLabel);
+               resultPanel.add(naLabel);
+
+               resultPanel.setPreferredSize(new Dimension(100, 25));
+               if (selected) {
+                       renderer.setBackground(backgroundSelectionColor);
+                       resultPanel.setBackground(backgroundSelectionColor);
+               } else {
+                       renderer.setBackground(backgroundNonSelectionColor);
+                       resultPanel.setBackground(backgroundNonSelectionColor);
+               }
+               renderer.add(resultPanel);
+               renderer.setPreferredSize(new Dimension(400, 25));
+               return renderer;
+       }
+
+       private JPanel initTotalNode(boolean selected, String name) {
+               JPanel renderer = new JPanel(new GridLayout(1, 2));
+               JLabel titleLabel = new JLabel(name);
+               titleLabel.setFont(Constants.MAIN_TEXT_FONT);
+               renderer.add(titleLabel);
+
+               JLabel passLabel = new JLabel("Pass");
+               passLabel.setForeground(Constants.RESULT_PASS_COLOR);
+               passLabel.setFont(Constants.MAIN_TEXT_FONT);
+               JLabel failLabel = new JLabel("Fail");
+               failLabel.setForeground(Constants.RESULT_FAIL_COLOR);
+               failLabel.setFont(Constants.MAIN_TEXT_FONT);
+               JLabel blockLabel = new JLabel("Block");
+               blockLabel.setForeground(Constants.RESULT_BLOCK_COLOR);
+               blockLabel.setFont(Constants.MAIN_TEXT_FONT);
+               JLabel naLabel = new JLabel("N/A");
+               naLabel.setForeground(Constants.RESULT_NA_COLOR);
+               naLabel.setFont(Constants.MAIN_TEXT_FONT);
+
+               JPanel resultPanel = new JPanel(new GridLayout(1, 5));
+               resultPanel.add(new JLabel(""));
+               resultPanel.add(passLabel);
+               resultPanel.add(failLabel);
+               resultPanel.add(blockLabel);
+               resultPanel.add(naLabel);
+
+               resultPanel.setPreferredSize(new Dimension(70, 25));
+               if (selected) {
+                       renderer.setBackground(backgroundSelectionColor);
+                       resultPanel.setBackground(backgroundSelectionColor);
+               } else {
+                       renderer.setBackground(backgroundNonSelectionColor);
+                       resultPanel.setBackground(backgroundNonSelectionColor);
+               }
+               renderer.add(resultPanel);
+               renderer.setPreferredSize(new Dimension(425, 25));
+               return renderer;
+       }
+
+       @Override
+       public Component getTreeCellRendererComponent(JTree tree, Object value,
+                       boolean selected, boolean expanded, boolean leaf, int row,
+                       boolean hasFocus) {
+               Component returnValue = null;
+               if ((value != null) && (value instanceof DefaultMutableTreeNode)) {
+                       Object userObject = ((DefaultMutableTreeNode) value)
+                                       .getUserObject();
+                       if (userObject instanceof TreeNodeUserObject) {
+                               TreeNodeUserObject model = (TreeNodeUserObject) userObject;
+                               JPanel renderer = null;
+                               if (model.summaryAvailable()) {
+                                       renderer = initialExecutedSuitePanel(model, selected);
+                               } else {
+                                       renderer = initialExecutingSuitePanel(model, selected);
+                               }
+                               renderer.setToolTipText(model.getName() + "("
+                                               + model.getCaseNum() + ")");
+                               returnValue = renderer;
+                       }
+                       if (userObject instanceof NamedVector) {
+                               NamedVector root = (NamedVector) userObject;
+                               if (1 == root.getLevel()) {
+                                       JPanel renderer = initTotalNode(selected, root.getName());
+                                       returnValue = renderer;
+                               }
+                       }
+               }
+               if (returnValue == null) {
+                       returnValue = defaultRenderer.getTreeCellRendererComponent(tree,
+                                       value, selected, expanded, leaf, row, hasFocus);
+               }
+               return returnValue;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.java b/src/org/tizen/tct/tool/mgr/view/runpage/ResultEditedCallback.java
new file mode 100644 (file)
index 0000000..e85205a
--- /dev/null
@@ -0,0 +1,14 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage;
+
+/**
+ * @author shaofeng
+ *
+ */
+public interface ResultEditedCallback {
+       
+       void resultChanged(String suiteName);
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.java b/src/org/tizen/tct/tool/mgr/view/runpage/RunDashPanel.java
new file mode 100644 (file)
index 0000000..b7cff55
--- /dev/null
@@ -0,0 +1,89 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage;
+
+import java.awt.BorderLayout;
+import java.awt.FlowLayout;
+import java.awt.GridLayout;
+
+import javax.swing.JButton;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.run.StopActionListener;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class RunDashPanel extends JPanel {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -666207244128023377L;
+
+       private JLabel testingPlanLabel = null;
+
+       private JProgressBar progressBar = null;
+
+       private String title = " Executing plan: ";
+
+       private String status = " Status:";
+
+       private JLabel statusLable = null;
+       
+       private JButton stopButton = null;
+
+       public RunDashPanel() {
+               super(new BorderLayout());
+               this.testingPlanLabel = new JLabel(title);
+               this.statusLable = new JLabel(status);
+               this.testingPlanLabel.setFont(Constants.DASH_LABEL_FONT);
+               this.statusLable.setFont(Constants.MAIN_TEXT_FONT);
+
+               this.progressBar = new JProgressBar(0, 100);
+               this.progressBar.setStringPainted(true);
+
+               JPanel statusPanel = new JPanel(new GridLayout(2, 1));
+               statusPanel.add(this.testingPlanLabel);
+               statusPanel.add(this.statusLable);
+               
+               stopButton = new JButton("Suspend");
+               stopButton.setPreferredSize(Constants.BUTTON_DIMENSION);
+               stopButton.setFont(Constants.BUTTON_LABEL_FONT);
+               stopButton.addActionListener(new StopActionListener());
+               stopButton.setEnabled(false);
+               JPanel buttonPanel = new JPanel(new FlowLayout());
+               buttonPanel.add(stopButton);
+
+               this.add(statusPanel, BorderLayout.WEST);
+               this.add(buttonPanel, BorderLayout.EAST);
+               this.add(this.progressBar, BorderLayout.SOUTH);
+               this.setPreferredSize(new java.awt.Dimension(Constants.FRAME_WIDTH,
+                               Constants.PLAN_DASH_HIGHT));
+       }
+
+       public void updatePlanName(String planName) {
+               this.testingPlanLabel.setText(this.title + planName);
+       }
+
+       public void updateStatus(String info) {
+               this.statusLable.setText(this.status + info);
+       }
+
+       public void updateProgress(Integer progress) {
+               this.progressBar.setValue(progress);
+       }
+       
+       public void enableStopButton(){
+               this.stopButton.setEnabled(true);
+       }
+
+       public void disableStopButton(){
+               this.stopButton.setEnabled(false);
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/RunPanel.java b/src/org/tizen/tct/tool/mgr/view/runpage/RunPanel.java
new file mode 100644 (file)
index 0000000..54ee472
--- /dev/null
@@ -0,0 +1,122 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage;
+
+import java.awt.BorderLayout;
+import java.util.List;
+
+import javax.swing.JPanel;
+
+import org.tizen.tct.tool.mgr.lite.WorkerStatus;
+import org.tizen.tct.tool.mgr.model.run.SuiteResultSummary;
+import org.tizen.tct.tool.mgr.view.ContentPanel;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class RunPanel extends JPanel implements Informable {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -9019561500864009212L;
+
+       private ContentPanel parent = null;
+
+       private RunDashPanel runDashPanel = null;
+
+       private TreeLogSplitPane splitPanel = null;
+
+       /**
+        * 
+        */
+       public RunPanel(ContentPanel parent) {
+               this.parent = parent;
+       }
+
+       public void initRunPage() {
+               if (null == runDashPanel || null == splitPanel) {
+                       this.setLayout(new BorderLayout());
+                       runDashPanel = new RunDashPanel();
+                       splitPanel = TreeLogSplitPane.createTreeLogPane();
+
+                       this.add(runDashPanel, BorderLayout.NORTH);
+                       this.add(splitPanel, BorderLayout.CENTER);
+                       this.revalidate();
+               }
+       }
+
+       public void resetTreeAndLog() {
+               splitPanel.resetTree();
+               splitPanel.resetLog();
+       }
+
+       public void resetProcessBar() {
+               runDashPanel.updateProgress(0);
+       }
+
+       @Override
+       public void messageChanged(WorkerStatus message) {
+               this.runDashPanel.updatePlanName(message.getPlanName());
+               this.runDashPanel.updateStatus(message.getStatusMsg());
+       }
+
+       @Override
+       public void progressChanged(Integer progress) {
+               this.runDashPanel.updateProgress(progress);
+       }
+
+       @Override
+       public synchronized void updateAutoSuiteResult(SuiteResultSummary summary) {
+               this.splitPanel.updateAutoNodeResult(summary);
+       }
+
+       @Override
+       public synchronized void updateManualSuiteResult(SuiteResultSummary summary) {
+               this.splitPanel.updateManualNodeResult(summary);
+       }
+
+       @Override
+       public void liteDone(String resultFolder, List<String> suiteNames,
+                       boolean needUninstall) {
+               this.splitPanel.enableEditTab(resultFolder, suiteNames, this,
+                               needUninstall);
+       }
+
+       @Override
+       public void finishEdit() {
+               this.splitPanel.removeEditTab();
+               this.splitPanel.stopRefresh();
+               this.turnToReportPage();
+       }
+
+       private void turnToReportPage() {
+               this.parent.removeAll();
+               this.parent.initReportPage();
+               this.parent.repaint();
+       }
+
+       @Override
+       public void enableStop() {
+               this.runDashPanel.enableStopButton();
+       }
+
+       @Override
+       public void disableStop() {
+               this.runDashPanel.disableStopButton();
+       }
+
+       @Override
+       public void startRefresh(){
+               this.splitPanel.startRefresh();
+       }
+       
+       
+
+       @Override
+       public void stopRefresh(){
+               this.splitPanel.stopRefresh();
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.java b/src/org/tizen/tct/tool/mgr/view/runpage/TreeLogSplitPane.java
new file mode 100644 (file)
index 0000000..ac7d081
--- /dev/null
@@ -0,0 +1,285 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage;
+
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.FlowLayout;
+import java.util.Enumeration;
+import java.util.List;
+
+import javax.swing.JButton;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JSplitPane;
+import javax.swing.JTabbedPane;
+import javax.swing.JTextArea;
+import javax.swing.tree.DefaultMutableTreeNode;
+import javax.swing.tree.DefaultTreeModel;
+import javax.swing.tree.TreeModel;
+import javax.swing.tree.TreeNode;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.run.ExportLogListener;
+import org.tizen.tct.tool.mgr.listener.run.edit.ManualSuiteEditListener;
+import org.tizen.tct.tool.mgr.model.ExecuteType;
+import org.tizen.tct.tool.mgr.model.run.SuiteResultSummary;
+import org.tizen.tct.tool.mgr.model.run.TreeNodeUserObject;
+import org.tizen.tct.tool.mgr.view.runpage.edit.EditResultScrollPane;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class TreeLogSplitPane extends JSplitPane implements
+               TreeNodeSelectedCallback {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -4419551980771502042L;
+
+       private PlanTree pt = null;
+
+       private JScrollPane treeScrollPane = null;
+
+       private JTextArea logArea;
+
+       private JTabbedPane tabbedPane;
+
+       private EditResultScrollPane edit;
+
+       private ConsoleRefreshThread refresh;
+
+       private JButton exportLog;
+
+       private TreeLogSplitPane(int newOrientation, boolean newContinuousLayout,
+                       Component newLeftComponent, Component newRightComponent,
+                       PlanTree pt, JTextArea logArea2, JTabbedPane tabbedPane,
+                       JButton exportLog) {
+               super(newOrientation, newContinuousLayout, newLeftComponent,
+                               newRightComponent);
+               this.pt = pt;
+               javax.swing.ToolTipManager.sharedInstance().registerComponent(this.pt);
+               this.treeScrollPane = (JScrollPane) newLeftComponent;
+               this.pt.addTreeSelectionListener(new ManualSuiteEditListener(this.pt,
+                               this));
+               this.logArea = logArea2;
+               this.tabbedPane = tabbedPane;
+               this.exportLog = exportLog;
+               this.exportLog.setEnabled(false);
+               this.resetDivider();
+               getAutoNodeUserModel("");
+       }
+
+       private void resetDivider() {
+               this.setDividerLocation(Constants.RUNNING_TREE_WIDTH);
+               this.setOneTouchExpandable(true);
+               this.setDividerSize(10);
+               this.setPreferredSize(new java.awt.Dimension(Constants.FRAME_WIDTH,
+                               Constants.CONTENT_PANEL_HIGHT));
+       }
+
+       public static TreeLogSplitPane createTreeLogPane() {
+               PlanTree pt = PlanTree.createPlanTree();
+               JScrollPane treeScrollPane = new JScrollPane(pt);
+
+               JTextArea logArea = new JTextArea();
+               logArea.setEditable(false);
+               logArea.setLineWrap(true);
+               logArea.setColumns(50);
+               logArea.setFont(Constants.MAIN_TEXT_FONT);
+
+               JScrollPane logPane = new JScrollPane(logArea);
+
+               JButton exportLog = new JButton("Export");
+               exportLog.setFont(Constants.BUTTON_LABEL_FONT);
+               exportLog.setPreferredSize(Constants.BUTTON_DIMENSION);
+
+               JPanel consoleDash = new JPanel(new FlowLayout());
+               JPanel eastPanel = new JPanel(new BorderLayout());
+               JPanel logWrapper = new JPanel(new BorderLayout());
+
+               consoleDash.add(exportLog);
+               eastPanel.add(consoleDash, BorderLayout.EAST);
+               logWrapper.add(eastPanel, BorderLayout.NORTH);
+               logWrapper.add(logPane, BorderLayout.CENTER);
+
+               JTabbedPane tabbedPane = new JTabbedPane();
+
+               tabbedPane.addTab("Console", null, logWrapper, "Testkit-lite Console");
+               tabbedPane.setFont(Constants.DASH_LABEL_FONT);
+               tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
+               
+               TreeLogSplitPane tlsPanel = new TreeLogSplitPane(JSplitPane.HORIZONTAL_SPLIT, false,
+                               treeScrollPane, tabbedPane, pt, logArea, tabbedPane, exportLog);
+               exportLog.addActionListener(new ExportLogListener(logArea, tlsPanel));
+
+               return tlsPanel;
+       }
+
+       public void enableEditTab(String resultFolder, List<String> suiteNames,
+                       Informable informable, boolean needUninstall) {
+               edit = new EditResultScrollPane(resultFolder, suiteNames, informable,
+                               needUninstall);
+               tabbedPane.addTab("Editing", null, edit, "Edit manual result");
+               tabbedPane.setSelectedComponent(edit);
+       }
+
+       public void removeEditTab() {
+               if (null != edit) {
+                       tabbedPane.removeTabAt(1);
+                       tabbedPane.setSelectedIndex(0);
+                       edit = null;
+               }
+       }
+
+       public void resetTree() {
+               this.remove(this.pt);
+               this.remove(this.treeScrollPane);
+
+               this.pt = PlanTree.createPlanTree();
+               this.pt.addTreeSelectionListener(new ManualSuiteEditListener(this.pt,
+                               this));
+               this.treeScrollPane = new JScrollPane(this.pt);
+               javax.swing.ToolTipManager.sharedInstance().registerComponent(this.pt);
+               this.setLeftComponent(this.treeScrollPane);
+               this.resetDivider();
+               this.revalidate();
+       }
+
+       public void resetLog() {
+               this.logArea.setText("");
+               this.exportLog.setEnabled(false);
+       }
+
+       protected void updateExecutingManualNode(String suiteName) {
+               if (null != suiteName) {
+                       DefaultTreeModel tree = (DefaultTreeModel) this.pt.getModel();
+                       DefaultMutableTreeNode manualSuiteNode = this
+                                       .getManualNodeUserModel(suiteName);
+                       if (null != manualSuiteNode) {
+                               TreeNodeUserObject userObj = (TreeNodeUserObject) manualSuiteNode
+                                               .getUserObject();
+                               userObj.setExecuted(userObj.getCaseNum());
+                               tree.reload(manualSuiteNode);
+                       }
+               }
+       }
+
+       protected void updateExecutingAutoNode(String suiteName, int executed) {
+               if (null != suiteName) {
+                       DefaultTreeModel tree = (DefaultTreeModel) this.pt.getModel();
+                       DefaultMutableTreeNode autoSuiteNode = this
+                                       .getAutoNodeUserModel(suiteName);
+                       if (null != autoSuiteNode) {
+                               TreeNodeUserObject userObj = (TreeNodeUserObject) autoSuiteNode
+                                               .getUserObject();
+                               userObj.setExecuted(executed);
+                               tree.reload(autoSuiteNode);
+                       }
+               }
+       }
+
+       protected void updateManualNodeResult(SuiteResultSummary summary) {
+               if (null != summary) {
+                       DefaultTreeModel tree = (DefaultTreeModel) this.pt.getModel();
+                       DefaultMutableTreeNode manualSuiteNode = this
+                                       .getManualNodeUserModel(summary.getSuiteName());
+                       if (null != manualSuiteNode) {
+                               TreeNodeUserObject userObj = (TreeNodeUserObject) manualSuiteNode
+                                               .getUserObject();
+                               userObj.setResultSummary(summary);
+                               tree.reload(manualSuiteNode);
+                       }
+               }
+       }
+
+       protected void updateAutoNodeResult(SuiteResultSummary summary) {
+               if (null != summary) {
+                       DefaultTreeModel tree = (DefaultTreeModel) this.pt.getModel();
+                       DefaultMutableTreeNode autoSuiteNode = this
+                                       .getAutoNodeUserModel(summary.getSuiteName());
+                       if (null != autoSuiteNode) {
+                               TreeNodeUserObject userObj = (TreeNodeUserObject) autoSuiteNode
+                                               .getUserObject();
+                               userObj.setResultSummary(summary);
+                               tree.reload(autoSuiteNode);
+                       }
+               }
+       }
+
+       protected DefaultMutableTreeNode getManualNodeUserModel(String suiteName) {
+               return this.getTreeNodeUserModel(suiteName, ExecuteType.MANUAL);
+       }
+
+       protected DefaultMutableTreeNode getAutoNodeUserModel(String suiteName) {
+               return this.getTreeNodeUserModel(suiteName, ExecuteType.AUTO);
+       }
+
+       private DefaultMutableTreeNode getTreeNodeUserModel(String suiteName,
+                       ExecuteType et) {
+               DefaultMutableTreeNode obj = null;
+               if (null != this.pt) {
+                       TreeModel tree = this.pt.getModel();
+                       Object rootObj = tree.getRoot();
+                       if (rootObj instanceof TreeNode) {
+                               TreeNode root = (TreeNode) rootObj;
+                               if (root.getChildCount() > 0
+                                               && root.getChildAt(0).getChildCount() >= 2) {
+                                       TreeNode treeNode = null;
+                                       if (ExecuteType.AUTO == et) {
+                                               // auto
+                                               treeNode = root.getChildAt(0).getChildAt(0);
+                                       } else {
+                                               // manual
+                                               treeNode = root.getChildAt(0).getChildAt(1);
+                                       }
+                                       for (Enumeration<TreeNode> children = treeNode.children(); children
+                                                       .hasMoreElements();) {
+                                               TreeNode child = children.nextElement();
+                                               if (child instanceof DefaultMutableTreeNode) {
+                                                       DefaultMutableTreeNode childNode = (DefaultMutableTreeNode) child;
+                                                       Object childNodeObj = childNode.getUserObject();
+                                                       if (childNodeObj instanceof TreeNodeUserObject) {
+                                                               TreeNodeUserObject userObj = (TreeNodeUserObject) childNodeObj;
+                                                               if (suiteName.equalsIgnoreCase(userObj
+                                                                               .getName())) {
+                                                                       obj = childNode;
+                                                                       break;
+                                                               }
+                                                       }
+                                               }
+                                       }
+                               }
+                       }
+               }
+               return obj;
+       }
+
+       @Override
+       public void treeNodeChanged(String suiteName) {
+               if (null != this.edit) {
+                       this.edit.stopTableEditor();
+                       this.edit.updateEditTable(suiteName);
+               }
+       }
+
+       public synchronized void startRefresh() {
+               this.refresh = new ConsoleRefreshThread(logArea, this);
+               this.refresh.start();
+       }
+
+       public synchronized void stopRefresh() {
+               if (null != this.refresh) {
+                       this.refresh.stopRefresh();
+               }
+       }
+
+       protected void enableExport() {
+               if (!this.exportLog.isEnabled()) {
+                       this.exportLog.setEnabled(true);
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.java b/src/org/tizen/tct/tool/mgr/view/runpage/TreeNodeSelectedCallback.java
new file mode 100644 (file)
index 0000000..34e5767
--- /dev/null
@@ -0,0 +1,15 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage;
+
+
+/**
+ * @author shaofeng
+ * 
+ */
+public interface TreeNodeSelectedCallback {
+
+       void treeNodeChanged(String suiteName);
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/EditResultScrollPane.java
new file mode 100644 (file)
index 0000000..a60a982
--- /dev/null
@@ -0,0 +1,105 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage.edit;
+
+import java.awt.BorderLayout;
+import java.awt.FlowLayout;
+import java.util.List;
+
+import javax.swing.JButton;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTable;
+import javax.swing.table.TableCellEditor;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.run.edit.FinishButtonListener;
+import org.tizen.tct.tool.mgr.listener.run.edit.SaveButtonListener;
+import org.tizen.tct.tool.mgr.model.editablesuite.PlanManualResult;
+import org.tizen.tct.tool.mgr.view.runpage.Informable;
+import org.tizen.tct.tool.mgr.view.runpage.edit.header.ResultEditableHeader;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class EditResultScrollPane extends JPanel {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 8320386780878128905L;
+
+       private JTable resultsTable = null;
+
+       private PlanManualResult results;
+
+       public EditResultScrollPane(String resultFolder, List<String> suiteNames,
+                       Informable informable, boolean needUninstall) {
+               super(new BorderLayout());
+               JLabel title = new JLabel("Manual test results:");
+               title.setFont(Constants.DASH_LABEL_FONT);
+               this.add(title, BorderLayout.NORTH);
+
+               this.results = PlanManualResult.getPlanManualResult(resultFolder,
+                               suiteNames);
+               if (null != results) {
+                       results.setNeedUninstall(needUninstall);
+                       resultsTable = new EditableResultTable(results);
+               } else {
+                       resultsTable = new JTable();
+               }
+               JScrollPane editPanel = new JScrollPane(resultsTable);
+               this.add(editPanel, BorderLayout.CENTER);
+
+               JButton save = new JButton("save");
+               JButton finish = new JButton("finish");
+
+               save.setPreferredSize(Constants.BUTTON_DIMENSION);
+               finish.setPreferredSize(Constants.BUTTON_DIMENSION);
+               save.setFont(Constants.BUTTON_LABEL_FONT);
+               finish.setFont(Constants.BUTTON_LABEL_FONT);
+
+               save.addMouseListener(new SaveButtonListener(results, save, informable,
+                               this));
+               finish.addMouseListener(new FinishButtonListener(results, save,
+                               informable, this));
+
+               JPanel buttonPanel = new JPanel(new FlowLayout());
+               buttonPanel.add(save);
+               buttonPanel.add(finish);
+
+               JPanel tailPanel = new JPanel(new BorderLayout());
+               tailPanel.add(buttonPanel, BorderLayout.EAST);
+
+               this.add(tailPanel, BorderLayout.SOUTH);
+       }
+
+       public void updateEditTable(String suiteName) {
+               if (null != this.results) {
+                       this.results.setSelectedSuite(suiteName);
+                       if (resultsTable instanceof EditableResultTable) {
+                               ((EditableResultTable) resultsTable).updateModel(results);
+                       }
+               }
+       }
+
+       public void stopTableEditor() {
+               if (resultsTable instanceof EditableResultTable) {
+                       TableCellEditor editor = resultsTable.getCellEditor();
+                       if (null != editor) {
+                               editor.stopCellEditing();
+                       }
+
+                       ResultEditableHeader header = (ResultEditableHeader) resultsTable
+                                       .getTableHeader();
+                       editor = header.getCellEditor();
+                       if (null != editor) {
+                               editor.stopCellEditing();
+                       }
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellEditor.java
new file mode 100644 (file)
index 0000000..0587c42
--- /dev/null
@@ -0,0 +1,62 @@
+package org.tizen.tct.tool.mgr.view.runpage.edit;
+
+import java.awt.BorderLayout;
+import java.awt.Component;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.FocusListener;
+
+import javax.swing.AbstractCellEditor;
+import javax.swing.JComboBox;
+import javax.swing.JPanel;
+import javax.swing.JTable;
+import javax.swing.table.TableCellEditor;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.CaseResult;
+
+public class EditableResultCellEditor extends AbstractCellEditor implements
+               TableCellEditor, ActionListener {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -714257634366987700L;
+
+       private JPanel panel;
+
+       private JComboBox<String> resultList;
+
+       public EditableResultCellEditor(FocusListener listener) {
+
+               this.resultList = new StopableCombobox(CaseResult.getAvailableResult(), this);
+               this.resultList.addActionListener (this);
+               this.resultList.setFont(Constants.TABLE_CELL_FONT);
+               this.resultList.addFocusListener(listener);
+
+               this.panel = new JPanel(new BorderLayout());
+               this.panel.add(resultList, BorderLayout.CENTER);
+       }
+
+       @Override
+       public Component getTableCellEditorComponent(JTable table, Object value,
+                       boolean isSelected, int row, int column) {
+               if (value instanceof CaseResult) {
+                       CaseResult result = (CaseResult) value;
+                       this.resultList.setSelectedItem(result.toString());
+               }
+               return panel;
+       }
+
+       @Override
+       public Object getCellEditorValue() {
+               String item = (String) resultList.getSelectedItem();
+               return CaseResult.getCaseResultInstance(item);
+       }
+       
+       @Override
+       public void actionPerformed(ActionEvent e) {
+       stopCellEditing();
+    }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultCellRenderer.java
new file mode 100644 (file)
index 0000000..768c794
--- /dev/null
@@ -0,0 +1,79 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage.edit;
+
+import java.awt.Component;
+
+import javax.swing.JLabel;
+import javax.swing.JTable;
+import javax.swing.table.TableCellRenderer;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.CaseResult;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class EditableResultCellRenderer implements TableCellRenderer {
+
+       private JLabel passLabel;
+
+       private JLabel failLabel;
+
+       private JLabel blockLabel;
+
+       private JLabel naLabel;
+
+       private JLabel totalLabel;
+
+       public EditableResultCellRenderer() {
+               passLabel = new JLabel(CaseResult.PASS.toString());
+               passLabel.setForeground(Constants.RESULT_PASS_COLOR);
+               passLabel.setFont(Constants.TABLE_CELL_FONT);
+               failLabel = new JLabel(CaseResult.FAIL.toString());
+               failLabel.setForeground(Constants.RESULT_FAIL_COLOR);
+               failLabel.setFont(Constants.TABLE_CELL_FONT);
+               blockLabel = new JLabel(CaseResult.BLOCK.toString());
+               blockLabel.setForeground(Constants.RESULT_BLOCK_COLOR);
+               blockLabel.setFont(Constants.TABLE_CELL_FONT);
+               naLabel = new JLabel(CaseResult.NA.toString());
+               naLabel.setForeground(Constants.RESULT_NA_COLOR);
+               naLabel.setFont(Constants.TABLE_CELL_FONT);
+               totalLabel = new JLabel("Edit result for all test cases ");
+               totalLabel.setForeground(Constants.NAVI_LABEL_COLOR);
+               totalLabel.setFont(Constants.TABLE_CELL_FONT);
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * javax.swing.table.TableCellRenderer#getTableCellRendererComponent(javax
+        * .swing.JTable, java.lang.Object, boolean, boolean, int, int)
+        */
+       @Override
+       public Component getTableCellRendererComponent(JTable table, Object value,
+                       boolean isSelected, boolean hasFocus, int row, int column) {
+               if (null == value) {
+                       return this.totalLabel;
+               } else if (value instanceof CaseResult) {
+                       CaseResult result = (CaseResult) value;
+                       if (result == CaseResult.NA) {
+                               return naLabel;
+                       } else if (result == CaseResult.PASS) {
+                               return passLabel;
+                       } else if (result == CaseResult.FAIL) {
+                               return failLabel;
+                       } else if (result == CaseResult.BLOCK) {
+                               return blockLabel;
+                       } else {
+                               return new JLabel("Unknown");
+                       }
+               } else {
+                       return new JLabel("Unknown");
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/EditableResultTable.java
new file mode 100644 (file)
index 0000000..8ae54c6
--- /dev/null
@@ -0,0 +1,79 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage.edit;
+
+import java.awt.Component;
+import java.awt.event.FocusEvent;
+import java.awt.event.FocusListener;
+
+import javax.swing.JTable;
+import javax.swing.table.TableColumn;
+import javax.swing.table.TableColumnModel;
+import javax.swing.table.TableModel;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.listener.report.UrlStyleCursorListener;
+import org.tizen.tct.tool.mgr.view.runpage.edit.header.ResultEditableHeader;
+import org.tizen.tct.tool.mgr.view.runpage.edit.header.ResultHeaderRender;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class EditableResultTable extends JTable implements FocusListener {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -8146301886692644177L;
+
+       public EditableResultTable(TableModel dm) {
+               super(dm);
+               TableColumnModel columnModel = this.getColumnModel();
+               this.setTableHeader(new ResultEditableHeader(columnModel, this
+                               .getModel()));
+               initTable();
+       }
+
+       public void updateModel(TableModel dm) {
+               this.setModel(dm);
+               initTable();
+       }
+
+       private void initTable() {
+               this.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
+               this.getColumnModel().getColumn(0).setPreferredWidth(50);
+               this.getColumnModel().getColumn(1).setPreferredWidth(200);
+               this.getColumnModel().getColumn(2).setPreferredWidth(50);
+
+               this.getTableHeader().setReorderingAllowed(false);
+               this.getColumnModel().getColumn(0)
+                               .setCellEditor(new ManualCaseDetailEditor());
+               this.getColumnModel().getColumn(0)
+                               .setCellRenderer(new ManualCaseDetailRenderer());
+
+               TableColumn tc = this.getColumnModel().getColumn(2);
+               tc.setCellRenderer(new EditableResultCellRenderer());
+               tc.setCellEditor(new EditableResultCellEditor(this));
+               tc.setHeaderRenderer(new ResultHeaderRender());
+               this.getTableHeader().setFont(Constants.TABLE_HEADER_FONT);
+               this.setFont(Constants.TABLE_CELL_FONT);
+               this.addMouseMotionListener(new UrlStyleCursorListener(this, 0));
+       }
+
+       @Override
+       public void focusGained(FocusEvent e) {
+               // do nothing
+       }
+
+       @Override
+       public void focusLost(FocusEvent e) {
+               Component c = e.getComponent();
+               Component oc = e.getOppositeComponent();
+               if (c instanceof StopableCombobox
+                               && !(oc instanceof EditableResultTable)) {
+                       ((StopableCombobox) c).cancelEditing();
+               }
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailDialog.java
new file mode 100644 (file)
index 0000000..9a830b5
--- /dev/null
@@ -0,0 +1,117 @@
+package org.tizen.tct.tool.mgr.view.runpage.edit;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.GridLayout;
+import java.awt.Rectangle;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JButton;
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+import javax.swing.JTextPane;
+import javax.swing.border.EmptyBorder;
+import javax.swing.text.BadLocationException;
+import javax.swing.text.Document;
+import javax.swing.text.SimpleAttributeSet;
+import javax.swing.text.StyleConstants;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.editablesuite.CaseStep;
+import org.tizen.tct.tool.mgr.model.editablesuite.ManualCaseResult;
+
+public class ManualCaseDetailDialog extends JDialog implements ActionListener {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 9077428502052030079L;
+
+       public void insertDocument(JTextPane textArea, String text, boolean bold) {
+               SimpleAttributeSet set = new SimpleAttributeSet();
+               StyleConstants.setBold(set, bold);
+               Document doc = textArea.getStyledDocument();
+               if (!text.endsWith("\n")) {
+                       text += "\n";
+               }
+               try {
+                       doc.insertString(doc.getLength(), text, set);
+               } catch (BadLocationException e) {
+                       // TODO
+               }
+       }
+
+       public ManualCaseDetailDialog(JFrame frame, boolean modal,
+                       ManualCaseResult result) {
+               super(frame, modal);
+               JPanel panel = new JPanel(new BorderLayout());
+
+               JLabel id = new JLabel("Case ID: " + result.getId());
+               id.setFont(Constants.POPUP_TITLE_FONT);
+               id.setOpaque(true);
+
+               JPanel content = new JPanel(new GridLayout(0, 1));
+               JTextPane textArea = new JTextPane();
+               textArea.setEditable(false);
+               textArea.setFont(Constants.POPUP_TEXT_FONT);
+               content.add(textArea);
+               insertDocument(textArea, "Purpose:", true);
+               insertDocument(textArea, result.getPurpose(), false);
+               insertDocument(textArea, "\n", false);
+
+               String preCondition = result.getPre_condition();
+               if (null != preCondition && preCondition.length() > 0) {
+                       insertDocument(textArea, "Pre-Condition:", true);
+                       insertDocument(textArea, preCondition, false);
+                       insertDocument(textArea, "\n", false);
+               }
+
+               int stepIndex = 1;
+               CaseStep[] manualsteps = result.getSteps();
+               if (null != manualsteps && manualsteps.length > 0) {
+                       for (CaseStep step : manualsteps) {
+                               insertDocument(textArea, "Step" + stepIndex + ":", true);
+                               insertDocument(textArea,
+                                               "<Description>\n" + step.getStep_desc(), false);
+                               insertDocument(textArea,
+                                               "<Expected>\n" + step.getExpected_result(), false);
+                               insertDocument(textArea, "\n", false);
+                               stepIndex++;
+                       }
+               }
+               textArea.setPreferredSize(new Dimension(580, 400));
+               JScrollPane panelscroll = new JScrollPane(textArea);
+               content.add(panelscroll);
+               content.setBorder(new EmptyBorder(5, 5, 5, 5));
+
+               JButton closeButton = new JButton("OK");
+               closeButton.addActionListener(this);
+               closeButton.setPreferredSize(Constants.BUTTON_DIMENSION);
+               closeButton.setFont(Constants.BUTTON_LABEL_FONT);
+               JPanel tail = new JPanel(new FlowLayout());
+               tail.add(closeButton);
+
+               panel.add(id, BorderLayout.NORTH);
+               panel.add(content, BorderLayout.CENTER);
+               panel.add(tail, BorderLayout.SOUTH);
+               panel.setPreferredSize(new Dimension(600, 400));
+
+               getContentPane().add(panel);
+               setResizable(false);
+               pack();
+               setLocationRelativeTo(frame);
+               setVisible(true);
+       }
+
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               setVisible(false);
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailEditor.java
new file mode 100644 (file)
index 0000000..6bbccf4
--- /dev/null
@@ -0,0 +1,56 @@
+package org.tizen.tct.tool.mgr.view.runpage.edit;
+
+import java.awt.Component;
+
+import javax.swing.AbstractCellEditor;
+import javax.swing.DefaultCellEditor;
+import javax.swing.JDialog;
+import javax.swing.JLabel;
+import javax.swing.JTable;
+import javax.swing.JTextField;
+import javax.swing.table.TableCellEditor;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.editablesuite.ManualCaseResult;
+import org.tizen.tct.tool.mgr.model.editablesuite.PlanManualResult;
+
+public class ManualCaseDetailEditor extends AbstractCellEditor implements
+               TableCellEditor {
+
+       private JDialog dialog;
+       private String caseName;
+
+       private DefaultCellEditor editor = new DefaultCellEditor(new JTextField());
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 3288056305998094237L;
+
+       public ManualCaseDetailEditor() {
+       }
+
+       @Override
+       public Object getCellEditorValue() {
+               return caseName;
+       }
+
+       @Override
+       public Component getTableCellEditorComponent(JTable table, Object value,
+                       boolean isSelected, int row, int column) {
+               if (value instanceof String) {
+                       this.caseName = (String) value;
+                       ManualCaseResult result = ((PlanManualResult) table.getModel())
+                                       .getManualCaseResult(row);
+                       dialog = new ManualCaseDetailDialog(null, true, result);
+                       JLabel label = new JLabel(this.caseName);
+                       label.setFont(Constants.URL_LINK_FONT);
+                       label.setForeground(Constants.URL_LINK_COLOR);
+                       return label;
+               } else {
+                       return editor.getTableCellEditorComponent(table, value, isSelected,
+                                       row, column);
+               }
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/ManualCaseDetailRenderer.java
new file mode 100644 (file)
index 0000000..32e6331
--- /dev/null
@@ -0,0 +1,43 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage.edit;
+
+import java.awt.BorderLayout;
+import java.awt.Component;
+
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTable;
+import javax.swing.table.TableCellRenderer;
+
+import org.tizen.tct.tool.mgr.Constants;
+
+/**
+ * @author shaofeng
+ *
+ */
+public class ManualCaseDetailRenderer implements TableCellRenderer {
+
+       /* (non-Javadoc)
+        * @see javax.swing.table.TableCellRenderer#getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)
+        */
+       @Override
+       public Component getTableCellRendererComponent(JTable table, Object value,
+                       boolean isSelected, boolean hasFocus, int row, int column) {
+               JPanel panel = new JPanel(new BorderLayout());
+               if (value instanceof String) {
+                       JLabel forderLabel = new JLabel((String) value);
+                       forderLabel.setFont(Constants.URL_LINK_FONT);
+                       forderLabel.setForeground(Constants.URL_LINK_COLOR);
+                       panel.add(forderLabel, BorderLayout.CENTER);
+                       if (isSelected) {
+                               panel.setBackground(table.getSelectionBackground());
+                       } else {
+                               panel.setBackground(table.getBackground());
+                       }
+               }
+               return panel;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/StopableCombobox.java
new file mode 100644 (file)
index 0000000..e006430
--- /dev/null
@@ -0,0 +1,23 @@
+package org.tizen.tct.tool.mgr.view.runpage.edit;
+
+import javax.swing.AbstractCellEditor;
+import javax.swing.JComboBox;
+
+public class StopableCombobox extends JComboBox<String> {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 5638355335722773587L;
+
+       private AbstractCellEditor editor;
+
+       public StopableCombobox(String[] items, AbstractCellEditor editor) {
+               super(items);
+               this.editor = editor;
+       }
+
+       public void cancelEditing() {
+               this.editor.cancelCellEditing();
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeader.java
new file mode 100644 (file)
index 0000000..cbad8a2
--- /dev/null
@@ -0,0 +1,179 @@
+package org.tizen.tct.tool.mgr.view.runpage.edit.header;
+
+import java.util.*;
+import java.awt.*;
+import javax.swing.*;
+import javax.swing.table.*;
+import javax.swing.event.*;
+
+/**
+ * 
+ * @author shaofeng
+ *
+ */
+public class ResultEditableHeader extends JTableHeader implements
+               CellEditorListener {
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 3282613685220363338L;
+       
+       public final int HEADER_ROW = -10;
+       transient protected int editCol;
+       transient protected TableCellEditor tableCellEditor;
+       transient protected Component editComp;
+       private TableModel tableModelObject;
+
+       public ResultEditableHeader(TableColumnModel colModel,
+                       TableModel tableModelObject) {
+               super(colModel);
+               setReorderingAllowed(false);
+               tableCellEditor = null;
+               recreateTableColumn(colModel);
+               this.tableModelObject = tableModelObject;
+       }
+
+       public void updateUI() {
+               setUI(new ResultEditableHeaderUI());
+               resizeAndRepaint();
+               invalidate();
+       }
+
+       protected void recreateTableColumn(TableColumnModel columnModelObject) {
+               int n = columnModelObject.getColumnCount();
+               ResultEditableHeaderTableColumn newCol = new ResultEditableHeaderTableColumn(
+                               new ResultHeaderEditor());
+               newCol.cloneValues(columnModelObject.getColumn(2));
+               columnModelObject.removeColumn(columnModelObject.getColumn(2));
+               columnModelObject.addColumn(newCol);
+       }
+
+       public boolean editCellAt(int i, EventObject event) {
+               if (tableCellEditor != null && !tableCellEditor.stopCellEditing()) {
+                       return false;
+               }
+               if (!isCellEditable(i)) {
+                       return false;
+               }
+               TableCellEditor editor = getCellEditor(i);
+
+               if (editor != null && editor.isCellEditable(event)) {
+                       editComp = prepareEditor(editor, i);
+                       editComp.setBounds(getHeaderRect(i));
+                       add(editComp);
+                       editComp.validate();
+                       setCellEditor(editor);
+                       setEditingColumn(i);
+                       editor.addCellEditorListener(this);
+
+                       return true;
+               }
+               return false;
+       }
+
+       public boolean isCellEditable(int index) {
+               if (getReorderingAllowed()) {
+                       return false;
+               }
+               int columnIndex = columnModel.getColumn(index).getModelIndex();
+               if (columnModel.getColumn(columnIndex) instanceof ResultEditableHeaderTableColumn) {
+                       ResultEditableHeaderTableColumn col = (ResultEditableHeaderTableColumn) columnModel
+                                       .getColumn(columnIndex);
+                       return col.isHeadEditable();
+               } else {
+                       return false;
+               }
+       }
+
+       public TableCellEditor getCellEditor(int index) {
+               int columnIndex = columnModel.getColumn(index).getModelIndex();
+               ResultEditableHeaderTableColumn col = (ResultEditableHeaderTableColumn) columnModel
+                               .getColumn(columnIndex);
+               return col.getHeadEditor();
+       }
+
+       public void setCellEditor(TableCellEditor newEditor) {
+               TableCellEditor originEditor = tableCellEditor;
+               tableCellEditor = newEditor;
+
+               if (originEditor != null && originEditor instanceof TableCellEditor) {
+                       ((TableCellEditor) originEditor)
+                                       .removeCellEditorListener((CellEditorListener) this);
+               }
+               if (newEditor != null && newEditor instanceof TableCellEditor) {
+                       ((TableCellEditor) newEditor)
+                                       .addCellEditorListener((CellEditorListener) this);
+               }
+       }
+
+       public Component prepareEditor(TableCellEditor editorObj, int i) {
+               Object value = columnModel.getColumn(i).getHeaderValue();
+               boolean isSelected = true;
+               int row = HEADER_ROW;
+               JTable table = getTable();
+               Component comp = editorObj.getTableCellEditorComponent(table, value,
+                               isSelected, row, i);
+               if (comp instanceof JComponent) {
+                       ((JComponent) comp).setNextFocusableComponent(this);
+               }
+               return comp;
+       }
+
+       public TableCellEditor getCellEditor() {
+               return tableCellEditor;
+       }
+
+       public Component getEditorComponent() {
+               return editComp;
+       }
+
+       public void setEditingColumn(int aColumn) {
+               editCol = aColumn;
+       }
+
+       public int getEditingColumn() {
+               return editCol;
+       }
+
+       public void removeEditor() {
+               TableCellEditor editor = getCellEditor();
+               if (editor != null) {
+                       editor.removeCellEditorListener(this);
+
+                       requestFocus();
+                       remove(editComp);
+
+                       int index = getEditingColumn();
+                       Rectangle cellRect = getHeaderRect(index);
+
+                       setCellEditor(null);
+                       setEditingColumn(-1);
+                       editComp = null;
+
+                       repaint(cellRect);
+               }
+       }
+
+       public boolean isEditing() {
+               return (tableCellEditor == null) ? false : true;
+       }
+
+       public void editingStopped(ChangeEvent event) {
+               TableCellEditor editor = getCellEditor();
+               if (editor != null) {
+                       Object value = editor.getCellEditorValue();
+                       if (null != this.getTable()) {
+                               for (int i = 0; i < this.table.getRowCount(); i++) {
+                                       this.tableModelObject.setValueAt(value, i, 2);
+                               }
+                               this.table.repaint();
+                       }
+                       removeEditor();
+               }
+       }
+
+       public void editingCanceled(ChangeEvent event) {
+               removeEditor();
+       }
+
+}
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderTableColumn.java
new file mode 100644 (file)
index 0000000..c06085c
--- /dev/null
@@ -0,0 +1,51 @@
+package org.tizen.tct.tool.mgr.view.runpage.edit.header;
+
+import javax.swing.table.TableCellEditor;
+import javax.swing.table.TableColumn;
+
+public class ResultEditableHeaderTableColumn extends TableColumn {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -3308031596188358075L;
+       
+       protected TableCellEditor headEditor;
+       protected boolean isHeadEditable;
+
+       public ResultEditableHeaderTableColumn(TableCellEditor headerEditor) {
+               setHeadEditor(headerEditor);
+               isHeadEditable = (null != headerEditor);
+       }
+
+       public void setHeadEditor(TableCellEditor headerEditor) {
+               this.headEditor = headerEditor;
+       }
+
+       public TableCellEditor getHeadEditor() {
+               return headEditor;
+       }
+
+       public void setHeadEditable(boolean isEditable) {
+               isHeadEditable = isEditable;
+       }
+
+       public boolean isHeadEditable() {
+               return isHeadEditable;
+       }
+
+       public void cloneValues(TableColumn column) {
+               modelIndex = column.getModelIndex();
+               identifier = column.getIdentifier();
+               width = column.getWidth();
+               minWidth = column.getMinWidth();
+               setPreferredWidth(column.getPreferredWidth());
+               maxWidth = column.getMaxWidth();
+               headerRenderer = column.getHeaderRenderer();
+               headerValue = column.getHeaderValue();
+               cellRenderer = column.getCellRenderer();
+               cellEditor = column.getCellEditor();
+               isResizable = column.getResizable();
+       }
+
+}
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultEditableHeaderUI.java
new file mode 100644 (file)
index 0000000..1220b8e
--- /dev/null
@@ -0,0 +1,76 @@
+package org.tizen.tct.tool.mgr.view.runpage.edit.header;
+
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+import javax.swing.table.*;
+import javax.swing.event.*;
+import javax.swing.plaf.basic.*;
+
+/**
+ * 
+ * @author shaofeng
+ * 
+ */
+public class ResultEditableHeaderUI extends BasicTableHeaderUI {
+
+       protected MouseInputListener createMouseInputListener() {
+               return new MouseInputHandler((ResultEditableHeader) header);
+       }
+
+       public class MouseInputHandler extends BasicTableHeaderUI.MouseInputHandler {
+               private Component dispatchComp;
+               protected ResultEditableHeader headerObject;
+
+               public MouseInputHandler(ResultEditableHeader headerObj) {
+                       this.headerObject = headerObj;
+               }
+
+               private void setDispatchComponent(MouseEvent event) {
+                       Component editorComponent = headerObject.getEditorComponent();
+                       Point p = event.getPoint();
+                       Point p2 = SwingUtilities.convertPoint(headerObject, p, editorComponent);
+                       dispatchComp = SwingUtilities.getDeepestComponentAt(
+                                       editorComponent, p2.x, p2.y);
+               }
+
+               private boolean repostEvent(MouseEvent event) {
+                       if (dispatchComp == null) {
+                               return false;
+                       }
+                       MouseEvent e2 = SwingUtilities.convertMouseEvent(headerObject, event,
+                                       dispatchComp);
+                       dispatchComp.dispatchEvent(e2);
+                       return true;
+               }
+
+               public void mousePressed(MouseEvent event) {
+                       if (!SwingUtilities.isLeftMouseButton(event)) {
+                               return;
+                       }
+                       super.mousePressed(event);
+
+                       if (headerObject.getResizingColumn() == null) {
+                               Point p = event.getPoint();
+                               TableColumnModel columnModel = headerObject.getColumnModel();
+                               int index = columnModel.getColumnIndexAtX(p.x);
+                               if (index != -1) {
+                                       if (headerObject.editCellAt(index, event)) {
+                                               setDispatchComponent(event);
+                                               repostEvent(event);
+                                       }
+                               }
+                       }
+               }
+
+               public void mouseReleased(MouseEvent event) {
+                       super.mouseReleased(event);
+                       if (!SwingUtilities.isLeftMouseButton(event)) {
+                               return;
+                       }
+                       repostEvent(event);
+                       dispatchComp = null;
+               }
+
+       }
+}
\ No newline at end of file
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderEditor.java
new file mode 100644 (file)
index 0000000..eaefc61
--- /dev/null
@@ -0,0 +1,69 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.runpage.edit.header;
+
+import java.awt.Component;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.FocusEvent;
+import java.awt.event.FocusListener;
+import java.awt.event.ItemListener;
+
+import javax.swing.AbstractCellEditor;
+import javax.swing.JComboBox;
+import javax.swing.JTable;
+import javax.swing.table.TableCellEditor;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.CaseResult;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ResultHeaderEditor extends AbstractCellEditor implements
+               TableCellEditor, ActionListener, FocusListener {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = -1048936207739992194L;
+
+       private JComboBox<String> resultList;
+
+       public ResultHeaderEditor() {
+               resultList = new JComboBox<String>(CaseResult.getAvailableResult());
+               resultList.setFont(Constants.TABLE_HEADER_FONT);
+               resultList.addActionListener(this);
+               resultList.addFocusListener(this);
+       }
+
+       @Override
+       public Object getCellEditorValue() {
+               String item = (String) resultList.getSelectedItem();
+               return CaseResult.getCaseResultInstance(item);
+       }
+
+       @Override
+       public Component getTableCellEditorComponent(JTable table, Object value,
+                       boolean isSelected, int row, int column) {
+               return resultList;
+       }
+
+       @Override
+       public void actionPerformed(ActionEvent e) {
+               stopCellEditing();
+       }
+
+       @Override
+       public void focusGained(FocusEvent e) {
+               // do nothing
+       }
+
+       @Override
+       public void focusLost(FocusEvent e) {
+               this.cancelCellEditing();
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.java b/src/org/tizen/tct/tool/mgr/view/runpage/edit/header/ResultHeaderRender.java
new file mode 100644 (file)
index 0000000..b460982
--- /dev/null
@@ -0,0 +1,26 @@
+package org.tizen.tct.tool.mgr.view.runpage.edit.header;
+
+import java.awt.Component;
+
+import javax.swing.JComboBox;
+import javax.swing.JTable;
+import javax.swing.table.TableCellRenderer;
+
+import org.tizen.tct.tool.mgr.Constants;
+
+public class ResultHeaderRender implements TableCellRenderer {
+
+       private JComboBox<String> resultList = new JComboBox<String>(
+                       new String[] { "Batch Update" });
+       
+       public ResultHeaderRender(){
+               resultList.setFont(Constants.TABLE_HEADER_FONT);
+       }
+
+       @Override
+       public Component getTableCellRendererComponent(JTable table, Object value,
+                       boolean isSelected, boolean hasFocus, int row, int column) {
+               return resultList;
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.java b/src/org/tizen/tct/tool/mgr/view/safequit/ExecutorRegister.java
new file mode 100644 (file)
index 0000000..23c1a85
--- /dev/null
@@ -0,0 +1,69 @@
+/**
+ * 
+ */
+package org.tizen.tct.tool.mgr.view.safequit;
+
+import java.io.IOException;
+import java.util.List;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.lite.PlanExecutor;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+
+/**
+ * @author shaofeng
+ * 
+ */
+public class ExecutorRegister {
+
+       private static final Logger logger = Logger
+                       .getLogger(ExecutorRegister.class);
+
+       private PlanExecutor executor;
+
+       private String resultFolder;
+
+       private List<TctTestSuite> installedSuites = null;
+
+       private static ExecutorRegister instance = new ExecutorRegister();
+
+       private ExecutorRegister() {
+
+       }
+
+       public static ExecutorRegister getInstance() {
+               return instance;
+       }
+
+       public void registerExecutor(PlanExecutor executor) {
+               logger.info("Register the executor");
+               this.executor = executor;
+       }
+
+       public void registerResultFolder(String resultFolder) {
+               this.resultFolder = resultFolder;
+       }
+
+       public void registerInstalledSuites(List<TctTestSuite> installedSuites) {
+               this.installedSuites = installedSuites;
+       }
+
+       public void unregisterExecutor() {
+               logger.info("Unregister the executor");
+               this.executor = null;
+               this.resultFolder = null;
+       }
+       
+       PlanExecutor getExecutor() {
+               return executor;
+       }
+
+       String getResultFolder() {
+               return resultFolder;
+       }
+
+       List<TctTestSuite> getInstalledSuites() {
+               return installedSuites;
+       }
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.java b/src/org/tizen/tct/tool/mgr/view/safequit/SafeQuitDialog.java
new file mode 100644 (file)
index 0000000..03a8029
--- /dev/null
@@ -0,0 +1,97 @@
+package org.tizen.tct.tool.mgr.view.safequit;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.event.WindowEvent;
+import java.awt.event.WindowListener;
+
+import javax.swing.JDialog;
+import javax.swing.JFrame;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+import javax.swing.SwingWorker;
+
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.view.ProgressDialog;
+
+public class SafeQuitDialog extends ProgressDialog implements WindowListener {
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 7655563103680078697L;
+
+       private JLabel tip = new JLabel(
+                       "During installing suite package, several minutes are needed to quit.");
+
+       public SafeQuitDialog(JFrame frame, boolean modal, int max) {
+               super(frame, modal, max, new Dimension(430, 100));
+               JPanel panel = super.getMainPanel();
+               tip.setFont(Constants.POPUP_TEXT_FONT);
+               panel.add(tip, BorderLayout.NORTH);
+               JProgressBar bar = super.getProgressBar();
+               bar.setStringPainted(false);
+               bar.setIndeterminate(true);
+               this.addWindowListener(this);
+               this.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
+       }
+       
+       
+
+       @Override
+       public void startWorker(SwingWorker worker) {
+               super.startWorker(worker);
+       }
+       
+       
+
+
+
+       @Override
+       public void closeDialog() {
+               setVisible(false);
+               this.dispose();
+       }
+
+
+
+       @Override
+       public void windowOpened(WindowEvent e) {
+
+       }
+
+       @Override
+       public void windowClosing(WindowEvent e) {
+               int reply = JOptionPane.showConfirmDialog(this,
+                               "Quit immediately? and discard the result of executing plan?",
+                               "Force quiting", JOptionPane.YES_NO_OPTION);
+               if (reply == JOptionPane.YES_OPTION) {
+                       this.setVisible(false);
+                       this.dispose();
+               }
+       }
+
+       @Override
+       public void windowClosed(WindowEvent e) {
+
+       }
+
+       @Override
+       public void windowIconified(WindowEvent e) {
+       }
+
+       @Override
+       public void windowDeiconified(WindowEvent e) {
+       }
+
+       @Override
+       public void windowActivated(WindowEvent e) {
+       }
+
+       @Override
+       public void windowDeactivated(WindowEvent e) {
+       }
+
+}
diff --git a/src/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.java b/src/org/tizen/tct/tool/mgr/view/safequit/SafeQuitWorker.java
new file mode 100644 (file)
index 0000000..be8e2db
--- /dev/null
@@ -0,0 +1,70 @@
+package org.tizen.tct.tool.mgr.view.safequit;
+
+import java.io.IOException;
+import java.util.List;
+
+import javax.swing.SwingWorker;
+
+import org.apache.log4j.Logger;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.run.SingleRunningPlan;
+import org.tizen.tct.tool.mgr.view.ProgressInformable;
+
+public class SafeQuitWorker extends SwingWorker<Integer, String> {
+
+       private static final Logger logger = Logger.getLogger(SafeQuitWorker.class);
+
+       private ExecutorRegister register;
+
+       private ProgressInformable informable;
+
+       public SafeQuitWorker(ProgressInformable informable,
+                       ExecutorRegister register) {
+               this.informable = informable;
+               this.register = register;
+       }
+
+       @Override
+       protected Integer doInBackground() throws Exception {
+               String tip = "Waiting to quit the running package";
+               while (null != this.register.getExecutor()) {
+                       tip += ".";
+                       publish(tip);
+                       try {
+                               Thread.sleep(3000);
+                       } catch (InterruptedException e) {
+                               Thread.currentThread().interrupt();
+                               break;
+                       }
+                       logger.info("Quiting executor.");
+               }
+               if (null != this.register.getInstalledSuites()) {
+                       for (TctTestSuite suite : this.register.getInstalledSuites()) {
+                               if (null != suite) {
+                                       publish("Uninstalling the suite '" + suite.getName() + "'");
+                                       try {
+                                               if (suite.sdbCheckSuite()) {
+                                                       suite.sdbUninstall();
+                                               }
+                                       } catch (IOException e) {
+                                               e.printStackTrace();
+                                       }
+                               }
+                       }
+               }
+               if (null != this.register.getResultFolder()) {
+                       publish("Generating the summary report for executed suites.");
+                       SingleRunningPlan.getInstance().finishedPlan(
+                                       this.register.getResultFolder());
+               }
+               this.informable.closeDialog();
+               return new Integer(0);
+       }
+
+       @Override
+       protected void process(List<String> chunks) {
+               for (String message : chunks) {
+                       informable.messageChanged(message);
+               }
+       }
+}
diff --git a/src/resources/collapse.png b/src/resources/collapse.png
new file mode 100644 (file)
index 0000000..cd5e3ad
Binary files /dev/null and b/src/resources/collapse.png differ
diff --git a/src/resources/completed.png b/src/resources/completed.png
new file mode 100644 (file)
index 0000000..4886116
Binary files /dev/null and b/src/resources/completed.png differ
diff --git a/src/resources/expands.png b/src/resources/expands.png
new file mode 100644 (file)
index 0000000..4ec4a7f
Binary files /dev/null and b/src/resources/expands.png differ
diff --git a/src/resources/operation_continue_execution.png b/src/resources/operation_continue_execution.png
new file mode 100644 (file)
index 0000000..14164c8
Binary files /dev/null and b/src/resources/operation_continue_execution.png differ
diff --git a/src/resources/operation_download.png b/src/resources/operation_download.png
new file mode 100644 (file)
index 0000000..2422a74
Binary files /dev/null and b/src/resources/operation_download.png differ
diff --git a/src/resources/operation_mail.png b/src/resources/operation_mail.png
new file mode 100644 (file)
index 0000000..09d17b3
Binary files /dev/null and b/src/resources/operation_mail.png differ
diff --git a/src/resources/operation_rerun.png b/src/resources/operation_rerun.png
new file mode 100644 (file)
index 0000000..cb1c917
Binary files /dev/null and b/src/resources/operation_rerun.png differ
diff --git a/src/resources/operation_resume.png b/src/resources/operation_resume.png
new file mode 100644 (file)
index 0000000..82bffb8
Binary files /dev/null and b/src/resources/operation_resume.png differ
diff --git a/src/resources/testkit-manager-logo.png b/src/resources/testkit-manager-logo.png
new file mode 100644 (file)
index 0000000..8034bdf
Binary files /dev/null and b/src/resources/testkit-manager-logo.png differ
diff --git a/src/resources/tizen_logo.png b/src/resources/tizen_logo.png
new file mode 100644 (file)
index 0000000..4857c5e
Binary files /dev/null and b/src/resources/tizen_logo.png differ
diff --git a/src/resources/tizen_logo_128.png b/src/resources/tizen_logo_128.png
new file mode 100644 (file)
index 0000000..30f5d6c
Binary files /dev/null and b/src/resources/tizen_logo_128.png differ
diff --git a/src/resources/tizen_logo_16.png b/src/resources/tizen_logo_16.png
new file mode 100644 (file)
index 0000000..ef38d30
Binary files /dev/null and b/src/resources/tizen_logo_16.png differ
diff --git a/src/resources/tizen_logo_22.png b/src/resources/tizen_logo_22.png
new file mode 100644 (file)
index 0000000..08147b8
Binary files /dev/null and b/src/resources/tizen_logo_22.png differ
diff --git a/src/resources/tizen_logo_24.png b/src/resources/tizen_logo_24.png
new file mode 100644 (file)
index 0000000..61520de
Binary files /dev/null and b/src/resources/tizen_logo_24.png differ
diff --git a/src/resources/tizen_logo_32.png b/src/resources/tizen_logo_32.png
new file mode 100644 (file)
index 0000000..fab742b
Binary files /dev/null and b/src/resources/tizen_logo_32.png differ
diff --git a/src/resources/tizen_logo_48.png b/src/resources/tizen_logo_48.png
new file mode 100644 (file)
index 0000000..040c505
Binary files /dev/null and b/src/resources/tizen_logo_48.png differ
diff --git a/src/resources/tizen_logo_64.png b/src/resources/tizen_logo_64.png
new file mode 100644 (file)
index 0000000..25f0a1d
Binary files /dev/null and b/src/resources/tizen_logo_64.png differ
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/capability/Capabilities.java
new file mode 100644 (file)
index 0000000..b64de86
--- /dev/null
@@ -0,0 +1,225 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:37 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.capability;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="capability" maxOccurs="unbounded" minOccurs="0">
+ *           &lt;complexType>
+ *             &lt;complexContent>
+ *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 &lt;sequence>
+ *                   &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                 &lt;/sequence>
+ *                 &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="support" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               &lt;/restriction>
+ *             &lt;/complexContent>
+ *           &lt;/complexType>
+ *         &lt;/element>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "capability"
+})
+@XmlRootElement(name = "capabilities")
+public class Capabilities {
+
+    protected List<Capabilities.Capability> capability;
+
+    /**
+     * Gets the value of the capability property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the capability property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getCapability().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link Capabilities.Capability }
+     * 
+     * 
+     */
+    public List<Capabilities.Capability> getCapability() {
+        if (capability == null) {
+            capability = new ArrayList<Capabilities.Capability>();
+        }
+        return this.capability;
+    }
+
+
+    /**
+     * <p>Java class for anonymous complex type.
+     * 
+     * <p>The following schema fragment specifies the expected content contained within this class.
+     * 
+     * <pre>
+     * &lt;complexType>
+     *   &lt;complexContent>
+     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       &lt;sequence>
+     *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *       &lt;/sequence>
+     *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="support" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     &lt;/restriction>
+     *   &lt;/complexContent>
+     * &lt;/complexType>
+     * </pre>
+     * 
+     * 
+     */
+    @XmlAccessorType(XmlAccessType.FIELD)
+    @XmlType(name = "", propOrder = {
+        "value"
+    })
+    public static class Capability {
+
+        protected String value;
+        @XmlAttribute(name = "name")
+        protected String name;
+        @XmlAttribute(name = "support")
+        protected String support;
+        @XmlAttribute(name = "type")
+        protected String type;
+
+        /**
+         * Gets the value of the value property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getValue() {
+            return value;
+        }
+
+        /**
+         * Sets the value of the value property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setValue(String value) {
+            this.value = value;
+        }
+
+        /**
+         * Gets the value of the name property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getName() {
+            return name;
+        }
+
+        /**
+         * Sets the value of the name property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setName(String value) {
+            this.name = value;
+        }
+
+        /**
+         * Gets the value of the support property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getSupport() {
+            return support;
+        }
+
+        /**
+         * Sets the value of the support property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setSupport(String value) {
+            this.support = value;
+        }
+
+        /**
+         * Gets the value of the type property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getType() {
+            return type;
+        }
+
+        /**
+         * Sets the value of the type property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setType(String value) {
+            this.type = value;
+        }
+
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/capability/ObjectFactory.java
new file mode 100644 (file)
index 0000000..34e8006
--- /dev/null
@@ -0,0 +1,55 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:37 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.capability;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.tizen.tct.tool.mgr.jaxb.capability package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.tizen.tct.tool.mgr.jaxb.capability
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link Capabilities.Capability }
+     * 
+     */
+    public Capabilities.Capability createCapabilitiesCapability() {
+        return new Capabilities.Capability();
+    }
+
+    /**
+     * Create an instance of {@link Capabilities }
+     * 
+     */
+    public Capabilities createCapabilities() {
+        return new Capabilities();
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/BuildInfoType.java
new file mode 100644 (file)
index 0000000..a1d1048
--- /dev/null
@@ -0,0 +1,367 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for BuildInfoType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="BuildInfoType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="other" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="device_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="device_model" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="os_version" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="device_id" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="firmware_version" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="screen_size" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="resolution" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="host" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="cts_version" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="build_id" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="manufacturer" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "BuildInfoType", propOrder = {
+    "other"
+})
+public class BuildInfoType {
+
+    @XmlElement(required = true)
+    protected String other;
+    @XmlAttribute(name = "device_name")
+    protected String deviceName;
+    @XmlAttribute(name = "device_model")
+    protected String deviceModel;
+    @XmlAttribute(name = "os_version")
+    protected String osVersion;
+    @XmlAttribute(name = "device_id")
+    protected String deviceId;
+    @XmlAttribute(name = "firmware_version")
+    protected String firmwareVersion;
+    @XmlAttribute(name = "screen_size")
+    protected String screenSize;
+    @XmlAttribute(name = "resolution")
+    protected String resolution;
+    @XmlAttribute(name = "host")
+    protected String host;
+    @XmlAttribute(name = "cts_version")
+    protected String ctsVersion;
+    @XmlAttribute(name = "build_id")
+    protected String buildId;
+    @XmlAttribute(name = "manufacturer")
+    protected String manufacturer;
+
+    /**
+     * Gets the value of the other property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getOther() {
+        return other;
+    }
+
+    /**
+     * Sets the value of the other property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setOther(String value) {
+        this.other = value;
+    }
+
+    /**
+     * Gets the value of the deviceName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getDeviceName() {
+        return deviceName;
+    }
+
+    /**
+     * Sets the value of the deviceName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setDeviceName(String value) {
+        this.deviceName = value;
+    }
+
+    /**
+     * Gets the value of the deviceModel property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getDeviceModel() {
+        return deviceModel;
+    }
+
+    /**
+     * Sets the value of the deviceModel property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setDeviceModel(String value) {
+        this.deviceModel = value;
+    }
+
+    /**
+     * Gets the value of the osVersion property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getOsVersion() {
+        return osVersion;
+    }
+
+    /**
+     * Sets the value of the osVersion property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setOsVersion(String value) {
+        this.osVersion = value;
+    }
+
+    /**
+     * Gets the value of the deviceId property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getDeviceId() {
+        return deviceId;
+    }
+
+    /**
+     * Sets the value of the deviceId property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setDeviceId(String value) {
+        this.deviceId = value;
+    }
+
+    /**
+     * Gets the value of the firmwareVersion property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getFirmwareVersion() {
+        return firmwareVersion;
+    }
+
+    /**
+     * Sets the value of the firmwareVersion property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setFirmwareVersion(String value) {
+        this.firmwareVersion = value;
+    }
+
+    /**
+     * Gets the value of the screenSize property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getScreenSize() {
+        return screenSize;
+    }
+
+    /**
+     * Sets the value of the screenSize property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setScreenSize(String value) {
+        this.screenSize = value;
+    }
+
+    /**
+     * Gets the value of the resolution property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getResolution() {
+        return resolution;
+    }
+
+    /**
+     * Sets the value of the resolution property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setResolution(String value) {
+        this.resolution = value;
+    }
+
+    /**
+     * Gets the value of the host property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getHost() {
+        return host;
+    }
+
+    /**
+     * Sets the value of the host property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setHost(String value) {
+        this.host = value;
+    }
+
+    /**
+     * Gets the value of the ctsVersion property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCtsVersion() {
+        return ctsVersion;
+    }
+
+    /**
+     * Sets the value of the ctsVersion property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCtsVersion(String value) {
+        this.ctsVersion = value;
+    }
+
+    /**
+     * Gets the value of the buildId property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getBuildId() {
+        return buildId;
+    }
+
+    /**
+     * Sets the value of the buildId property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setBuildId(String value) {
+        this.buildId = value;
+    }
+
+    /**
+     * Gets the value of the manufacturer property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getManufacturer() {
+        return manufacturer;
+    }
+
+    /**
+     * Sets the value of the manufacturer property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setManufacturer(String value) {
+        this.manufacturer = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CapabilitiesType.java
new file mode 100644 (file)
index 0000000..d71aa69
--- /dev/null
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for CapabilitiesType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="CapabilitiesType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="capability" type="{}CapabilityType" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "CapabilitiesType", propOrder = {
+    "capability"
+})
+public class CapabilitiesType {
+
+    @XmlElement(required = true)
+    protected List<CapabilityType> capability;
+
+    /**
+     * Gets the value of the capability property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the capability property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getCapability().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link CapabilityType }
+     * 
+     * 
+     */
+    public List<CapabilityType> getCapability() {
+        if (capability == null) {
+            capability = new ArrayList<CapabilityType>();
+        }
+        return this.capability;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CapabilityType.java
new file mode 100644 (file)
index 0000000..4f41c69
--- /dev/null
@@ -0,0 +1,95 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for CapabilityType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="CapabilityType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence minOccurs="0">
+ *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "CapabilityType", propOrder = {
+    "value"
+})
+public class CapabilityType {
+
+    protected String value;
+    @XmlAttribute(name = "name", required = true)
+    protected String name;
+
+    /**
+     * Gets the value of the value property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getValue() {
+        return value;
+    }
+
+    /**
+     * Sets the value of the value property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/CaseTypeType.java
new file mode 100644 (file)
index 0000000..7ba07fc
--- /dev/null
@@ -0,0 +1,82 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for case_type_type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * &lt;simpleType name="case_type_type">
+ *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     &lt;enumeration value="functional_positive"/>
+ *     &lt;enumeration value="functional_negative"/>
+ *     &lt;enumeration value="security"/>
+ *     &lt;enumeration value="performance"/>
+ *     &lt;enumeration value="reliability"/>
+ *     &lt;enumeration value="portability"/>
+ *     &lt;enumeration value="maintainability"/>
+ *     &lt;enumeration value="compliance"/>
+ *     &lt;enumeration value="user_experience"/>
+ *     &lt;enumeration value="undefined"/>
+ *   &lt;/restriction>
+ * &lt;/simpleType>
+ * </pre>
+ * 
+ */
+@XmlType(name = "case_type_type")
+@XmlEnum
+public enum CaseTypeType {
+
+    @XmlEnumValue("functional_positive")
+    FUNCTIONAL_POSITIVE("functional_positive"),
+    @XmlEnumValue("functional_negative")
+    FUNCTIONAL_NEGATIVE("functional_negative"),
+    @XmlEnumValue("security")
+    SECURITY("security"),
+    @XmlEnumValue("performance")
+    PERFORMANCE("performance"),
+    @XmlEnumValue("reliability")
+    RELIABILITY("reliability"),
+    @XmlEnumValue("portability")
+    PORTABILITY("portability"),
+    @XmlEnumValue("maintainability")
+    MAINTAINABILITY("maintainability"),
+    @XmlEnumValue("compliance")
+    COMPLIANCE("compliance"),
+    @XmlEnumValue("user_experience")
+    USER_EXPERIENCE("user_experience"),
+    @XmlEnumValue("undefined")
+    UNDEFINED("undefined");
+    private final String value;
+
+    CaseTypeType(String v) {
+        value = v;
+    }
+
+    public String value() {
+        return value;
+    }
+
+    public static CaseTypeType fromValue(String v) {
+        for (CaseTypeType c: CaseTypeType.values()) {
+            if (c.value.equals(v)) {
+                return c;
+            }
+        }
+        throw new IllegalArgumentException(v);
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Categories.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Categories.java
new file mode 100644 (file)
index 0000000..0b04260
--- /dev/null
@@ -0,0 +1,74 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for categories complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="categories">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="category" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "categories", propOrder = {
+    "category"
+})
+public class Categories {
+
+    protected List<String> category;
+
+    /**
+     * Gets the value of the category property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the category property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getCategory().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link String }
+     * 
+     * 
+     */
+    public List<String> getCategory() {
+        if (category == null) {
+            category = new ArrayList<String>();
+        }
+        return this.category;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Description.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Description.java
new file mode 100644 (file)
index 0000000..2b0e3f2
--- /dev/null
@@ -0,0 +1,102 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlElementRefs;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence maxOccurs="unbounded">
+ *         &lt;choice minOccurs="0">
+ *           &lt;element ref="{}notes"/>
+ *         &lt;/choice>
+ *         &lt;choice minOccurs="0">
+ *           &lt;element ref="{}pre_condition"/>
+ *         &lt;/choice>
+ *         &lt;choice minOccurs="0">
+ *           &lt;element ref="{}post_condition"/>
+ *         &lt;/choice>
+ *         &lt;element ref="{}steps"/>
+ *         &lt;choice minOccurs="0">
+ *           &lt;element ref="{}test_script_entry"/>
+ *         &lt;/choice>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "notesAndPreConditionAndPostCondition"
+})
+@XmlRootElement(name = "description")
+public class Description {
+
+    @XmlElementRefs({
+        @XmlElementRef(name = "pre_condition", type = JAXBElement.class),
+        @XmlElementRef(name = "steps", type = Steps.class),
+        @XmlElementRef(name = "notes", type = JAXBElement.class),
+        @XmlElementRef(name = "test_script_entry", type = TestScriptEntry.class),
+        @XmlElementRef(name = "post_condition", type = JAXBElement.class)
+    })
+    protected List<Object> notesAndPreConditionAndPostCondition;
+
+    /**
+     * Gets the value of the notesAndPreConditionAndPostCondition property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the notesAndPreConditionAndPostCondition property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getNotesAndPreConditionAndPostCondition().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link TestScriptEntry }
+     * {@link JAXBElement }{@code <}{@link String }{@code >}
+     * {@link Steps }
+     * {@link JAXBElement }{@code <}{@link String }{@code >}
+     * {@link JAXBElement }{@code <}{@link String }{@code >}
+     * 
+     * 
+     */
+    public List<Object> getNotesAndPreConditionAndPostCondition() {
+        if (notesAndPreConditionAndPostCondition == null) {
+            notesAndPreConditionAndPostCondition = new ArrayList<Object>();
+        }
+        return this.notesAndPreConditionAndPostCondition;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ExecutionTypeSimpleType.java
new file mode 100644 (file)
index 0000000..1951d64
--- /dev/null
@@ -0,0 +1,58 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for execution_type_simple_type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * &lt;simpleType name="execution_type_simple_type">
+ *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     &lt;enumeration value="auto"/>
+ *     &lt;enumeration value="manual"/>
+ *   &lt;/restriction>
+ * &lt;/simpleType>
+ * </pre>
+ * 
+ */
+@XmlType(name = "execution_type_simple_type")
+@XmlEnum
+public enum ExecutionTypeSimpleType {
+
+    @XmlEnumValue("auto")
+    AUTO("auto"),
+    @XmlEnumValue("manual")
+    MANUAL("manual");
+    private final String value;
+
+    ExecutionTypeSimpleType(String v) {
+        value = v;
+    }
+
+    public String value() {
+        return value;
+    }
+
+    public static ExecutionTypeSimpleType fromValue(String v) {
+        for (ExecutionTypeSimpleType c: ExecutionTypeSimpleType.values()) {
+            if (c.value.equals(v)) {
+                return c;
+            }
+        }
+        throw new IllegalArgumentException(v);
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/MeasurementType.java
new file mode 100644 (file)
index 0000000..9be0174
--- /dev/null
@@ -0,0 +1,200 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for measurementType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="measurementType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="unit" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="target" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="failure" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="power" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "measurementType")
+public class MeasurementType {
+
+    @XmlAttribute(name = "name")
+    protected String name;
+    @XmlAttribute(name = "value")
+    protected String value;
+    @XmlAttribute(name = "unit")
+    protected String unit;
+    @XmlAttribute(name = "target")
+    protected String target;
+    @XmlAttribute(name = "failure")
+    protected String failure;
+    @XmlAttribute(name = "power")
+    protected String power;
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+    /**
+     * Gets the value of the value property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getValue() {
+        return value;
+    }
+
+    /**
+     * Sets the value of the value property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    /**
+     * Gets the value of the unit property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getUnit() {
+        return unit;
+    }
+
+    /**
+     * Sets the value of the unit property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setUnit(String value) {
+        this.unit = value;
+    }
+
+    /**
+     * Gets the value of the target property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getTarget() {
+        return target;
+    }
+
+    /**
+     * Sets the value of the target property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setTarget(String value) {
+        this.target = value;
+    }
+
+    /**
+     * Gets the value of the failure property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getFailure() {
+        return failure;
+    }
+
+    /**
+     * Sets the value of the failure property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setFailure(String value) {
+        this.failure = value;
+    }
+
+    /**
+     * Gets the value of the power property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getPower() {
+        return power;
+    }
+
+    /**
+     * Sets the value of the power property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setPower(String value) {
+        this.power = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ObjectFactory.java
new file mode 100644 (file)
index 0000000..499e221
--- /dev/null
@@ -0,0 +1,242 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.tizen.tct.tool.mgr.jaxb.definition package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+    private final static QName _PreCondition_QNAME = new QName("", "pre_condition");
+    private final static QName _Purpose_QNAME = new QName("", "purpose");
+    private final static QName _Notes_QNAME = new QName("", "notes");
+    private final static QName _PostCondition_QNAME = new QName("", "post_condition");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.tizen.tct.tool.mgr.jaxb.definition
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link Suite }
+     * 
+     */
+    public Suite createSuite() {
+        return new Suite();
+    }
+
+    /**
+     * Create an instance of {@link BuildInfoType }
+     * 
+     */
+    public BuildInfoType createBuildInfoType() {
+        return new BuildInfoType();
+    }
+
+    /**
+     * Create an instance of {@link CapabilitiesType }
+     * 
+     */
+    public CapabilitiesType createCapabilitiesType() {
+        return new CapabilitiesType();
+    }
+
+    /**
+     * Create an instance of {@link ResultInfoType }
+     * 
+     */
+    public ResultInfoType createResultInfoType() {
+        return new ResultInfoType();
+    }
+
+    /**
+     * Create an instance of {@link SpecAssertionType }
+     * 
+     */
+    public SpecAssertionType createSpecAssertionType() {
+        return new SpecAssertionType();
+    }
+
+    /**
+     * Create an instance of {@link SeriesType }
+     * 
+     */
+    public SeriesType createSeriesType() {
+        return new SeriesType();
+    }
+
+    /**
+     * Create an instance of {@link Step }
+     * 
+     */
+    public Step createStep() {
+        return new Step();
+    }
+
+    /**
+     * Create an instance of {@link SpecsType }
+     * 
+     */
+    public SpecsType createSpecsType() {
+        return new SpecsType();
+    }
+
+    /**
+     * Create an instance of {@link TestScriptEntry }
+     * 
+     */
+    public TestScriptEntry createTestScriptEntry() {
+        return new TestScriptEntry();
+    }
+
+    /**
+     * Create an instance of {@link Categories }
+     * 
+     */
+    public Categories createCategories() {
+        return new Categories();
+    }
+
+    /**
+     * Create an instance of {@link CapabilityType }
+     * 
+     */
+    public CapabilityType createCapabilityType() {
+        return new CapabilityType();
+    }
+
+    /**
+     * Create an instance of {@link Testcase }
+     * 
+     */
+    public Testcase createTestcase() {
+        return new Testcase();
+    }
+
+    /**
+     * Create an instance of {@link SpecType }
+     * 
+     */
+    public SpecType createSpecType() {
+        return new SpecType();
+    }
+
+    /**
+     * Create an instance of {@link Description }
+     * 
+     */
+    public Description createDescription() {
+        return new Description();
+    }
+
+    /**
+     * Create an instance of {@link Steps }
+     * 
+     */
+    public Steps createSteps() {
+        return new Steps();
+    }
+
+    /**
+     * Create an instance of {@link SummaryType }
+     * 
+     */
+    public SummaryType createSummaryType() {
+        return new SummaryType();
+    }
+
+    /**
+     * Create an instance of {@link TestDefinition }
+     * 
+     */
+    public TestDefinition createTestDefinition() {
+        return new TestDefinition();
+    }
+
+    /**
+     * Create an instance of {@link SimpleMeasurementType }
+     * 
+     */
+    public SimpleMeasurementType createSimpleMeasurementType() {
+        return new SimpleMeasurementType();
+    }
+
+    /**
+     * Create an instance of {@link Set }
+     * 
+     */
+    public Set createSet() {
+        return new Set();
+    }
+
+    /**
+     * Create an instance of {@link MeasurementType }
+     * 
+     */
+    public MeasurementType createMeasurementType() {
+        return new MeasurementType();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "", name = "pre_condition")
+    public JAXBElement<String> createPreCondition(String value) {
+        return new JAXBElement<String>(_PreCondition_QNAME, String.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "", name = "purpose")
+    public JAXBElement<Object> createPurpose(Object value) {
+        return new JAXBElement<Object>(_Purpose_QNAME, Object.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "", name = "notes")
+    public JAXBElement<String> createNotes(String value) {
+        return new JAXBElement<String>(_Notes_QNAME, String.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "", name = "post_condition")
+    public JAXBElement<String> createPostCondition(String value) {
+        return new JAXBElement<String>(_PostCondition_QNAME, String.class, null, value);
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/PrioritySimpleType.java
new file mode 100644 (file)
index 0000000..20f95a2
--- /dev/null
@@ -0,0 +1,67 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for priority_simple_type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * &lt;simpleType name="priority_simple_type">
+ *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     &lt;enumeration value="P0"/>
+ *     &lt;enumeration value="P1"/>
+ *     &lt;enumeration value="P2"/>
+ *     &lt;enumeration value="P3"/>
+ *     &lt;enumeration value="P4"/>
+ *   &lt;/restriction>
+ * &lt;/simpleType>
+ * </pre>
+ * 
+ */
+@XmlType(name = "priority_simple_type")
+@XmlEnum
+public enum PrioritySimpleType {
+
+    @XmlEnumValue("P0")
+    P_0("P0"),
+    @XmlEnumValue("P1")
+    P_1("P1"),
+    @XmlEnumValue("P2")
+    P_2("P2"),
+    @XmlEnumValue("P3")
+    P_3("P3"),
+    @XmlEnumValue("P4")
+    P_4("P4");
+    private final String value;
+
+    PrioritySimpleType(String v) {
+        value = v;
+    }
+
+    public String value() {
+        return value;
+    }
+
+    public static PrioritySimpleType fromValue(String v) {
+        for (PrioritySimpleType c: PrioritySimpleType.values()) {
+            if (c.value.equals(v)) {
+                return c;
+            }
+        }
+        throw new IllegalArgumentException(v);
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/ResultInfoType.java
new file mode 100644 (file)
index 0000000..1e4f0e3
--- /dev/null
@@ -0,0 +1,177 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for result_info_type complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="result_info_type">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence minOccurs="0">
+ *         &lt;element name="actual_result" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="start" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="end" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="stdout" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         &lt;element name="stderr" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "result_info_type", propOrder = {
+    "actualResult",
+    "start",
+    "end",
+    "stdout",
+    "stderr"
+})
+public class ResultInfoType {
+
+    @XmlElement(name = "actual_result")
+    protected String actualResult;
+    protected String start;
+    protected String end;
+    protected String stdout;
+    protected String stderr;
+
+    /**
+     * Gets the value of the actualResult property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getActualResult() {
+        return actualResult;
+    }
+
+    /**
+     * Sets the value of the actualResult property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setActualResult(String value) {
+        this.actualResult = value;
+    }
+
+    /**
+     * Gets the value of the start property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getStart() {
+        return start;
+    }
+
+    /**
+     * Sets the value of the start property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setStart(String value) {
+        this.start = value;
+    }
+
+    /**
+     * Gets the value of the end property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getEnd() {
+        return end;
+    }
+
+    /**
+     * Sets the value of the end property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setEnd(String value) {
+        this.end = value;
+    }
+
+    /**
+     * Gets the value of the stdout property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getStdout() {
+        return stdout;
+    }
+
+    /**
+     * Sets the value of the stdout property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setStdout(String value) {
+        this.stdout = value;
+    }
+
+    /**
+     * Gets the value of the stderr property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getStderr() {
+        return stderr;
+    }
+
+    /**
+     * Sets the value of the stderr property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setStderr(String value) {
+        this.stderr = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SeriesType.java
new file mode 100644 (file)
index 0000000..15105fe
--- /dev/null
@@ -0,0 +1,239 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for seriesType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="seriesType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="measurement" type="{}simpleMeasurementType" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="group" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="unit" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="interval" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="interval_unit" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="power" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "seriesType", propOrder = {
+    "measurement"
+})
+public class SeriesType {
+
+    @XmlElement(required = true)
+    protected List<SimpleMeasurementType> measurement;
+    @XmlAttribute(name = "name")
+    protected String name;
+    @XmlAttribute(name = "group")
+    protected String group;
+    @XmlAttribute(name = "unit")
+    protected String unit;
+    @XmlAttribute(name = "interval")
+    protected String interval;
+    @XmlAttribute(name = "interval_unit")
+    protected String intervalUnit;
+    @XmlAttribute(name = "power")
+    protected String power;
+
+    /**
+     * Gets the value of the measurement property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the measurement property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getMeasurement().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link SimpleMeasurementType }
+     * 
+     * 
+     */
+    public List<SimpleMeasurementType> getMeasurement() {
+        if (measurement == null) {
+            measurement = new ArrayList<SimpleMeasurementType>();
+        }
+        return this.measurement;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+    /**
+     * Gets the value of the group property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getGroup() {
+        return group;
+    }
+
+    /**
+     * Sets the value of the group property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setGroup(String value) {
+        this.group = value;
+    }
+
+    /**
+     * Gets the value of the unit property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getUnit() {
+        return unit;
+    }
+
+    /**
+     * Sets the value of the unit property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setUnit(String value) {
+        this.unit = value;
+    }
+
+    /**
+     * Gets the value of the interval property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getInterval() {
+        return interval;
+    }
+
+    /**
+     * Sets the value of the interval property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setInterval(String value) {
+        this.interval = value;
+    }
+
+    /**
+     * Gets the value of the intervalUnit property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getIntervalUnit() {
+        return intervalUnit;
+    }
+
+    /**
+     * Sets the value of the intervalUnit property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setIntervalUnit(String value) {
+        this.intervalUnit = value;
+    }
+
+    /**
+     * Gets the value of the power property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getPower() {
+        return power;
+    }
+
+    /**
+     * Sets the value of the power property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setPower(String value) {
+        this.power = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Set.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Set.java
new file mode 100644 (file)
index 0000000..750963e
--- /dev/null
@@ -0,0 +1,215 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="capabilities" type="{}CapabilitiesType" minOccurs="0"/>
+ *         &lt;sequence maxOccurs="unbounded">
+ *           &lt;element ref="{}testcase" maxOccurs="unbounded" minOccurs="0"/>
+ *         &lt;/sequence>
+ *       &lt;/sequence>
+ *       &lt;attGroup ref="{}set_attribute_group"/>
+ *       &lt;attribute name="launcher" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="set_debug_msg" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "capabilities",
+    "testcase"
+})
+@XmlRootElement(name = "set")
+public class Set {
+
+    protected CapabilitiesType capabilities;
+    protected List<Testcase> testcase;
+    @XmlAttribute(name = "launcher")
+    protected String launcher;
+    @XmlAttribute(name = "set_debug_msg")
+    protected String setDebugMsg;
+    @XmlAttribute(name = "name", required = true)
+    @XmlSchemaType(name = "anyURI")
+    protected String name;
+    @XmlAttribute(name = "type")
+    protected String type;
+
+    /**
+     * Gets the value of the capabilities property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link CapabilitiesType }
+     *     
+     */
+    public CapabilitiesType getCapabilities() {
+        return capabilities;
+    }
+
+    /**
+     * Sets the value of the capabilities property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link CapabilitiesType }
+     *     
+     */
+    public void setCapabilities(CapabilitiesType value) {
+        this.capabilities = value;
+    }
+
+    /**
+     * Gets the value of the testcase property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the testcase property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getTestcase().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link Testcase }
+     * 
+     * 
+     */
+    public List<Testcase> getTestcase() {
+        if (testcase == null) {
+            testcase = new ArrayList<Testcase>();
+        }
+        return this.testcase;
+    }
+
+    /**
+     * Gets the value of the launcher property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getLauncher() {
+        return launcher;
+    }
+
+    /**
+     * Sets the value of the launcher property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setLauncher(String value) {
+        this.launcher = value;
+    }
+
+    /**
+     * Gets the value of the setDebugMsg property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getSetDebugMsg() {
+        return setDebugMsg;
+    }
+
+    /**
+     * Sets the value of the setDebugMsg property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setSetDebugMsg(String value) {
+        this.setDebugMsg = value;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+    /**
+     * Gets the value of the type property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getType() {
+        return type;
+    }
+
+    /**
+     * Sets the value of the type property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setType(String value) {
+        this.type = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SimpleMeasurementType.java
new file mode 100644 (file)
index 0000000..79ae64e
--- /dev/null
@@ -0,0 +1,92 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for simpleMeasurementType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="simpleMeasurementType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "simpleMeasurementType")
+public class SimpleMeasurementType {
+
+    @XmlAttribute(name = "value")
+    protected String value;
+    @XmlAttribute(name = "file")
+    protected String file;
+
+    /**
+     * Gets the value of the value property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getValue() {
+        return value;
+    }
+
+    /**
+     * Sets the value of the value property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    /**
+     * Gets the value of the file property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getFile() {
+        return file;
+    }
+
+    /**
+     * Sets the value of the file property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setFile(String value) {
+        this.file = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecAssertionType.java
new file mode 100644 (file)
index 0000000..f0b1738
--- /dev/null
@@ -0,0 +1,231 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for spec_assertionType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="spec_assertionType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;attribute name="category" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="section" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="specification" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="interface" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="element_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="usage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       &lt;attribute name="element_type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "spec_assertionType")
+public class SpecAssertionType {
+
+    @XmlAttribute(name = "category", required = true)
+    protected String category;
+    @XmlAttribute(name = "section", required = true)
+    protected String section;
+    @XmlAttribute(name = "specification", required = true)
+    protected String specification;
+    @XmlAttribute(name = "interface", required = true)
+    protected String _interface;
+    @XmlAttribute(name = "element_name")
+    protected String elementName;
+    @XmlAttribute(name = "usage")
+    protected Boolean usage;
+    @XmlAttribute(name = "element_type")
+    protected String elementType;
+
+    /**
+     * Gets the value of the category property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCategory() {
+        return category;
+    }
+
+    /**
+     * Sets the value of the category property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCategory(String value) {
+        this.category = value;
+    }
+
+    /**
+     * Gets the value of the section property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getSection() {
+        return section;
+    }
+
+    /**
+     * Sets the value of the section property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setSection(String value) {
+        this.section = value;
+    }
+
+    /**
+     * Gets the value of the specification property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getSpecification() {
+        return specification;
+    }
+
+    /**
+     * Sets the value of the specification property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setSpecification(String value) {
+        this.specification = value;
+    }
+
+    /**
+     * Gets the value of the interface property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getInterface() {
+        return _interface;
+    }
+
+    /**
+     * Sets the value of the interface property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setInterface(String value) {
+        this._interface = value;
+    }
+
+    /**
+     * Gets the value of the elementName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getElementName() {
+        return elementName;
+    }
+
+    /**
+     * Sets the value of the elementName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setElementName(String value) {
+        this.elementName = value;
+    }
+
+    /**
+     * Gets the value of the usage property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Boolean }
+     *     
+     */
+    public boolean isUsage() {
+        if (usage == null) {
+            return false;
+        } else {
+            return usage;
+        }
+    }
+
+    /**
+     * Sets the value of the usage property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Boolean }
+     *     
+     */
+    public void setUsage(Boolean value) {
+        this.usage = value;
+    }
+
+    /**
+     * Gets the value of the elementType property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getElementType() {
+        return elementType;
+    }
+
+    /**
+     * Sets the value of the elementType property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setElementType(String value) {
+        this.elementType = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecType.java
new file mode 100644 (file)
index 0000000..29ce24f
--- /dev/null
@@ -0,0 +1,125 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for specType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="specType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="spec_assertion" type="{}spec_assertionType"/>
+ *         &lt;element name="spec_url" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="spec_statement" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "specType", propOrder = {
+    "specAssertion",
+    "specUrl",
+    "specStatement"
+})
+public class SpecType {
+
+    @XmlElement(name = "spec_assertion", required = true)
+    protected SpecAssertionType specAssertion;
+    @XmlElement(name = "spec_url", required = true)
+    protected String specUrl;
+    @XmlElement(name = "spec_statement", required = true)
+    protected String specStatement;
+
+    /**
+     * Gets the value of the specAssertion property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link SpecAssertionType }
+     *     
+     */
+    public SpecAssertionType getSpecAssertion() {
+        return specAssertion;
+    }
+
+    /**
+     * Sets the value of the specAssertion property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link SpecAssertionType }
+     *     
+     */
+    public void setSpecAssertion(SpecAssertionType value) {
+        this.specAssertion = value;
+    }
+
+    /**
+     * Gets the value of the specUrl property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getSpecUrl() {
+        return specUrl;
+    }
+
+    /**
+     * Sets the value of the specUrl property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setSpecUrl(String value) {
+        this.specUrl = value;
+    }
+
+    /**
+     * Gets the value of the specStatement property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getSpecStatement() {
+        return specStatement;
+    }
+
+    /**
+     * Sets the value of the specStatement property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setSpecStatement(String value) {
+        this.specStatement = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SpecsType.java
new file mode 100644 (file)
index 0000000..612e73c
--- /dev/null
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for specsType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="specsType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="spec" type="{}specType" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "specsType", propOrder = {
+    "spec"
+})
+public class SpecsType {
+
+    @XmlElement(required = true)
+    protected List<SpecType> spec;
+
+    /**
+     * Gets the value of the spec property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the spec property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getSpec().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link SpecType }
+     * 
+     * 
+     */
+    public List<SpecType> getSpec() {
+        if (spec == null) {
+            spec = new ArrayList<SpecType>();
+        }
+        return this.spec;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/StatusType.java
new file mode 100644 (file)
index 0000000..350d30b
--- /dev/null
@@ -0,0 +1,61 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for status_type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * &lt;simpleType name="status_type">
+ *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     &lt;enumeration value="designed"/>
+ *     &lt;enumeration value="ready"/>
+ *     &lt;enumeration value="approved"/>
+ *   &lt;/restriction>
+ * &lt;/simpleType>
+ * </pre>
+ * 
+ */
+@XmlType(name = "status_type")
+@XmlEnum
+public enum StatusType {
+
+    @XmlEnumValue("designed")
+    DESIGNED("designed"),
+    @XmlEnumValue("ready")
+    READY("ready"),
+    @XmlEnumValue("approved")
+    APPROVED("approved");
+    private final String value;
+
+    StatusType(String v) {
+        value = v;
+    }
+
+    public String value() {
+        return value;
+    }
+
+    public static StatusType fromValue(String v) {
+        for (StatusType c: StatusType.values()) {
+            if (c.value.equals(v)) {
+                return c;
+            }
+        }
+        throw new IllegalArgumentException(v);
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Step.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Step.java
new file mode 100644 (file)
index 0000000..e03a34d
--- /dev/null
@@ -0,0 +1,127 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="step_desc" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="expected" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="order" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "stepDesc",
+    "expected"
+})
+@XmlRootElement(name = "step")
+public class Step {
+
+    @XmlElement(name = "step_desc", required = true)
+    protected String stepDesc;
+    @XmlElement(required = true)
+    protected String expected;
+    @XmlAttribute(name = "order")
+    protected Integer order;
+
+    /**
+     * Gets the value of the stepDesc property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getStepDesc() {
+        return stepDesc;
+    }
+
+    /**
+     * Sets the value of the stepDesc property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setStepDesc(String value) {
+        this.stepDesc = value;
+    }
+
+    /**
+     * Gets the value of the expected property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getExpected() {
+        return expected;
+    }
+
+    /**
+     * Sets the value of the expected property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setExpected(String value) {
+        this.expected = value;
+    }
+
+    /**
+     * Gets the value of the order property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Integer }
+     *     
+     */
+    public Integer getOrder() {
+        return order;
+    }
+
+    /**
+     * Sets the value of the order property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Integer }
+     *     
+     */
+    public void setOrder(Integer value) {
+        this.order = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Steps.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Steps.java
new file mode 100644 (file)
index 0000000..da29e49
--- /dev/null
@@ -0,0 +1,76 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence maxOccurs="unbounded" minOccurs="0">
+ *         &lt;element ref="{}step"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "step"
+})
+@XmlRootElement(name = "steps")
+public class Steps {
+
+    protected List<Step> step;
+
+    /**
+     * Gets the value of the step property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the step property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getStep().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link Step }
+     * 
+     * 
+     */
+    public List<Step> getStep() {
+        if (step == null) {
+            step = new ArrayList<Step>();
+        }
+        return this.step;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Suite.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Suite.java
new file mode 100644 (file)
index 0000000..cf96b77
--- /dev/null
@@ -0,0 +1,213 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence maxOccurs="unbounded">
+ *         &lt;element ref="{}set" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attGroup ref="{}set_attribute_group"/>
+ *       &lt;attribute name="launcher" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="category" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="widget" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "set"
+})
+@XmlRootElement(name = "suite")
+public class Suite {
+
+    protected List<Set> set;
+    @XmlAttribute(name = "launcher")
+    protected String launcher;
+    @XmlAttribute(name = "category")
+    protected String category;
+    @XmlAttribute(name = "widget")
+    protected String widget;
+    @XmlAttribute(name = "name", required = true)
+    @XmlSchemaType(name = "anyURI")
+    protected String name;
+    @XmlAttribute(name = "type")
+    protected String type;
+
+    /**
+     * Gets the value of the set property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the set property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getSet().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link Set }
+     * 
+     * 
+     */
+    public List<Set> getSet() {
+        if (set == null) {
+            set = new ArrayList<Set>();
+        }
+        return this.set;
+    }
+
+    /**
+     * Gets the value of the launcher property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getLauncher() {
+        return launcher;
+    }
+
+    /**
+     * Sets the value of the launcher property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setLauncher(String value) {
+        this.launcher = value;
+    }
+
+    /**
+     * Gets the value of the category property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCategory() {
+        return category;
+    }
+
+    /**
+     * Sets the value of the category property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCategory(String value) {
+        this.category = value;
+    }
+
+    /**
+     * Gets the value of the widget property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getWidget() {
+        return widget;
+    }
+
+    /**
+     * Sets the value of the widget property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setWidget(String value) {
+        this.widget = value;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+    /**
+     * Gets the value of the type property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getType() {
+        return type;
+    }
+
+    /**
+     * Sets the value of the type property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setType(String value) {
+        this.type = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/SummaryType.java
new file mode 100644 (file)
index 0000000..f18fd17
--- /dev/null
@@ -0,0 +1,125 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for summaryType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="summaryType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="start_at" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="end_at" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="test_plan_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "summaryType", propOrder = {
+    "startAt",
+    "endAt"
+})
+public class SummaryType {
+
+    @XmlElement(name = "start_at", required = true)
+    protected String startAt;
+    @XmlElement(name = "end_at", required = true)
+    protected String endAt;
+    @XmlAttribute(name = "test_plan_name")
+    protected String testPlanName;
+
+    /**
+     * Gets the value of the startAt property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getStartAt() {
+        return startAt;
+    }
+
+    /**
+     * Sets the value of the startAt property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setStartAt(String value) {
+        this.startAt = value;
+    }
+
+    /**
+     * Gets the value of the endAt property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getEndAt() {
+        return endAt;
+    }
+
+    /**
+     * Sets the value of the endAt property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setEndAt(String value) {
+        this.endAt = value;
+    }
+
+    /**
+     * Gets the value of the testPlanName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getTestPlanName() {
+        return testPlanName;
+    }
+
+    /**
+     * Sets the value of the testPlanName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setTestPlanName(String value) {
+        this.testPlanName = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/TestDefinition.java
new file mode 100644 (file)
index 0000000..b33b662
--- /dev/null
@@ -0,0 +1,87 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence maxOccurs="unbounded">
+ *         &lt;element name="environment" type="{}BuildInfoType" minOccurs="0"/>
+ *         &lt;element name="summary" type="{}summaryType" minOccurs="0"/>
+ *         &lt;element ref="{}suite" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "environmentAndSummaryAndSuite"
+})
+@XmlRootElement(name = "test_definition")
+public class TestDefinition {
+
+    @XmlElements({
+        @XmlElement(name = "environment", required = true, type = BuildInfoType.class),
+        @XmlElement(name = "summary", required = true, type = SummaryType.class),
+        @XmlElement(name = "suite", required = true, type = Suite.class)
+    })
+    protected List<Object> environmentAndSummaryAndSuite;
+
+    /**
+     * Gets the value of the environmentAndSummaryAndSuite property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the environmentAndSummaryAndSuite property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getEnvironmentAndSummaryAndSuite().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link BuildInfoType }
+     * {@link SummaryType }
+     * {@link Suite }
+     * 
+     * 
+     */
+    public List<Object> getEnvironmentAndSummaryAndSuite() {
+        if (environmentAndSummaryAndSuite == null) {
+            environmentAndSummaryAndSuite = new ArrayList<Object>();
+        }
+        return this.environmentAndSummaryAndSuite;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/TestScriptEntry.java
new file mode 100644 (file)
index 0000000..f7b6fad
--- /dev/null
@@ -0,0 +1,131 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlValue;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;simpleContent>
+ *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
+ *       &lt;attribute name="test_script_expected_result" type="{http://www.w3.org/2001/XMLSchema}string" default="0" />
+ *       &lt;attribute name="timeout" type="{http://www.w3.org/2001/XMLSchema}int" default="90" />
+ *     &lt;/extension>
+ *   &lt;/simpleContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "value"
+})
+@XmlRootElement(name = "test_script_entry")
+public class TestScriptEntry {
+
+    @XmlValue
+    protected String value;
+    @XmlAttribute(name = "test_script_expected_result")
+    protected String testScriptExpectedResult;
+    @XmlAttribute(name = "timeout")
+    protected Integer timeout;
+
+    /**
+     * Gets the value of the value property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getValue() {
+        return value;
+    }
+
+    /**
+     * Sets the value of the value property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    /**
+     * Gets the value of the testScriptExpectedResult property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getTestScriptExpectedResult() {
+        if (testScriptExpectedResult == null) {
+            return "0";
+        } else {
+            return testScriptExpectedResult;
+        }
+    }
+
+    /**
+     * Sets the value of the testScriptExpectedResult property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setTestScriptExpectedResult(String value) {
+        this.testScriptExpectedResult = value;
+    }
+
+    /**
+     * Gets the value of the timeout property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Integer }
+     *     
+     */
+    public int getTimeout() {
+        if (timeout == null) {
+            return  90;
+        } else {
+            return timeout;
+        }
+    }
+
+    /**
+     * Sets the value of the timeout property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Integer }
+     *     
+     */
+    public void setTimeout(Integer value) {
+        this.timeout = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/definition/Testcase.java
new file mode 100644 (file)
index 0000000..acc0b29
--- /dev/null
@@ -0,0 +1,487 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:35 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.definition;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element ref="{}description"/>
+ *         &lt;element name="categories" type="{}categories" minOccurs="0"/>
+ *         &lt;element name="measurement" type="{}measurementType" maxOccurs="unbounded" minOccurs="0"/>
+ *         &lt;element name="series" type="{}seriesType" maxOccurs="unbounded" minOccurs="0"/>
+ *         &lt;element name="specs" type="{}specsType" minOccurs="0"/>
+ *         &lt;element name="result_info" type="{}result_info_type" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attGroup ref="{}case_attribute_group"/>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "description",
+    "categories",
+    "measurement",
+    "series",
+    "specs",
+    "resultInfo"
+})
+@XmlRootElement(name = "testcase")
+public class Testcase {
+
+    @XmlElement(required = true)
+    protected Description description;
+    protected Categories categories;
+    protected List<MeasurementType> measurement;
+    protected List<SeriesType> series;
+    protected SpecsType specs;
+    @XmlElement(name = "result_info")
+    protected ResultInfoType resultInfo;
+    @XmlAttribute(name = "id", required = true)
+    protected String id;
+    @XmlAttribute(name = "priority", required = true)
+    protected PrioritySimpleType priority;
+    @XmlAttribute(name = "execution_type", required = true)
+    protected ExecutionTypeSimpleType executionType;
+    @XmlAttribute(name = "component")
+    protected String component;
+    @XmlAttribute(name = "requirement_ref")
+    @XmlSchemaType(name = "anyURI")
+    protected String requirementRef;
+    @XmlAttribute(name = "status", required = true)
+    protected StatusType status;
+    @XmlAttribute(name = "type", required = true)
+    protected CaseTypeType type;
+    @XmlAttribute(name = "purpose")
+    protected String purpose;
+    @XmlAttribute(name = "result")
+    protected String result;
+    @XmlAttribute(name = "onload_delay")
+    protected Integer onloadDelay;
+
+    /**
+     * Gets the value of the description property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Description }
+     *     
+     */
+    public Description getDescription() {
+        return description;
+    }
+
+    /**
+     * Sets the value of the description property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Description }
+     *     
+     */
+    public void setDescription(Description value) {
+        this.description = value;
+    }
+
+    /**
+     * Gets the value of the categories property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Categories }
+     *     
+     */
+    public Categories getCategories() {
+        return categories;
+    }
+
+    /**
+     * Sets the value of the categories property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Categories }
+     *     
+     */
+    public void setCategories(Categories value) {
+        this.categories = value;
+    }
+
+    /**
+     * Gets the value of the measurement property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the measurement property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getMeasurement().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link MeasurementType }
+     * 
+     * 
+     */
+    public List<MeasurementType> getMeasurement() {
+        if (measurement == null) {
+            measurement = new ArrayList<MeasurementType>();
+        }
+        return this.measurement;
+    }
+
+    /**
+     * Gets the value of the series property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the series property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getSeries().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link SeriesType }
+     * 
+     * 
+     */
+    public List<SeriesType> getSeries() {
+        if (series == null) {
+            series = new ArrayList<SeriesType>();
+        }
+        return this.series;
+    }
+
+    /**
+     * Gets the value of the specs property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link SpecsType }
+     *     
+     */
+    public SpecsType getSpecs() {
+        return specs;
+    }
+
+    /**
+     * Sets the value of the specs property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link SpecsType }
+     *     
+     */
+    public void setSpecs(SpecsType value) {
+        this.specs = value;
+    }
+
+    /**
+     * Gets the value of the resultInfo property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ResultInfoType }
+     *     
+     */
+    public ResultInfoType getResultInfo() {
+        return resultInfo;
+    }
+
+    /**
+     * Sets the value of the resultInfo property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ResultInfoType }
+     *     
+     */
+    public void setResultInfo(ResultInfoType value) {
+        this.resultInfo = value;
+    }
+
+    /**
+     * Gets the value of the id property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * Sets the value of the id property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setId(String value) {
+        this.id = value;
+    }
+
+    /**
+     * Gets the value of the priority property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link PrioritySimpleType }
+     *     
+     */
+    public PrioritySimpleType getPriority() {
+        return priority;
+    }
+
+    /**
+     * Sets the value of the priority property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link PrioritySimpleType }
+     *     
+     */
+    public void setPriority(PrioritySimpleType value) {
+        this.priority = value;
+    }
+
+    /**
+     * Gets the value of the executionType property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ExecutionTypeSimpleType }
+     *     
+     */
+    public ExecutionTypeSimpleType getExecutionType() {
+        return executionType;
+    }
+
+    /**
+     * Sets the value of the executionType property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ExecutionTypeSimpleType }
+     *     
+     */
+    public void setExecutionType(ExecutionTypeSimpleType value) {
+        this.executionType = value;
+    }
+
+    /**
+     * Gets the value of the component property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getComponent() {
+        return component;
+    }
+
+    /**
+     * Sets the value of the component property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setComponent(String value) {
+        this.component = value;
+    }
+
+    /**
+     * Gets the value of the requirementRef property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getRequirementRef() {
+        return requirementRef;
+    }
+
+    /**
+     * Sets the value of the requirementRef property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setRequirementRef(String value) {
+        this.requirementRef = value;
+    }
+
+    /**
+     * Gets the value of the status property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link StatusType }
+     *     
+     */
+    public StatusType getStatus() {
+        return status;
+    }
+
+    /**
+     * Sets the value of the status property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link StatusType }
+     *     
+     */
+    public void setStatus(StatusType value) {
+        this.status = value;
+    }
+
+    /**
+     * Gets the value of the type property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link CaseTypeType }
+     *     
+     */
+    public CaseTypeType getType() {
+        return type;
+    }
+
+    /**
+     * Sets the value of the type property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link CaseTypeType }
+     *     
+     */
+    public void setType(CaseTypeType value) {
+        this.type = value;
+    }
+
+    /**
+     * Gets the value of the purpose property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getPurpose() {
+        return purpose;
+    }
+
+    /**
+     * Sets the value of the purpose property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setPurpose(String value) {
+        this.purpose = value;
+    }
+
+    /**
+     * Gets the value of the result property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getResult() {
+        return result;
+    }
+
+    /**
+     * Sets the value of the result property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setResult(String value) {
+        this.result = value;
+    }
+
+    /**
+     * Gets the value of the onloadDelay property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Integer }
+     *     
+     */
+    public int getOnloadDelay() {
+        if (onloadDelay == null) {
+            return  3;
+        } else {
+            return onloadDelay;
+        }
+    }
+
+    /**
+     * Sets the value of the onloadDelay property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Integer }
+     *     
+     */
+    public void setOnloadDelay(Integer value) {
+        this.onloadDelay = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/ExecuteTypeType.java
new file mode 100644 (file)
index 0000000..85e3185
--- /dev/null
@@ -0,0 +1,61 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.plan;
+
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for execute_typeType.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p>
+ * <pre>
+ * &lt;simpleType name="execute_typeType">
+ *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     &lt;enumeration value="All"/>
+ *     &lt;enumeration value="Auto"/>
+ *     &lt;enumeration value="Manual"/>
+ *   &lt;/restriction>
+ * &lt;/simpleType>
+ * </pre>
+ * 
+ */
+@XmlType(name = "execute_typeType")
+@XmlEnum
+public enum ExecuteTypeType {
+
+    @XmlEnumValue("All")
+    ALL("All"),
+    @XmlEnumValue("Auto")
+    AUTO("Auto"),
+    @XmlEnumValue("Manual")
+    MANUAL("Manual");
+    private final String value;
+
+    ExecuteTypeType(String v) {
+        value = v;
+    }
+
+    public String value() {
+        return value;
+    }
+
+    public static ExecuteTypeType fromValue(String v) {
+        for (ExecuteTypeType c: ExecuteTypeType.values()) {
+            if (c.value.equals(v)) {
+                return c;
+            }
+        }
+        throw new IllegalArgumentException(v);
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/ObjectFactory.java
new file mode 100644 (file)
index 0000000..ead8270
--- /dev/null
@@ -0,0 +1,55 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.plan;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.tizen.tct.tool.mgr.jaxb.plan package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.tizen.tct.tool.mgr.jaxb.plan
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link Testplan }
+     * 
+     */
+    public Testplan createTestplan() {
+        return new Testplan();
+    }
+
+    /**
+     * Create an instance of {@link SuiteType }
+     * 
+     */
+    public SuiteType createSuiteType() {
+        return new SuiteType();
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/SuiteType.java
new file mode 100644 (file)
index 0000000..8dd1d17
--- /dev/null
@@ -0,0 +1,211 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.plan;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for suiteType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="suiteType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="auto_tcn" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         &lt;element name="manual_tcn" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         &lt;element name="total_tcn" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         &lt;element name="pkg_name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="launcher" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="category" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "suiteType", propOrder = {
+    "autoTcn",
+    "manualTcn",
+    "totalTcn",
+    "pkgName"
+})
+public class SuiteType {
+
+    @XmlElement(name = "auto_tcn")
+    protected int autoTcn;
+    @XmlElement(name = "manual_tcn")
+    protected int manualTcn;
+    @XmlElement(name = "total_tcn")
+    protected int totalTcn;
+    @XmlElement(name = "pkg_name", required = true)
+    protected String pkgName;
+    @XmlAttribute(name = "name")
+    protected String name;
+    @XmlAttribute(name = "launcher")
+    protected String launcher;
+    @XmlAttribute(name = "category")
+    protected String category;
+
+    /**
+     * Gets the value of the autoTcn property.
+     * 
+     */
+    public int getAutoTcn() {
+        return autoTcn;
+    }
+
+    /**
+     * Sets the value of the autoTcn property.
+     * 
+     */
+    public void setAutoTcn(int value) {
+        this.autoTcn = value;
+    }
+
+    /**
+     * Gets the value of the manualTcn property.
+     * 
+     */
+    public int getManualTcn() {
+        return manualTcn;
+    }
+
+    /**
+     * Sets the value of the manualTcn property.
+     * 
+     */
+    public void setManualTcn(int value) {
+        this.manualTcn = value;
+    }
+
+    /**
+     * Gets the value of the totalTcn property.
+     * 
+     */
+    public int getTotalTcn() {
+        return totalTcn;
+    }
+
+    /**
+     * Sets the value of the totalTcn property.
+     * 
+     */
+    public void setTotalTcn(int value) {
+        this.totalTcn = value;
+    }
+
+    /**
+     * Gets the value of the pkgName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getPkgName() {
+        return pkgName;
+    }
+
+    /**
+     * Sets the value of the pkgName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setPkgName(String value) {
+        this.pkgName = value;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+    /**
+     * Gets the value of the launcher property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getLauncher() {
+        return launcher;
+    }
+
+    /**
+     * Sets the value of the launcher property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setLauncher(String value) {
+        this.launcher = value;
+    }
+
+    /**
+     * Gets the value of the category property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCategory() {
+        return category;
+    }
+
+    /**
+     * Sets the value of the category property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCategory(String value) {
+        this.category = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/Testplan.java
new file mode 100644 (file)
index 0000000..280f0aa
--- /dev/null
@@ -0,0 +1,134 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.plan;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="execute_type" type="{http://www.example.org/plan/}execute_typeType"/>
+ *         &lt;element name="suite" type="{http://www.example.org/plan/}suiteType" maxOccurs="unbounded"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "executeType",
+    "suite"
+})
+@XmlRootElement(name = "testplan")
+public class Testplan {
+
+    @XmlElement(name = "execute_type", required = true)
+    protected ExecuteTypeType executeType;
+    @XmlElement(required = true)
+    protected List<SuiteType> suite;
+    @XmlAttribute(name = "name")
+    protected String name;
+
+    /**
+     * Gets the value of the executeType property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ExecuteTypeType }
+     *     
+     */
+    public ExecuteTypeType getExecuteType() {
+        return executeType;
+    }
+
+    /**
+     * Sets the value of the executeType property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ExecuteTypeType }
+     *     
+     */
+    public void setExecuteType(ExecuteTypeType value) {
+        this.executeType = value;
+    }
+
+    /**
+     * Gets the value of the suite property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the suite property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getSuite().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link SuiteType }
+     * 
+     * 
+     */
+    public List<SuiteType> getSuite() {
+        if (suite == null) {
+            suite = new ArrayList<SuiteType>();
+        }
+        return this.suite;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/package-info.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/plan/package-info.java
new file mode 100644 (file)
index 0000000..afb8211
--- /dev/null
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.example.org/plan/")
+package org.tizen.tct.tool.mgr.jaxb.plan;
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/ObjectFactory.java
new file mode 100644 (file)
index 0000000..5005522
--- /dev/null
@@ -0,0 +1,55 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.planstatus;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.tizen.tct.tool.mgr.jaxb.planstatus package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.tizen.tct.tool.mgr.jaxb.planstatus
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link PlanStatus }
+     * 
+     */
+    public PlanStatus createPlanStatus() {
+        return new PlanStatus();
+    }
+
+    /**
+     * Create an instance of {@link TasksType }
+     * 
+     */
+    public TasksType createTasksType() {
+        return new TasksType();
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/PlanStatus.java
new file mode 100644 (file)
index 0000000..901e72d
--- /dev/null
@@ -0,0 +1,154 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.planstatus;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="auto_tasks" type="{http://www.example.org/plan_status/}tasksType"/>
+ *         &lt;element name="manual_tasks" type="{http://www.example.org/plan_status/}tasksType"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="executeType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "autoTasks",
+    "manualTasks"
+})
+@XmlRootElement(name = "plan_status")
+public class PlanStatus {
+
+    @XmlElement(name = "auto_tasks", required = true)
+    protected TasksType autoTasks;
+    @XmlElement(name = "manual_tasks", required = true)
+    protected TasksType manualTasks;
+    @XmlAttribute(name = "name")
+    protected String name;
+    @XmlAttribute(name = "executeType")
+    protected String executeType;
+
+    /**
+     * Gets the value of the autoTasks property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link TasksType }
+     *     
+     */
+    public TasksType getAutoTasks() {
+        return autoTasks;
+    }
+
+    /**
+     * Sets the value of the autoTasks property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link TasksType }
+     *     
+     */
+    public void setAutoTasks(TasksType value) {
+        this.autoTasks = value;
+    }
+
+    /**
+     * Gets the value of the manualTasks property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link TasksType }
+     *     
+     */
+    public TasksType getManualTasks() {
+        return manualTasks;
+    }
+
+    /**
+     * Sets the value of the manualTasks property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link TasksType }
+     *     
+     */
+    public void setManualTasks(TasksType value) {
+        this.manualTasks = value;
+    }
+
+    /**
+     * Gets the value of the name property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * Sets the value of the name property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setName(String value) {
+        this.name = value;
+    }
+
+    /**
+     * Gets the value of the executeType property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getExecuteType() {
+        return executeType;
+    }
+
+    /**
+     * Sets the value of the executeType property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setExecuteType(String value) {
+        this.executeType = value;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/TasksType.java
new file mode 100644 (file)
index 0000000..d17bb8e
--- /dev/null
@@ -0,0 +1,106 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.planstatus;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for tasksType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="tasksType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="executed" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         &lt;element name="executing" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "tasksType", propOrder = {
+    "executed",
+    "executing"
+})
+public class TasksType {
+
+    protected List<String> executed;
+    protected List<String> executing;
+
+    /**
+     * Gets the value of the executed property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the executed property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getExecuted().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link String }
+     * 
+     * 
+     */
+    public List<String> getExecuted() {
+        if (executed == null) {
+            executed = new ArrayList<String>();
+        }
+        return this.executed;
+    }
+
+    /**
+     * Gets the value of the executing property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the executing property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getExecuting().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link String }
+     * 
+     * 
+     */
+    public List<String> getExecuting() {
+        if (executing == null) {
+            executing = new ArrayList<String>();
+        }
+        return this.executing;
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/planstatus/package-info.java
new file mode 100644 (file)
index 0000000..0171213
--- /dev/null
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.example.org/plan_status/")
+package org.tizen.tct.tool.mgr.jaxb.planstatus;
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/summary/ObjectFactory.java
new file mode 100644 (file)
index 0000000..634aa20
--- /dev/null
@@ -0,0 +1,87 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.summary;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.tizen.tct.tool.mgr.jaxb.summary package. 
+ * <p>An ObjectFactory allows you to programatically 
+ * construct new instances of the Java representation 
+ * for XML content. The Java representation of XML 
+ * content can consist of schema derived interfaces 
+ * and classes representing the binding of schema 
+ * type definitions, element declarations and model 
+ * groups.  Factory methods for each of these are 
+ * provided in this class.
+ * 
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.tizen.tct.tool.mgr.jaxb.summary
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link ResultSummary.Summary }
+     * 
+     */
+    public ResultSummary.Summary createResultSummarySummary() {
+        return new ResultSummary.Summary();
+    }
+
+    /**
+     * Create an instance of {@link ResultSummary.Suite }
+     * 
+     */
+    public ResultSummary.Suite createResultSummarySuite() {
+        return new ResultSummary.Suite();
+    }
+
+    /**
+     * Create an instance of {@link ResultSummary.Capabilities }
+     * 
+     */
+    public ResultSummary.Capabilities createResultSummaryCapabilities() {
+        return new ResultSummary.Capabilities();
+    }
+
+    /**
+     * Create an instance of {@link ResultSummary.Capabilities.Capability }
+     * 
+     */
+    public ResultSummary.Capabilities.Capability createResultSummaryCapabilitiesCapability() {
+        return new ResultSummary.Capabilities.Capability();
+    }
+
+    /**
+     * Create an instance of {@link ResultSummary }
+     * 
+     */
+    public ResultSummary createResultSummary() {
+        return new ResultSummary();
+    }
+
+    /**
+     * Create an instance of {@link ResultSummary.Environment }
+     * 
+     */
+    public ResultSummary.Environment createResultSummaryEnvironment() {
+        return new ResultSummary.Environment();
+    }
+
+}
diff --git a/src_jaxb/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.java b/src_jaxb/org/tizen/tct/tool/mgr/jaxb/summary/ResultSummary.java
new file mode 100644 (file)
index 0000000..d4e741c
--- /dev/null
@@ -0,0 +1,1174 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
+// Any modifications to this file will be lost upon recompilation of the source schema. 
+// Generated on: 2014.04.24 at 02:32:36 PM CST 
+//
+
+
+package org.tizen.tct.tool.mgr.jaxb.summary;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="environment">
+ *           &lt;complexType>
+ *             &lt;complexContent>
+ *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 &lt;sequence>
+ *                   &lt;element name="other" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
+ *                 &lt;/sequence>
+ *                 &lt;attribute name="build_id" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="cts_version" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="device_id" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="device_model" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="device_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="host" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="os_version" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="resolution" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="screen_size" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 &lt;attribute name="manufacturer" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               &lt;/restriction>
+ *             &lt;/complexContent>
+ *           &lt;/complexType>
+ *         &lt;/element>
+ *         &lt;element name="summary">
+ *           &lt;complexType>
+ *             &lt;complexContent>
+ *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 &lt;sequence>
+ *                   &lt;element name="start_at" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                   &lt;element name="end_at" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                 &lt;/sequence>
+ *                 &lt;attribute name="test_plan_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               &lt;/restriction>
+ *             &lt;/complexContent>
+ *           &lt;/complexType>
+ *         &lt;/element>
+ *         &lt;element name="capabilities">
+ *           &lt;complexType>
+ *             &lt;complexContent>
+ *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 &lt;sequence>
+ *                   &lt;element name="capability" maxOccurs="unbounded">
+ *                     &lt;complexType>
+ *                       &lt;complexContent>
+ *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           &lt;sequence>
+ *                             &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                           &lt;/sequence>
+ *                           &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           &lt;attribute name="support" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         &lt;/restriction>
+ *                       &lt;/complexContent>
+ *                     &lt;/complexType>
+ *                   &lt;/element>
+ *                 &lt;/sequence>
+ *               &lt;/restriction>
+ *             &lt;/complexContent>
+ *           &lt;/complexType>
+ *         &lt;/element>
+ *         &lt;element name="suite" maxOccurs="unbounded">
+ *           &lt;complexType>
+ *             &lt;complexContent>
+ *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 &lt;sequence>
+ *                   &lt;element name="total_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *                   &lt;element name="pass_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *                   &lt;element name="pass_rate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                   &lt;element name="fail_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *                   &lt;element name="fail_rate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                   &lt;element name="block_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *                   &lt;element name="block_rate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                   &lt;element name="na_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *                   &lt;element name="na_rate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                 &lt;/sequence>
+ *                 &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               &lt;/restriction>
+ *             &lt;/complexContent>
+ *           &lt;/complexType>
+ *         &lt;/element>
+ *       &lt;/sequence>
+ *       &lt;attribute name="plan_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+    "environment",
+    "summary",
+    "capabilities",
+    "suite"
+})
+@XmlRootElement(name = "result_summary")
+public class ResultSummary {
+
+    @XmlElement(required = true)
+    protected ResultSummary.Environment environment;
+    @XmlElement(required = true)
+    protected ResultSummary.Summary summary;
+    @XmlElement(required = true)
+    protected ResultSummary.Capabilities capabilities;
+    @XmlElement(required = true)
+    protected List<ResultSummary.Suite> suite;
+    @XmlAttribute(name = "plan_name")
+    protected String planName;
+
+    /**
+     * Gets the value of the environment property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ResultSummary.Environment }
+     *     
+     */
+    public ResultSummary.Environment getEnvironment() {
+        return environment;
+    }
+
+    /**
+     * Sets the value of the environment property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ResultSummary.Environment }
+     *     
+     */
+    public void setEnvironment(ResultSummary.Environment value) {
+        this.environment = value;
+    }
+
+    /**
+     * Gets the value of the summary property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ResultSummary.Summary }
+     *     
+     */
+    public ResultSummary.Summary getSummary() {
+        return summary;
+    }
+
+    /**
+     * Sets the value of the summary property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ResultSummary.Summary }
+     *     
+     */
+    public void setSummary(ResultSummary.Summary value) {
+        this.summary = value;
+    }
+
+    /**
+     * Gets the value of the capabilities property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link ResultSummary.Capabilities }
+     *     
+     */
+    public ResultSummary.Capabilities getCapabilities() {
+        return capabilities;
+    }
+
+    /**
+     * Sets the value of the capabilities property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link ResultSummary.Capabilities }
+     *     
+     */
+    public void setCapabilities(ResultSummary.Capabilities value) {
+        this.capabilities = value;
+    }
+
+    /**
+     * Gets the value of the suite property.
+     * 
+     * <p>
+     * This accessor method returns a reference to the live list,
+     * not a snapshot. Therefore any modification you make to the
+     * returned list will be present inside the JAXB object.
+     * This is why there is not a <CODE>set</CODE> method for the suite property.
+     * 
+     * <p>
+     * For example, to add a new item, do as follows:
+     * <pre>
+     *    getSuite().add(newItem);
+     * </pre>
+     * 
+     * 
+     * <p>
+     * Objects of the following type(s) are allowed in the list
+     * {@link ResultSummary.Suite }
+     * 
+     * 
+     */
+    public List<ResultSummary.Suite> getSuite() {
+        if (suite == null) {
+            suite = new ArrayList<ResultSummary.Suite>();
+        }
+        return this.suite;
+    }
+
+    /**
+     * Gets the value of the planName property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getPlanName() {
+        return planName;
+    }
+
+    /**
+     * Sets the value of the planName property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setPlanName(String value) {
+        this.planName = value;
+    }
+
+
+    /**
+     * <p>Java class for anonymous complex type.
+     * 
+     * <p>The following schema fragment specifies the expected content contained within this class.
+     * 
+     * <pre>
+     * &lt;complexType>
+     *   &lt;complexContent>
+     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       &lt;sequence>
+     *         &lt;element name="capability" maxOccurs="unbounded">
+     *           &lt;complexType>
+     *             &lt;complexContent>
+     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 &lt;sequence>
+     *                   &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *                 &lt;/sequence>
+     *                 &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 &lt;attribute name="support" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               &lt;/restriction>
+     *             &lt;/complexContent>
+     *           &lt;/complexType>
+     *         &lt;/element>
+     *       &lt;/sequence>
+     *     &lt;/restriction>
+     *   &lt;/complexContent>
+     * &lt;/complexType>
+     * </pre>
+     * 
+     * 
+     */
+    @XmlAccessorType(XmlAccessType.FIELD)
+    @XmlType(name = "", propOrder = {
+        "capability"
+    })
+    public static class Capabilities {
+
+        @XmlElement(required = true)
+        protected List<ResultSummary.Capabilities.Capability> capability;
+
+        /**
+         * Gets the value of the capability property.
+         * 
+         * <p>
+         * This accessor method returns a reference to the live list,
+         * not a snapshot. Therefore any modification you make to the
+         * returned list will be present inside the JAXB object.
+         * This is why there is not a <CODE>set</CODE> method for the capability property.
+         * 
+         * <p>
+         * For example, to add a new item, do as follows:
+         * <pre>
+         *    getCapability().add(newItem);
+         * </pre>
+         * 
+         * 
+         * <p>
+         * Objects of the following type(s) are allowed in the list
+         * {@link ResultSummary.Capabilities.Capability }
+         * 
+         * 
+         */
+        public List<ResultSummary.Capabilities.Capability> getCapability() {
+            if (capability == null) {
+                capability = new ArrayList<ResultSummary.Capabilities.Capability>();
+            }
+            return this.capability;
+        }
+
+
+        /**
+         * <p>Java class for anonymous complex type.
+         * 
+         * <p>The following schema fragment specifies the expected content contained within this class.
+         * 
+         * <pre>
+         * &lt;complexType>
+         *   &lt;complexContent>
+         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       &lt;sequence>
+         *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
+         *       &lt;/sequence>
+         *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       &lt;attribute name="support" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     &lt;/restriction>
+         *   &lt;/complexContent>
+         * &lt;/complexType>
+         * </pre>
+         * 
+         * 
+         */
+        @XmlAccessorType(XmlAccessType.FIELD)
+        @XmlType(name = "", propOrder = {
+            "value"
+        })
+        public static class Capability {
+
+            @XmlElement(required = true)
+            protected String value;
+            @XmlAttribute(name = "name")
+            protected String name;
+            @XmlAttribute(name = "support")
+            protected String support;
+            @XmlAttribute(name = "type")
+            protected String type;
+
+            /**
+             * Gets the value of the value property.
+             * 
+             * @return
+             *     possible object is
+             *     {@link String }
+             *     
+             */
+            public String getValue() {
+                return value;
+            }
+
+            /**
+             * Sets the value of the value property.
+             * 
+             * @param value
+             *     allowed object is
+             *     {@link String }
+             *     
+             */
+            public void setValue(String value) {
+                this.value = value;
+            }
+
+            /**
+             * Gets the value of the name property.
+             * 
+             * @return
+             *     possible object is
+             *     {@link String }
+             *     
+             */
+            public String getName() {
+                return name;
+            }
+
+            /**
+             * Sets the value of the name property.
+             * 
+             * @param value
+             *     allowed object is
+             *     {@link String }
+             *     
+             */
+            public void setName(String value) {
+                this.name = value;
+            }
+
+            /**
+             * Gets the value of the support property.
+             * 
+             * @return
+             *     possible object is
+             *     {@link String }
+             *     
+             */
+            public String getSupport() {
+                return support;
+            }
+
+            /**
+             * Sets the value of the support property.
+             * 
+             * @param value
+             *     allowed object is
+             *     {@link String }
+             *     
+             */
+            public void setSupport(String value) {
+                this.support = value;
+            }
+
+            /**
+             * Gets the value of the type property.
+             * 
+             * @return
+             *     possible object is
+             *     {@link String }
+             *     
+             */
+            public String getType() {
+                return type;
+            }
+
+            /**
+             * Sets the value of the type property.
+             * 
+             * @param value
+             *     allowed object is
+             *     {@link String }
+             *     
+             */
+            public void setType(String value) {
+                this.type = value;
+            }
+
+        }
+
+    }
+
+
+    /**
+     * <p>Java class for anonymous complex type.
+     * 
+     * <p>The following schema fragment specifies the expected content contained within this class.
+     * 
+     * <pre>
+     * &lt;complexType>
+     *   &lt;complexContent>
+     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       &lt;sequence>
+     *         &lt;element name="other" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
+     *       &lt;/sequence>
+     *       &lt;attribute name="build_id" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="cts_version" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="device_id" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="device_model" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="device_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="host" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="os_version" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="resolution" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="screen_size" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       &lt;attribute name="manufacturer" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     &lt;/restriction>
+     *   &lt;/complexContent>
+     * &lt;/complexType>
+     * </pre>
+     * 
+     * 
+     */
+    @XmlAccessorType(XmlAccessType.FIELD)
+    @XmlType(name = "", propOrder = {
+        "other"
+    })
+    public static class Environment {
+
+        @XmlElement(required = true)
+        protected Object other;
+        @XmlAttribute(name = "build_id")
+        protected String buildId;
+        @XmlAttribute(name = "cts_version")
+        protected String ctsVersion;
+        @XmlAttribute(name = "device_id")
+        protected String deviceId;
+        @XmlAttribute(name = "device_model")
+        protected String deviceModel;
+        @XmlAttribute(name = "device_name")
+        protected String deviceName;
+        @XmlAttribute(name = "host")
+        protected String host;
+        @XmlAttribute(name = "os_version")
+        protected String osVersion;
+        @XmlAttribute(name = "resolution")
+        protected String resolution;
+        @XmlAttribute(name = "screen_size")
+        protected String screenSize;
+        @XmlAttribute(name = "manufacturer")
+        protected String manufacturer;
+
+        /**
+         * Gets the value of the other property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link Object }
+         *     
+         */
+        public Object getOther() {
+            return other;
+        }
+
+        /**
+         * Sets the value of the other property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link Object }
+         *     
+         */
+        public void setOther(Object value) {
+            this.other = value;
+        }
+
+        /**
+         * Gets the value of the buildId property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getBuildId() {
+            return buildId;
+        }
+
+        /**
+         * Sets the value of the buildId property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setBuildId(String value) {
+            this.buildId = value;
+        }
+
+        /**
+         * Gets the value of the ctsVersion property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getCtsVersion() {
+            return ctsVersion;
+        }
+
+        /**
+         * Sets the value of the ctsVersion property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setCtsVersion(String value) {
+            this.ctsVersion = value;
+        }
+
+        /**
+         * Gets the value of the deviceId property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getDeviceId() {
+            return deviceId;
+        }
+
+        /**
+         * Sets the value of the deviceId property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setDeviceId(String value) {
+            this.deviceId = value;
+        }
+
+        /**
+         * Gets the value of the deviceModel property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getDeviceModel() {
+            return deviceModel;
+        }
+
+        /**
+         * Sets the value of the deviceModel property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setDeviceModel(String value) {
+            this.deviceModel = value;
+        }
+
+        /**
+         * Gets the value of the deviceName property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getDeviceName() {
+            return deviceName;
+        }
+
+        /**
+         * Sets the value of the deviceName property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setDeviceName(String value) {
+            this.deviceName = value;
+        }
+
+        /**
+         * Gets the value of the host property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getHost() {
+            return host;
+        }
+
+        /**
+         * Sets the value of the host property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setHost(String value) {
+            this.host = value;
+        }
+
+        /**
+         * Gets the value of the osVersion property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getOsVersion() {
+            return osVersion;
+        }
+
+        /**
+         * Sets the value of the osVersion property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setOsVersion(String value) {
+            this.osVersion = value;
+        }
+
+        /**
+         * Gets the value of the resolution property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getResolution() {
+            return resolution;
+        }
+
+        /**
+         * Sets the value of the resolution property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setResolution(String value) {
+            this.resolution = value;
+        }
+
+        /**
+         * Gets the value of the screenSize property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getScreenSize() {
+            return screenSize;
+        }
+
+        /**
+         * Sets the value of the screenSize property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setScreenSize(String value) {
+            this.screenSize = value;
+        }
+
+        /**
+         * Gets the value of the manufacturer property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getManufacturer() {
+            return manufacturer;
+        }
+
+        /**
+         * Sets the value of the manufacturer property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setManufacturer(String value) {
+            this.manufacturer = value;
+        }
+
+    }
+
+
+    /**
+     * <p>Java class for anonymous complex type.
+     * 
+     * <p>The following schema fragment specifies the expected content contained within this class.
+     * 
+     * <pre>
+     * &lt;complexType>
+     *   &lt;complexContent>
+     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       &lt;sequence>
+     *         &lt;element name="total_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+     *         &lt;element name="pass_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+     *         &lt;element name="pass_rate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *         &lt;element name="fail_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+     *         &lt;element name="fail_rate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *         &lt;element name="block_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+     *         &lt;element name="block_rate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *         &lt;element name="na_case" type="{http://www.w3.org/2001/XMLSchema}int"/>
+     *         &lt;element name="na_rate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *       &lt;/sequence>
+     *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     &lt;/restriction>
+     *   &lt;/complexContent>
+     * &lt;/complexType>
+     * </pre>
+     * 
+     * 
+     */
+    @XmlAccessorType(XmlAccessType.FIELD)
+    @XmlType(name = "", propOrder = {
+        "totalCase",
+        "passCase",
+        "passRate",
+        "failCase",
+        "failRate",
+        "blockCase",
+        "blockRate",
+        "naCase",
+        "naRate"
+    })
+    public static class Suite {
+
+        @XmlElement(name = "total_case")
+        protected int totalCase;
+        @XmlElement(name = "pass_case")
+        protected int passCase;
+        @XmlElement(name = "pass_rate", required = true)
+        protected String passRate;
+        @XmlElement(name = "fail_case")
+        protected int failCase;
+        @XmlElement(name = "fail_rate", required = true)
+        protected String failRate;
+        @XmlElement(name = "block_case")
+        protected int blockCase;
+        @XmlElement(name = "block_rate", required = true)
+        protected String blockRate;
+        @XmlElement(name = "na_case")
+        protected int naCase;
+        @XmlElement(name = "na_rate", required = true)
+        protected String naRate;
+        @XmlAttribute(name = "name")
+        protected String name;
+
+        /**
+         * Gets the value of the totalCase property.
+         * 
+         */
+        public int getTotalCase() {
+            return totalCase;
+        }
+
+        /**
+         * Sets the value of the totalCase property.
+         * 
+         */
+        public void setTotalCase(int value) {
+            this.totalCase = value;
+        }
+
+        /**
+         * Gets the value of the passCase property.
+         * 
+         */
+        public int getPassCase() {
+            return passCase;
+        }
+
+        /**
+         * Sets the value of the passCase property.
+         * 
+         */
+        public void setPassCase(int value) {
+            this.passCase = value;
+        }
+
+        /**
+         * Gets the value of the passRate property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getPassRate() {
+            return passRate;
+        }
+
+        /**
+         * Sets the value of the passRate property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setPassRate(String value) {
+            this.passRate = value;
+        }
+
+        /**
+         * Gets the value of the failCase property.
+         * 
+         */
+        public int getFailCase() {
+            return failCase;
+        }
+
+        /**
+         * Sets the value of the failCase property.
+         * 
+         */
+        public void setFailCase(int value) {
+            this.failCase = value;
+        }
+
+        /**
+         * Gets the value of the failRate property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getFailRate() {
+            return failRate;
+        }
+
+        /**
+         * Sets the value of the failRate property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setFailRate(String value) {
+            this.failRate = value;
+        }
+
+        /**
+         * Gets the value of the blockCase property.
+         * 
+         */
+        public int getBlockCase() {
+            return blockCase;
+        }
+
+        /**
+         * Sets the value of the blockCase property.
+         * 
+         */
+        public void setBlockCase(int value) {
+            this.blockCase = value;
+        }
+
+        /**
+         * Gets the value of the blockRate property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getBlockRate() {
+            return blockRate;
+        }
+
+        /**
+         * Sets the value of the blockRate property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setBlockRate(String value) {
+            this.blockRate = value;
+        }
+
+        /**
+         * Gets the value of the naCase property.
+         * 
+         */
+        public int getNaCase() {
+            return naCase;
+        }
+
+        /**
+         * Sets the value of the naCase property.
+         * 
+         */
+        public void setNaCase(int value) {
+            this.naCase = value;
+        }
+
+        /**
+         * Gets the value of the naRate property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getNaRate() {
+            return naRate;
+        }
+
+        /**
+         * Sets the value of the naRate property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setNaRate(String value) {
+            this.naRate = value;
+        }
+
+        /**
+         * Gets the value of the name property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getName() {
+            return name;
+        }
+
+        /**
+         * Sets the value of the name property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setName(String value) {
+            this.name = value;
+        }
+
+    }
+
+
+    /**
+     * <p>Java class for anonymous complex type.
+     * 
+     * <p>The following schema fragment specifies the expected content contained within this class.
+     * 
+     * <pre>
+     * &lt;complexType>
+     *   &lt;complexContent>
+     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       &lt;sequence>
+     *         &lt;element name="start_at" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *         &lt;element name="end_at" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *       &lt;/sequence>
+     *       &lt;attribute name="test_plan_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     &lt;/restriction>
+     *   &lt;/complexContent>
+     * &lt;/complexType>
+     * </pre>
+     * 
+     * 
+     */
+    @XmlAccessorType(XmlAccessType.FIELD)
+    @XmlType(name = "", propOrder = {
+        "startAt",
+        "endAt"
+    })
+    public static class Summary {
+
+        @XmlElement(name = "start_at", required = true)
+        protected String startAt;
+        @XmlElement(name = "end_at", required = true)
+        protected String endAt;
+        @XmlAttribute(name = "test_plan_name")
+        protected String testPlanName;
+
+        /**
+         * Gets the value of the startAt property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getStartAt() {
+            return startAt;
+        }
+
+        /**
+         * Sets the value of the startAt property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setStartAt(String value) {
+            this.startAt = value;
+        }
+
+        /**
+         * Gets the value of the endAt property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getEndAt() {
+            return endAt;
+        }
+
+        /**
+         * Sets the value of the endAt property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setEndAt(String value) {
+            this.endAt = value;
+        }
+
+        /**
+         * Gets the value of the testPlanName property.
+         * 
+         * @return
+         *     possible object is
+         *     {@link String }
+         *     
+         */
+        public String getTestPlanName() {
+            return testPlanName;
+        }
+
+        /**
+         * Sets the value of the testPlanName property.
+         * 
+         * @param value
+         *     allowed object is
+         *     {@link String }
+         *     
+         */
+        public void setTestPlanName(String value) {
+            this.testPlanName = value;
+        }
+
+    }
+
+}
diff --git a/style/application.js b/style/application.js
new file mode 100644 (file)
index 0000000..147094f
--- /dev/null
@@ -0,0 +1,194 @@
+function getScrollTop() {
+       return f_scrollTop();
+}
+
+function f_scrollTop() {
+       return f_filterResults($(window) ? $(window).scrollTop() : 0,
+                       document.documentElement ? document.documentElement.scrollTop : 0,
+                       document.body ? document.body.scrollTop : 0);
+}
+function f_filterResults(n_win, n_docel, n_body) {
+       var n_result = n_win ? n_win : 0;
+       if (n_docel && (!n_result || (n_result > n_docel)))
+               n_result = n_docel;
+       return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
+}
+
+function setScrollTop() {
+       $(window) ? $(window).scrollTop(0) : 0;
+       document.documentElement ? document.documentElement.scrollTop = 0 : 0;
+       document.body ? document.body.scrollTop = 0 : 0;
+}
+
+function goTopEx() {
+       $node = $('#goTopBtn');
+       if (getScrollTop() > 0) {
+               $node.show();
+       } else {
+               $node.hide();
+       }
+
+       $(window).scroll(function() {
+               if (getScrollTop() > 0) {
+                       $node.show();
+               } else {
+                       $node.hide();
+               }
+       });
+
+       $node.click(function() {
+               setScrollTop();
+       });
+}
+
+function drawRatio() {
+       $('.suite_item').each(function(i, node) {
+               drawSuiteRatio(node)
+       });
+}
+
+$(".see_all").click(function(){
+       $("#see_all").show();
+    $("#see_fail").hide();
+    $("#see_block").hide();
+    $("#see_na").hide();
+    updateToggles();
+    return false;
+});
+
+$(".see_failed").click(function(){
+       $("#see_all").hide();
+    $("#see_fail").show();
+    $("#see_block").hide();
+    $("#see_na").hide();
+    updateToggles();
+    return false;
+});
+
+$(".see_blocked").click(function(){
+       $("#see_all").hide();
+    $("#see_fail").hide();
+    $("#see_block").show();
+    $("#see_na").hide();
+    updateToggles();
+    return false;
+});
+
+$(".see_na").click(function(){
+       $("#see_all").hide();
+    $("#see_fail").hide();
+    $("#see_block").hide();
+    $("#see_na").show();
+    updateToggles();
+    return false;
+});
+
+$("a.test_case_popup").click(function(){
+       var $this = $(this);
+       Popup.show($this.attr('id'));
+    return false;
+});
+
+$(".see_capabilities").click(function(){
+       if ($('#capability_table').css('display') == 'none') {
+               $("#capability_table").show();
+       }else{
+               $("#capability_table").hide();
+       }
+    return false;
+});
+
+function drawSuiteRatio(node) {
+       arrTitle = new Array("Passed", "Failed", "Blocked", "Not Executed");
+       var $node = $(node);
+       var $total = $node.find('.total');
+       var $pass = $node.find('.pass');
+       var $fail = $node.find('.fail');
+       var $block = $node.find('.block');
+       var $na = $node.find('.na');
+       var $div = $node.find('.RatioGraphic');
+
+       var total_int = parseInt($total.text());
+       var pass_int = parseInt($pass.text());
+       var fail_int = parseInt($fail.text());
+       var block_int = parseInt($block.text());
+       var na_int = parseInt($na.text());
+
+       var pass_rate = pass_int * 100 / total_int;
+       var fail_rate = fail_int * 100 / total_int;
+       var block_rate = block_int * 100 / total_int;
+       var na_rate = na_int * 100 / total_int;
+
+       var areaWidth = 380;
+
+       var pass_width = areaWidth * pass_rate / 100;
+       var fail_width = areaWidth * fail_rate / 100;
+       var block_width = areaWidth * block_rate / 100;
+       var na_width = areaWidth * na_rate / 100;
+       
+       pass_rate = pass_rate.toFixed(2);
+       fail_rate = fail_rate.toFixed(2);
+       block_rate = block_rate.toFixed(2);
+       na_rate = na_rate.toFixed(2);
+
+       var pass_style = "padding:3px 0px 0px 0px;font-size:9pt;height:17px;text-align:center;color:white;font-weight:bold;background:url(&quot;./style/blue.jpg&quot;);"
+       var fail_style = "padding:3px 0px 0px 0px;font-size:9pt;height:17px;text-align:center;color:white;font-weight:bold;background:url(&quot;./style/red.jpg&quot;);"
+       var block_style = "padding:3px 0px 0px 0px;font-size:9pt;height:17px;text-align:center;color:white;font-weight:bold;background:url(&quot;./style/orange.jpg&quot;);"
+       var na_style = "padding:3px 0px 0px 0px;font-size:9pt;height:17px;text-align:center;color:white;font-weight:bold;background:url(&quot;./style/gray.jpg&quot;);"
+
+       var html = "<table width=\"380.68\" align=\"center\"><tbody><tr>";
+       if (pass_width > 0){
+           html += "<td width=\""
+                       + pass_width
+                       + "\" style=\""
+                       + pass_style
+                       + "\" title=\"Passed :"
+                       + pass_rate
+                       + "%\">";
+           if (pass_width > 20){
+               html += pass_rate + "%"
+           }
+           html +=  "</td>";
+       }
+       if (fail_width > 0){
+               html += "<td width=\""
+                       + fail_width
+                       + "\" style=\""
+                       + fail_style
+                       + "\" title=\"Failed :"
+                       + fail_rate
+                       + "%\">";
+           if (fail_width > 20){
+               html += fail_rate + "%"
+           }
+           html +=  "</td>";
+       }
+       if (block_width > 0){
+               html += "<td width=\""
+                       + block_width
+                       + "\" style=\""
+                       + block_style
+                       + "\" title=\"Blocked :"
+                       + block_rate
+                       + "%\">";
+           if (block_width > 20){
+               html += block_rate + "%"
+           }
+           html +=  "</td>";
+       }
+       if (na_width > 0){
+               html += "<td width=\""
+                       + na_width
+                       + "\" style=\""
+                       + na_style
+                       + "\" title=\"Blocked :"
+                       + na_rate
+                       + "%\">";
+           if (na_width > 20){
+               html += na_rate + "%"
+           }
+           html +=  "</td>";
+       }
+       html += "</tr></tbody></table>";
+       $div.html(html);
+}
diff --git a/style/back_top.png b/style/back_top.png
new file mode 100644 (file)
index 0000000..19cbd76
Binary files /dev/null and b/style/back_top.png differ
diff --git a/style/blue.jpg b/style/blue.jpg
new file mode 100644 (file)
index 0000000..d1db8f7
Binary files /dev/null and b/style/blue.jpg differ
diff --git a/style/gray.jpg b/style/gray.jpg
new file mode 100644 (file)
index 0000000..f1acfdb
Binary files /dev/null and b/style/gray.jpg differ
diff --git a/style/jquery.min.js b/style/jquery.min.js
new file mode 100644 (file)
index 0000000..198b3ff
--- /dev/null
@@ -0,0 +1,4 @@
+/*! jQuery v1.7.1 jquery.com | jquery.org/license */
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)ca(a+"["+e+"]",b[e],c,d);else d(a,b)}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border")for(;g<h;g++)c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0;return d+"px"}d=bz(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0;if(c)for(;g<h;g++)d+=parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0);return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++)if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}i=!1,c&&(a.once?e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return!!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),q.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div>"+"<table "+n+" cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++)g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split("."),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++)e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttribute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};
+f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++)r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r);q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace))c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}return c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.POS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function()
+{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bp)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bn(k[i]);else bn(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||be.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bq=/alpha\([^)]*\)/i,br=/opacity=([^)]*)/,bs=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,bu=/^-?\d/,bv=/^([\-+])=([\-+.\de]+)/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bv.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bz)return bz(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bC(a,b,d);f.swap(a,bw,function(){e=bC(a,b,d)});return e}},set:function(a,b){if(!bt.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cv(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cu("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cn.test(h)?(o=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o==="show"?"hide":"show"),j[o]()):j[h]()):(k=co.exec(h),l=j.cur(),k?(m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i]?"":"px"),n!=="px"&&(f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=(k[1]==="-="?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cr||cs(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)===b&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp&&(cp=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cr||cs(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cp),cp=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(["width","height"],function(a,b){f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cy(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.support.fixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.support.fixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
\ No newline at end of file
diff --git a/style/orange.jpg b/style/orange.jpg
new file mode 100644 (file)
index 0000000..ac4c749
Binary files /dev/null and b/style/orange.jpg differ
diff --git a/style/popup.js b/style/popup.js
new file mode 100644 (file)
index 0000000..5f994f4
--- /dev/null
@@ -0,0 +1,1215 @@
+/**
+ * Copyright (c)2005-2009 Matt Kruse (javascripttoolbox.com)
+ * 
+ * Dual licensed under the MIT and GPL licenses. 
+ * This basically means you can use this code however you want for
+ * free, but don't claim to have written it yourself!
+ * Donations always accepted: http://www.JavascriptToolbox.com/donate/
+ * 
+ * Please do not link to the .js files on javascripttoolbox.com from
+ * your site. Copy the files locally to your server instead.
+ * 
+ */
+/* ******************************************************************* */
+/*   UTIL FUNCTIONS                                                    */
+/* ******************************************************************* */
+var Util = {'$VERSION':1.06};
+
+// Util functions - these are GLOBAL so they
+// look like built-in functions.
+
+// Determine if an object is an array
+function isArray(o) {
+       return (o!=null && typeof(o)=="object" && typeof(o.length)=="number" && (o.length==0 || defined(o[0])));
+};
+
+// Determine if an object is an Object
+function isObject(o) {
+       return (o!=null && typeof(o)=="object" && defined(o.constructor) && o.constructor==Object && !defined(o.nodeName));
+};
+
+// Determine if a reference is defined
+function defined(o) {
+       return (typeof(o)!="undefined");
+};
+
+// Iterate over an array, object, or list of items and run code against each item
+// Similar functionality to Perl's map() function
+function map(func) {
+       var i,j,o;
+       var results = [];
+       if (typeof(func)=="string") {
+               func = new Function('$_',func);
+       }
+       for (i=1; i<arguments.length; i++) {
+               o = arguments[i];
+               if (isArray(o)) {
+                       for (j=0; j<o.length; j++) {
+                               results[results.length] = func(o[j]);
+                       }
+               }
+               else if (isObject(o)) {
+                       for (j in o) {
+                               results[results.length] = func(o[j]);
+                       }
+               }
+               else {
+                       results[results.length] = func(o);
+               }
+       }
+       return results;
+};
+
+// Set default values in an object if they are undefined
+function setDefaultValues(o,values) {
+       if (!defined(o) || o==null) {
+               o = {};
+       }
+       if (!defined(values) || values==null) {
+               return o;
+       }
+       for (var val in values) {
+               if (!defined(o[val])) {
+                       o[val] = values[val];
+               }
+       }
+       return o;
+};
+
+/* ******************************************************************* */
+/*   DEFAULT OBJECT PROTOTYPE ENHANCEMENTS                             */
+/* ******************************************************************* */
+// These functions add useful functionality to built-in objects
+Array.prototype.contains = function(o) {
+       var i,l;
+       if (!(l = this.length)) { return false; }
+       for (i=0; i<l; i++) {
+               if (o==this[i]) {
+                       return true;
+               }
+       }
+};
+
+/* ******************************************************************* */
+/*   DOM FUNCTIONS                                                     */
+/* ******************************************************************* */
+var DOM = (function() { 
+       var dom = {};
+       
+       // Get a parent tag with a given nodename
+       dom.getParentByTagName = function(o,tagNames) {
+               if(o==null) { return null; }
+               if (isArray(tagNames)) {
+                       tagNames = map("return $_.toUpperCase()",tagNames);
+                       while (o=o.parentNode) {
+                               if (o.nodeName && tagNames.contains(o.nodeName)) {
+                                       return o;
+                               }
+                       }
+               }
+               else {
+                       tagNames = tagNames.toUpperCase();
+                       while (o=o.parentNode) {
+                               if (o.nodeName && tagNames==o.nodeName) {
+                                       return o;
+                               }
+                       }
+               }
+               return null;
+       };
+       
+       // Remove a node from its parent
+       dom.removeNode = function(o) {
+               if (o!=null && o.parentNode && o.parentNode.removeChild) {
+                       // First remove all attributes which are func references, to avoid memory leaks
+                       for (var i in o) {
+                               if (typeof(o[i])=="function") {
+                                       o[i] = null;
+                               }
+                       }
+                       o.parentNode.removeChild(o);
+                       return true;
+               }
+               return false;
+       };
+
+       // Get the outer width in pixels of an object, including borders, padding, and margin
+       dom.getOuterWidth = function(o) {
+               if (defined(o.offsetWidth)) {
+                       return o.offsetWidth;
+               }
+               return null;
+       };
+
+       // Get the outer height in pixels of an object, including borders, padding, and margin
+       dom.getOuterHeight = function(o) {
+               if (defined(o.offsetHeight)) {
+                       return o.offsetHeight;
+               }
+               return null;
+       };
+
+       // Resolve an item, an array of items, or an object of items
+       dom.resolve = function() {
+               var results = new Array();
+               var i,j,o;
+               for (var i=0; i<arguments.length; i++) {
+                       var o = arguments[i];
+                       if (o==null) {
+                               if (arguments.length==1) {
+                                       return null;
+                               }
+                               results[results.length] = null;
+                       }
+                       else if (typeof(o)=='string') {
+                               if (document.getElementById) {
+                                       o = document.getElementById(o);
+                               }
+                               else if (document.all) {
+                                       o = document.all[o];
+                               }
+                               if (arguments.length==1) {
+                                       return o;
+                               }
+                               results[results.length] = o;
+                       }
+                       else if (isArray(o)) {
+                               for (j=0; j<o.length; j++) {
+                                       results[results.length] = o[j];
+                               }
+                       }
+                       else if (isObject(o)) {
+                               for (j in o) {
+                                       results[results.length] = o[j];
+                               }
+                       }
+                       else if (arguments.length==1) {
+                               return o;
+                       }
+                       else {
+                               results[results.length] = o;
+                       }
+         }
+         return results;
+       };
+       dom.$ = dom.resolve;
+       
+       return dom;
+})();
+
+/* ******************************************************************* */
+/*   CSS FUNCTIONS                                                     */
+/* ******************************************************************* */
+var CSS = (function(){
+       var css = {};
+
+       // Convert an RGB string in the form "rgb (255, 255, 255)" to "#ffffff"
+       css.rgb2hex = function(rgbString) {
+               if (typeof(rgbString)!="string" || !defined(rgbString.match)) { return null; }
+               var result = rgbString.match(/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*/);
+               if (result==null) { return rgbString; }
+               var rgb = +result[1] << 16 | +result[2] << 8 | +result[3];
+               var hex = "";
+               var digits = "0123456789abcdef";
+               while(rgb!=0) { 
+                       hex = digits.charAt(rgb&0xf)+hex; 
+                       rgb>>>=4; 
+               } 
+               while(hex.length<6) { hex='0'+hex; }
+               return "#" + hex;
+       };
+
+       // Convert hyphen style names like border-width to camel case like borderWidth
+       css.hyphen2camel = function(property) {
+               if (!defined(property) || property==null) { return null; }
+               if (property.indexOf("-")<0) { return property; }
+               var str = "";
+               var c = null;
+               var l = property.length;
+               for (var i=0; i<l; i++) {
+                       c = property.charAt(i);
+                       str += (c!="-")?c:property.charAt(++i).toUpperCase();
+               }
+               return str;
+       };
+       
+       // Determine if an object or class string contains a given class.
+       css.hasClass = function(obj,className) {
+               if (!defined(obj) || obj==null || !RegExp) { return false; }
+               var re = new RegExp("(^|\\s)" + className + "(\\s|$)");
+               if (typeof(obj)=="string") {
+                       return re.test(obj);
+               }
+               else if (typeof(obj)=="object" && obj.className) {
+                       return re.test(obj.className);
+               }
+               return false;
+       };
+       
+       // Add a class to an object
+       css.addClass = function(obj,className) {
+               if (typeof(obj)!="object" || obj==null || !defined(obj.className)) { return false; }
+               if (obj.className==null || obj.className=='') { 
+                       obj.className = className; 
+                       return true; 
+               }
+               if (css.hasClass(obj,className)) { return true; }
+               obj.className = obj.className + " " + className;
+               return true;
+       };
+       
+       // Remove a class from an object
+       css.removeClass = function(obj,className) {
+               if (typeof(obj)!="object" || obj==null || !defined(obj.className) || obj.className==null) { return false; }
+               if (!css.hasClass(obj,className)) { return false; }
+               var re = new RegExp("(^|\\s+)" + className + "(\\s+|$)");
+               obj.className = obj.className.replace(re,' ');
+               return true;
+       };
+       
+       // Fully replace a class with a new one
+       css.replaceClass = function(obj,className,newClassName) {
+               if (typeof(obj)!="object" || obj==null || !defined(obj.className) || obj.className==null) { return false; }
+               css.removeClass(obj,className);
+               css.addClass(obj,newClassName);
+               return true;
+       };
+       
+       // Get the currently-applied style of an object
+       css.getStyle = function(o, property) {
+               if (o==null) { return null; }
+               var val = null;
+               var camelProperty = css.hyphen2camel(property);
+               // Handle "float" property as a special case
+               if (property=="float") {
+                       val = css.getStyle(o,"cssFloat");
+                       if (val==null) { 
+                               val = css.getStyle(o,"styleFloat"); 
+                       }
+               }
+               else if (o.currentStyle && defined(o.currentStyle[camelProperty])) {
+                       val = o.currentStyle[camelProperty];
+               }
+               else if (window.getComputedStyle) {
+                       val = window.getComputedStyle(o,null).getPropertyValue(property);
+               }
+               else if (o.style && defined(o.style[camelProperty])) {
+                       val = o.style[camelProperty];
+               }
+               // For color values, make the value consistent across browsers
+               // Convert rgb() colors back to hex for consistency
+               if (/^\s*rgb\s*\(/.test(val)) {
+                       val = css.rgb2hex(val);
+               }
+               // Lowercase all #hex values
+               if (/^#/.test(val)) {
+                       val = val.toLowerCase();
+               }
+               return val;
+       };
+       css.get = css.getStyle;
+
+       // Set a style on an object
+       css.setStyle = function(o, property, value) {
+               if (o==null || !defined(o.style) || !defined(property) || property==null || !defined(value)) { return false; }
+               if (property=="float") {
+                       o.style["cssFloat"] = value;
+                       o.style["styleFloat"] = value;
+               }
+               else if (property=="opacity") {
+                       o.style['-moz-opacity'] = value;
+                       o.style['-khtml-opacity'] = value;
+                       o.style.opacity = value;
+                       if (defined(o.style.filter)) {
+                               o.style.filter = "alpha(opacity=" + value*100 + ")";
+                       }
+               }
+               else {
+                       o.style[css.hyphen2camel(property)] = value;
+               }
+               return true;
+       };
+       css.set = css.setStyle;
+       
+       // Get a unique ID which doesn't already exist on the page
+       css.uniqueIdNumber=1000;
+       css.createId = function(o) {
+               if (defined(o) && o!=null && defined(o.id) && o.id!=null && o.id!="") { 
+                       return o.id;
+               }
+               var id = null;
+               while (id==null || document.getElementById(id)!=null) {
+                       id = "ID_"+(css.uniqueIdNumber++);
+               }
+               if (defined(o) && o!=null && (!defined(o.id)||o.id=="")) {
+                       o.id = id;
+               }
+               return id;
+       };
+       
+       return css;
+})();
+
+/* ******************************************************************* */
+/*   EVENT FUNCTIONS                                                   */
+/* ******************************************************************* */
+
+var Event = (function(){
+       var ev = {};
+       
+       // Resolve an event using IE's window.event if necessary
+       // --------------------------------------------------------------------
+       ev.resolve = function(e) {
+               if (!defined(e) && defined(window.event)) {
+                       e = window.event;
+               }
+               return e;
+       };
+       
+       // Add an event handler to a function
+       // Note: Don't use 'this' within functions added using this method, since
+       // the attachEvent and addEventListener models differ.
+       // --------------------------------------------------------------------
+       ev.add = function( obj, type, fn, capture ) {
+               if (obj.addEventListener) {
+                       obj.addEventListener( type, fn, capture );
+                       return true;
+               }
+               else if (obj.attachEvent) {
+                       obj.attachEvent( "on"+type, fn );
+                       return true;
+               }
+               return false;
+       };
+
+       // Get the mouse position of an event
+       // --------------------------------------------------------------------
+       // PageX/Y, where they exist, are more reliable than ClientX/Y because 
+       // of some browser bugs in Opera/Safari
+       ev.getMouseX = function(e) {
+               e = ev.resolve(e);
+               if (defined(e.pageX)) {
+                       return e.pageX;
+               }
+               if (defined(e.clientX)) {
+                       return e.clientX+Screen.getScrollLeft();
+               }
+               return null;
+       };
+       ev.getMouseY = function(e) {
+               e = ev.resolve(e);
+               if (defined(e.pageY)) {
+                       return e.pageY;
+               }
+               if (defined(e.clientY)) {
+                       return e.clientY+Screen.getScrollTop();
+               }
+               return null;
+       };
+
+       // Stop the event from bubbling up to parent elements.
+       // Two method names map to the same function
+       // --------------------------------------------------------------------
+       ev.cancelBubble = function(e) {
+               e = ev.resolve(e);
+               if (typeof(e.stopPropagation)=="function") { e.stopPropagation(); } 
+               if (defined(e.cancelBubble)) { e.cancelBubble = true; }
+       };
+       ev.stopPropagation = ev.cancelBubble;
+
+       // Prevent the default handling of the event to occur
+       // --------------------------------------------------------------------
+       ev.preventDefault = function(e) {
+               e = ev.resolve(e);
+               if (typeof(e.preventDefault)=="function") { e.preventDefault(); } 
+               if (defined(e.returnValue)) { e.returnValue = false; }
+       };
+       
+       return ev;
+})();
+
+/* ******************************************************************* */
+/*   SCREEN FUNCTIONS                                                  */
+/* ******************************************************************* */
+var Screen = (function() {
+       var screen = {};
+
+       // Get a reference to the body
+       // --------------------------------------------------------------------
+       screen.getBody = function() {
+               if (document.body) {
+                       return document.body;
+               }
+               if (document.getElementsByTagName) {
+                       var bodies = document.getElementsByTagName("BODY");
+                       if (bodies!=null && bodies.length>0) {
+                               return bodies[0];
+                       }
+               }
+               return null;
+       };
+
+       // Get the amount that the main document has scrolled from top
+       // --------------------------------------------------------------------
+       screen.getScrollTop = function() {
+               if (document.documentElement && defined(document.documentElement.scrollTop) && document.documentElement.scrollTop>0) {
+                       return document.documentElement.scrollTop;
+               }
+               if (document.body && defined(document.body.scrollTop)) {
+                       return document.body.scrollTop;
+               }
+               return null;
+       };
+       
+       // Get the amount that the main document has scrolled from left
+       // --------------------------------------------------------------------
+       screen.getScrollLeft = function() {
+               if (document.documentElement && defined(document.documentElement.scrollLeft) && document.documentElement.scrollLeft>0) {
+                       return document.documentElement.scrollLeft;
+               }
+               if (document.body && defined(document.body.scrollLeft)) {
+                       return document.body.scrollLeft;
+               }
+               return null;
+       };
+       
+       // Util function to default a bad number to 0
+       // --------------------------------------------------------------------
+       screen.zero = function(n) {
+               return (!defined(n) || isNaN(n))?0:n;
+       };
+
+       // Get the width of the entire document
+       // --------------------------------------------------------------------
+       screen.getDocumentWidth = function() {
+               var width = 0;
+               var body = screen.getBody();
+               if (document.documentElement && (!document.compatMode || document.compatMode=="CSS1Compat")) {
+                   var rightMargin = parseInt(CSS.get(body,'marginRight'),10) || 0;
+                   var leftMargin = parseInt(CSS.get(body,'marginLeft'), 10) || 0;
+                       width = Math.max(body.offsetWidth + leftMargin + rightMargin, document.documentElement.clientWidth);
+               }
+               else {
+                       width =  Math.max(body.clientWidth, body.scrollWidth);
+               }
+               if (isNaN(width) || width==0) {
+                       width = screen.zero(self.innerWidth);
+               }
+               return width;
+       };
+       
+       // Get the height of the entire document
+       // --------------------------------------------------------------------
+       screen.getDocumentHeight = function() {
+               var body = screen.getBody();
+               var innerHeight = (defined(self.innerHeight)&&!isNaN(self.innerHeight))?self.innerHeight:0;
+               if (document.documentElement && (!document.compatMode || document.compatMode=="CSS1Compat")) {
+                   var topMargin = parseInt(CSS.get(body,'marginTop'),10) || 0;
+                   var bottomMargin = parseInt(CSS.get(body,'marginBottom'), 10) || 0;
+                       return Math.max(body.offsetHeight + topMargin + bottomMargin, document.documentElement.clientHeight, document.documentElement.scrollHeight, screen.zero(self.innerHeight));
+               }
+               return Math.max(body.scrollHeight, body.clientHeight, screen.zero(self.innerHeight));
+       };
+       
+       // Get the width of the viewport (viewable area) in the browser window
+       // --------------------------------------------------------------------
+       screen.getViewportWidth = function() {
+               if (document.documentElement && (!document.compatMode || document.compatMode=="CSS1Compat")) {
+                       return document.documentElement.clientWidth;
+               }
+               else if (document.compatMode && document.body) {
+                       return document.body.clientWidth;
+               }
+               return screen.zero(self.innerWidth);
+       };
+       
+       // Get the height of the viewport (viewable area) in the browser window
+       // --------------------------------------------------------------------
+       screen.getViewportHeight = function() {
+               if (!window.opera && document.documentElement && (!document.compatMode || document.compatMode=="CSS1Compat")) {
+                       return document.documentElement.clientHeight;
+               }
+               else if (document.compatMode && !window.opera && document.body) {
+                       return document.body.clientHeight;
+               }
+               return screen.zero(self.innerHeight);
+       };
+
+       return screen;
+})();var Sort = (function(){
+       var sort = {};
+       sort.AlphaNumeric = function(a,b) {
+               if (a==b) { return 0; }
+               if (a<b) { return -1; }
+               return 1;
+       };
+
+       sort.Default = sort.AlphaNumeric;
+       
+       sort.NumericConversion = function(val) {
+               if (typeof(val)!="number") {
+                       if (typeof(val)=="string") {
+                               val = parseFloat(val.replace(/,/g,''));
+                               if (isNaN(val) || val==null) { val=0; }
+                       }
+                       else {
+                               val = 0;
+                       }
+               }
+               return val;
+       };
+       
+       sort.Numeric = function(a,b) {
+               return sort.NumericConversion(a)-sort.NumericConversion(b);
+       };
+
+       sort.IgnoreCaseConversion = function(val) {
+               if (val==null) { val=""; }
+               return (""+val).toLowerCase();
+       };
+
+       sort.IgnoreCase = function(a,b) {
+               return sort.AlphaNumeric(sort.IgnoreCaseConversion(a),sort.IgnoreCaseConversion(b));
+       };
+
+       sort.CurrencyConversion = function(val) {
+               if (typeof(val)=="string") {
+                       val = val.replace(/^[^\d\.]/,'');
+               }
+               return sort.NumericConversion(val);
+       };
+       
+       sort.Currency = function(a,b) {
+               return sort.Numeric(sort.CurrencyConversion(a),sort.CurrencyConversion(b));
+       };
+       
+       sort.DateConversion = function(val) {
+               // inner util function to parse date formats
+               function getdate(str) {
+                       // inner util function to convert 2-digit years to 4
+                       function fixYear(yr) {
+                               yr = +yr;
+                               if (yr<50) { yr += 2000; }
+                               else if (yr<100) { yr += 1900; }
+                               return yr;
+                       };
+                       var ret;
+                       // YYYY-MM-DD
+                       if (ret=str.match(/(\d{2,4})-(\d{1,2})-(\d{1,2})/)) {
+                               return (fixYear(ret[1])*10000) + (ret[2]*100) + (+ret[3]);
+                       }
+                       // MM/DD/YY[YY] or MM-DD-YY[YY]
+                       if (ret=str.match(/(\d{1,2})[\/-](\d{1,2})[\/-](\d{2,4})/)) {
+                               return (fixYear(ret[3])*10000) + (ret[1]*100) + (+ret[2]);
+                       }
+                       return 99999999; // So non-parsed dates will be last, not first
+               };
+               return getdate(val);
+       };
+
+       sort.Date = function(a,b) {
+               return sort.Numeric(sort.DateConversion(a),sort.DateConversion(b));
+       };
+
+       return sort;
+})();
+
+var Position = (function() {
+       // Resolve a string identifier to an object
+       // ========================================
+       function resolveObject(s) {
+               if (document.getElementById && document.getElementById(s)!=null) {
+                       return document.getElementById(s);
+               }
+               else if (document.all && document.all[s]!=null) {
+                       return document.all[s];
+               }
+               else if (document.anchors && document.anchors.length && document.anchors.length>0 && document.anchors[0].x) {
+                       for (var i=0; i<document.anchors.length; i++) {
+                               if (document.anchors[i].name==s) { 
+                                       return document.anchors[i]
+                               }
+                       }
+               }
+       }
+       
+       var pos = {};
+       pos.$VERSION = 1.0;
+       
+       // Set the position of an object
+       // =============================
+       pos.set = function(o,left,top) {
+               if (typeof(o)=="string") {
+                       o = resolveObject(o);
+               }
+               if (o==null || !o.style) {
+                       return false;
+               }
+               
+               // If the second parameter is an object, it is assumed to be the result of getPosition()
+               if (typeof(left)=="object") {
+                       var pos = left;
+                       left = pos.left;
+                       top = pos.top;
+               }
+               
+               o.style.left = left + "px";
+               o.style.top = top + "px";
+               return true;
+       };
+       
+       // Retrieve the position and size of an object
+       // ===========================================
+       pos.get = function(o) {
+               var fixBrowserQuirks = true;
+                       // If a string is passed in instead of an object ref, resolve it
+               if (typeof(o)=="string") {
+                       o = resolveObject(o);
+               }
+               
+               if (o==null) {
+                       return null;
+               }
+               
+               var left = 0;
+               var top = 0;
+               var width = 0;
+               var height = 0;
+               var parentNode = null;
+               var offsetParent = null;
+       
+               
+               offsetParent = o.offsetParent;
+               var originalObject = o;
+               var el = o; // "el" will be nodes as we walk up, "o" will be saved for offsetParent references
+               while (el.parentNode!=null) {
+                       el = el.parentNode;
+                       if (el.offsetParent==null) {
+                       }
+                       else {
+                               var considerScroll = true;
+                               /*
+                               In Opera, if parentNode of the first object is scrollable, then offsetLeft/offsetTop already 
+                               take its scroll position into account. If elements further up the chain are scrollable, their 
+                               scroll offsets still need to be added in. And for some reason, TR nodes have a scrolltop value
+                               which must be ignored.
+                               */
+                               if (fixBrowserQuirks && window.opera) {
+                                       if (el==originalObject.parentNode || el.nodeName=="TR") {
+                                               considerScroll = false;
+                                       }
+                               }
+                               if (considerScroll) {
+                                       if (el.scrollTop && el.scrollTop>0) {
+                                               top -= el.scrollTop;
+                                       }
+                                       if (el.scrollLeft && el.scrollLeft>0) {
+                                               left -= el.scrollLeft;
+                                       }
+                               }
+                       }
+                       // If this node is also the offsetParent, add on the offsets and reset to the new offsetParent
+                       if (el == offsetParent) {
+                               left += o.offsetLeft;
+                               if (el.clientLeft && el.nodeName!="TABLE") { 
+                                       left += el.clientLeft;
+                               }
+                               top += o.offsetTop;
+                               if (el.clientTop && el.nodeName!="TABLE") {
+                                       top += el.clientTop;
+                               }
+                               o = el;
+                               if (o.offsetParent==null) {
+                                       if (o.offsetLeft) {
+                                               left += o.offsetLeft;
+                                       }
+                                       if (o.offsetTop) {
+                                               top += o.offsetTop;
+                                       }
+                               }
+                               offsetParent = o.offsetParent;
+                       }
+               }
+               
+       
+               if (originalObject.offsetWidth) {
+                       width = originalObject.offsetWidth;
+               }
+               if (originalObject.offsetHeight) {
+                       height = originalObject.offsetHeight;
+               }
+               
+               return {'left':left, 'top':top, 'width':width, 'height':height
+                               };
+       };
+       
+       // Retrieve the position of an object's center point
+       // =================================================
+       pos.getCenter = function(o) {
+               var c = this.get(o);
+               if (c==null) { return null; }
+               c.left = c.left + (c.width/2);
+               c.top = c.top + (c.height/2);
+               return c;
+       };
+       
+       return pos;
+})();// CLASS CONSTRUCTOR
+// --------------------------------------------------------------------
+var Popup = function(div, options) {
+       this.div = defined(div)?div:null;
+       this.index = Popup.maxIndex++;
+       this.ref = "Popup.objects["+this.index+"]";
+       Popup.objects[this.index] = this;
+       // Store a reference to the DIV by id, also
+       if (typeof(this.div)=="string") {
+               Popup.objectsById[this.div] = this;
+       }
+       if (defined(this.div) && this.div!=null && defined(this.div.id)) {
+               Popup.objectsById[this.div.id] = this.div.id;
+       }
+       // Apply passed-in options
+       if (defined(options) && options!=null && typeof(options)=="object") {
+               for (var i in options) {
+                       this[i] = options[i];
+               }
+       }
+       return this;
+};
+
+// CLASS PROPERTIES
+// --------------------------------------------------------------------
+// Index of popup objects, to maintain a global reference if necessary
+Popup.maxIndex = 0;
+Popup.objects = {};
+Popup.objectsById = {};
+
+// The z-index value that popups will start at
+Popup.minZIndex = 101;
+
+// Class names to assign to other objects
+Popup.screenClass = "PopupScreen";
+Popup.iframeClass = "PopupIframe";
+Popup.screenIframeClass = "PopupScreenIframe";
+
+// CLASS METHODS
+// --------------------------------------------------------------------
+
+// Hide all currently-visible non-modal dialogs
+Popup.hideAll = function() {
+       for (var i in Popup.objects) {
+               var p = Popup.objects[i];
+               if (!p.modal && p.autoHide) {
+                       p.hide();
+               }
+       }
+};
+// Catch global events as a trigger to hide auto-hide popups
+Event.add(document, "mouseup", Popup.hideAll, false);
+
+// A simple class method to show a popup without creating an instance
+Popup.show = function(divObject, referenceObject, position, options, modal) {
+       var popup;
+       if (defined(divObject)) { 
+               popup = new Popup(divObject);
+       }
+       else {
+               popup = new Popup();
+               popup.destroyDivOnHide = true;
+       }
+       if (defined(referenceObject)) { popup.reference = DOM.resolve(referenceObject); }
+       if (defined(position)) { popup.position = position; }
+       if (defined(options) && options!=null && typeof(options)=="object") {
+               for (var i in options) {
+                       popup[i] = options[i];
+               }
+       }
+       if (typeof(modal)=="boolean") {
+               popup.modal = modal;
+       }
+       popup.destroyObjectsOnHide = true;
+       popup.show();
+       return popup;
+};
+
+// A simple class method to show a modal popup
+Popup.showModal = function(divObject, referenceObject, position, options) {
+       Popup.show(divObject, referenceObject, position, options, true);
+};
+
+// A method to retrieve a popup object based on a div ID
+Popup.get = function(divId) {
+       if (defined(Popup.objectsById[divId])) {
+               return Popup.objectsById[divId];
+       }
+       return null;
+};
+
+// A method to hide a popup based on a div id
+Popup.hide = function(divId) {
+       var popup = Popup.get(divId);
+       if (popup!=null) {
+               popup.hide();
+       }
+};
+
+// PROTOTYPE PROPERTIES
+// --------------------------------------------------------------------
+Popup.prototype.content = null;
+Popup.prototype.className = "PopupDiv";
+Popup.prototype.style = null; // Styles to be applied to the DIV
+Popup.prototype.width = null;
+Popup.prototype.height = null;
+Popup.prototype.top = null;
+Popup.prototype.left = null;
+Popup.prototype.offsetLeft = 0;
+Popup.prototype.offsetTop = 0;
+Popup.prototype.constrainToScreen = true;
+Popup.prototype.autoHide = true;
+Popup.prototype.useIframeShim = false; /*@cc_on @*/ /*@if (@_win32) {Popup.prototype.useIframeShim = true;} @end @*/ 
+Popup.prototype.iframe = null;
+Popup.prototype.position = null; // vertical: "above top center bottom below", horizontal: "adjacent-left,left,center,right,adjacent-right"
+Popup.prototype.reference = null;
+Popup.prototype.modal = false;
+Popup.prototype.destroyDivOnHide = false;
+Popup.prototype.destroyObjectsOnHide = false;
+Popup.prototype.screen = null;
+Popup.prototype.screenIframeShim = null;
+Popup.prototype.screenOpacity=.4;
+Popup.prototype.screenColor="#cccccc";
+
+// INSTANCE METHODS
+// --------------------------------------------------------------------
+
+// Show the popup
+// --------------------------------------------------------------------
+Popup.prototype.show = function(options, modal) {
+       this.modal = this.modal || (typeof(modal)=="boolean" && modal);
+       if (defined(options) && options!=null && typeof(options)=="object") {
+               for (var i in options) {
+                       this[i] = options[i];
+               }
+       }
+       this.div = DOM.resolve(this.div);
+       CSS.setStyle(this.div,'position','absolute');
+       
+       // If there is no div pre-defined to use, create one
+       if (this.div==null) {
+               this.div = this.createDiv();
+       }
+       if (this.content!=null) {
+               this.div.innerHTML = this.content;
+               this.content = null;
+       }
+       if (this.className!=null) {
+               this.div.className = this.className;
+       }
+       if (this.style!=null) {
+               this.applyStyle();
+       }
+       if (this.width!=null) {
+               this.div.style.width = this.width+"px";
+               this.div.style.overflowX="auto";
+       }
+       if (this.height!=null) {
+               this.div.style.height = this.height+"px";
+               this.div.style.overflowY="auto";
+       }
+
+       // Do the actual display - this is a separate method so display transitions can be implemented
+       this.transition();
+       
+       // Make sure clicks on the DIV don't bubble up to the document
+       this.div.onclick = function(e) { 
+               Event.cancelBubble(Event.resolve(e));
+       };
+       this.div.onmouseup = this.div.onclick;
+       
+       // Focus to the DIV if possible 
+       if (this.modal && this.div.focus) {
+               this.div.focus();
+       }
+};
+
+// Show the popup but make it modal
+// --------------------------------------------------------------------
+Popup.prototype.transition = function() {
+       if (this.modal) {
+               this.addScreen();
+       }
+       
+       // Make the DIV displayed but hidden so its size can be measured
+       CSS.setStyle(this.div,'visibility','hidden');
+       CSS.setStyle(this.div,'display','block');
+
+       // Position the popup
+       this.setPosition();
+
+       // Add the shim if necessary    
+       if (this.useIframeShim) {
+               this.addIframeShim();
+       }
+
+       // Make sure the DIV is higher than the shim
+       this.div.style.zIndex = Popup.minZIndex++;
+
+       CSS.setStyle(this.div,'display','block');
+       CSS.setStyle(this.div,'visibility','visible');
+};
+
+// Show the popup but make it modal
+// --------------------------------------------------------------------
+Popup.prototype.showModal = function(options) {
+       this.show(options,true);
+};
+
+// Apply user styles to the DIV
+// --------------------------------------------------------------------
+Popup.prototype.applyStyle = function() {
+       if (this.div!=null && this.style!=null && typeof(this.style)=="object") {
+               for (var i in this.style) {
+                       this.div.style[i] = this.style[i];
+               }
+       }
+};
+
+// Hide the popup
+// --------------------------------------------------------------------
+Popup.prototype.hide = function() {
+       // If this was a temp object creating on-the-fly, then remove objects from the DOM so
+       // The document doesn't get littered with extra objects
+       if (this.destroyDivOnHide) {
+               DOM.removeNode(this.div);
+               this.div = null;
+               delete Popup.objects[this.id];
+       }
+       else if (this.div!=null) {
+               CSS.setStyle(this.div,'display','none');
+       }
+
+       if (this.destroyObjectsOnHide) {
+               DOM.removeNode(this.iframe);
+               DOM.removeNode(this.screen);
+               DOM.removeNode(this.screenIframeShim);
+       }
+       else {
+               if (this.iframe!=null) {
+                       this.iframe.style.display = "none";
+               }
+               if (this.screen!=null) {
+                       this.screen.style.display = "none";
+               }
+               if (this.screenIframeShim!=null) {
+                       this.screenIframeShim.style.display = "none";
+               }
+       }
+};
+
+// Util funcs for position
+// --------------------------------------------------------------------
+Popup.prototype.setTop = function(top) {
+       this.div.style.top = top+"px";
+};
+Popup.prototype.setLeft = function(left) {
+       this.div.style.left = left+"px";
+};
+Popup.prototype.getTop = function() {
+       return parseInt(CSS.getStyle(this.div,"top"),10);
+};
+Popup.prototype.getLeft = function() {
+       return parseInt(CSS.getStyle(this.div,"left"),10);
+};
+
+// All the logic to position the popup based on various criteria
+// --------------------------------------------------------------------
+Popup.prototype.setPosition = function() {
+       if (this.position!=null) {
+               var m = this.position.match(/^(\S+)\s+(\S+)/); 
+               if (m!=null && m.length==3) {
+                       var v = m[1];
+                       var h = m[2];
+
+                       var ref = this.reference;
+                       if (ref==null) { ref = Screen.getBody(); }
+                       var p = Position.get(ref);
+                       var refTop = p.top;
+                       var refLeft = p.left;
+                       var refWidth = DOM.getOuterWidth(ref);
+                       var refHeight = DOM.getOuterHeight(ref);
+                       
+                       var width = DOM.getOuterWidth(this.div);
+                       var height = DOM.getOuterHeight(this.div);
+                       
+                       var scrollLeft = Screen.getScrollLeft();
+                       var scrollTop = Screen.getScrollTop();
+
+                       // Set vertical position relative to reference object
+                       if (v=="above") { this.setTop(refTop-height+this.offsetTop); }
+                       else if (v=="top") { this.setTop(refTop+this.offsetTop); }
+                       else if (v=="center") { this.setTop(refTop+(refHeight/2)-(height/2)+this.offsetTop); }
+                       else if (v=="bottom") { this.setTop(refTop+refHeight-height+this.offsetTop); }
+                       else if (v=="below") { this.setTop(refTop+refHeight+this.offsetTop); }
+
+                       // Set horizontal position relative to reference object
+                       if (h=="adjacent-left") { this.setLeft(refLeft-width+this.offsetLeft); }
+                       else if (h=="left") { this.setLeft(refLeft+this.offsetLeft); }
+                       else if (h=="center") { this.setLeft(refLeft+(refWidth/2)-(width/2)+this.offsetLeft); }
+                       else if (h=="right") { this.setLeft(refLeft+refWidth-width+this.offsetLeft); }
+                       else if (h=="adjacent-right") { this.setLeft(refLeft+refWidth+this.offsetLeft); }
+               }
+       }
+       else if (this.top==null && this.left==null) {
+               this.center();
+       }
+       else {
+               if (this.top==null) { this.top=0; }
+               if (this.left==null) { this.left=0; }
+               this.div.style.top = this.top+this.offsetTop+"px";
+               this.div.style.left = this.left+this.offsetLeft+"px";
+       }
+
+       // Re-position to make sure it stays on the screen
+       if (this.constrainToScreen) {
+               this.fitToScreen();
+       }
+};
+
+// Append an object to the body
+// --------------------------------------------------------------------
+Popup.prototype.appendToBody = function(o) {
+       var body = Screen.getBody();
+       if (body && body.appendChild) {
+               body.appendChild(o);
+       }
+};
+
+// Create a new DIV object to be used for a popup
+// --------------------------------------------------------------------
+Popup.prototype.createDiv = function() {
+       if (document.createElement) {
+               var d = document.createElement("DIV");
+               d.style.position="absolute";
+               d.style.display="block";
+               d.style.visibility="hidden";
+               this.appendToBody(d);
+               return d;
+       }
+       alert("ERROR: Couldn't create DIV element in Popup.prototype.createDiv()");
+       return null;
+};
+
+// Create a new IFRAME object to be used behind the popup
+// --------------------------------------------------------------------
+Popup.prototype.createIframe = function() {
+       if (document.createElement) {
+               var i= document.createElement("IFRAME");
+               i.style.position="absolute";
+               i.style.display="block";
+               i.style.visibility="hidden";
+               i.style.background="none";
+               this.appendToBody(i);
+               return i;
+       }
+       else {
+               alert("ERROR: Couldn't create IFRAME object in Popup.prototype.createIframe()");
+       }
+};
+
+// Add an IFRAME shim for the DIV
+// --------------------------------------------------------------------
+Popup.prototype.addIframeShim = function() {
+       if (this.iframe==null) {
+               this.iframe = this.createIframe();
+       }
+       this.iframe.className = Popup.iframeClass;
+       CSS.setStyle(this.iframe,'top',this.getTop()+"px");
+       CSS.setStyle(this.iframe,'left',this.getLeft()+"px");
+       CSS.setStyle(this.iframe,'width',DOM.getOuterWidth(this.div) + "px");
+       CSS.setStyle(this.iframe,'height',DOM.getOuterHeight(this.div) + "px");
+       CSS.setStyle(this.iframe,'zIndex',Popup.minZIndex++);
+       CSS.setStyle(this.iframe,'opacity',0);
+       CSS.setStyle(this.iframe,'visibility','visible');
+       CSS.setStyle(this.iframe,'display','block');
+};
+
+// Create a "screen" to make a popup modal
+// --------------------------------------------------------------------
+Popup.prototype.addScreen = function() {
+       if (this.screen==null) {
+               this.screen = this.createDiv();
+               this.screen.style.top="0px";
+               this.screen.style.left="0px";
+               this.screen.style.backgroundColor = this.screenColor;
+               this.screen.className=Popup.screenClass;;
+               CSS.setStyle(this.screen,"opacity",this.screenOpacity);
+               this.screen.onclick = function(e) { Event.cancelBubble(Event.resolve(e)); }
+       }
+       if (this.screenIframeShim==null) {
+               this.screenIframeShim = this.createIframe();
+               this.screenIframeShim.style.top="0px";
+               this.screenIframeShim.style.left="0px";
+               this.screenIframeShim.className=Popup.screenIframeClass;
+               CSS.setStyle(this.screenIframeShim,"opacity",0);
+       }
+       this.screen.style.width = Screen.getDocumentWidth()+"px";
+       this.screen.style.height = Screen.getDocumentHeight()+"px";
+       this.screenIframeShim.style.width = Screen.getDocumentWidth()+"px";
+       this.screenIframeShim.style.height = Screen.getDocumentHeight()+"px";
+       this.screenIframeShim.style.zIndex = Popup.minZIndex++;
+       this.screenIframeShim.style.visibility="visible";
+       this.screenIframeShim.style.display="block";
+       this.screen.style.zIndex = Popup.minZIndex++;
+       this.screen.style.visibility="visible";
+       this.screen.style.display="block";
+};
+
+// Re-position the DIV so it stays on the screen
+// --------------------------------------------------------------------
+Popup.prototype.fitToScreen = function() {
+       var width = DOM.getOuterWidth(this.div);
+       var height = DOM.getOuterHeight(this.div);
+       var top = this.getTop();
+       var left = this.getLeft();
+       
+       var clientWidth = Screen.getViewportWidth();
+       var clientHeight = Screen.getViewportHeight();
+       
+       var scrollLeft = Screen.getScrollLeft();
+       var scrollTop = Screen.getScrollTop();
+
+       if (top-scrollTop+height>clientHeight) {
+               top = top - ((top+height) - (scrollTop+clientHeight));
+               this.div.style.top = top + "px";
+       }
+       if (left-scrollLeft+width>clientWidth) {
+               left = left - ((left+width) - (scrollLeft+clientWidth));
+               this.div.style.left = left + "px";
+       }
+       if (top<scrollTop) {
+               this.div.style.top=scrollTop+"px";
+       }
+       if (left<scrollLeft) {
+               this.div.style.left=scrollLeft+"px";
+       }
+};
+
+// Center the DIV object
+// --------------------------------------------------------------------
+Popup.prototype.center = function() {
+       var left = DOM.getOuterWidth(this.div);
+       var top = DOM.getOuterHeight(this.div);
+       if (isNaN(left)) { left=0; }
+       if (isNaN(top)) { top=0; }      
+       var clientW = Screen.getViewportWidth();
+       var clientH = Screen.getViewportHeight();
+       if (clientW!=null && clientH!=null) {
+               top = (clientH-top)/2;
+               left = (clientW-left)/2;
+       }
+       top += Screen.getScrollTop();
+       left += Screen.getScrollLeft();
+       
+       this.div.style.top = top+this.offsetTop+"px";
+       this.div.style.left = left+this.offsetLeft+"px";
+};
+
diff --git a/style/red.jpg b/style/red.jpg
new file mode 100644 (file)
index 0000000..ab67c5a
Binary files /dev/null and b/style/red.jpg differ
diff --git a/style/summary.xsl b/style/summary.xsl
new file mode 100644 (file)
index 0000000..c034df8
--- /dev/null
@@ -0,0 +1,352 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+       <xsl:output method="html" version="1.0" encoding="UTF-8"
+               indent="yes" />
+       <xsl:template match="/">
+               <html>
+                       <STYLE type="text/css">
+                               @import "./style/tests.css";
+                       </STYLE>
+                       <head>
+                               <script type="text/javascript" src="./style/jquery.min.js" />
+                       </head>
+                       <body>
+                               <div id="testcasepage">
+                                       <div id="title">
+                                               <table>
+                                                       <tr>
+                                                               <td>
+                                                                       <h1>TCT Report</h1>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       <div id="overview">
+                                       <table>
+                                               <tr>
+                                                       <td>
+                                       <div id="summary">
+                                               <table>
+                                                       <tr>
+                                                               <th colspan="2">Test Summary</th>
+                                                       </tr>
+                                                       <!-- tr>
+                                                               <td>TCT Version</td>
+                                                               <td>
+                                                                       <xsl:value-of select="result_summary/environment/@cts_version" />
+                                                               </td>
+                                                       </tr -->
+                                                       <tr>
+                                                               <td>Test Plan Name</td>
+                                                               <td>
+                                                                       <xsl:value-of select="result_summary/@plan_name" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Build ID</td>
+                                                               <td>
+                                                                       <xsl:choose>
+                                                                               <xsl:when test="result_summary/environment/@build_id">
+                                                                                       <xsl:if test="result_summary/environment/@build_id = ''">
+                                                                                               N/A
+                                                                                       </xsl:if>
+                                                                                       <xsl:value-of select="result_summary/environment/@build_id" />
+                                                                               </xsl:when>
+                                                                               <xsl:otherwise>
+                                                                                       N/A
+                                                                               </xsl:otherwise>
+                                                                       </xsl:choose>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Total</td>
+                                                               <td>
+                                                                       <xsl:value-of select="sum(result_summary//suite/total_case)" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Passed</td>
+                                                               <td>
+                                                                       <xsl:value-of select="sum(result_summary//suite/pass_case)" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Failed</td>
+                                                               <td>
+                                                                       <xsl:value-of select="sum(result_summary//suite/fail_case)" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Blocked</td>
+                                                               <td>
+                                                                       <xsl:value-of select="sum(result_summary//suite/block_case)" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Test Not Executed</td>
+                                                               <td>
+                                                                       <xsl:value-of select="sum(result_summary//suite/na_case)" />
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Time</td>
+                                                               <td>
+                                                                       <xsl:value-of select="result_summary/summary/start_at" />
+                                                                       ~
+                                                                       <xsl:value-of select="result_summary/summary/end_at" />
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       </td>
+                                       <td>
+                                       <div id="device">
+                                               <table>
+                                                       <tr>
+                                                               <th colspan="2">Device Information</th>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Host Device</td>
+                                                               <td>
+                                                                       <xsl:choose>
+                                                                               <xsl:when test="result_summary/environment/@host">
+                                                                                       <xsl:if test="result_summary/environment/@host = ''">
+                                                                                               N/A
+                                                                                       </xsl:if>
+                                                                                       <xsl:value-of select="result_summary/environment/@host" />
+                                                                               </xsl:when>
+                                                                               <xsl:otherwise>
+                                                                                       N/A
+                                                                               </xsl:otherwise>
+                                                                       </xsl:choose>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Manufacturer</td>
+                                                               <td>
+                                                                       <xsl:choose>
+                                                                               <xsl:when test="result_summary/environment/@manufacturer">
+                                                                                       <xsl:if test="result_summary/environment/@manufacturer = ''">
+                                                                                               N/A
+                                                                                       </xsl:if>
+                                                                                       <xsl:value-of select="result_summary/environment/@manufacturer" />
+                                                                               </xsl:when>
+                                                                               <xsl:otherwise>
+                                                                                       N/A
+                                                                               </xsl:otherwise>
+                                                                       </xsl:choose>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Device Model</td>
+                                                               <td>
+                                                                       <xsl:choose>
+                                                                               <xsl:when test="result_summary/environment/@device_model">
+                                                                                       <xsl:if test="result_summary/environment/@device_model = ''">
+                                                                                               N/A
+                                                                                       </xsl:if>
+                                                                                       <xsl:value-of select="result_summary/environment/@device_model" />
+                                                                               </xsl:when>
+                                                                               <xsl:otherwise>
+                                                                                       N/A
+                                                                               </xsl:otherwise>
+                                                                       </xsl:choose>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Device ID</td>
+                                                               <td>
+                                                                       <xsl:choose>
+                                                                               <xsl:when test="result_summary/environment/@device_id">
+                                                                                       <xsl:if test="result_summary/environment/@device_id = ''">
+                                                                                               N/A
+                                                                                       </xsl:if>
+                                                                                       <xsl:value-of select="result_summary/environment/@device_id" />
+                                                                               </xsl:when>
+                                                                               <xsl:otherwise>
+                                                                                       N/A
+                                                                               </xsl:otherwise>
+                                                                       </xsl:choose>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Screen Size</td>
+                                                               <td>
+                                                                       <xsl:choose>
+                                                                               <xsl:when test="result_summary/environment/@screen_size">
+                                                                                       <xsl:if test="result_summary/environment/@screen_size = ''">
+                                                                                               N/A
+                                                                                       </xsl:if>
+                                                                                       <xsl:value-of select="result_summary/environment/@screen_size" />
+                                                                               </xsl:when>
+                                                                               <xsl:otherwise>
+                                                                                       N/A
+                                                                               </xsl:otherwise>
+                                                                       </xsl:choose>
+                                                               </td>
+                                                       </tr>
+                                                       <tr>
+                                                               <td>Resolution</td>
+                                                               <td>
+                                                                       <xsl:choose>
+                                                                               <xsl:when test="result_summary/environment/@resolution">
+                                                                                       <xsl:if test="result_summary/environment/@resolution = ''">
+                                                                                               N/A
+                                                                                       </xsl:if>
+                                                                                       <xsl:value-of select="result_summary/environment/@resolution" />
+                                                                               </xsl:when>
+                                                                               <xsl:otherwise>
+                                                                                       N/A
+                                                                               </xsl:otherwise>
+                                                                       </xsl:choose>
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </div>
+                                       </td>
+                                       </tr>
+                                       </table>
+                                       </div>
+
+                                       <div id="capability">
+                                               <div id="title">
+                                                       <a name="contents"></a>
+                                                       <table>
+                                                               <tr>
+                                                                       <td class="title">
+                                                                               <h1><a href="#" class="see_capabilities">Device Capability</a></h1>
+                                                                       </td>
+                                                               </tr>
+                                                       </table>
+                                               </div>
+                                               <xsl:choose>
+                                                       <xsl:when test="result_summary/capabilities">
+                                                               <div id="capability_table" style="display:none;">
+                                                               <table>
+                                                                       <tr>
+                                                                               <th>Capability Name</th>
+                                                                               <th>Type</th>
+                                                                               <th>Value</th>
+                                                                       </tr>
+                                                                       <xsl:for-each select="result_summary/capabilities/capability">
+                                                                               <xsl:sort select="@name" />
+                                                                               <tr>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@name" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:value-of select="@type" />
+                                                                                       </td>
+                                                                                       <td>
+                                                                                               <xsl:choose>
+                                                                                                       <xsl:when test="value">
+                                                                                                               <xsl:value-of select="value" />
+                                                                                                       </xsl:when>
+                                                                                                       <xsl:otherwise>
+                                                                                                               <xsl:value-of select="@support" />
+                                                                                                       </xsl:otherwise>
+                                                                                               </xsl:choose>
+                                                                                       </td>
+                                                                               </tr>
+                                                                       </xsl:for-each>
+                                                               </table>
+                                                               </div>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                               The information of device capability is not available.
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                       </div>
+
+                                       <div id="suite_summary">
+                                               <div id="title">
+                                                       <a name="contents"></a>
+                                                       <table>
+                                                               <tr>
+                                                                       <td class="title">
+                                                                               <h1>Test Summary by Suite</h1>
+                                                                       </td>
+                                                               </tr>
+                                                       </table>
+                                               </div>
+                                               <table>
+                                                       <tr>
+                                                               <th>Suite</th>
+                                                               <th>Total</th>
+                                                               <th>Passed</th>
+                                                               <th>Failed</th>
+                                                               <th>Blocked</th>
+                                                               <th>Not Executed</th>
+                                                               <th class="Ratio">Ratio</th>
+                                                       </tr>
+                                                       <xsl:for-each select="result_summary/suite">
+                                                               <xsl:sort select="@name" />
+                                                               <tr class="suite_item">
+                                                                       <xsl:attribute name="id">
+                                                <xsl:value-of
+                                                                               select="@name" />
+                                    </xsl:attribute>
+                                                                       <td>
+                                                                               <a>
+                                                                                       <xsl:attribute name="href"><xsl:value-of
+                                                                                               select="@name" />.xml</xsl:attribute>
+                                                                                       <xsl:value-of select="@name" />
+                                                                               </a>
+                                                                       </td>
+                                                                       <td class="total">
+                                                                               <xsl:value-of select="total_case" />
+                                                                       </td>
+                                                                       <td class="pass">
+                                                                               <xsl:value-of select="pass_case" />
+                                                                       </td>
+                                                                       <td class="fail">
+                                                                               <xsl:value-of select="fail_case" />
+                                                                       </td>
+                                                                       <td class="block">
+                                                                               <xsl:value-of select="block_case" />
+                                                                       </td>
+                                                                       <td class="na">
+                                                                               <xsl:value-of select="na_case" />
+                                                                       </td>
+                                                                       <td class="Ratio">
+                                                                               <div class="RatioGraphic" />
+                                                                       </td>
+                                                               </tr>
+                                                       </xsl:for-each>
+                                               </table>
+                                       </div>
+
+                               </div>
+                               <div id="goTopBtn">
+                                       <img border="0" src="./style/back_top.png" />
+                               </div>
+                               <script type="text/javascript" src="./style/application.js" />
+                               <script language="javascript" type="text/javascript">
+                                       $(document).ready(function(){
+                                       goTopEx();
+                                       drawRatio();
+                                       });
+                               </script>
+                       </body>
+               </html>
+       </xsl:template>
+       <xsl:template name="br-replace">
+               <xsl:param name="word" />
+               <xsl:variable name="cr">
+                       <xsl:text>\n</xsl:text>
+               </xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="contains($word,$cr)">
+                               <xsl:value-of select="substring-before($word,$cr)" />
+                               <br />
+                               <xsl:call-template name="br-replace">
+                                       <xsl:with-param name="word" select="substring-after($word,$cr)" />
+                               </xsl:call-template>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <xsl:value-of select="$word" />
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+</xsl:stylesheet>
diff --git a/style/testresult.xsl b/style/testresult.xsl
new file mode 100644 (file)
index 0000000..9cfbd84
--- /dev/null
@@ -0,0 +1,571 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+       <xsl:output method="html" version="1.0" encoding="UTF-8"
+               indent="yes" />
+       <xsl:template match="/">
+               <html>
+                       <STYLE type="text/css">
+                               @import "./style/tests.css";
+                       </STYLE>
+                       <head>
+                               <script type="text/javascript" src="./style/jquery.min.js" />
+                               <script type="text/javascript" src="./style/popup.js" />
+                       </head>
+                       <body>
+                               <div id="title">
+                                       <table>
+                                               <tr>
+                                                       <td class="title">
+                                                               <h1 align="center">Suite Test Results</h1>
+                                                       </td>
+                                               </tr>
+                                       </table>
+                               </div>
+                               <div id="btc">
+                                       <table>
+                                               <tr>
+                                                       <td>
+                                                               <a href="#" class="see_all">Show all</a>
+                                                       </td>
+                                                       <td>
+                                                               <a href="#" class="see_failed">Show only failed</a>
+                                                       </td>
+                                                       <td>
+                                                               <a href="#" class="see_blocked">Show only blocked</a>
+                                                       </td>
+                                                       <td>
+                                                               <a href="#" class="see_na">Show only not executed</a>
+                                                       </td>
+                                                       <td>
+                                                               <a href="summary.xml">Summary</a>
+                                                       </td>
+                                               </tr>
+                                       </table>
+                               </div>
+                               <div id="testcasepage">
+                                       <div id="cases">
+                                               <div id="see_all">
+                                                       <xsl:for-each select="test_definition/suite">
+                                                               <xsl:sort select="@name" />
+                                                               <div id="suite_title">
+                                                                       <h2>
+                                                                               Test Suite:
+                                                                               <xsl:value-of select="@name" />
+                                                                               (All)
+                                                                       </h2>
+                                                                       <a>
+                                                                               <xsl:attribute name="name">
+                                                                     <xsl:value-of
+                                                                                       select="@name" />
+                                                                  </xsl:attribute>
+                                                                       </a>
+                                                               </div>
+                                                               <table>
+                                                                       <tr>
+                                                                               <th>Case_ID</th>
+                                                                               <th>Purpose</th>
+                                                                               <th>Result</th>
+                                                                               <th>Stdout</th>
+                                                                       </tr>
+                                                                       <xsl:for-each select=".//set">
+                                                                               <xsl:sort select="@name" />
+                                                                               <tr>
+                                                                                       <xsl:choose>
+                                                                                               <xsl:when test="@name">
+                                                                                                       <td colspan="3">
+                                                                                                               <h3>
+                                                                                                                       Test Set:
+                                                                                                                       <xsl:value-of select="@name" />
+                                                                                                               </h3>
+                                                                                                       </td>
+                                                                                                       <td colspan="1">
+                                                                                                               <h4>
+                                                                                                                       <a>
+                                                                                                                               <xsl:attribute name="href"><xsl:value-of
+                                                                                                                                       select="@set_debug_msg" /></xsl:attribute>
+                                                                                                                               dlog
+                                                                                                                       </a>
+                                                                                                               </h4>
+                                                                                                       </td>
+                                                                                               </xsl:when>
+                                                                                               <xsl:otherwise>
+                                                                                                       <td colspan="4">
+                                                                                                               <h3>
+                                                                                                                       Test Set:
+                                                                                                                       <xsl:value-of select="@name" />
+                                                                                                               </h3>
+                                                                                                       </td>
+                                                                                               </xsl:otherwise>
+                                                                                       </xsl:choose>
+                                                                               </tr>
+                                                                               <xsl:for-each select=".//testcase">
+                                                                                       <xsl:sort select="@id" />
+                                                                                       <tr>
+                                                                                               <td>
+                                                                                                       <div
+                                                                                                               style="background-color:#F5DEB3;border:1px solid black;display:none;">
+                                                                                                               <xsl:attribute name="id"><xsl:value-of
+                                                                                                                       select="@id" /></xsl:attribute>
+                                                                                                               <p>
+                                                                                                                       <xsl:for-each select="./description/steps//step">
+                                                                                                                               <xsl:sort select="@order" />
+                                                                                                                               <B>
+                                                                                                                                       Step
+                                                                                                                                       <xsl:value-of select="@order" />
+                                                                                                                                       :
+                                                                                                                               </B>
+                                                                                                                               <br />
+                                                                                                                               <xsl:value-of select=".//step_desc" />
+                                                                                                                               <br />
+                                                                                                                               <B>Expected:</B>
+                                                                                                                               <xsl:value-of select=".//expected" />
+                                                                                                                               <br />
+                                                                                                                       </xsl:for-each>
+                                                                                                               </p>
+                                                                                                               <p>
+                                                                                                                       <br />
+                                                                                                                       <B>
+                                                                                                                               Entry:
+                                                                                                                               <br />
+                                                                                                                       </B>
+                                                                                                                       <xsl:value-of select="./description//test_script_entry" />
+                                                                                                                       <br />
+                                                                                                               </p>
+                                                                                                       </div>
+                                                                                                       <a href="#" class="test_case_popup">
+                                                                                                               <xsl:attribute name="id"><xsl:value-of
+                                                                                                                       select="@id" /></xsl:attribute>
+                                                                                                               <xsl:value-of select="@id" />
+                                                                                                       </a>
+                                                                                               </td>
+                                                                                               <td>
+                                                                                                       <xsl:value-of select="@purpose" />
+                                                                                               </td>
+
+                                                                                               <xsl:choose>
+                                                                                                       <xsl:when test="@result">
+                                                                                                               <xsl:if test="@result = 'FAIL'">
+                                                                                                                       <td class="red_rate">
+                                                                                                                               <xsl:value-of select="@result" />
+                                                                                                                       </td>
+                                                                                                               </xsl:if>
+                                                                                                               <xsl:if test="@result = 'PASS'">
+                                                                                                                       <td class="green_rate">
+                                                                                                                               <xsl:value-of select="@result" />
+                                                                                                                       </td>
+                                                                                                               </xsl:if>
+                                                                                                               <xsl:if test="@result = 'BLOCK' ">
+                                                                                                                       <td class="orange_rate">
+                                                                                                                               BLOCK
+                                                                                                                       </td>
+                                                                                                               </xsl:if>
+                                                                                                               <xsl:if
+                                                                                                                       test="@result != 'BLOCK' and @result != 'FAIL' and @result != 'PASS' ">
+                                                                                                                       <td class="gray_rate">
+                                                                                                                               Not Run
+                                                                                                                       </td>
+                                                                                                               </xsl:if>
+                                                                                                       </xsl:when>
+                                                                                                       <xsl:otherwise>
+                                                                                                               <td>
+
+                                                                                                               </td>
+                                                                                                       </xsl:otherwise>
+                                                                                               </xsl:choose>
+                                                                                               <td>
+                                                                                                       <xsl:call-template name="br-replace">
+                                                                                                               <xsl:with-param name="word"
+                                                                                                                       select=".//result_info/stdout" />
+                                                                                                       </xsl:call-template>
+                                                                                                       <xsl:if test=".//result_info/stdout = ''">
+                                                                                                               N/A
+                                                                                                       </xsl:if>
+                                                                                               </td>
+                                                                                       </tr>
+                                                                               </xsl:for-each>
+                                                                       </xsl:for-each>
+                                                               </table>
+                                                       </xsl:for-each>
+                                               </div>
+                                               <div id="see_fail" style="display:none;">
+                                                       <xsl:for-each select="test_definition/suite">
+                                                               <xsl:sort select="@name" />
+                                                               <div id="suite_title">
+                                                                       <h2>
+                                                                               Test Suite:
+                                                                               <xsl:value-of select="@name" />
+                                                                               (Failed only)
+                                                                       </h2>
+                                                                       <a>
+                                                                               <xsl:attribute name="name">
+                                                                     <xsl:value-of
+                                                                                       select="@name" />
+                                                                  </xsl:attribute>
+                                                                       </a>
+                                                               </div>
+                                                               <table>
+                                                                       <tr>
+                                                                               <th>Case_ID</th>
+                                                                               <th>Purpose</th>
+                                                                               <th>Result</th>
+                                                                               <th>Stdout</th>
+                                                                       </tr>
+                                                                       <xsl:for-each select=".//set">
+                                                                               <xsl:sort select="@name" />
+                                                                               <tr>
+                                                                                       <xsl:choose>
+                                                                                               <xsl:when test="@name">
+                                                                                                       <td colspan="3">
+                                                                                                               <h3>
+                                                                                                                       Test Set:
+                                                                                                                       <xsl:value-of select="@name" />
+                                                                                                               </h3>
+                                                                                                       </td>
+                                                                                                       <td colspan="1">
+                                                                                                               <h4>
+                                                                                                                       <a>
+                                                                                                                               <xsl:attribute name="href"><xsl:value-of
+                                                                                                                                       select="@set_debug_msg" /></xsl:attribute>
+                                                                                                                               dlog
+                                                                                                                       </a>
+                                                                                                               </h4>
+                                                                                                       </td>
+                                                                                               </xsl:when>
+                                                                                               <xsl:otherwise>
+                                                                                                       <td colspan="4">
+                                                                                                               <h3>
+                                                                                                                       Test Set:
+                                                                                                                       <xsl:value-of select="@name" />
+                                                                                                               </h3>
+                                                                                                       </td>
+                                                                                               </xsl:otherwise>
+                                                                                       </xsl:choose>
+                                                                               </tr>
+                                                                               <xsl:for-each select=".//testcase[@result='FAIL']">
+                                                                                       <xsl:sort select="@id" />
+                                                                                       <tr>
+                                                                                               <td>
+                                                                                                       <div
+                                                                                                               style="background-color:#F5DEB3;border:1px solid black;display:none;">
+                                                                                                               <xsl:attribute name="id">fail_<xsl:value-of
+                                                                                                                       select="@id" /></xsl:attribute>
+                                                                                                               <p>
+                                                                                                                       <xsl:for-each select="./description/steps//step">
+                                                                                                                               <xsl:sort select="@order" />
+                                                                                                                               <B>
+                                                                                                                                       Step
+                                                                                                                                       <xsl:value-of select="@order" />
+                                                                                                                                       :
+                                                                                                                               </B>
+                                                                                                                               <br />
+                                                                                                                               <xsl:value-of select=".//step_desc" />
+                                                                                                                               <br />
+                                                                                                                               <B>Expected:</B>
+                                                                                                                               <xsl:value-of select=".//expected" />
+                                                                                                                               <br />
+                                                                                                                       </xsl:for-each>
+                                                                                                               </p>
+                                                                                                               <p>
+                                                                                                                       <br />
+                                                                                                                       <B>
+                                                                                                                               Entry:
+                                                                                                                               <br />
+                                                                                                                       </B>
+                                                                                                                       <xsl:value-of select="./description//test_script_entry" />
+                                                                                                                       <br />
+                                                                                                               </p>
+                                                                                                       </div>
+                                                                                                       <a href="#" class="test_case_popup">
+                                                                                                               <xsl:attribute name="id">fail_<xsl:value-of
+                                                                                                                       select="@id" /></xsl:attribute>
+                                                                                                               <xsl:value-of select="@id" />
+                                                                                                       </a>
+                                                                                               </td>
+                                                                                               <td>
+                                                                                                       <xsl:value-of select="@purpose" />
+                                                                                               </td>
+
+                                                                                               <td class="red_rate">
+                                                                                                       <xsl:value-of select="@result" />
+                                                                                               </td>
+                                                                                               <td>
+                                                                                                       <xsl:call-template name="br-replace">
+                                                                                                               <xsl:with-param name="word"
+                                                                                                                       select=".//result_info/stdout" />
+                                                                                                       </xsl:call-template>
+                                                                                                       <xsl:if test=".//result_info/stdout = ''">
+                                                                                                               N/A
+                                                                                                       </xsl:if>
+                                                                                               </td>
+                                                                                       </tr>
+                                                                               </xsl:for-each>
+                                                                       </xsl:for-each>
+                                                               </table>
+                                                       </xsl:for-each>
+                                               </div>
+                                               <div id="see_block" style="display:none;">
+                                                       <xsl:for-each select="test_definition/suite">
+                                                               <xsl:sort select="@name" />
+                                                               <div id="suite_title">
+                                                                       <h2>
+                                                                               Test Suite:
+                                                                               <xsl:value-of select="@name" />
+                                                                               (Blocked Only)
+                                                                       </h2>
+                                                                       <a>
+                                                                               <xsl:attribute name="name">
+                                                                     <xsl:value-of
+                                                                                       select="@name" />
+                                                                  </xsl:attribute>
+                                                                       </a>
+                                                               </div>
+                                                               <table>
+                                                                       <tr>
+                                                                               <th>Case_ID</th>
+                                                                               <th>Purpose</th>
+                                                                               <th>Result</th>
+                                                                               <th>Stdout</th>
+                                                                       </tr>
+                                                                       <xsl:for-each select=".//set">
+                                                                               <xsl:sort select="@name" />
+                                                                               <tr>
+                                                                                       <xsl:choose>
+                                                                                               <xsl:when test="@name">
+                                                                                                       <td colspan="3">
+                                                                                                               <h3>
+                                                                                                                       Test Set:
+                                                                                                                       <xsl:value-of select="@name" />
+                                                                                                               </h3>
+                                                                                                       </td>
+                                                                                                       <td colspan="1">
+                                                                                                               <h4>
+                                                                                                                       <a>
+                                                                                                                               <xsl:attribute name="href"><xsl:value-of
+                                                                                                                                       select="@set_debug_msg" /></xsl:attribute>
+                                                                                                                               dlog
+                                                                                                                       </a>
+                                                                                                               </h4>
+                                                                                                       </td>
+                                                                                               </xsl:when>
+                                                                                               <xsl:otherwise>
+                                                                                                       <td colspan="4">
+                                                                                                               <h3>
+                                                                                                                       Test Set:
+                                                                                                                       <xsl:value-of select="@name" />
+                                                                                                               </h3>
+                                                                                                       </td>
+                                                                                               </xsl:otherwise>
+                                                                                       </xsl:choose>
+                                                                               </tr>
+                                                                               <xsl:for-each select=".//testcase[@result='BLOCK']">
+                                                                                       <xsl:sort select="@id" />
+                                                                                       <tr>
+                                                                                               <td>
+                                                                                                       <div
+                                                                                                               style="background-color:#F5DEB3;border:1px solid black;display:none;">
+                                                                                                               <xsl:attribute name="id">block_<xsl:value-of
+                                                                                                                       select="@id" /></xsl:attribute>
+                                                                                                               <p>
+                                                                                                                       <xsl:for-each select="./description/steps//step">
+                                                                                                                               <xsl:sort select="@order" />
+                                                                                                                               <B>
+                                                                                                                                       Step
+                                                                                                                                       <xsl:value-of select="@order" />
+                                                                                                                                       :
+                                                                                                                               </B>
+                                                                                                                               <br />
+                                                                                                                               <xsl:value-of select=".//step_desc" />
+                                                                                                                               <br />
+                                                                                                                               <B>Expected:</B>
+                                                                                                                               <xsl:value-of select=".//expected" />
+                                                                                                                               <br />
+                                                                                                                       </xsl:for-each>
+                                                                                                               </p>
+                                                                                                               <p>
+                                                                                                                       <br />
+                                                                                                                       <B>
+                                                                                                                               Entry:
+                                                                                                                               <br />
+                                                                                                                       </B>
+                                                                                                                       <xsl:value-of select="./description//test_script_entry" />
+                                                                                                                       <br />
+                                                                                                               </p>
+                                                                                                       </div>
+                                                                                                       <a href="#" class="test_case_popup">
+                                                                                                               <xsl:attribute name="id">block_<xsl:value-of
+                                                                                                                       select="@id" /></xsl:attribute>
+                                                                                                               <xsl:value-of select="@id" />
+                                                                                                       </a>
+                                                                                               </td>
+                                                                                               <td>
+                                                                                                       <xsl:value-of select="@purpose" />
+                                                                                               </td>
+
+                                                                                               <td class="orange_rate">
+                                                                                                       <xsl:value-of select="@result" />
+                                                                                               </td>
+                                                                                               <td>
+                                                                                                       <xsl:call-template name="br-replace">
+                                                                                                               <xsl:with-param name="word"
+                                                                                                                       select=".//result_info/stdout" />
+                                                                                                       </xsl:call-template>
+                                                                                                       <xsl:if test=".//result_info/stdout = ''">
+                                                                                                               N/A
+                                                                                                       </xsl:if>
+                                                                                               </td>
+                                                                                       </tr>
+                                                                               </xsl:for-each>
+                                                                       </xsl:for-each>
+                                                               </table>
+                                                       </xsl:for-each>
+                                               </div>
+                                               <div id="see_na" style="display:none;">
+                                                       <xsl:for-each select="test_definition/suite">
+                                                               <xsl:sort select="@name" />
+                                                               <div id="suite_title">
+                                                                       <h2>
+                                                                               Test Suite:
+                                                                               <xsl:value-of select="@name" />
+                                                                               (Not executed Only)
+                                                                       </h2>
+                                                                       <a>
+                                                                               <xsl:attribute name="name">
+                                                                     <xsl:value-of
+                                                                                       select="@name" />
+                                                                  </xsl:attribute>
+                                                                       </a>
+                                                               </div>
+                                                               <table>
+                                                                       <tr>
+                                                                               <th>Case_ID</th>
+                                                                               <th>Purpose</th>
+                                                                               <th>Result</th>
+                                                                               <th>Stdout</th>
+                                                                       </tr>
+                                                                       <xsl:for-each select=".//set">
+                                                                               <xsl:sort select="@name" />
+                                                                               <tr>
+                                                                                       <xsl:choose>
+                                                                                               <xsl:when test="@name">
+                                                                                                       <td colspan="3">
+                                                                                                               <h3>
+                                                                                                                       Test Set:
+                                                                                                                       <xsl:value-of select="@name" />
+                                                                                                               </h3>
+                                                                                                       </td>
+                                                                                                       <td colspan="1">
+                                                                                                               <h4>
+                                                                                                                       <a>
+                                                                                                                               <xsl:attribute name="href"><xsl:value-of
+                                                                                                                                       select="@set_debug_msg" /></xsl:attribute>
+                                                                                                                               dlog
+                                                                                                                       </a>
+                                                                                                               </h4>
+                                                                                                       </td>
+                                                                                               </xsl:when>
+                                                                                               <xsl:otherwise>
+                                                                                                       <td colspan="4">
+                                                                                                               <h3>
+                                                                                                                       Test Set:
+                                                                                                                       <xsl:value-of select="@name" />
+                                                                                                               </h3>
+                                                                                                       </td>
+                                                                                               </xsl:otherwise>
+                                                                                       </xsl:choose>
+                                                                               </tr>
+                                                                               <xsl:for-each select=".//testcase[@result='N/A']">
+                                                                                       <xsl:sort select="@id" />
+                                                                                       <tr>
+                                                                                               <td>
+                                                                                                       <div
+                                                                                                               style="background-color:#F5DEB3;border:1px solid black;display:none;">
+                                                                                                               <xsl:attribute name="id">na_<xsl:value-of
+                                                                                                                       select="@id" /></xsl:attribute>
+                                                                                                               <p>
+                                                                                                                       <xsl:for-each select="./description/steps//step">
+                                                                                                                               <xsl:sort select="@order" />
+                                                                                                                               <B>
+                                                                                                                                       Step
+                                                                                                                                       <xsl:value-of select="@order" />
+                                                                                                                                       :
+                                                                                                                               </B>
+                                                                                                                               <br />
+                                                                                                                               <xsl:value-of select=".//step_desc" />
+                                                                                                                               <br />
+                                                                                                                               <B>Expected:</B>
+                                                                                                                               <xsl:value-of select=".//expected" />
+                                                                                                                               <br />
+                                                                                                                       </xsl:for-each>
+                                                                                                               </p>
+                                                                                                               <p>
+                                                                                                                       <br />
+                                                                                                                       <B>
+                                                                                                                               Entry:
+                                                                                                                               <br />
+                                                                                                                       </B>
+                                                                                                                       <xsl:value-of select="./description//test_script_entry" />
+                                                                                                                       <br />
+                                                                                                               </p>
+                                                                                                       </div>
+                                                                                                       <a href="#" class="test_case_popup">
+                                                                                                               <xsl:attribute name="id">na_<xsl:value-of
+                                                                                                                       select="@id" /></xsl:attribute>
+                                                                                                               <xsl:value-of select="@id" />
+                                                                                                       </a>
+                                                                                               </td>
+                                                                                               <td>
+                                                                                                       <xsl:value-of select="@purpose" />
+                                                                                               </td>
+
+                                                                                               <td class="gray_rate">
+                                                                                                       <xsl:value-of select="@result" />
+                                                                                               </td>
+                                                                                               <td>
+                                                                                                       <xsl:call-template name="br-replace">
+                                                                                                               <xsl:with-param name="word"
+                                                                                                                       select=".//result_info/stdout" />
+                                                                                                       </xsl:call-template>
+                                                                                                       <xsl:if test=".//result_info/stdout = ''">
+                                                                                                               N/A
+                                                                                                       </xsl:if>
+                                                                                               </td>
+                                                                                       </tr>
+                                                                               </xsl:for-each>
+                                                                       </xsl:for-each>
+                                                               </table>
+                                                       </xsl:for-each>
+                                               </div>
+                                       </div>
+                               </div>
+                               <div id="goTopBtn">
+                                       <img border="0" src="./style/back_top.png" />
+                               </div>
+                               <script type="text/javascript" src="./style/application.js" />
+                               <script language="javascript" type="text/javascript">
+                                       $(document).ready(function(){
+                                       goTopEx();
+                                       });
+                               </script>
+                       </body>
+               </html>
+       </xsl:template>
+       <xsl:template name="br-replace">
+               <xsl:param name="word" />
+               <xsl:variable name="cr">
+                       <xsl:text>\n</xsl:text>
+               </xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="contains($word,$cr)">
+                               <xsl:value-of select="substring-before($word,$cr)" />
+                               <br />
+                               <xsl:call-template name="br-replace">
+                                       <xsl:with-param name="word" select="substring-after($word,$cr)" />
+                               </xsl:call-template>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <xsl:value-of select="$word" />
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+</xsl:stylesheet>
diff --git a/style/tests.css b/style/tests.css
new file mode 100644 (file)
index 0000000..487bca0
--- /dev/null
@@ -0,0 +1,195 @@
+@charset "UTF-8";\r
+/* CSS Document */\r
+#testcasepage div,#testcasepage h1,#testcasepage p,#testcasepage table,#testcasepage tr,#testcasepage th,#testcasepage td\r
+       {\r
+       margin: 0;\r
+       padding: 0;\r
+       border: 0;\r
+       font-weight: inherit;\r
+       font-style: inherit;\r
+       font-size: 0.96em;\r
+       font-family: arial;\r
+       vertical-align: baseline;\r
+}\r
+\r
+#title td, #btc td{\r
+       margin: 0;\r
+       padding: 0;\r
+       border: 0;\r
+       font-weight: inherit;\r
+       font-style: inherit;\r
+       font-size: 0.96em;\r
+       font-family: arial;\r
+       vertical-align: baseline;\r
+}\r
+\r
+td.Ratio {\r
+       text-align: left;\r
+       font-weight: normal;\r
+       padding: 4px 10px 4px 5px;\r
+       vertical-align: middle;\r
+}\r
+\r
+th.Ratio {\r
+       width: 400px;\r
+}\r
+\r
+#testcasepage p {\r
+       text-align: left;\r
+}\r
+\r
+#suite_title {\r
+       text-align: left;\r
+}\r
+\r
+#btc {\r
+       text-align: right;\r
+}\r
+\r
+#btc table {\r
+       position: absolute;\r
+       right: 0px;\r
+       width: 600px;\r
+}\r
+\r
+#testcasepage table {\r
+       border-collapse: separate;\r
+       border-spacing: 0;\r
+       margin-bottom: 1.4em;\r
+       vertical-align: middle;\r
+}\r
+\r
+#testcasepage th,#testcasepage td {\r
+       text-align: left;\r
+       font-weight: normal;\r
+       padding: 4px 10px 4px 5px;\r
+       vertical-align: middle;\r
+}\r
+\r
+#cases table {\r
+       width: 101%;\r
+}\r
+\r
+#cases td {\r
+       border-left: 0px;\r
+       font-weight: normal;\r
+       border-bottom: 0px;\r
+}\r
+\r
+#suite_summary table {\r
+       width: 100%;\r
+}\r
+\r
+\r
+#overview table {\r
+       width: 101%;\r
+}\r
+\r
+#overview table, #overview td, #overview tr {\r
+       border-left: none;\r
+       border-bottom: none;\r
+       border-right: none;\r
+       vertical-align: top;\r
+}\r
+\r
+#overview td{\r
+       width: 50%;\r
+}\r
+\r
+#capability table {\r
+       width: 50%;\r
+}\r
+\r
+#fail_cases table {\r
+       width: 101%;\r
+}\r
+\r
+#title table {\r
+       width: 101%;\r
+}\r
+\r
+#device table {\r
+       width: 100%;\r
+}\r
+\r
+#summary table {\r
+       width: 100%;\r
+}\r
+\r
+#testcasepage th {\r
+       border-bottom: 1px solid #000;\r
+       background-color: #AAAAAA;\r
+       border-left: 1px solid #000;\r
+       border-top: 1px solid #000;\r
+       color: #000;\r
+       font-weight: bold;\r
+       vertical-align: bottom;\r
+}\r
+\r
+#summary th:last-child,#summary td:last-child, #device th:last-child,#device td:last-child, #suite_summary th:last-child,#suite_summary td:last-child,#cases th:last-child,#cases td:last-child,#capability th:last-child,#capability td:last-child {\r
+       border-right: 1px solid #000;\r
+}\r
+\r
+#testcasepage td {\r
+       font-weight: normal;\r
+}\r
+\r
+#summary td, #device td, #capability td, #suite_summary td, #cases td{\r
+       border-left: 1px solid;\r
+       font-weight: normal;\r
+       border-bottom: 1px solid;\r
+}\r
+\r
+#testcasepage td.yellow_rate {\r
+       background-color: #ffcc00;\r
+}\r
+\r
+#testcasepage td.green_rate {\r
+       background-color: #1E90FF;\r
+}\r
+\r
+#testcasepage td.dgreen_rate {\r
+       background-color: #339933;\r
+}\r
+\r
+#testcasepage td.red_rate {\r
+       background-color: #FF3333;\r
+}\r
+\r
+#testcasepage td.orange_rate {\r
+       background-color: #FFA500;\r
+}\r
+\r
+#testcasepage td.gray_rate {\r
+       background-color: #AAAAAA;\r
+}\r
+\r
+#title table,#title tr,#title td {\r
+       border-left: none;\r
+       border-bottom: none;\r
+       text-align: center;\r
+}\r
+\r
+#title td:last-child {\r
+       border-right: none;\r
+}\r
+\r
+#testcasepage h1 {\r
+       font-size: 2em;\r
+       font-family: Arial, sans-serif;\r
+       font-weight: bold;\r
+       line-height: 1;\r
+       color: #000;\r
+       margin-bottom: 0.75em;\r
+       padding-top: 0.25em;\r
+       font-weight: bold;\r
+}\r
+\r
+#goTopBtn {\r
+       right: 0px;\r
+       bottom: 0px;\r
+       position: fixed; +\r
+       position: absolute;\r
+       top: expression(parseInt(document.body.scrollTop)+document.body.clientHeight-40\r
+               );\r
+}\r
diff --git a/test/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.java b/test/org/tizen/tct/tool/mgr/device/DeviceCheckerTest.java
new file mode 100644 (file)
index 0000000..173dede
--- /dev/null
@@ -0,0 +1,24 @@
+package org.tizen.tct.tool.mgr.device;
+
+import java.io.IOException;
+
+import junit.framework.Assert;
+
+import org.junit.Test;
+import org.tizen.tct.tool.mgr.device.DeviceList;
+
+public class DeviceCheckerTest {
+
+       @Test
+       public void testCheckDevice() {
+               DeviceList list = null;
+               try {
+                       list = DeviceList.loadDeviceList();
+               } catch (IOException e) {
+                       e.printStackTrace();
+               }
+               Assert.assertNotNull(list);
+               Assert.assertTrue(list.isOnlyOneDevice());
+       }
+
+}
diff --git a/test/org/tizen/tct/tool/mgr/lite/SdbCommandTest.java b/test/org/tizen/tct/tool/mgr/lite/SdbCommandTest.java
new file mode 100644 (file)
index 0000000..fb06160
--- /dev/null
@@ -0,0 +1,74 @@
+package org.tizen.tct.tool.mgr.lite;
+
+import static org.junit.Assert.*;
+
+import java.io.File;
+import java.io.IOException;
+
+import junit.framework.Assert;
+
+import org.junit.Test;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.device.DeviceList;
+import org.tizen.tct.tool.mgr.lite.SdbCommand;
+
+public class SdbCommandTest {
+
+       public final static String DEVICE_TMP = "/rpm_folder";
+
+       public final static String LOCAL_TMP = "/home/shaofeng/tmp";
+
+       public final static String RPM_FILE = "tct-2dtransforms-css3-tests-2.2.8-1.noarch.rpm";
+
+       public final static String SUITE_NAME = "tct-2dtransforms-css3-tests";
+
+       @Test
+       public void testGetCapability() {
+               try {
+                       DeviceList list = DeviceList.loadDeviceList();
+                       Assert.assertTrue(list.isDeviceAvailable());
+                       Assert.assertTrue(list.isSelectedDeviceAvailable());
+                       SdbCommand.getCapabilityBack();
+               } catch (IOException e) {
+                       e.printStackTrace();
+                       fail("IOException is thrown");
+               }
+       }
+
+       @Test
+       public void testSdbPush() {
+               try {
+                       SdbCommand.sdbPush(Constants.SUITES_REPOSITORY + File.separator
+                                       + RPM_FILE, DEVICE_TMP);
+               } catch (IOException e) {
+                       e.printStackTrace();
+                       fail("IOException is thrown");
+               }
+
+       }
+
+       @Test
+       public void testSdbPull() {
+               try {
+                       SdbCommand.sdbPull(DEVICE_TMP + File.separator + RPM_FILE,
+                                       LOCAL_TMP);
+               } catch (IOException e) {
+                       e.printStackTrace();
+                       fail("IOException is thrown");
+               }
+               File file = new File(LOCAL_TMP + File.separator + RPM_FILE);
+               if (!file.exists()) {
+                       fail("Fail to pull the device file");
+               }
+       }
+
+       @Test
+       public void testSdbShell() {
+               try {
+                       SdbCommand.sdbShell("ls -al");
+               } catch (IOException e) {
+                       e.printStackTrace();
+                       fail("IOException is thrown");
+               }
+       }
+}
diff --git a/test/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.java b/test/org/tizen/tct/tool/mgr/model/SingleTctPlanListTest.java
new file mode 100644 (file)
index 0000000..7f85436
--- /dev/null
@@ -0,0 +1,23 @@
+package org.tizen.tct.tool.mgr.model;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.tizen.tct.tool.mgr.Constants;
+import org.tizen.tct.tool.mgr.model.plan.SingleTctPlanList;
+
+public class SingleTctPlanListTest {
+
+       @Test
+       public void testGetInstance() {
+               SingleTctPlanList sl = SingleTctPlanList.getInstance();
+               Assert.assertNotNull("Plan list is not null", sl);
+       }
+
+       @Test
+       public void testLoadPlanList() {
+               SingleTctPlanList sl = SingleTctPlanList.getInstance();
+               sl.loadPlanList(Constants.PLAN_REPOSITORY);
+               
+       }
+
+}
diff --git a/test/org/tizen/tct/tool/mgr/model/TctTestPlanTest.java b/test/org/tizen/tct/tool/mgr/model/TctTestPlanTest.java
new file mode 100644 (file)
index 0000000..d6ea6af
--- /dev/null
@@ -0,0 +1,43 @@
+package org.tizen.tct.tool.mgr.model;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.bind.JAXBException;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.tizen.tct.tool.mgr.model.TctTestSuite;
+import org.tizen.tct.tool.mgr.model.plan.TctPlanFactory;
+import org.tizen.tct.tool.mgr.model.plan.TctTestPlan;
+
+public class TctTestPlanTest {
+
+       private static List<TctTestSuite> suites = new ArrayList<TctTestSuite>();
+
+       static {
+               for (int i = 0; i < 10; i++) {
+                       TctTestSuite suite = new TctTestSuite("tct-xxx-tests-" + i, 10 + i,
+                                       10, "tct-xxx-tests-" + i + ".rpm", "WRTLauncher", null);
+                       suites.add(suite);
+               }
+       }
+
+       @Test
+       public void testReadPlan() {
+               try {
+                       TctTestPlan plan = TctPlanFactory.readObjectFromXml("out.xml");
+                       Assert.assertTrue("Fail to read tmp plan",
+                                       "tmp".equals(plan.getName()));
+               } catch (IOException e) {
+                       e.printStackTrace();
+                       Assert.fail("Exception is thrown when reading XML, Message: "
+                                       + e.getMessage());
+               } catch (JAXBException e) {
+                       // TODO Auto-generated catch block
+                       e.printStackTrace();
+               }
+       }
+
+}
diff --git a/test/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.java b/test/org/tizen/tct/tool/mgr/model/editablesuite/SuiteManualResultTest.java
new file mode 100644 (file)
index 0000000..98b60f3
--- /dev/null
@@ -0,0 +1,18 @@
+package org.tizen.tct.tool.mgr.model.editablesuite;
+
+import junit.framework.Assert;
+
+import org.junit.Test;
+import org.tizen.tct.tool.mgr.model.editablesuite.SuiteManualResult;
+
+public class SuiteManualResultTest {
+
+       @Test
+       public void test() {
+               SuiteManualResult result = SuiteManualResult.loadSuiteManualResult(
+                               "/opt/tct/manager/result/2013-07-24-16:08:04-475",
+                               "tct-animations-css3-tests");
+               Assert.assertNotNull(result);
+       }
+
+}