oxygen-cli 1.37.7 → 1.37.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/CHANGELOG.md +1687 -1682
  2. package/LICENSE +672 -672
  3. package/README.md +37 -37
  4. package/build/core/OxygenCore.js +8 -2
  5. package/build/core/OxygenEvents.js +4 -2
  6. package/build/core/OxygenModule.js +1 -1
  7. package/build/core/OxygenService.js +1 -1
  8. package/build/core/OxygenSubModule.js +1 -1
  9. package/build/core/WebDriverModule.js +1 -1
  10. package/build/core/utils.js +1 -1
  11. package/build/errors/HookError.js +1 -1
  12. package/build/errors/ModuleError.js +1 -1
  13. package/build/errors/ModuleUnavailableError.js +1 -1
  14. package/build/errors/OxygenError.js +1 -1
  15. package/build/errors/ScriptNotFound.js +1 -1
  16. package/build/errors/helper.js +1 -1
  17. package/build/index.js +1 -1
  18. package/build/lib/cli-util.js +25 -6
  19. package/build/lib/cli.js +2 -2
  20. package/build/lib/debugger.js +1 -1
  21. package/build/lib/img-merge.js +1 -1
  22. package/build/lib/launcher.js +1 -1
  23. package/build/lib/logger.js +43 -43
  24. package/build/lib/moduleRequire.js +1 -1
  25. package/build/lib/parallel-launcher.js +1 -1
  26. package/build/lib/param-manager.js +1 -1
  27. package/build/lib/param-reader-csv.js +1 -1
  28. package/build/lib/param-reader-excel.js +1 -1
  29. package/build/lib/param-reader-json.js +1 -1
  30. package/build/lib/text-to-image.js +1 -1
  31. package/build/lib/util.js +2 -2
  32. package/build/model/case-result.js +1 -1
  33. package/build/model/failure.js +1 -1
  34. package/build/model/status.js +1 -1
  35. package/build/model/step-result.js +1 -1
  36. package/build/model/suite-result.js +2 -1
  37. package/build/model/test-result.js +1 -1
  38. package/build/model/testcase.js +1 -1
  39. package/build/model/testsuite.js +1 -1
  40. package/build/ox_modules/index.js +1 -1
  41. package/build/ox_modules/module-assert.js +37 -37
  42. package/build/ox_modules/module-date.js +24 -24
  43. package/build/ox_modules/module-db.js +52 -52
  44. package/build/ox_modules/module-email.js +59 -59
  45. package/build/ox_modules/module-eyes.js +34 -34
  46. package/build/ox_modules/module-http/ntlm-util.js +10 -10
  47. package/build/ox_modules/module-http/ntlm.js +15 -15
  48. package/build/ox_modules/module-http.js +132 -132
  49. package/build/ox_modules/module-log.js +27 -27
  50. package/build/ox_modules/module-mailinator.js +87 -87
  51. package/build/ox_modules/module-mob/commands/alertAccept.js +17 -17
  52. package/build/ox_modules/module-mob/commands/alertDismiss.js +17 -17
  53. package/build/ox_modules/module-mob/commands/assertAlert.js +20 -20
  54. package/build/ox_modules/module-mob/commands/assertText.js +21 -21
  55. package/build/ox_modules/module-mob/commands/assertTitle.js +19 -19
  56. package/build/ox_modules/module-mob/commands/assertValue.js +18 -18
  57. package/build/ox_modules/module-mob/commands/back.js +16 -16
  58. package/build/ox_modules/module-mob/commands/clear.js +19 -19
  59. package/build/ox_modules/module-mob/commands/click.js +17 -17
  60. package/build/ox_modules/module-mob/commands/clickHidden.js +17 -17
  61. package/build/ox_modules/module-mob/commands/clickLong.js +18 -18
  62. package/build/ox_modules/module-mob/commands/clickMultipleTimes.js +18 -18
  63. package/build/ox_modules/module-mob/commands/closeApp.js +16 -16
  64. package/build/ox_modules/module-mob/commands/debug.js +16 -16
  65. package/build/ox_modules/module-mob/commands/dragAndDrop.js +19 -19
  66. package/build/ox_modules/module-mob/commands/enableNetwork.js +27 -27
  67. package/build/ox_modules/module-mob/commands/execute.js +21 -21
  68. package/build/ox_modules/module-mob/commands/findElement.js +20 -20
  69. package/build/ox_modules/module-mob/commands/findElements.js +23 -23
  70. package/build/ox_modules/module-mob/commands/getAlertText.js +17 -17
  71. package/build/ox_modules/module-mob/commands/getAppiumLogs.js +16 -16
  72. package/build/ox_modules/module-mob/commands/getBrowserLogs.js +16 -16
  73. package/build/ox_modules/module-mob/commands/getCurrentActivity.js +15 -15
  74. package/build/ox_modules/module-mob/commands/getCurrentPackage.js +15 -15
  75. package/build/ox_modules/module-mob/commands/getDeviceLogs.js +16 -16
  76. package/build/ox_modules/module-mob/commands/getDeviceTime.js +16 -16
  77. package/build/ox_modules/module-mob/commands/getLocation.js +20 -20
  78. package/build/ox_modules/module-mob/commands/getSource.js +16 -16
  79. package/build/ox_modules/module-mob/commands/getText.js +18 -18
  80. package/build/ox_modules/module-mob/commands/getTitle.js +13 -13
  81. package/build/ox_modules/module-mob/commands/getUrl.js +17 -17
  82. package/build/ox_modules/module-mob/commands/getValue.js +18 -18
  83. package/build/ox_modules/module-mob/commands/getWindowHandles.js +17 -17
  84. package/build/ox_modules/module-mob/commands/hideKeyboard.js +21 -21
  85. package/build/ox_modules/module-mob/commands/index.js +1 -1
  86. package/build/ox_modules/module-mob/commands/installApp.js +16 -16
  87. package/build/ox_modules/module-mob/commands/isAppInstalled.js +16 -16
  88. package/build/ox_modules/module-mob/commands/isCheckable.js +18 -18
  89. package/build/ox_modules/module-mob/commands/isChecked.js +18 -18
  90. package/build/ox_modules/module-mob/commands/isClickable.js +18 -18
  91. package/build/ox_modules/module-mob/commands/isExist.js +19 -19
  92. package/build/ox_modules/module-mob/commands/isSelected.js +23 -23
  93. package/build/ox_modules/module-mob/commands/isVisible.js +19 -19
  94. package/build/ox_modules/module-mob/commands/isWebViewContext.js +16 -16
  95. package/build/ox_modules/module-mob/commands/launchApp.js +15 -15
  96. package/build/ox_modules/module-mob/commands/longPressKeyCode.js +18 -18
  97. package/build/ox_modules/module-mob/commands/open.js +17 -17
  98. package/build/ox_modules/module-mob/commands/pause.js +16 -16
  99. package/build/ox_modules/module-mob/commands/removeApp.js +16 -16
  100. package/build/ox_modules/module-mob/commands/resetApp.js +15 -15
  101. package/build/ox_modules/module-mob/commands/scrollIntoElement.js +22 -22
  102. package/build/ox_modules/module-mob/commands/scrollIntoView.js +27 -27
  103. package/build/ox_modules/module-mob/commands/select.js +24 -24
  104. package/build/ox_modules/module-mob/commands/selectFrame.js +23 -23
  105. package/build/ox_modules/module-mob/commands/selectWindow.js +28 -28
  106. package/build/ox_modules/module-mob/commands/sendKeys.js +29 -29
  107. package/build/ox_modules/module-mob/commands/setContext.js +16 -16
  108. package/build/ox_modules/module-mob/commands/setNativeContext.js +15 -15
  109. package/build/ox_modules/module-mob/commands/setTimeout.js +21 -21
  110. package/build/ox_modules/module-mob/commands/setWebViewContext.js +16 -16
  111. package/build/ox_modules/module-mob/commands/shake.js +16 -16
  112. package/build/ox_modules/module-mob/commands/smsClickLink.js +19 -19
  113. package/build/ox_modules/module-mob/commands/smsGetText.js +20 -20
  114. package/build/ox_modules/module-mob/commands/swipe.js +20 -20
  115. package/build/ox_modules/module-mob/commands/swipeElement.js +20 -20
  116. package/build/ox_modules/module-mob/commands/swipeScreen.js +20 -20
  117. package/build/ox_modules/module-mob/commands/takeScreenshot.js +17 -17
  118. package/build/ox_modules/module-mob/commands/tap.js +17 -17
  119. package/build/ox_modules/module-mob/commands/type.js +20 -20
  120. package/build/ox_modules/module-mob/commands/unlockPattern.js +22 -22
  121. package/build/ox_modules/module-mob/commands/waitForExist.js +18 -18
  122. package/build/ox_modules/module-mob/commands/waitForInteractable.js +17 -17
  123. package/build/ox_modules/module-mob/commands/waitForVisible.js +17 -17
  124. package/build/ox_modules/module-mob.js +83 -79
  125. package/build/ox_modules/module-pdf.js +35 -35
  126. package/build/ox_modules/module-proxy.js +77 -77
  127. package/build/ox_modules/module-serial.js +55 -55
  128. package/build/ox_modules/module-shell.js +25 -25
  129. package/build/ox_modules/module-soap.js +72 -72
  130. package/build/ox_modules/module-twilio.js +41 -41
  131. package/build/ox_modules/module-utils.js +91 -91
  132. package/build/ox_modules/module-web/commands/alertAccept.js +17 -17
  133. package/build/ox_modules/module-web/commands/alertDismiss.js +17 -17
  134. package/build/ox_modules/module-web/commands/assertAlert.js +20 -20
  135. package/build/ox_modules/module-web/commands/assertExist.js +17 -17
  136. package/build/ox_modules/module-web/commands/assertSelectedLabel.js +21 -21
  137. package/build/ox_modules/module-web/commands/assertSelectedValue.js +21 -21
  138. package/build/ox_modules/module-web/commands/assertText.js +21 -21
  139. package/build/ox_modules/module-web/commands/assertTextNotPresent.js +18 -18
  140. package/build/ox_modules/module-web/commands/assertTextPresent.js +18 -18
  141. package/build/ox_modules/module-web/commands/assertTitle.js +19 -19
  142. package/build/ox_modules/module-web/commands/assertValue.js +20 -20
  143. package/build/ox_modules/module-web/commands/back.js +16 -16
  144. package/build/ox_modules/module-web/commands/clear.js +18 -18
  145. package/build/ox_modules/module-web/commands/click.js +25 -25
  146. package/build/ox_modules/module-web/commands/clickHidden.js +23 -23
  147. package/build/ox_modules/module-web/commands/closeWindow.js +15 -15
  148. package/build/ox_modules/module-web/commands/debug.js +15 -15
  149. package/build/ox_modules/module-web/commands/deleteCookies.js +12 -12
  150. package/build/ox_modules/module-web/commands/deselect.js +22 -22
  151. package/build/ox_modules/module-web/commands/doubleClick.js +17 -17
  152. package/build/ox_modules/module-web/commands/dragAndDrop.js +20 -20
  153. package/build/ox_modules/module-web/commands/execute.js +24 -24
  154. package/build/ox_modules/module-web/commands/fileBrowse.js +18 -18
  155. package/build/ox_modules/module-web/commands/findElement.js +19 -19
  156. package/build/ox_modules/module-web/commands/findElements.js +22 -22
  157. package/build/ox_modules/module-web/commands/fullscreenWindow.js +14 -14
  158. package/build/ox_modules/module-web/commands/getAlertText.js +16 -16
  159. package/build/ox_modules/module-web/commands/getAttribute.js +19 -19
  160. package/build/ox_modules/module-web/commands/getBrowserLogs.js +17 -17
  161. package/build/ox_modules/module-web/commands/getCookies.js +13 -13
  162. package/build/ox_modules/module-web/commands/getCssValue.js +19 -19
  163. package/build/ox_modules/module-web/commands/getElementCount.js +17 -17
  164. package/build/ox_modules/module-web/commands/getHTML.js +17 -17
  165. package/build/ox_modules/module-web/commands/getSource.js +16 -16
  166. package/build/ox_modules/module-web/commands/getText.js +18 -18
  167. package/build/ox_modules/module-web/commands/getTitle.js +12 -12
  168. package/build/ox_modules/module-web/commands/getUrl.js +16 -16
  169. package/build/ox_modules/module-web/commands/getValue.js +18 -18
  170. package/build/ox_modules/module-web/commands/getWindowHandles.js +16 -16
  171. package/build/ox_modules/module-web/commands/getWindowSize.js +16 -16
  172. package/build/ox_modules/module-web/commands/getXMLPageSource.js +16 -16
  173. package/build/ox_modules/module-web/commands/index.js +1 -1
  174. package/build/ox_modules/module-web/commands/isAlertPresent.js +16 -16
  175. package/build/ox_modules/module-web/commands/isChecked.js +18 -18
  176. package/build/ox_modules/module-web/commands/isExist.js +19 -19
  177. package/build/ox_modules/module-web/commands/isInteractable.js +22 -22
  178. package/build/ox_modules/module-web/commands/isSelected.js +23 -23
  179. package/build/ox_modules/module-web/commands/isVisible.js +19 -19
  180. package/build/ox_modules/module-web/commands/makeVisible.js +25 -25
  181. package/build/ox_modules/module-web/commands/maximizeWindow.js +14 -14
  182. package/build/ox_modules/module-web/commands/minimizeWindow.js +14 -14
  183. package/build/ox_modules/module-web/commands/mock.js +20 -20
  184. package/build/ox_modules/module-web/commands/mockClearAll.js +12 -12
  185. package/build/ox_modules/module-web/commands/mockRestoreAll.js +12 -12
  186. package/build/ox_modules/module-web/commands/newWindow.js +16 -16
  187. package/build/ox_modules/module-web/commands/open.js +16 -16
  188. package/build/ox_modules/module-web/commands/pause.js +15 -15
  189. package/build/ox_modules/module-web/commands/point.js +21 -21
  190. package/build/ox_modules/module-web/commands/pointJS.js +15 -15
  191. package/build/ox_modules/module-web/commands/refresh.js +15 -15
  192. package/build/ox_modules/module-web/commands/rightClick.js +17 -17
  193. package/build/ox_modules/module-web/commands/rightClickActions.js +19 -19
  194. package/build/ox_modules/module-web/commands/scrollToElement.js +21 -21
  195. package/build/ox_modules/module-web/commands/select.js +23 -23
  196. package/build/ox_modules/module-web/commands/selectFrame.js +24 -24
  197. package/build/ox_modules/module-web/commands/selectWindow.js +27 -27
  198. package/build/ox_modules/module-web/commands/sendKeys.js +22 -22
  199. package/build/ox_modules/module-web/commands/setAutoWaitForAngular.js +20 -20
  200. package/build/ox_modules/module-web/commands/setTimeout.js +21 -21
  201. package/build/ox_modules/module-web/commands/setWindowSize.js +17 -17
  202. package/build/ox_modules/module-web/commands/takeScreenshot.js +17 -17
  203. package/build/ox_modules/module-web/commands/type.js +20 -20
  204. package/build/ox_modules/module-web/commands/verifyAlert.js +20 -20
  205. package/build/ox_modules/module-web/commands/verifyExist.js +17 -17
  206. package/build/ox_modules/module-web/commands/verifySelectedLabel.js +21 -21
  207. package/build/ox_modules/module-web/commands/verifySelectedValue.js +21 -21
  208. package/build/ox_modules/module-web/commands/verifyText.js +21 -21
  209. package/build/ox_modules/module-web/commands/verifyTextNotPresent.js +18 -18
  210. package/build/ox_modules/module-web/commands/verifyTextPresent.js +18 -18
  211. package/build/ox_modules/module-web/commands/verifyTitle.js +19 -19
  212. package/build/ox_modules/module-web/commands/verifyValue.js +20 -20
  213. package/build/ox_modules/module-web/commands/waitForAngular.js +19 -19
  214. package/build/ox_modules/module-web/commands/waitForExist.js +17 -17
  215. package/build/ox_modules/module-web/commands/waitForInteractable.js +17 -17
  216. package/build/ox_modules/module-web/commands/waitForNotExist.js +17 -17
  217. package/build/ox_modules/module-web/commands/waitForNotText.js +20 -20
  218. package/build/ox_modules/module-web/commands/waitForNotValue.js +20 -20
  219. package/build/ox_modules/module-web/commands/waitForText.js +20 -20
  220. package/build/ox_modules/module-web/commands/waitForValue.js +20 -20
  221. package/build/ox_modules/module-web/commands/waitForVisible.js +17 -17
  222. package/build/ox_modules/module-web/commands/waitForWindow.js +22 -22
  223. package/build/ox_modules/module-web.js +105 -100
  224. package/build/ox_modules/module-win/commands/assertText.js +17 -17
  225. package/build/ox_modules/module-win/commands/assertTitle.js +15 -15
  226. package/build/ox_modules/module-win/commands/assertValue.js +14 -14
  227. package/build/ox_modules/module-win/commands/back.js +11 -11
  228. package/build/ox_modules/module-win/commands/clear.js +13 -13
  229. package/build/ox_modules/module-win/commands/click.js +13 -13
  230. package/build/ox_modules/module-win/commands/clickLong.js +14 -14
  231. package/build/ox_modules/module-win/commands/clickMultipleTimes.js +14 -14
  232. package/build/ox_modules/module-win/commands/findElement.js +15 -15
  233. package/build/ox_modules/module-win/commands/findElements.js +15 -15
  234. package/build/ox_modules/module-win/commands/getAppiumLogs.js +12 -12
  235. package/build/ox_modules/module-win/commands/getCurrentWindowHandle.js +15 -15
  236. package/build/ox_modules/module-win/commands/getLocation.js +14 -14
  237. package/build/ox_modules/module-win/commands/getSource.js +12 -12
  238. package/build/ox_modules/module-win/commands/getText.js +14 -14
  239. package/build/ox_modules/module-win/commands/getValue.js +14 -14
  240. package/build/ox_modules/module-win/commands/getWindowHandles.js +15 -15
  241. package/build/ox_modules/module-win/commands/index.js +1 -1
  242. package/build/ox_modules/module-win/commands/isCheckable.js +14 -14
  243. package/build/ox_modules/module-win/commands/isChecked.js +14 -14
  244. package/build/ox_modules/module-win/commands/isClickable.js +14 -14
  245. package/build/ox_modules/module-win/commands/isExist.js +15 -15
  246. package/build/ox_modules/module-win/commands/isSelected.js +14 -14
  247. package/build/ox_modules/module-win/commands/isVisible.js +15 -15
  248. package/build/ox_modules/module-win/commands/open.js +13 -13
  249. package/build/ox_modules/module-win/commands/pause.js +12 -12
  250. package/build/ox_modules/module-win/commands/rightClick.js +13 -13
  251. package/build/ox_modules/module-win/commands/selectWindow.js +23 -23
  252. package/build/ox_modules/module-win/commands/sendKeys.js +22 -22
  253. package/build/ox_modules/module-win/commands/setTimeout.js +17 -17
  254. package/build/ox_modules/module-win/commands/takeScreenshot.js +16 -16
  255. package/build/ox_modules/module-win/commands/tap.js +13 -13
  256. package/build/ox_modules/module-win/commands/type.js +16 -16
  257. package/build/ox_modules/module-win/commands/waitForExist.js +14 -14
  258. package/build/ox_modules/module-win/commands/waitForInteractable.js +16 -16
  259. package/build/ox_modules/module-win/commands/waitForVisible.js +13 -13
  260. package/build/ox_modules/module-win.js +47 -47
  261. package/build/ox_modules/utils.js +8 -8
  262. package/build/ox_reporters/excel/template.json +48 -48
  263. package/build/ox_reporters/html/index.ejs +163 -163
  264. package/build/ox_reporters/html/summary.ejs +77 -77
  265. package/build/ox_reporters/html/tests-details.ejs +134 -134
  266. package/build/ox_reporters/html/tests-devices-browsers.ejs +83 -83
  267. package/build/ox_reporters/reporter-excel.js +1 -1
  268. package/build/ox_reporters/reporter-html.js +1 -1
  269. package/build/ox_reporters/reporter-json.js +1 -1
  270. package/build/ox_reporters/reporter-junit.js +1 -1
  271. package/build/ox_reporters/reporter-pdf.js +1 -1
  272. package/build/ox_reporters/reporter-rp.js +376 -0
  273. package/build/ox_reporters/reporter-xml.js +1 -1
  274. package/build/ox_services/service-devtools/submodule-network.js +1 -1
  275. package/build/ox_services/service-devtools.js +1 -1
  276. package/build/reporter/FileReporterBase.js +1 -1
  277. package/build/reporter/ReportAggregator.js +110 -43
  278. package/build/reporter/ReporterBase.js +2 -2
  279. package/build/runners/WorkerProcess.js +1 -1
  280. package/build/runners/cucumber/CucumberEventListener.js +1 -1
  281. package/build/runners/cucumber/CucumberReporter.js +1 -1
  282. package/build/runners/cucumber/CucumberWorker.js +1 -1
  283. package/build/runners/cucumber/index.js +1 -1
  284. package/build/runners/cucumber/worker.js +1 -1
  285. package/build/runners/index.js +1 -1
  286. package/build/runners/oxygen/OxygenWorker.js +1 -1
  287. package/build/runners/oxygen/index.js +37 -22
  288. package/build/runners/oxygen/worker.js +1 -1
  289. package/config/default.json +6 -6
  290. package/log.txt +1614 -0
  291. package/package.json +136 -135
  292. package/types/index.d.ts +70 -70
  293. package/types/module-eyes.d.ts +39 -39
  294. package/types/module-http.d.ts +163 -163
  295. package/types/module-log.d.ts +34 -34
  296. package/types/module-mob.d.ts +966 -966
  297. package/types/module-pdf.d.ts +40 -40
  298. package/types/module-proxy.d.ts +100 -100
  299. package/types/module-shell.d.ts +24 -24
  300. package/types/module-utils.d.ts +99 -99
  301. package/types/module-web.d.ts +1053 -1053
  302. package/types/module-win.d.ts +352 -352
  303. package/types/oxygen.d.ts +53 -53
@@ -1,78 +1,78 @@
1
- <div class="row">
2
- <div class="col-md-12 summary">
3
- <h1 class="page-header">Tests Summary</h1>
4
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
5
- <span>Status</span>
6
- <div class="value">
7
- <%= summary.status.toUpperCase() %>
8
- </div>
9
- </div>
10
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
11
- <span>Start Date</span>
12
- <div class="value"><%= summary.startDate %></div>
13
- </div>
14
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
15
- <span>Start / End Time</span>
16
- <div class="value">
17
- <%= summary.startTime %>
18
- -
19
- <%= summary.endTime %>
20
- </div>
21
- </div>
22
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
23
- <span>Total Duration</span>
24
- <div class="value">
25
- <%= summary.duration %>
26
- </div>
27
- </div>
28
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
29
- <span>Total Tests</span>
30
- <div class="value">
31
- <%= summary.totalCases %>
32
- </div>
33
- </div>
34
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
35
- <span>Passed Tests</span>
36
- <div class="value passed">
37
- <%= summary.passedCases %>
38
- </div>
39
- </div>
40
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
41
- <span>Failed Tests</span>
42
- <div class="value failed">
43
- <%= summary.failedCases %>
44
- </div>
45
- </div>
46
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
47
- <span>Skipped Tests</span>
48
- <div class="value warning">
49
- <%= summary.skippedCases %>
50
- </div>
51
- </div>
52
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
53
- <span>Total Steps</span>
54
- <div class="value">
55
- <%= summary.totalSteps %>
56
- </div>
57
- </div>
58
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
59
- <span>Passed Steps</span>
60
- <div class="value passed">
61
- <%= summary.passedSteps %>
62
- </div>
63
- </div>
64
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
65
- <span>Failed Steps</span>
66
- <div class="value failed">
67
- <%= summary.failedSteps %>
68
- </div>
69
- </div>
70
- <div class="col-md-3 col-sm-3 col-xs-6 counter">
71
- <span>Skipped Steps</span>
72
- <div class="value warning">
73
- <%= summary.skippedSteps %>
74
- </div>
75
- </div>
76
- </div>
77
- </div>
1
+ <div class="row">
2
+ <div class="col-md-12 summary">
3
+ <h1 class="page-header">Tests Summary</h1>
4
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
5
+ <span>Status</span>
6
+ <div class="value">
7
+ <%= summary.status.toUpperCase() %>
8
+ </div>
9
+ </div>
10
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
11
+ <span>Start Date</span>
12
+ <div class="value"><%= summary.startDate %></div>
13
+ </div>
14
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
15
+ <span>Start / End Time</span>
16
+ <div class="value">
17
+ <%= summary.startTime %>
18
+ -
19
+ <%= summary.endTime %>
20
+ </div>
21
+ </div>
22
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
23
+ <span>Total Duration</span>
24
+ <div class="value">
25
+ <%= summary.duration %>
26
+ </div>
27
+ </div>
28
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
29
+ <span>Total Tests</span>
30
+ <div class="value">
31
+ <%= summary.totalCases %>
32
+ </div>
33
+ </div>
34
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
35
+ <span>Passed Tests</span>
36
+ <div class="value passed">
37
+ <%= summary.passedCases %>
38
+ </div>
39
+ </div>
40
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
41
+ <span>Failed Tests</span>
42
+ <div class="value failed">
43
+ <%= summary.failedCases %>
44
+ </div>
45
+ </div>
46
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
47
+ <span>Skipped Tests</span>
48
+ <div class="value warning">
49
+ <%= summary.skippedCases %>
50
+ </div>
51
+ </div>
52
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
53
+ <span>Total Steps</span>
54
+ <div class="value">
55
+ <%= summary.totalSteps %>
56
+ </div>
57
+ </div>
58
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
59
+ <span>Passed Steps</span>
60
+ <div class="value passed">
61
+ <%= summary.passedSteps %>
62
+ </div>
63
+ </div>
64
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
65
+ <span>Failed Steps</span>
66
+ <div class="value failed">
67
+ <%= summary.failedSteps %>
68
+ </div>
69
+ </div>
70
+ <div class="col-md-3 col-sm-3 col-xs-6 counter">
71
+ <span>Skipped Steps</span>
72
+ <div class="value warning">
73
+ <%= summary.skippedSteps %>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
78
 
@@ -1,135 +1,135 @@
1
- <%
2
- const PASSED_LABEL = `<span class="label label-success label-sm">PASSED</span>`;
3
- const FAILED_LABEL = `<span class="label label-danger label-sm">FAILED</span>`;
4
- const WARNING_LABEL = `<span class="label label-warning label-sm">WARNING</span>`;
5
- const SKIPPED_LABEL = `<span class="label label-warning label-sm">SKIPPED</span>`;
6
- %>
7
- <div class="row">
8
- <div class="col-md-12 summary">
9
- <h1 class="page-header">Detailed Results</h1>
10
- <% results.forEach(function(result, resultIndex) {
11
- let browserDeviceId;
12
-
13
- if (result.capabilities) {
14
- if (result.capabilities.browserName) {
15
- browserDeviceId = result.capabilities.browserName;
16
- } else if (result.capabilities.mob && result.capabilities.mob.platformName) {
17
- browserDeviceId = result.capabilities.mob.platformName;
18
- } else if (result.capabilities.web && result.capabilities.web.browserName) {
19
- browserDeviceId = result.capabilities.web.browserName;
20
- } else if (result.capabilities.mob && result.capabilities.mob.device) {
21
- browserDeviceId = result.capabilities.mob.device;
22
- }
23
- } else if (result.options) {
24
- if (result.options.browserName) {
25
- browserDeviceId = result.options.browserName;
26
- }
27
- }
28
-
29
- if (!browserDeviceId) {
30
- browserDeviceId = 'Item';
31
- }
32
-
33
- const resultId = `${resultIndex}-${browserDeviceId}`;
34
- %>
35
- <div class="panel-group" id="accordion-<%=resultId%>">
36
- <div class="panel panel-default iteration">
37
- <div class="panel-heading">
38
- <h3 class="panel-title">
39
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse-<%=resultId%>">
40
- <%= browserDeviceId %>
41
- </a>
42
- </h3>
43
- </div>
44
- <div id="collapse-<%=resultId%>" class="panel-collapse collapse in">
45
- <div class="panel-body">
46
- <% result.suites.forEach(function(suiteResult, suiteIndex) { %>
47
- <h2><%= suiteResult.name %> (Iteration #<%= suiteResult.iterationNum %>)</h2>
48
- <% suiteResult.cases.forEach(function(caseResult, caseIndex) { %>
49
- <div class="panel-group" id="accordion-<%=resultIndex%>-<%=suiteIndex%>-<%=caseIndex%>">
50
- <div class="panel panel-default iteration">
51
- <div class="panel-heading">
52
- <h3 class="panel-title">
53
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse-<%=resultIndex%>-<%=suiteIndex%>-<%=caseIndex%>">
54
- <%= caseResult.name %> (Iteration #<%= caseResult.iterationNum %>)</a>
55
- <% if (caseResult.status === 'passed') { %>
56
- <%- PASSED_LABEL %>
57
- <% } else if (caseResult.status === 'warning') { %>
58
- <%- WARNING_LABEL %>
59
- <% } else if (caseResult.status === 'skipped') { %>
60
- <%- SKIPPED_LABEL %>
61
- <% } else { %>
62
- <%- FAILED_LABEL %>
63
- <% } %>
64
- </h3>
65
- </div>
66
- <div id="collapse-<%=resultIndex%>-<%=suiteIndex%>-<%=caseIndex%>" class="panel-collapse collapse in">
67
- <div class="panel-body">
68
- <% if (caseResult.failure) { %>
69
- <pre style="background-color: #fcacac"><b><%= caseResult.failure.type %>: </b><%= caseResult.failure.message %></pre>
70
- <% } %>
71
- <h4>Steps</h4>
72
- <table class="table table-bordered" style="width: 100%; table-layout: fixed;">
73
- <thead>
74
- <tr>
75
- <th style="width: 3%;">#</th>
76
- <th style="width: 55%;">Step</th>
77
- <th style="width: 10%;">Duration</th>
78
- <th style="width: 10%;">Status</th>
79
- <th>Details</th>
80
- </tr>
81
- </thead>
82
- <tbody>
83
- <% if (caseResult.steps.length == 0) { %>
84
- <tr>
85
- <td colspan="5">- No steps defined -</td>
86
- </tr>
87
- <% } %>
88
- <% caseResult.steps.forEach(function(stepResult, index) { %>
89
- <tr>
90
- <td><%= index + 1 %></td>
91
- <td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title="<%= stepResult.name %>"><%= stepResult.name %></td>
92
- <td><%= stepResult.duration %></td>
93
- <td>
94
- <% if (stepResult.status === 'passed') { %>
95
- <%- PASSED_LABEL %>
96
- <% } else if (stepResult.status === 'warning') { %>
97
- <%- WARNING_LABEL %>
98
- <% } else if (stepResult.status === 'skipped') { %>
99
- <%- SKIPPED_LABEL %>
100
- <% } else { %>
101
- <%- FAILED_LABEL %>
102
- <% } %>
103
- </td>
104
- <td
105
- style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
106
-
107
- <% if (stepResult.failure) { %>
108
- title="<%= stepResult.failure.type %>"
109
- <% } %>
110
-
111
- >
112
- <% if (stepResult.failure) { %>
113
- <%= stepResult.failure.type %>
114
- <% } %>
115
- <% if (stepResult.screenshotFile) { %>
116
- <a target="_blank" href="<%= stepResult.screenshotFile %>">Screenshot</a>
117
- <% } %>
118
- </td>
119
- </tr>
120
- <% }); %>
121
- </tbody>
122
- </table>
123
- </div>
124
- </div>
125
- </div>
126
- </div>
127
- <% }); %>
128
- <% }); %>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- <% }); %>
134
- </div>
1
+ <%
2
+ const PASSED_LABEL = `<span class="label label-success label-sm">PASSED</span>`;
3
+ const FAILED_LABEL = `<span class="label label-danger label-sm">FAILED</span>`;
4
+ const WARNING_LABEL = `<span class="label label-warning label-sm">WARNING</span>`;
5
+ const SKIPPED_LABEL = `<span class="label label-warning label-sm">SKIPPED</span>`;
6
+ %>
7
+ <div class="row">
8
+ <div class="col-md-12 summary">
9
+ <h1 class="page-header">Detailed Results</h1>
10
+ <% results.forEach(function(result, resultIndex) {
11
+ let browserDeviceId;
12
+
13
+ if (result.capabilities) {
14
+ if (result.capabilities.browserName) {
15
+ browserDeviceId = result.capabilities.browserName;
16
+ } else if (result.capabilities.mob && result.capabilities.mob.platformName) {
17
+ browserDeviceId = result.capabilities.mob.platformName;
18
+ } else if (result.capabilities.web && result.capabilities.web.browserName) {
19
+ browserDeviceId = result.capabilities.web.browserName;
20
+ } else if (result.capabilities.mob && result.capabilities.mob.device) {
21
+ browserDeviceId = result.capabilities.mob.device;
22
+ }
23
+ } else if (result.options) {
24
+ if (result.options.browserName) {
25
+ browserDeviceId = result.options.browserName;
26
+ }
27
+ }
28
+
29
+ if (!browserDeviceId) {
30
+ browserDeviceId = 'Item';
31
+ }
32
+
33
+ const resultId = `${resultIndex}-${browserDeviceId}`;
34
+ %>
35
+ <div class="panel-group" id="accordion-<%=resultId%>">
36
+ <div class="panel panel-default iteration">
37
+ <div class="panel-heading">
38
+ <h3 class="panel-title">
39
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse-<%=resultId%>">
40
+ <%= browserDeviceId %>
41
+ </a>
42
+ </h3>
43
+ </div>
44
+ <div id="collapse-<%=resultId%>" class="panel-collapse collapse in">
45
+ <div class="panel-body">
46
+ <% result.suites.forEach(function(suiteResult, suiteIndex) { %>
47
+ <h2><%= suiteResult.name %> (Iteration #<%= suiteResult.iterationNum %>)</h2>
48
+ <% suiteResult.cases.forEach(function(caseResult, caseIndex) { %>
49
+ <div class="panel-group" id="accordion-<%=resultIndex%>-<%=suiteIndex%>-<%=caseIndex%>">
50
+ <div class="panel panel-default iteration">
51
+ <div class="panel-heading">
52
+ <h3 class="panel-title">
53
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse-<%=resultIndex%>-<%=suiteIndex%>-<%=caseIndex%>">
54
+ <%= caseResult.name %> (Iteration #<%= caseResult.iterationNum %>)</a>
55
+ <% if (caseResult.status === 'passed') { %>
56
+ <%- PASSED_LABEL %>
57
+ <% } else if (caseResult.status === 'warning') { %>
58
+ <%- WARNING_LABEL %>
59
+ <% } else if (caseResult.status === 'skipped') { %>
60
+ <%- SKIPPED_LABEL %>
61
+ <% } else { %>
62
+ <%- FAILED_LABEL %>
63
+ <% } %>
64
+ </h3>
65
+ </div>
66
+ <div id="collapse-<%=resultIndex%>-<%=suiteIndex%>-<%=caseIndex%>" class="panel-collapse collapse in">
67
+ <div class="panel-body">
68
+ <% if (caseResult.failure) { %>
69
+ <pre style="background-color: #fcacac"><b><%= caseResult.failure.type %>: </b><%= caseResult.failure.message %></pre>
70
+ <% } %>
71
+ <h4>Steps</h4>
72
+ <table class="table table-bordered" style="width: 100%; table-layout: fixed;">
73
+ <thead>
74
+ <tr>
75
+ <th style="width: 3%;">#</th>
76
+ <th style="width: 55%;">Step</th>
77
+ <th style="width: 10%;">Duration</th>
78
+ <th style="width: 10%;">Status</th>
79
+ <th>Details</th>
80
+ </tr>
81
+ </thead>
82
+ <tbody>
83
+ <% if (caseResult.steps.length == 0) { %>
84
+ <tr>
85
+ <td colspan="5">- No steps defined -</td>
86
+ </tr>
87
+ <% } %>
88
+ <% caseResult.steps.forEach(function(stepResult, index) { %>
89
+ <tr>
90
+ <td><%= index + 1 %></td>
91
+ <td style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" title="<%= stepResult.name %>"><%= stepResult.name %></td>
92
+ <td><%= stepResult.duration %></td>
93
+ <td>
94
+ <% if (stepResult.status === 'passed') { %>
95
+ <%- PASSED_LABEL %>
96
+ <% } else if (stepResult.status === 'warning') { %>
97
+ <%- WARNING_LABEL %>
98
+ <% } else if (stepResult.status === 'skipped') { %>
99
+ <%- SKIPPED_LABEL %>
100
+ <% } else { %>
101
+ <%- FAILED_LABEL %>
102
+ <% } %>
103
+ </td>
104
+ <td
105
+ style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"
106
+
107
+ <% if (stepResult.failure) { %>
108
+ title="<%= stepResult.failure.type %>"
109
+ <% } %>
110
+
111
+ >
112
+ <% if (stepResult.failure) { %>
113
+ <%= stepResult.failure.type %>
114
+ <% } %>
115
+ <% if (stepResult.screenshotFile) { %>
116
+ <a target="_blank" href="<%= stepResult.screenshotFile %>">Screenshot</a>
117
+ <% } %>
118
+ </td>
119
+ </tr>
120
+ <% }); %>
121
+ </tbody>
122
+ </table>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ <% }); %>
128
+ <% }); %>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ <% }); %>
134
+ </div>
135
135
  </div>
@@ -1,83 +1,83 @@
1
- <div class="row">
2
- <div class="col-md-12 summary">
3
- <h1 class="page-header">Tests / Devices / Browsers</h1>
4
- <table class="table table-bordered">
5
- <thead>
6
- <tr>
7
- <th>Test Name</th>
8
- <th class="device-browser">Device / Browser</th>
9
- <th>Platform</th>
10
- <th>Pass/Failed Cases</th>
11
- <th>Status</th>
12
- </tr>
13
- </thead>
14
- <tbody>
15
- <% results.forEach(function(result){ %>
16
- <%
17
- let browserName = result.capabilities && result.capabilities.browserName ? result.capabilities.browserName : null;
18
- // if browserName is null but we have browserName capability used locally in mob or web modules, use it in the report
19
- if (!browserName && result.capabilities) {
20
- if (result.capabilities.mob && result.capabilities.mob.browserName) {
21
- browserName = result.capabilities.mob.browserName;
22
- }
23
- else if (result.capabilities.web && result.capabilities.web.browserName) {
24
- browserName = result.capabilities.web.browserName;
25
- }
26
- }
27
-
28
- if (!browserName && result.options && result.options.browserName) {
29
- browserName = result.options.browserName;
30
- }
31
-
32
- if (browserName && browserName.length > 0) {
33
- browserName = browserName.charAt(0).toUpperCase() + browserName.slice(1);
34
- }
35
- let deviceName = result.capabilities && result.capabilities.deviceName ? result.capabilities.deviceName : null;
36
- // if deviceName is null but we have deviceName capability used locally in mob module, use it in the report
37
- if (!deviceName && result.capabilities && result.capabilities.mob && result.capabilities.mob.deviceName) {
38
- deviceName = result.capabilities.mob.deviceName;
39
- }
40
- if (deviceName && deviceName.length > 0) {
41
- deviceName = deviceName.charAt(0).toUpperCase() + deviceName.slice(1);
42
- }
43
- let deviceBrowserName = (deviceName ? `${deviceName} / ` : '') + (browserName ? browserName : 'N/A');
44
- let platformName = result.capabilities && result.capabilities.platformName ? result.capabilities.platformName : '';
45
- // if platformName is null but we have platformName capability used locally in mob module, use it in the report
46
- if (!platformName && result.capabilities) {
47
- if (result.capabilities.mob && result.capabilities.mob.platformName) {
48
- platformName = result.capabilities.mob.platformName;
49
- }
50
- else if (result.capabilities.web && result.capabilities.web.platformName) {
51
- platformName = result.capabilities.web.platformName;
52
- }
53
- }
54
- result.suites.forEach(function(suiteResult){
55
- const passedCases = suiteResult.cases.reduce((acc, caze) => acc + (caze.status === 'passed' || caze.status === 'warning' ? 1:0), 0);
56
- const failedCases = suiteResult.cases.reduce((acc, caze) => acc + (caze.status === 'failed' ? 1:0), 0);
57
- const totalCases = suiteResult.cases.length;
58
- const passedCasesRatio = ((passedCases / totalCases) * 100).toFixed(0) + '%';
59
- const failedCasesRatio = ((failedCases / totalCases) * 100).toFixed(0) + '%';
60
- %>
61
- <tr>
62
- <td><%= suiteResult.name %></td>
63
- <td class="device-browser"><%= deviceBrowserName %></td>
64
- <td><%= platformName %></td>
65
- <td>
66
-
67
- <div class="progress">
68
- <div class="progress-bar progress-bar-success" style="width: <%= passedCasesRatio %>">
69
- <span><%= passedCasesRatio %> (<%= passedCases %>)</span>
70
- </div>
71
- <div class="progress-bar progress-bar-danger" style="width: <%= failedCasesRatio %>">
72
- <span><%= failedCasesRatio %> (<%= failedCases %>)</span>
73
- </div>
74
- </div>
75
- </td>
76
- <td><%= suiteResult.status.toUpperCase() %></td>
77
- </tr>
78
- <% }); %>
79
- <% }); %>
80
- </tbody>
81
- </table>
82
- </div>
83
- </div>
1
+ <div class="row">
2
+ <div class="col-md-12 summary">
3
+ <h1 class="page-header">Tests / Devices / Browsers</h1>
4
+ <table class="table table-bordered">
5
+ <thead>
6
+ <tr>
7
+ <th>Test Name</th>
8
+ <th class="device-browser">Device / Browser</th>
9
+ <th>Platform</th>
10
+ <th>Pass/Failed Cases</th>
11
+ <th>Status</th>
12
+ </tr>
13
+ </thead>
14
+ <tbody>
15
+ <% results.forEach(function(result){ %>
16
+ <%
17
+ let browserName = result.capabilities && result.capabilities.browserName ? result.capabilities.browserName : null;
18
+ // if browserName is null but we have browserName capability used locally in mob or web modules, use it in the report
19
+ if (!browserName && result.capabilities) {
20
+ if (result.capabilities.mob && result.capabilities.mob.browserName) {
21
+ browserName = result.capabilities.mob.browserName;
22
+ }
23
+ else if (result.capabilities.web && result.capabilities.web.browserName) {
24
+ browserName = result.capabilities.web.browserName;
25
+ }
26
+ }
27
+
28
+ if (!browserName && result.options && result.options.browserName) {
29
+ browserName = result.options.browserName;
30
+ }
31
+
32
+ if (browserName && browserName.length > 0) {
33
+ browserName = browserName.charAt(0).toUpperCase() + browserName.slice(1);
34
+ }
35
+ let deviceName = result.capabilities && result.capabilities.deviceName ? result.capabilities.deviceName : null;
36
+ // if deviceName is null but we have deviceName capability used locally in mob module, use it in the report
37
+ if (!deviceName && result.capabilities && result.capabilities.mob && result.capabilities.mob.deviceName) {
38
+ deviceName = result.capabilities.mob.deviceName;
39
+ }
40
+ if (deviceName && deviceName.length > 0) {
41
+ deviceName = deviceName.charAt(0).toUpperCase() + deviceName.slice(1);
42
+ }
43
+ let deviceBrowserName = (deviceName ? `${deviceName} / ` : '') + (browserName ? browserName : 'N/A');
44
+ let platformName = result.capabilities && result.capabilities.platformName ? result.capabilities.platformName : '';
45
+ // if platformName is null but we have platformName capability used locally in mob module, use it in the report
46
+ if (!platformName && result.capabilities) {
47
+ if (result.capabilities.mob && result.capabilities.mob.platformName) {
48
+ platformName = result.capabilities.mob.platformName;
49
+ }
50
+ else if (result.capabilities.web && result.capabilities.web.platformName) {
51
+ platformName = result.capabilities.web.platformName;
52
+ }
53
+ }
54
+ result.suites.forEach(function(suiteResult){
55
+ const passedCases = suiteResult.cases.reduce((acc, caze) => acc + (caze.status === 'passed' || caze.status === 'warning' ? 1:0), 0);
56
+ const failedCases = suiteResult.cases.reduce((acc, caze) => acc + (caze.status === 'failed' ? 1:0), 0);
57
+ const totalCases = suiteResult.cases.length;
58
+ const passedCasesRatio = ((passedCases / totalCases) * 100).toFixed(0) + '%';
59
+ const failedCasesRatio = ((failedCases / totalCases) * 100).toFixed(0) + '%';
60
+ %>
61
+ <tr>
62
+ <td><%= suiteResult.name %></td>
63
+ <td class="device-browser"><%= deviceBrowserName %></td>
64
+ <td><%= platformName %></td>
65
+ <td>
66
+
67
+ <div class="progress">
68
+ <div class="progress-bar progress-bar-success" style="width: <%= passedCasesRatio %>">
69
+ <span><%= passedCasesRatio %> (<%= passedCases %>)</span>
70
+ </div>
71
+ <div class="progress-bar progress-bar-danger" style="width: <%= failedCasesRatio %>">
72
+ <span><%= failedCasesRatio %> (<%= failedCases %>)</span>
73
+ </div>
74
+ </div>
75
+ </td>
76
+ <td><%= suiteResult.status.toUpperCase() %></td>
77
+ </tr>
78
+ <% }); %>
79
+ <% }); %>
80
+ </tbody>
81
+ </table>
82
+ </div>
83
+ </div>