[SDC-29] rebase continue work to align source
[sdc.git] / ui-ci / src / main / java / org / openecomp / sdc / ci / tests / execute / setup / WindowTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.ci.tests.execute.setup;
22
23 import java.io.File;
24
25 import org.openecomp.sdc.be.model.User;
26
27 public class WindowTest {
28         
29         public WindowTest(){
30                 refreshAttempts = 0;
31                 previousRole = "";
32                 addedValueFromDataProvider = null;
33                 try {
34                         downloadDirectory = DriverFactory.getDriverFirefoxProfile().getStringPreference("browser.download.dir", null) + File.separator;
35                 } catch (Exception e) {
36                         e.printStackTrace();
37                 }
38         }
39         
40         private int refreshAttempts;
41         private String previousRole;
42         private User user;
43         private String addedValueFromDataProvider;
44         private String downloadDirectory;
45         
46         public int getRefreshAttempts() {
47                 return refreshAttempts;
48         }
49         public void setRefreshAttempts(int refreshAttempts) {
50                 this.refreshAttempts = refreshAttempts;
51         }
52         public String getPreviousRole() {
53                 return previousRole;
54         }
55         public void setPreviousRole(String previousRole) {
56                 this.previousRole = previousRole;
57         }
58         public User getUser() {
59                 return user;
60         }
61         public void setUser(User user) {
62                 this.user = user;
63         }
64         public synchronized String getAddedValueFromDataProvider() {
65                 return addedValueFromDataProvider;
66         }
67         public synchronized void setAddedValueFromDataProvider(String addedValueFromDataProvider) {
68                 this.addedValueFromDataProvider = addedValueFromDataProvider;
69         }
70         public String getDownloadDirectory() {
71                 return downloadDirectory;
72         }
73         public void setDownloadDirectory(String downloadDirectory) {
74                 this.downloadDirectory = downloadDirectory;
75         }
76
77 }