2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END============================================
20 * ===================================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
24 app.factory('Datafactory', function () {
25 console.log("/////////Datafactory");
28 var checkBoxListActivitytestCase=[];
29 var generateTstMultipleFlag="";
30 var writeFileDataList=[];
31 var fileStreamWriterList=[];
32 var xmlValidatorList=[];
34 var runtimePythonScriptList=[];
35 var xmlValidatorDecisionLevel=[];
36 var runtimePythonScriptProjectLevelList=[];
37 var commonPythonScriptList=[];
38 var dbToolProjectLevelList=[];
39 var soapClientOption={};
40 var selectedTestCase={};
41 var executeResultset={};
42 var projectPreferenceInfo={};
43 var modelPreferenceInfo ={};
47 getDbDataList: function () {
48 console.log("getDbDataList");
51 setDbDataList: function (dbRequestList) {
52 console.log("setDbDataList");
53 dbDataList = dbRequestList;
55 getCheckBoxListActivitytestCase: function () {
56 console.log("getCheckBoxListActivitytestCase");
57 return checkBoxListActivitytestCase;
59 setCheckBoxListActivitytestCase: function (checkBoxListTestCase) {
60 console.log("setCheckBoxListActivitytestCase");
61 checkBoxListActivitytestCase = checkBoxListTestCase;
63 getGenerateTstMultipleFlag: function () {
64 console.log("getGenerateTstMultipleFlag");
65 return generateTstMultipleFlag;
67 setGenerateTstMultipleFlag: function (generateTstFlag) {
68 console.log("setGenerateTstMultipleFlag");
69 generateTstMultipleFlag = generateTstFlag;
71 getWriteFileDataList: function () {
72 console.log("getWriteFileDataList");
73 return writeFileDataList;
75 setWriteFileDataList: function (writeFileDataListData) {
76 console.log("setWriteFileDataList");
77 writeFileDataList = writeFileDataListData;
79 getFileStreamWriterList: function () {
80 console.log("getFileStreamWriterList");
81 return fileStreamWriterList;
83 setFileStreamWriterList: function (fileStreamWriterData) {
84 console.log("setFileStreamWriterList");
85 fileStreamWriterList = fileStreamWriterData;
87 getXmlValidatorList: function () {
88 console.log("getXmlValidatorList");
89 return xmlValidatorList;
91 setXmlValidatorList: function (xmlValidatorListData) {
92 console.log("setXmlValidatorList");
93 xmlValidatorList = xmlValidatorListData;
95 getXmlAsserter: function () {
96 console.log("getXmlAsserter");
99 setXmlAsserter: function (xmlAsserterData) {
100 console.log("setXmlAsserter");
101 xmlAsserter = xmlAsserterData;
103 getRuntimePythonScriptList: function () {
104 console.log("getRuntimePythonScriptList");
105 return runtimePythonScriptList;
107 setRuntimePythonScriptList: function (runtimePythonScriptListData) {
108 console.log("setRuntimePythonScriptList");
109 runtimePythonScriptList = runtimePythonScriptListData;
111 getXmlValidatorDecisionLevel: function(){
112 console.log("getXmlValidatorDecisionLevel");
113 return xmlValidatorDecisionLevel;
115 setXmlValidatorDecisionLevel:function(xmlValidatorDecisionLevelData){
116 console.log("setXmlValidatorDecisionLevel");
117 xmlValidatorDecisionLevel=xmlValidatorDecisionLevelData;
119 getRuntimePythonScriptProjectLevelList: function () {
120 console.log("getRuntimePythonScriptProjectLevelList");
121 return runtimePythonScriptProjectLevelList;
123 setRuntimePythonScriptProjectLevelList: function (runtimePythonScriptListData) {
124 console.log("setRuntimePythonScriptProjectLevelList");
125 runtimePythonScriptProjectLevelList = runtimePythonScriptListData;
128 getCommonPythonScriptList: function () {
129 console.log("getCommonPythonScriptList");
130 return commonPythonScriptList;
132 setCommonPythonScriptList: function (commonPythonScriptListData) {
133 console.log("setCommonPythonScriptList");
134 commonPythonScriptList = commonPythonScriptListData;
137 getDbToolProjectLevelList: function () {
138 console.log("getDbToolProjectLevelList");
139 return dbToolProjectLevelList;
141 setDbToolProjectLevelList: function (dbToolProjectLevelListData) {
142 console.log("setDbToolProjectLevelList");
143 dbToolProjectLevelList = dbToolProjectLevelListData;
145 getSoapClientOption: function () {
146 console.log("getSoapClientOption");
147 return soapClientOption;
149 setSoapClientOption: function (soapClientOptionData) {
150 console.log("setSoapClientOption");
151 soapClientOption = soapClientOptionData;
153 getSelectedTestCase: function () {
154 console.log("getSelectedTestCase");
155 return selectedTestCase;
157 setSelectedTestCase: function (selectedTestCaseData) {
158 console.log("setSelectedTestCase");
159 selectedTestCase = selectedTestCaseData;
162 getExecuteResultset: function () {
163 console.log("getExecuteResultset");
164 return executeResultset;
166 setExecuteResultset: function (executeResultsetData) {
167 console.log("setExecuteResultset");
168 executeResultset = executeResultsetData;
171 getProjectPreferenceInfo: function () {
172 console.log("getProjectPreferenceInfo");
173 return projectPreferenceInfo;
175 setProjectPreferenceInfo: function (projectPreferenceInfoData) {
176 console.log("setProjectPreferenceInfo");
177 projectPreferenceInfo = projectPreferenceInfoData;
180 getModelPreferenceInfo: function () {
181 console.log("getModelPreferenceInfo");
182 return modelPreferenceInfo;
184 setModelPreferenceInfo: function (modelPreferenceInfoData) {
185 console.log("setModelPreferenceInfo");
186 modelPreferenceInfo = modelPreferenceInfoData;