-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
215 lines (204 loc) · 9.77 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<html>
<head>
<title>Dakiya</title>
<link rel="stylesheet" href="css/material-icon-fonts.css" >
<link rel="stylesheet" href="css/materialize.min.css">
<link rel="stylesheet" href="css/ribbons.css">
<link rel="stylesheet" href="css/prism.css" />
<style>
#fileDisplayArea {
margin-top: 2em;
width: 100%;
overflow-x: auto;
}
h1 {
font-family: monospace;
}
.modal {
max-height: 88%;
width: 75%
}
.switch label input[type=checkbox]:checked+.lever:after, .switch label input[type=checkbox]:checked+.lever {
background-color: #ff9800;
}
</style>
</head>
<body>
<div id="app">
<!-- Navbar goes here -->
<!-- Page Layout here -->
<div class="row">
<div class="col s12 m4 l3"> <!-- Note that "m4 l3" was added -->
<!-- Grey navigation panel -->
<p style="font-size:9px">
</p>
<div class="row">
<div class="col s12 orange darken-2 lighten-1">
<center><h1 class="bold white-text">Dakiya</h1></center>
<h6><center class="light small white-text" style="font-style:italic">collects sorts and delivers <strike>mail</strike><br><br>transformed Postman collections<br><center></h6>
</div>
</div>
<div class="file-field input-field">
<div class="btn-floating orange darken-2 black-text">
<i class="material-icons right black-text">attach_file</i>
<span>Collection</span>
<input id="add-postman-env" type="file" accept=".json">
</div>
<div class="file-path-wrapper">
<input id="add-postman-env" class="file-path validate" type="text" placeholder="Upload postman environment">
</div>
</div>
<div class="file-field input-field">
<div class="btn-floating orange darken-2 black-text">
<i class="material-icons right black-text">attach_file</i>
<span>Collection</span>
<input id="add-collection" type="file" accept=".json">
</div>
<div class="file-path-wrapper">
<input id="add-collection" class="file-path validate" type="text" placeholder="Upload postman collection *">
</div>
</div>
<!-- relative url switch -->
<div class="row">
<div class="switch col s12">
<p class="orange-text">Create Base Url</p>
<label>
Off
<input name='switch_Activate' type='hidden' value='0'>
<input id='relativeUrl' name='switch_Activate' type='checkbox' value='1'>
<span class="lever"></span>
On
</label><p>⤴
<small class="resize-note"> Choose this option if all the url's in the collection have same domain/hostname.</small></p>
</div>
</div>
<p></p>
<div class="input-field col s12">
<select id="toolSelection" class="bottom orange-text" onchange="convertPostman(this.value)">
<option value="" selected class="">Choose Tool</option>
<option value="artillery">Artillery</option>
<option value="gatling">Gatling</option>
<option value="loadrunner">Loadrunner (if legal, coming soon)</option>
</select>
<label>Tool Selection</label>
</div>
</div>
<div class="col s12 m8 l9"> <!-- Note that "m8 l9" was added -->
<div class="ribbon right green" style="z-index:10">
<a href="https://github.com/rupeshmore/dakiya">Star ★ me on GitHub</a>
</div>
<ul id="dakiyaHeader" class="collection" style="margin:margin-right:40px">
<div class="col s12" style="padding-left:75px;padding-right:75px">
<h1 class="header center orange-text">Dakiya<img src="img/dakiya.png" height="69" class="center" style="vertical-align:bottom;"></img></h1>
<div class="row center">
<h5 class="header col s12 bold">transforms <a href="https://www.getpostman.com" target="_blank">Postman</a> collections to load testing scripts.</h5>
</div>
<div class="row">
<div class="col m12 l6">
<ul class="light">
<li class="collection-header italic"><h5>Features</h5></li>
<li><span class="green-text">✔</span> <strong>Secure:</strong> All your collections are not uploaded to the server.</li><p></p>
<li><span class="green-text">✔</span> <strong>No Installation:</strong> Runs in the browser using javascript.<li><p></p>
<li><span class="green-text">✔</span> Add postman <mark class="orange">environment</mark> collection and dakiya will replace the variables in the script.<li><p></p>
<li><span class="green-text">✔</span> Supports postman collections with multiple folders.<li><p></p>
<li><span class="green-text">✔</span> Convert to <a href="https://artillery.io" target="_blank">Artillery</a> load testing scripts.<li><p></p>
<li><span class="green-text">✔</span> Convert to <a href="http://gatling.io/" target="_blank">Gatling</a> load testing scripts.<li><p></p>
<li><span class="green-text">✔</span> Convert to Load Runner scripts. (If legal, coming soon)<li><p></p>
</ul>
</div>
<div class="col m12 l6">
<ul class="light">
<li class="collection-header"><h5>Getting Started</h5></li>
<li><span>•</span> Upload Postman environment collection.(optional)</li><p></p>
<li><span>•</span> Upload Postman api collection.(mandatory)</li><p></p>
<li><span>•</span> Create full url or base url with following url's as relative to base.<br> (first url from postman collection is always the base url)</li> <small class="resize-note">tip: choose this option if all the url's in the collection have same domain/hostname.</small><p></p>
<li><span>•</span> Select the tool to convert.</li><p></p>
<li><span>•</span> Download the converted script.</li><p></p>
</ul>
</div>
</div>
<br>
<div class="row center">
<p class="light center">Note: Dakiya only supports PostMan collections v2 and upwards.</p>
</div>
</ul>
<div id="modal1" class="modal">
<div class="modal-content">
<h4>This feature is coming soon</h4>
</div>
<div class="modal-footer">
<a class=" modal-action modal-close waves-effect waves-green btn-flat">Cancel</a>
</div>
</div>
<div id="modal2" class="modal">
<div class="modal-content">
<h4>Upload a postman api collection</h4>
<!--<p>This feature is coming soon</p>-->
</div>
<div class="modal-footer">
<a class=" modal-action modal-close waves-effect waves-green btn-flat">Cancel</a>
</div>
</div>
<div id="modal3" class="modal">
<div class="modal-content">
<h4>Postman api collection is not v2 and above</h4>
<p>Go to Postman and export all your collections as v2.</p>
</div>
<div class="modal-footer">
<a class=" modal-action modal-close waves-effect waves-green btn-flat">Cancel</a>
</div>
</div>
<div id="artilleryModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Artillery script by Dakiya</h4>
</div>
<div class="modal-body">
<pre><code id="artilleryScriptDisplay" class="language-json"></code></pre>
</div>
</div>
<div class="modal-footer">
<a class=" modal-action modal-close waves-effect waves-green btn-flat">Cancel</a>
</div>
</div>
<div id="gatlingModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Gatling script by Dakiya</h4>
</div>
<div class="modal-body">
<pre><code id="gatlingScriptDisplay" class="language-scala"></code></pre>
</div>
</div>
<div class="modal-footer">
<a class=" modal-action modal-close waves-effect waves-green btn-flat">Cancel</a>
</div>
</div>
</div>
</div>
<footer class="page-footer white">
<div class="container center">
Made with ♥ in New Zealand | © Rupesh More | <a href=https://github.com/rupeshmore white-text>Contact</a>
<!--Made with ♥ by Rupesh More | <a href=https://github.com/rupeshmore white-text>Contact</a>-->
</div>
</footer>
</div>
<script src="js/jquery-2.2.3.min.js"></script>
<script src="js/materialize.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
Materialize.updateTextFields();
$('#toolSelection').material_select();
});
//Analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-85613401-2', 'auto');
ga('send', 'pageview');
</script>
<script src="js/dakiya.js"></script>
<script src="js/prism.js"></script>
</body>
<html>