-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo.txt
103 lines (75 loc) · 3.88 KB
/
todo.txt
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
screenium TODO
==============
console app:
screenium <testDetails.csv> <testName>|ALL <reportOutput.html> [-o = leave browser Open] [-s = Save new snapshot images] [-t = self Test]
testDetails.csv:
================
testName, testDescription, divSelector, URL
LATER:
testName, testDescription, divSelector, urlPrefix, urlQuery1, urlQuery2, urlQuery3
OK - fire up chrome
OK - look at args parsing code in SplashScreen app
OK - make console, return code
OK - add args
OK - add test BAT files
OK - make test sites
OK - read from CSV file
OK - fire up test sites
design pattern: Page Object and Page Factory
https://code.google.com/p/selenium/wiki/PageFactory
OK - save screenshot to temp location
get screenshot of a particular element, via cropping:
http://stackoverflow.com/questions/13832322/how-to-capture-the-screenshot-of-only-a-specific-element-using-selenium-webdrive
OK - saving screenshots (-s) (with prompt for Y)
OK - comparing against saved screenshots
OK - output report page that lists diff images (with faded actual!) side-by-side
OK - combine images via XOR, with highlighted diff in yellow
OK - add prompt Y for saving screenshots
OK - combine multiple tests into 1 report (Report -> TestReport, new class TestReportSet)
OK - try with WV LP
OK - add bad row test. output Column as well as Row.
OK - add per-test SleepTimespan (usually 0) after page text seen, and before taking screenshot
OK - fix bug: if test name not recognised from CSV, then throw
n/a - try add option KeepOpen, but for 1 test only (throw on All) (not sure if it is possible)
OK - Report: add CSV filename to the header
OK - Report: add Created DateTime, Execution Duration, x/y Tests Passed to Report class, and to Console at end, and to the HTML in header
OK - Report: add link to the test URL (on the test name)
OK - report SxS into new tab. make all new tabs use index, so not re-using same tab.
OK - make report be self contained - local images, template files
OK - add a combined summary, over multiple runs -> XML.
ALL bat deletes the combinedReport.xml
Subsequent runs load it, append to it, write it, then generate combinedReport.html
OK - add AcceptChanges option, with Y prompt -> moves actual to expected
OK - only show exception details if Verbose option. else show Error: (msg)
OK - argProc throw "Not a valid combination of options"
==> HERE <==
xx - bug: if 0 tests passed, then combined is Similar!
xx - add an animation to show expected/actual
ref: http://www.imagemagick.org/Usage/compare/#animation
xx - add PDF report
xx - add menu to select which test, or ALL. so cmd line arg is "all" or else "menu" or else "test name"
xx - have 4 adjustments: CropAdjustWidth, CropAdjustHeight -> CropAdjustTop, CropAdjustRight, CropAdjustBottom, CropAdjustLeft
xx - //TODO add Exception and have it set if the Exception property is set
===
xx - report archive: => make a dated archive copy of the report (with images)
xx - Report: improve styling
OK - new cmd line arg TemplateFilePath
xx - new JSON output -> a template. then kendo-ish report!
xx - bootstrap accordion from templates/template1.html
xx - Report: improved side-x-side via kendo popup window
xx - ScriptCount and js file with same name and N tests. screenshot after each js script run.
xx - refactor to have screeniumLib project, for possible later UI
xx - add parallel execution (N=2 x WebDrivers ?)
xx - add Query1, Query2, Query3 [not needed?]
xx - add delay arg: TimeoutTimeSpan
report:
=====
OK - overall result as red/green bar
OK - list of failed/passing tests with red/green
n/a - links to detail section: expected, actual images side-by-side
OK - combine images via XOR, with highlighted diff in yellow
n/a - report from x.partial.template.html templates -> html
example URLs
============
Example URL queries that browser will process:
[see CSV files]