-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJSON+for+webSteps(intial+Draft).doc
More file actions
945 lines (913 loc) · 42.7 KB
/
JSON+for+webSteps(intial+Draft).doc
File metadata and controls
945 lines (913 loc) · 42.7 KB
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
Message-ID: <727034164.16639.1540845953956.JavaMail.confluence@ps2pr028231.express-scripts.com>
Subject: Exported From Confluence
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_16638_529963855.1540845953956"
------=_Part_16638_529963855.1540845953956
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/exported.html
<html xmlns:o=3D'urn:schemas-microsoft-com:office:office'
xmlns:w=3D'urn:schemas-microsoft-com:office:word'
xmlns:v=3D'urn:schemas-microsoft-com:vml'
xmlns=3D'urn:w3-org-ns:HTML'>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8=
">
<title>JSON for webSteps(intial Draft)</title>
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:TargetScreenSize>1024x640</o:TargetScreenSize>
<o:PixelsPerInch>72</o:PixelsPerInch>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>90</w:Zoom>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
<![endif]-->
<style>
<!--
@page Section1 {
size: 8.5in 11.0in;
margin: 1.0in;
mso-header-margin: .5in;
mso-footer-margin: .5in;
mso-paper-source: 0;
}
table {
border: solid 1px;
border-collapse: collapse;
}
table td, table th {
border: solid 1px;
padding: 5px;
}
td {
page-break-inside: avoid;
}
tr {
page-break-after: avoid;
}
div.Section1 {
page: Section1;
}
/* Confluence print stylesheet. Common to all themes for print medi=
a */
/* Full of !important until we improve batching for print CSS */
@media print {
#main {
padding-bottom: 1em !important; /* The default padding of 6em is to=
o much for printouts */
}
body {
font-family: Arial, Helvetica, FreeSans, sans-serif;
font-size: 10pt;
line-height: 1.2;
}
body, #full-height-container, #main, #page, #content, .has-personal-sid=
ebar #content {
background: #fff !important;
color: #000 !important;
border: 0 !important;
width: 100% !important;
height: auto !important;
min-height: auto !important;
margin: 0 !important;
padding: 0 !important;
display: block !important;
}
a, a:link, a:visited, a:focus, a:hover, a:active {
color: #000;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
font-family: Arial, Helvetica, FreeSans, sans-serif;
page-break-after: avoid;
}
pre {
font-family: Monaco, "Courier New", monospace;
}
#header,
.aui-header-inner,
#navigation,
#sidebar,
.sidebar,
#personal-info-sidebar,
.ia-fixed-sidebar,
.page-actions,
.navmenu,
.ajs-menu-bar,
.noprint,
.inline-control-link,
.inline-control-link a,
a.show-labels-editor,
.global-comment-actions,
.comment-actions,
.quick-comment-container,
#addcomment {
display: none !important;
}
/* CONF-28544 cannot print multiple pages in IE */
#splitter-content {
position: relative !important;
}
.comment .date::before {
content: none !important; /* remove middot for print view */
}
h1.pagetitle img {
height: auto;
width: auto;
}
.print-only {
display: block;
}
#footer {
position: relative !important; /* CONF-17506 Place the footer at en=
d of the content */
margin: 0;
padding: 0;
background: none;
clear: both;
}
#poweredby {
border-top: none;
background: none;
}
#poweredby li.print-only {
display: list-item;
font-style: italic;
}
#poweredby li.noprint {
display: none;
}
/* no width controls in print */
.wiki-content .table-wrap,
.wiki-content p,
.panel .codeContent,
.panel .codeContent pre,
.image-wrap {
overflow: visible !important;
}
/* TODO - should this work? */
#children-section,
#comments-section .comment,
#comments-section .comment .comment-body,
#comments-section .comment .comment-content,
#comments-section .comment p {
page-break-inside: avoid;
}
#page-children a {
text-decoration: none;
}
/**
hide twixies
the specificity here is a hack because print styles
are getting loaded before the base styles. */
#comments-section.pageSection .section-header,
#comments-section.pageSection .section-title,
#children-section.pageSection .section-header,
#children-section.pageSection .section-title,
.children-show-hide {
padding-left: 0;
margin-left: 0;
}
.children-show-hide.icon {
display: none;
}
/* personal sidebar */
.has-personal-sidebar #content {
margin-right: 0px;
}
.has-personal-sidebar #content .pageSection {
margin-right: 0px;
}
.no-print, .no-print * {
display: none !important;
}
}
-->
</style>
</head>
<body>
<h1>JSON for webSteps(intial Draft)</h1>
<div class=3D"Section1">
<div class=3D"table-wrap">
<table class=3D"wrapped relative-table confluenceTable" style=3D"width: 95.=
2%;">
<colgroup>
<col style=3D"width: 13.74%;">
<col style=3D"width: 31.33%;">
<col style=3D"width: 54.93%;">
</colgroup>
<tbody>
<tr>
<th class=3D"confluenceTh">Action</th>
<th class=3D"confluenceTh">JSON</th>
<th class=3D"confluenceTh">Comments</th>
</tr>
<tr>
<td class=3D"confluenceTd"><strong>navigate</strong></td>
<td class=3D"confluenceTd">
<div class=3D"content-wrapper">
<p class=3D"auto-cursor-target">{"navigate": {</p>
<p class=3D"auto-cursor-target">"url" : "xxx"</p>
<p class=3D"auto-cursor-target">}}</p>
</div></td>
<td class=3D"confluenceTd"><p>This will open the desired Url passed as a pa=
rameter </p><p>EZ: Should we combine launch and navigate as one step?<=
/p><p>Sharath: We have combined Launch & Navigate in Navigate itself.</=
p></td>
</tr>
<tr>
<td class=3D"confluenceTd"><p><strong>assert </strong></p><p> </=
p></td>
<td class=3D"confluenceTd"><p>{"assert" :{</p><p>"alert":"yes",</p><p>"sele=
ctBy":"id",</p><p>"elementID" :"workmix1",</p><p>"value":"xxxxxxxx",</p><p>=
"type":"datetime",</p><p>"format":"yyyy-MM-dd HH:mm:ss.S",</p><p>"list": fa=
lse,</p><p>"selected": true</p><p>"range":"0,10",</p><pre>"disabled": "YES"=
,</pre><p>"option" : "<valid values>",</p><p>"window" : "yes",</p><p>=
"exactMatch" : "true"</p><p>}</p><p><strong>Color Coded cells:</strong></p>=
<p> "assert": {</p><p> &nb=
sp; "selectBy": "xp=
ath",</p><p> =
"elementID": "//*[@class=3D'changed']",</p>=
<p> &n=
bsp; "value": "<expected value>"</p><p> =
}</p><p>&nb=
sp; }</p><p><strong>Web Element Assertion:</strong></p><p=
><span> </span>"assert": {=
<br> <span> </span><span>&=
nbsp; </span>"selectBy": "xpath"=
,<br> <span> </span><span>=
</span>"elementID":"//*[@=
name=3D'holdPayments']",<br> <span> &n=
bsp; </span><span> </=
span>"<strong>option</strong>": "<valid values>"<br><span>  =
; </span>}</p><p><strong>Web Table Ass=
ertion:</strong></p><p><strong> </strong> "ass=
ert": { "selectBy": "xpath",  =
; </p><p> "elementID": "//*[@id=3D'conte=
nt']/div/div[3]/div[2]/div[2]/div/div/table", =
</p><p> "value": "$dbresponse[].result[].RPT_=
ACCT_NAME", </p><p> &n=
bsp;"webTable": true, </p><p>  =
; "column": 1 &n=
bsp; </p><p> }</p><p><br></p><p><s=
trong>Row Count :</strong></p><p>"assert": {<br>"selectBy": "xpath",<br>"el=
ementID": "//table[@id=3D'_aorAgingnReportTable']/tbody/tr",<br> <strong>"r=
owCount" : "yes",</strong><br>"value": "${rowCount}"<br>}</p></td>
<td class=3D"confluenceTd"><p>Part of assertions story</p><p>This will asse=
rt the value against the webelement</p><p><strong>selectBy</strong> support=
following xpath, id, name, css, link</p><p>Alert messages can be validated=
by using keywords as</p><p><strong>"alert":"yes"</strong> this is optional=
can used only when validating the pop-up messages</p><p><strong>"type" : <=
/strong>this is optional introduced to accommodate asserting dynamic dates.=
When not passed defaults to "datetime".</p><p><strong>"format": </strong>t=
his is optional and this indicates the format of the actual value to be ass=
erted. When not passed it validates with the below formats</p><p>"MM/d=
d/yyyy", "MM.dd.yyyy", "MM-dd-yyyy", "yyyy/MM/dd", "yy/MM/dd", "yyyy.MM.dd"=
, "dd/MM/yyyy", "dd.MM.yyyy", "dd-MM-yyyy", "yyyy-MM-dd HH:mm:ss.S", "yyyy-=
MM-dd", "yy-MM-dd".</p><p><strong>"list" : </strong>Boolean value int=
roduced to assert drop down list values with any other list (Ex: web step d=
rop down values compared to DB response list). To compare as list this has =
to be set to true.</p><p><strong>"selected" :</strong> Boolean value introd=
uced to assert only selected value from list of values from the drop down o=
f all the elements with Xpath with DB response list.</p><pre>"disabled": th=
is is option can used if we need to validate web field is disabled or not</=
pre><p><strong>"range"</strong> : Range indicates the start index and end i=
ndex of the drop down values to be compared with DB separated by comma. It =
starts with 0 if we want to omit the drop down value Ex: "Select =
One" we can set the start index to 1 so that it will omit the first value (=
i.e.) "Select One" from the drop down and compare the rest with DB. </=
p><p><strong>Identify colored cells in a web page</strong>: Use the css cla=
ss of a particular color as the element ID value. The value of the colored =
cell is hard coded as the expected value.</p><p><strong>"option" </strong>:=
Validate if a web element (like <span>checkbox, text box, text area, list =
box, radio button etc</span>) is checked, unchecked, enabled, disabled, hid=
den, not displayed or any valid combination. <span> &n=
bsp; <span>  =
; </span><span> <=
/span><span> </span><span>&n=
bsp; </span><span> &nbs=
p; </span><span> =
</span><span> &n=
bsp;</span><span> </span><sp=
an> </span></span></p><p><strong>valid =
values:</strong> "enabled and checked", "enabled and unchecked", "disabled =
and checked", "disabled and unchecked", "enabled", "disabled", "checked", "=
unchecked", "hidden" for hidden elements and "notDisplayed" for elements th=
at are not displayed. <span> =
</span><span> &n=
bsp; </span><span> &nbs=
p; </span><span> =
</span><span> &n=
bsp; </span><span> &nbs=
p; </span><span> </span></p>=
<p><strong>invalid values: </strong>"enabled and disabled", "checked and un=
checked" or any invalid combination.</p><p>If we want to assert in a child =
window, we use keyword as</p><p><strong>"window":"yes"</strong></p><p>After=
closing the child window, use the following keyword to assert in the paren=
t window:</p><p><strong>"window":"no"</strong></p><p><span><strong>"exactMa=
tch" : "true"</strong></span></p><p>Use this keyword to perform an exact ma=
tch between the expected and actual values in an assert step.</p><p>Without=
the keyword, the existing behavior is retained.</p><p><strong>"elementID":=
</strong>For webtable assert the element Id should represent complete tabl=
e (not just thead/tbody).</p><p><strong>"webTable": </strong>It is used to =
assert the webtable with the DBtable. when you give webTable as true along =
with "column", it indicates that framewok has to assert the webta=
ble with the DBtable.</p><p><strong>"column": </strong>If you want to =
do assert on a particular column, we can make use of column attribute by pr=
oviding the column number on which column you want perform assert.</p><p><s=
trong>"rowCount": </strong>Check the number of rows in a table and assert i=
t against an expected row count value.</p></td>
</tr>
<tr>
<td class=3D"confluenceTd"><p><strong>click</strong></p></td>
<td class=3D"confluenceTd">
<div class=3D"content-wrapper">
<p>{"click":{</p>
<p>"window":"yes",</p>
<p>"selectBy":"id",</p>
<p>"elementID" :"workmix1"</p>
<p>}},</p>
<p><br></p>
<p>Mouse Hover:</p>
<p>{</p>
<p> "click": {</p>
<p> "mouseHover": "yes",</p>
<p> "selectBy": "id",</p>
<p> "elementID": "div_0,div_0_0"</p>
<p>}</p>
<p>}</p>
<p><br></p>
<p>Page Navigation(back, refresh and forward):</p>
<p>{</p>
<p> "click": {</p>
<p> "page": "back"</p>
<p>}</p>
<p>}</p>
<p><br></p>
<p>JavaScript Highlighter</p>
<div class=3D"WordSection1">
<p>{ &nbs=
p; </p>
<p> "click": { &n=
bsp; </p>
</div>
<p> "frame":"//*[@id=3D'servletBridgeIframe']",  =
; </p>
<p> "selectBy": "xpath", &nbs=
p; </p>
<p> "elementID": "//a[@title=3D'Documents']", &=
nbsp; </p>
<p> "highlight":false  =
; &=
nbsp; </p>
<p> } &nb=
sp;</p>
<p> },</p>
</div></td>
<td class=3D"confluenceTd"><p>This is used to do normal click operation on =
the webpage</p><p>If we want to click on a object in a child window then we=
use keyword as</p><p><strong>"window":"yes"</strong></p><p>After closing t=
he child window, use the following keyword to click a web element in the pa=
rent window:</p><p><strong>"window":"no"</strong></p><p>For, Doubleclick on=
a object,</p><p><strong>"doubleClick":"yes"</strong></p><p>For Mouse Hover=
functionality</p><p>Multiple =E2=80=98element ids=E2=80=99 has to be passe=
d from json to handle mouse hover.("div_0,div_0_0")</p><p><br></p><p>For Pa=
ge Navigation, specify a value for <strong>page</strong>. "back", "refresh"=
or "forward". Do not use <strong>page</strong> inside any other click acti=
ons.</p><p><br></p><p><strong>JavaScript Highlighter</strong>:</p><p>Someti=
mes because of this javascript highlighter the style of the element is chan=
ging and causing</p><p>disabling of the particular element. By making =
"highlight" to false , we can overcome this by not running</p><p>this javas=
cript highlighter. </p><p><br></p></td>
</tr>
<tr>
<td class=3D"confluenceTd"><p><strong>input </strong></p><p><br></p></td>
<td class=3D"confluenceTd"><p>{"input" : {</p><p>"frame" :"frame2",</p><p>"=
selectBy":"id",</p><p>"elementID":"racfid",</p><p>"value":"c75qa3"</p><p>}}=
</p></td>
<td class=3D"confluenceTd"><p> This is used as sendkey to write data o=
n the webpage </p><p>If we want to switch frame for input on object th=
en we use attribute</p><p><strong>"frame":"frameName"</strong></p><p>If we =
want to input value in a child window then we use keyword as</p><p><strong>=
"window":"yes"</strong></p><p>After closing the child window, use the follo=
wing keyword to input a value in the parent window:</p><p><strong>"window":=
"no"</strong></p><p>When the input is of type file upload please provide th=
e value filed with the path of the file in git as below</p><p> "value"=
:"PLB/upload/Valid PLBBulkUploadTemplate.xlsm"</p></td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"><strong>clear</strong></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>{"clear" : {</p><p>"frame" :"fr=
ame2",</p><p>"selectBy":"id",</p><p>"elementID":"racfid",</p><p>"value":"c7=
5qa3"</p><p>}}</p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>This is used as clear to clear =
data on the enabled text input elements</p><p>If we want to switch fra=
me for input on object then we use attribute</p><p><strong>"frame":"frameNa=
me"</strong></p><p>If we want to input value in a child window then we use =
keyword as</p><p><strong>"window":"yes"</strong></p><p>After closing the ch=
ild window, use the following keyword to input a value in the parent window=
:</p><p><strong>"window":"no"</strong></p></td>
</tr>
<tr>
<td class=3D"confluenceTd"><p><strong>select </strong></p><p><br></p></td>
<td class=3D"confluenceTd"><p>{"select":{</p><p>"selectBy":"xpath",</p><p>"=
elementID":"//*[@id=3D'rolesField']",</p><p>"value":"DC Reviewer"</p><p>}}<=
/p></td>
<td class=3D"confluenceTd"><p> This is used to select an item fr=
om the list</p><p>If we want to switch frame to select from the list object=
then we use attribute</p><p><strong>"frame":"frameName"</strong></p><p>If =
we want to select item from the list in a child window then we use keyword =
as</p><p><strong>"window":"yes"</strong></p><p>After closing the child wind=
ow, use the following keyword to select a value from a list box in the pare=
nt window:</p><p><strong>"window":"no"</strong></p></td>
</tr>
<tr>
<td class=3D"confluenceTd"><strong>alert </strong></td>
<td class=3D"confluenceTd"><p align=3D"LEFT">{"alert": {</p><p align=3D"LEF=
T">"<u>action</u>":"<u>OK</u>"</p><p>}</p><p align=3D"LEFT">{"alert": {</p>=
<p align=3D"LEFT">"<u>action</u>":"<u>enter</u>",</p><p align=3D"LEFT">"val=
ue":"Some Value"</p><p>}</p></td>
<td class=3D"confluenceTd"><p>This will support three types "OK", "Cancel"<=
/p><p><br></p><p>if we have to pass any value to the web dialog box, then w=
e use "Enter", along with value.</p><p><br></p><p><br></p></td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"><strong>browserclose</strong> =
;</td>
<td colspan=3D"1" class=3D"confluenceTd"><p> {"browserclose" :{"close"=
:"true"}}</p><p><span>{"browserclose" :{"closeAll":"true"}}</span></p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p><strong>close</strong> : This i=
s used to close the current window and switch to other window (if only one =
window is opened it will close all)</p><p><strong>closeAll : </strong>This =
is used to close all the windows opened.</p></td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"><strong> $ref</strong></td>
<td colspan=3D"1" class=3D"confluenceTd"><p> { =
"$ref":</p><p> {</p>=
<p> "label":"src/main/resources/fixtures/jagacy/data/webTestCommonFile=
One.json", "operator=
": "git",</p><p> "key=
name": "ec7352", </p><p> &nb=
sp; "value" : "DRV6z5p/y8yxGX9y9DYCSA=3D=3D",=
</p><p> &=
nbsp; "encoded": true }&nb=
sp; }</p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p> $ref is used to reference=
the common steps from a Json file in github.</p><p>By using $re=
f we can avoid re-writing repetitive steps in all the Json's.</p><p><b=
r></p><p><br></p><p><br></p></td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"><strong>getvalue</strong></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>{</p><p> "getValue": {</p=
><p> "selectBy": "xpath",</p><p> "eleme=
ntID": "html/body/table/tbody/tr/td[1]",</p><p> "value": =
"test_code"</p><p> "list":true,</p><p>"prefixToBeRemoved"=
:"Rule ID : ",<br>"suffixToBeRemoved":" : ",<br>"numericOnly":false</p><p>&=
nbsp; }</p><p>}</p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p> If the list is true, it w=
ill read the all options from dropdown and add those into a Array or list.<=
/p><p>prefixToBeRemoved: This is optional and should be used when you want =
to remove some leading string from the selected value.</p><p>suffixToBeRemo=
ved: <span>This is optional and should be used when you want to remove some=
trailing string from the selected value.</span></p><p><span>numbericOnly: =
By default is false, and should be used when you want to remove $ or , from=
the selected value. We can further add more characters to this.</span></p>=
</td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"><strong>fileDownloadAndValidate</s=
trong></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>{</p><p>"fileDownloadAndValidat=
e":{</p><p> "selectBy": "xpath",</p><p> =
"elementID": "//*[@id=3D'rolesField']"</p><p>  =
; "urlToFile": "http://someurl.com",</p><p> &n=
bsp; "columnsToValidate": "{ColumName1, $sum{ColumnName2}, Colum=
nName3, $columnMap{db column Name, excel Sheet column Name} }" or {all} or =
empty.</p><p> "dbResponse": "${dbresponse}",</p><p>=
}</p><p>}</p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>Download and Validate the file =
from application with the dbQuery Response</p><p>SelectBy and ElementID are=
the values for the export button which upon clicked downloads a file.</p><=
p>urlToFile: If the file needs to be downloaded from application export but=
ton,user have to provide url to that export button</p><p>dbResponse: respon=
se from the dbQuery</p><p>columnsToValidate: provide list of column names t=
o validate, can also validate the sum of all values in the cloumn by using =
<strong>Sum</strong> in-front of the columnname. Specify <strong>ALL</stron=
g> if all columns should be validated Or <strong>Do not Specify</strong> th=
is column user wants to check if file downloaded is successful. <strong>col=
umn Map</strong> will be used to map db column name with excel sheet header=
name in case the column names are large enough and suitable for using alia=
s in db Query, need to pass db column name and excel sheet header name.</p>=
</td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"><strong>processKey</strong></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>{</p><p> "processKey": {<=
/p><p> "keyName": "PAGE_DOWN",</p><p> "=
count": 2</p><p> }</p><p>}</p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>Process Key strokes like PAGE_U=
P, PAGE_DOWN, LEFT_ARROW, RIGHT_ARROW etc</p><p>Count is optional and must =
be integer.</p><p>keyName can be a combination of key strokes (short-cuts) =
for example: ALT+S or CONTROL+T</p><p><br></p>Note: If webpage has frames, =
frame switching has to be done before this step</td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"><strong><span style=3D"color: rgb(=
3,47,98);">cleanUpSteps</span></strong></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>"cleanUpSteps" : [<br>{<br>"cli=
ck": {<br>"selectBy": "xpath",<br>"elementID": "//*[contains(text(),'Sign o=
ut')]"<br>}<br>},<br>{<br>"browserclose": {<br>"Close": "true"<br>}<br>}<br=
>]</p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>The sample JSON is for CGS.</p>=
<p><span>Modify the clean up steps based on the xpath of the specific appli=
cation. </span></p></td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"> <strong>persistscreenshots</=
strong></td>
<td colspan=3D"1" class=3D"confluenceTd"><p> "browsersetup":</p><p>&nb=
sp;{</p><p> "platform": "saucelabs", </p><p>"browsername":=
"chrome", </p><p>"browserversion": "58",</p><p> "os": "Windows =
7", </p><p>"persistscreenshots": true</p><p>},</p></td>
<td colspan=3D"1" class=3D"confluenceTd">To persist the screenshots of web =
test cases running in sauce lab so that the screenshots are available even =
after 30 days (It will not be available in Sauce). "persistscree=
nshots" : true, saves the screenshots from sauce and make those avail=
able.</td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"> domExtract</td>
<td colspan=3D"1" class=3D"confluenceTd"><p> {<br> &n=
bsp;"domExtract": {<br> "selectBy": "xpath",<b=
r> "elementID": "//div[@class=3D'_contentArea =
_selected']//div[@class=3D'section _section']",<br> =
"filter": {<br> "label": "NO,Expir=
ation Date",<br> "a": "*",<br> &nbs=
p; "td": "-",<br>  =
;"dt": "*",<br> "th": "*",<br> &nbs=
p; "dd": "M59"</p><p> }=
,<br> "value": "domset2"<br> =
}<br> },</p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p>By using domExtract step we can=
extract the content of the form and populate the data into session.</p><p>=
elementID : need to give the base path of the form.</p><p>filter: To =
filter any specific html tag value.</p><p> ex=
: label": "NO" =E2=86=92 It will filter only the label tag which has v=
alue "NO" and remaining label values will be picked.</p><p> &nbs=
p; ex: label": "*" =E2=86=92 it will filter all the label tags =
in the form.</p><p><br></p><p>value : result will be populated into se=
ssions value as key</p></td>
</tr>
<tr>
<td colspan=3D"1" class=3D"confluenceTd"> urlGet</td>
<td colspan=3D"1" class=3D"confluenceTd"><p>{ </p><p> &nbs=
p; "urlGet": {</p><p> "urlToFile": =
"<a href=3D"https://esdqa.medco.com/api/benefit/1/report/download/excel?rep=
ortId=3D5b62e0910ad1fb00115b2b3f" class=3D"external-link" rel=3D"nofollow">=
https://esdqa.medco.com/api/benefit/1/report/download/excel?reportId=3D5b62=
e0910ad1fb00115b2b3f</a>",</p><p> "cookie": {</p><p> =
"KIM_USER_ROLE": &nbs=
p; "SKIP",</p><p> "KI=
M_PAGE_VISITED": true,</p><p> &nb=
sp;"appId": "eSDCSR" </p><p> &nbs=
p;}, "value": "fileName"</p><p> }</p><p> =
;}</p></td>
<td colspan=3D"1" class=3D"confluenceTd"><p> we can download document =
or excel file by using webDownload step.</p><p>urlToFile : The endpoint of =
the service to download the file.</p><p>cookie: we need to pass the r=
equired cookie keys to download the file from above endpoint.</p><p>value :=
file location will be populated into session along with file name.</p></td=
>
</tr>
</tbody>
</table>
</div>
<p><br></p>
<p><u><strong>SauceLabs Execution</strong></u></p>
<p>Test case header for executing the tests against Saucelabs:</p>
<p>Need to provide a Browser object and specify the Borwser name, version, =
OS.</p>
<p>Browser version is not mandatory, in case no version is explicitly speci=
fied it takes the latest browser versions as default ( like v58 for Chrome,=
v11 for IE ).</p>
<p>Default OS supported will be Windows 7.</p>
<p style=3D"margin-left: 60.0px;">{<br>"testCase": {<br>"name": "MSC",<br>"=
curator": "E54949",<br>"application": "NRx",<br>"pillar": "HD",<br>"environ=
ment": "QA",<br> &nb=
sp; "configuration": {<br> &=
nbsp; "screenshots"=
: "off",<br> =
"host": "<a href=3D"http://mcfl1g=
05.medco.com" class=3D"external-link" rel=3D"nofollow">mcfl1g05.medco.com</=
a>",<br> &nbs=
p; "port": "23",</p>
<p style=3D"margin-left: 150.0px;">"browsersetup": {</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; "platform": "saucelabs",</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; "browsername": "ie",</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; "browserversion": "11",</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; "os": "Windows 7",</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; //added <time datet=
ime=3D"2017-11-29" class=3D"date-past">29 Nov 2017</time> (Imran/satya=
) - prerun is to handle the window based popups. eg: windows security in ie=
or Authentication required in chrome. BusinessObjects Application required=
this functionality.</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; "prerun":true,</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; &=
nbsp; &nbs=
p;</p>
<p style=3D"margin-left: 210.0px;">// added 10/30/2017 (Imran) - Below 3 pr=
operties were added to fix IE mouse over issue. as suggested by Sauce-labs =
team.</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; "iedriverversion": "3.4.0",</p>
<p style=3D"margin-left: 150.0px;"> &nb=
sp; "seleniumversion": "3.4.0",</p>
<p style=3D"margin-left: 150.0px;"> &n=
bsp; "requirewindowfocus": true</p>
<p style=3D"margin-left: 150.0px;"> &nbs=
p; }</p>
<div class=3D"code panel pdl" style=3D"border-width: 1px;">=20
<div class=3D"codeHeader panelHeader pdl hide-border-bottom" style=3D"borde=
r-bottom-width: 1px;">=20
<b class=3D"code-title">WebStep JSON Sample</b>=20
<span class=3D"collapse-source expand-control" style=3D"display:none;"><spa=
n class=3D"expand-control-icon icon"> </span><span class=3D"expand-con=
trol-text">Expand source</span></span>=20
<span class=3D"collapse-spinner-wrapper"></span>=20
</div>=20
<div class=3D"codeContent panelContent pdl hide-toolbar">=20
<pre class=3D"syntaxhighlighter-pre" data-syntaxhighlighter-params=3D"brush=
: text; gutter: false; theme: Confluence; collapse: true" data-theme=3D"Con=
fluence">{
"testCase": {
"name": "TMW Address Update",
"curator": "p054949",
"configuration": {
"screenshots": "on",
"host": "mcfl1g05.medco.com",
"port": "23",
"browser": "ie"
},
"testSteps": [{
"navigate": {
"url": "https://therapyworkstation-qa.express=
-scripts.com/pcm/ADloginPage.jsp?NoSSO=3DY&&appName=3DHEOC&isSS=
U=3D"
}
},
{
"input": {
"frame": "frame2",
"selectBy": "id",
"elementID": "racfid",
"value": "c75qa3"
}
},
{
"input": {
"selectBy": "id",
"elementID": "password",
"value": "r40MZFoO3Bm28Umdj3x3oQ=3D=3D"
}
},
{
"click": {
"selectBy": "id",
"elementID": "submitButton"
}
},
{
"select": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'rolesField']",
"value": "DC Reviewer"
}
},
{
"click": {
"selectBy": "id",
"elementID": "workmix1"
}
},
{
"click": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'workmix2']"
}
},
{
"click": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'getworkcheck']"
}
},
{
"click": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'enableSso']"
}
},
{
"select": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'trcCenter']",
"value": "General"
}
},
{
"click": {
"selectBy": "id",
"elementID": "submitButton"
}
},
{
"alert": {
"action": "Cancel"
}
},
{
"assert": {
"selectBy": "id",
"elementID": "prrslHeaderUnJoinSelect",
"value": "Address"
}
},
{
"select": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'prrslHeaderUnJoinSel=
ect']",
"value": "Address"
}
},
{
"input": {
"window": "yes",
"selectBy": "xpath",
"elementID": "//*[@id=3D'memberNo']",
"value": "575921271421"
}
},
{
"click": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'btnSearch']"
}
},
{
"click": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'addressLi3']/button"
}
},
{
"click": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'XAEdit']"
}
},
{
"input": {
"window": "yes",
"selectBy": "css",
"elementID": "input#address1",
"value": "GENERAL DELIVERY"
}
},
{
"input": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'city']",
"value": "BONITA SPRINGS"
}
},
{
"select": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'state']",
"value": "FL"
}
},
{
"input": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'zip']",
"value": "34135"
}
},
{
"input": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'phone1']",
"value": "000"
}
},
{
"input": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'phone2']",
"value": "000"
}
},
{
"input": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'phone3']",
"value": "0000"
}
},
{
"click": {
"selectBy": "xpath",
"elementID": "//*[@id=3D'btnSave']"
}
},
{
"click": {
"window": "yes",
"selectBy": "xpath",
"elementID": "//*[@title=3D'CLOSE (Alt+C)' an=
d @type =3D 'button']"
}
},
{
"browserclose": {
"Close": "true"
}
}
]
}
}</pre>=20
</div>=20
</div>
<p style=3D"margin-left: 60.0px;"><br> &nb=
sp;</p>
<p><br></p>
<p><strong><u>ID usage for running tests on Saucelabs</u></strong></p>
<p>For SauceLabs - we have created a Generic ID : Ninjaesi and all our curr=
ent tests are running under this account. A sample snippet from the browser=
object in test json for running on SauceLabs.</p>
<p>"browsersetup":</p>
<p><span style=3D"color: rgb(51,51,51);text-decoration: none;">{ "platform"=
: "saucelabs", "browsername": "chrome", "browserversion": "58", "os": "Wind=
ows 7" }</span></p>
<p>, This runs the test under the genetic account.</p>
<p>Now for creating a new account in SauceLabs- Request needs to be sent fr=
om the master account (ESI_Saucelabs, owned by Brian) to the individual and=
user can create the account giving his own credentials. Each application t=
eams can create their own test account now and can provide their details in=
the test json for execution.</p>
<p>"browsersetup":</p>
<p><span style=3D"color: rgb(51,51,51);text-decoration: none;">{ "platform"=
: "saucelabs", "sauce_userid": "XXXXX", "sauce_accesskey": "XXXXX", "browse=
rname": "chrome", "browserversion": "58", "os": "Windows 7", }</span></p>
<p>"ieCompatibilitySites":"<a href=3D"http://medco.com" class=3D"external-l=
ink" rel=3D"nofollow">medco.com</a>" to add sites to IE compatibility view.=
</p>
<p>To add new sites compatibility please go to the following page.</p>
<p><a href=3D"/display/QAAUT/Adding+sites+to+IE+Compatibility+views">Adding=
sites to IE Compatibility views</a></p>
<p><br></p>
<p><br></p>
<p><u><strong>Local Execution:</strong></u></p>
<p>Teams can continue the local test execution by passing browser as a Stri=
ng under configuration object.</p>
<p>{<br>"testCase": {<br>"name": "TC1",<br>"curator": "e54949",<br>"applica=
tion": "NRx",<br>"pillar": "HD",<br>"environment": "QA",<br> <br>"configura=
tion": {<br> "screenshots": =
"off",<br> "host": "<a href=
=3D"http://mcfl1g05.medco.com" class=3D"external-link" rel=3D"nofollow">mcf=
l1g05.medco.com</a>",<br> "p=
ort": "23", <br> "browser": =
"ie",<br>},</p>
<p><br></p>
<p><br></p>
<p><br></p>
<p> </p>
<p><br></p>
<p><br></p>
<p><br></p>
</div>
</body>
</html>
------=_Part_16638_529963855.1540845953956--