Skip to content

Commit c91df1c

Browse files
authored
Add files via upload
1 parent 9ee241c commit c91df1c

File tree

14 files changed

+1542
-0
lines changed

14 files changed

+1542
-0
lines changed

test creator/Payloads.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//Mobile
2+
3+
{ "id":0, "name":"'+testDetailsJsonObj[x]["Test Name"]+'", "test_type":{ "id":0, "name":"Web" }, "division_id":'+testDetailsJsonObj[x]["Division ID"]+', "product_id":'+testDetailsJsonObj[x]["Product ID"]+', "status":{ "id":0, "name":"active" }, "start":"12/26/2017 1:20:00 PM", "monitor_version":{ "version_type":{ "id":1, "name":"Stable" }, "major_version_number":59 }, "monitor":{ "id":'+testDetailsJsonObj[x]["Monitor Type Id_Refer Appendix"]+', "name":"'+testDetailsJsonObj[x]["Monitor Name"]+'" }, "http_method":{ "id":0, "name":"Get" },"simulate": { "id": '+testDetailsJsonObj[x]["Mobile Simulator ID"]+', "name": "'+testDetailsJsonObj[x]["Mobile Simulator Name"]+'" }, "advanced_settings":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "test_url":"'+testDetailsJsonObj[x]["URL_Needs to be specified for Web Tests"]+'", "request_section":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "schedule_section":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "insight_section":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "alert_section":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "change_date":"2/28/2018 2:57:16 PM" }
4+
5+
6+
//Web[chrome,IE, Object, Eulated]
7+
{ "id":0, "name":"'+testDetailsJsonObj[x]["Test Name"]+'", "test_type":{ "id":0, "name":"Web" }, "division_id":'+testDetailsJsonObj[x]["Division ID"]+', "product_id":'+testDetailsJsonObj[x]["Product ID"]+', "status":{ "id":0, "name":"active" }, "start":"12/26/2017 1:20:00 PM", "monitor_version":{ "version_type":{ "id":1, "name":"Stable" }, "major_version_number":59 }, "monitor":{ "id":'+testDetailsJsonObj[x]["Monitor Type Id_Refer Appendix"]+', "name":"'+testDetailsJsonObj[x]["Monitor Name"]+'" }, "http_method":{ "id":0, "name":"Get" }, "advanced_settings":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "test_url":"'+testDetailsJsonObj[x]["URL_Needs to be specified for Web Tests"]+'", "request_section":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "schedule_section":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "insight_section":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "alert_section":{ "inheritance_type":{ "id":0, "name":"Inherit" } }, "change_date":"2/28/2018 2:57:16 PM" }
8+
9+
10+
11+
//Ping
12+
13+
{ "id": 0, "name": "'+testDetailsJsonObj[x]["Test Name"]+'", "test_type": { "id": 6, "name": "Ping" }, "division_id": '+testDetailsJsonObj[x]["Division ID"]+', "product_id": '+testDetailsJsonObj[x]["Product ID"]+', "description": "'+testDetailsJsonObj[x]["Description"]+'", "status": { "id": 0, "name": "Active" }, "start": "3/1/2018 1:19:00 AM", "monitor": { "id": '+testDetailsJsonObj[x]["Monitor ID"]+', "name": "'+testDetailsJsonObj[x]["Monitor Name"]+'" }, "enable_data_push_api": '+testDetailsJsonObj[x]["Enable Data Push"]+', "advanced_settings": { "inheritance_type": { "id": 0, "name": "Inherit" } }, "test_location": "'+testDetailsJsonObj[x]["Test Location"]+'", "schedule_section": { "inheritance_type": { "id": 0, "name": "Inherit" } }, "alert_section": { "inheritance_type": { "id": 0, "name": "Inherit" } }, "change_date": "3/1/2018 1:21:47 AM" }
14+
15+

test creator/Sample.html

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>Exl</title>
6+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
7+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
8+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
9+
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/jszip.js"></script>
10+
<style type="text/css">
11+
body,
12+
html {
13+
margin: 0;
14+
padding: 0;
15+
}
16+
17+
.header {
18+
background: #0B6CB3;
19+
position: relative;
20+
width: 100%;
21+
z-index: 100;
22+
display: block;
23+
}
24+
25+
.header-inner {
26+
padding: 0 21px;
27+
width: 80%;
28+
}
29+
30+
.logo img {
31+
max-height: 60px;
32+
}
33+
34+
img {
35+
max-width: 100%;
36+
vertical-align: middle;
37+
}
38+
39+
img {
40+
border-width: 0px;
41+
border-style: initial;
42+
border-color: initial;
43+
border-image: initial;
44+
}
45+
46+
input {
47+
line-height: 0;
48+
}
49+
50+
.progress {
51+
width: 50%;
52+
}
53+
54+
.main-container {
55+
margin-left: 100px;
56+
}
57+
</style>
58+
</head>
59+
60+
<body>
61+
<header class="header">
62+
<div class="header-inner clearfix">
63+
<div class="logo">
64+
<a title="Home" href="/hc/en-us">
65+
<img src="http://theme.zdassets.com/theme_assets/540700/5503c921e70bb0ed4660ab13454fb4eb0d0b06d2.png" alt="Logo">
66+
</a>
67+
</div>
68+
</div>
69+
</header>
70+
<br>
71+
<div class="main-container">
72+
<form>
73+
<table>
74+
<tr>
75+
<td>
76+
<label>Key : </label>
77+
</td>
78+
<td>
79+
<input type="text" name="Key">
80+
</td>
81+
</tr>
82+
<br>
83+
<tr>
84+
<td>
85+
<label>Secret : </label>
86+
</td>
87+
<td>
88+
<input type="text" name="Secret">
89+
</td>
90+
</tr>
91+
<tr>
92+
<td>
93+
<input type="file" name="uploadFile">
94+
</td>
95+
</tr>
96+
</table>
97+
<br>
98+
<div class="progress">
99+
<div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:50%">
100+
<span class="sr-only">50% Complete</span>
101+
</div>
102+
</div>
103+
<button type="submit" id="submitBtn"> Create </button>
104+
</form>
105+
</div>
106+
<script>
107+
var ExcelToJSON = function() {
108+
109+
this.parseExcel = function(file) {
110+
var reader = new FileReader();
111+
112+
reader.onload = function(e) {
113+
var data = e.target.result();
114+
var workbook = XLSX.read(data, {
115+
type: 'binary'
116+
});
117+
118+
workbook.SheetNames.forEach(function(sheetName) {
119+
// Here is your object
120+
var XL_row_object = XLSX.utils.sheet_to_row_object_array(workbook.Sheets[sheetName]);
121+
var json_object = JSON.stringify(XL_row_object);
122+
console.log(json_object);
123+
124+
})
125+
126+
};
127+
128+
reader.onerror = function(ex) {
129+
console.log(ex);
130+
};
131+
132+
reader.readAsBinaryString(input.file);
133+
};
134+
};
135+
console.log(ExcelToJSON);
136+
</script>
137+
</body>
138+
139+
</html>

test creator/css/style.css

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
body,
2+
html {
3+
margin: 0;
4+
padding: 0;
5+
font-family: 'Open Sans', sans-serif;
6+
padding-bottom: 30px;
7+
}
8+
9+
.header {
10+
background: #0B6CB3;
11+
position: relative;
12+
width: 100%;
13+
z-index: 100;
14+
display: block;
15+
}
16+
17+
.header-inner {
18+
padding: 0 21px;
19+
width: 80%;
20+
}
21+
22+
.logo img {
23+
max-height: 60px;
24+
}
25+
26+
img {
27+
max-width: 100%;
28+
vertical-align: middle;
29+
}
30+
31+
img {
32+
border-width: 0px;
33+
border-style: initial;
34+
border-color: initial;
35+
border-image: initial;
36+
}
37+
38+
h1,
39+
h2,
40+
h3,
41+
h4,
42+
h5,
43+
h6 {
44+
font-weight: 300;
45+
}
46+
47+
p {
48+
color: #999;
49+
}
50+
51+
strong {
52+
color: #333;
53+
}
54+
55+
.container {
56+
position: absolute;
57+
width: 1000px;
58+
height: auto;
59+
z-index: 15;
60+
top: 50%;
61+
left: 50%;
62+
margin: -400px -500px;
63+
margin-top: -15%;
64+
box-shadow: grey 0px 0px 10px;
65+
padding: 15px;
66+
}
67+
68+
.page-head-image {}
69+
70+
.page-head-image img {
71+
border-radius: 50%;
72+
}
73+
74+
#form-trabalhe {
75+
margin-top: 30px;
76+
text-align: left;
77+
}
78+
79+
label {
80+
font-weight: normal;
81+
margin-top: 15px;
82+
}
83+
84+
input {
85+
border: 2px solid #CCC !important;
86+
height: 35px;
87+
border-radius: 3px;
88+
max-width: 100%;
89+
}
90+
91+
.input-group-addon {
92+
border: 2px solid #CCC !important;
93+
border-right: 0px !important;
94+
}
95+
96+
.btn {
97+
border: 0;
98+
border-radius: 3px;
99+
margin-top: 20px;
100+
}
101+
102+
.form-group {
103+
margin-bottom: 0;
104+
text-align: left;
105+
}
106+
107+
.progress {
108+
margin-top: 3%;
109+
height: 35px;
110+
}
111+
112+
#code {
113+
margin-top: 2%;
114+
}
115+
116+
.fa.pull-right {
117+
margin-top: 50px;
118+
margin-right: 10px;
119+
}
120+
121+
.sfwa_footer_area {
122+
width: 100%;
123+
padding: 0 15px;
124+
margin-bottom: 15px;
125+
margin-top: 15px;
126+
position: fixed;
127+
bottom: 0;
128+
height: 30px;
129+
}
130+
131+
132+
133+
/*----------------*/
134+
135+
.wrapper {
136+
width: 70%;
137+
margin: auto;
138+
box-shadow: 0px 0px 3px #CCC;
139+
padding: 2%;
140+
}
141+
142+
.row {
143+
margin-bottom: 20px;
144+
}
145+
146+
.btn-primary {
147+
color: #2e6da4 !important;
148+
background-color: transparent !important;
149+
border: solid lightgrey 1px !important;
150+
border-width: 2px !important;
151+
border-radius: 0 !important;
152+
}
153+
154+
.btn-primary:hover {
155+
color: #FFF !important;
156+
background-color: #2e6da4 !important;
157+
border-color: #2e6da4 !important;
158+
}
159+
160+
input[type=text] {
161+
border-radius: 0;
162+
}
163+
164+
i {
165+
cursor: pointer;
166+
}
167+
168+
.downloadCSV {
169+
position: relative;
170+
}
171+
172+
.downloadCSV i {
173+
position: absolute !important;
174+
right: 0 !important;
175+
top: -39px !important;
176+
font-size: 18px !important;
177+
}

test creator/excels/template (1).xlsx

27.8 KB
Binary file not shown.

test creator/excels/template (2).xlsx

27.8 KB
Binary file not shown.

test creator/excels/template.xlsx

27.8 KB
Binary file not shown.

test creator/favicon.png

21.9 KB
Loading

0 commit comments

Comments
 (0)