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.
- package/CHANGELOG.md +1687 -1682
- package/LICENSE +672 -672
- package/README.md +37 -37
- package/build/core/OxygenCore.js +8 -2
- package/build/core/OxygenEvents.js +4 -2
- package/build/core/OxygenModule.js +1 -1
- package/build/core/OxygenService.js +1 -1
- package/build/core/OxygenSubModule.js +1 -1
- package/build/core/WebDriverModule.js +1 -1
- package/build/core/utils.js +1 -1
- package/build/errors/HookError.js +1 -1
- package/build/errors/ModuleError.js +1 -1
- package/build/errors/ModuleUnavailableError.js +1 -1
- package/build/errors/OxygenError.js +1 -1
- package/build/errors/ScriptNotFound.js +1 -1
- package/build/errors/helper.js +1 -1
- package/build/index.js +1 -1
- package/build/lib/cli-util.js +25 -6
- package/build/lib/cli.js +2 -2
- package/build/lib/debugger.js +1 -1
- package/build/lib/img-merge.js +1 -1
- package/build/lib/launcher.js +1 -1
- package/build/lib/logger.js +43 -43
- package/build/lib/moduleRequire.js +1 -1
- package/build/lib/parallel-launcher.js +1 -1
- package/build/lib/param-manager.js +1 -1
- package/build/lib/param-reader-csv.js +1 -1
- package/build/lib/param-reader-excel.js +1 -1
- package/build/lib/param-reader-json.js +1 -1
- package/build/lib/text-to-image.js +1 -1
- package/build/lib/util.js +2 -2
- package/build/model/case-result.js +1 -1
- package/build/model/failure.js +1 -1
- package/build/model/status.js +1 -1
- package/build/model/step-result.js +1 -1
- package/build/model/suite-result.js +2 -1
- package/build/model/test-result.js +1 -1
- package/build/model/testcase.js +1 -1
- package/build/model/testsuite.js +1 -1
- package/build/ox_modules/index.js +1 -1
- package/build/ox_modules/module-assert.js +37 -37
- package/build/ox_modules/module-date.js +24 -24
- package/build/ox_modules/module-db.js +52 -52
- package/build/ox_modules/module-email.js +59 -59
- package/build/ox_modules/module-eyes.js +34 -34
- package/build/ox_modules/module-http/ntlm-util.js +10 -10
- package/build/ox_modules/module-http/ntlm.js +15 -15
- package/build/ox_modules/module-http.js +132 -132
- package/build/ox_modules/module-log.js +27 -27
- package/build/ox_modules/module-mailinator.js +87 -87
- package/build/ox_modules/module-mob/commands/alertAccept.js +17 -17
- package/build/ox_modules/module-mob/commands/alertDismiss.js +17 -17
- package/build/ox_modules/module-mob/commands/assertAlert.js +20 -20
- package/build/ox_modules/module-mob/commands/assertText.js +21 -21
- package/build/ox_modules/module-mob/commands/assertTitle.js +19 -19
- package/build/ox_modules/module-mob/commands/assertValue.js +18 -18
- package/build/ox_modules/module-mob/commands/back.js +16 -16
- package/build/ox_modules/module-mob/commands/clear.js +19 -19
- package/build/ox_modules/module-mob/commands/click.js +17 -17
- package/build/ox_modules/module-mob/commands/clickHidden.js +17 -17
- package/build/ox_modules/module-mob/commands/clickLong.js +18 -18
- package/build/ox_modules/module-mob/commands/clickMultipleTimes.js +18 -18
- package/build/ox_modules/module-mob/commands/closeApp.js +16 -16
- package/build/ox_modules/module-mob/commands/debug.js +16 -16
- package/build/ox_modules/module-mob/commands/dragAndDrop.js +19 -19
- package/build/ox_modules/module-mob/commands/enableNetwork.js +27 -27
- package/build/ox_modules/module-mob/commands/execute.js +21 -21
- package/build/ox_modules/module-mob/commands/findElement.js +20 -20
- package/build/ox_modules/module-mob/commands/findElements.js +23 -23
- package/build/ox_modules/module-mob/commands/getAlertText.js +17 -17
- package/build/ox_modules/module-mob/commands/getAppiumLogs.js +16 -16
- package/build/ox_modules/module-mob/commands/getBrowserLogs.js +16 -16
- package/build/ox_modules/module-mob/commands/getCurrentActivity.js +15 -15
- package/build/ox_modules/module-mob/commands/getCurrentPackage.js +15 -15
- package/build/ox_modules/module-mob/commands/getDeviceLogs.js +16 -16
- package/build/ox_modules/module-mob/commands/getDeviceTime.js +16 -16
- package/build/ox_modules/module-mob/commands/getLocation.js +20 -20
- package/build/ox_modules/module-mob/commands/getSource.js +16 -16
- package/build/ox_modules/module-mob/commands/getText.js +18 -18
- package/build/ox_modules/module-mob/commands/getTitle.js +13 -13
- package/build/ox_modules/module-mob/commands/getUrl.js +17 -17
- package/build/ox_modules/module-mob/commands/getValue.js +18 -18
- package/build/ox_modules/module-mob/commands/getWindowHandles.js +17 -17
- package/build/ox_modules/module-mob/commands/hideKeyboard.js +21 -21
- package/build/ox_modules/module-mob/commands/index.js +1 -1
- package/build/ox_modules/module-mob/commands/installApp.js +16 -16
- package/build/ox_modules/module-mob/commands/isAppInstalled.js +16 -16
- package/build/ox_modules/module-mob/commands/isCheckable.js +18 -18
- package/build/ox_modules/module-mob/commands/isChecked.js +18 -18
- package/build/ox_modules/module-mob/commands/isClickable.js +18 -18
- package/build/ox_modules/module-mob/commands/isExist.js +19 -19
- package/build/ox_modules/module-mob/commands/isSelected.js +23 -23
- package/build/ox_modules/module-mob/commands/isVisible.js +19 -19
- package/build/ox_modules/module-mob/commands/isWebViewContext.js +16 -16
- package/build/ox_modules/module-mob/commands/launchApp.js +15 -15
- package/build/ox_modules/module-mob/commands/longPressKeyCode.js +18 -18
- package/build/ox_modules/module-mob/commands/open.js +17 -17
- package/build/ox_modules/module-mob/commands/pause.js +16 -16
- package/build/ox_modules/module-mob/commands/removeApp.js +16 -16
- package/build/ox_modules/module-mob/commands/resetApp.js +15 -15
- package/build/ox_modules/module-mob/commands/scrollIntoElement.js +22 -22
- package/build/ox_modules/module-mob/commands/scrollIntoView.js +27 -27
- package/build/ox_modules/module-mob/commands/select.js +24 -24
- package/build/ox_modules/module-mob/commands/selectFrame.js +23 -23
- package/build/ox_modules/module-mob/commands/selectWindow.js +28 -28
- package/build/ox_modules/module-mob/commands/sendKeys.js +29 -29
- package/build/ox_modules/module-mob/commands/setContext.js +16 -16
- package/build/ox_modules/module-mob/commands/setNativeContext.js +15 -15
- package/build/ox_modules/module-mob/commands/setTimeout.js +21 -21
- package/build/ox_modules/module-mob/commands/setWebViewContext.js +16 -16
- package/build/ox_modules/module-mob/commands/shake.js +16 -16
- package/build/ox_modules/module-mob/commands/smsClickLink.js +19 -19
- package/build/ox_modules/module-mob/commands/smsGetText.js +20 -20
- package/build/ox_modules/module-mob/commands/swipe.js +20 -20
- package/build/ox_modules/module-mob/commands/swipeElement.js +20 -20
- package/build/ox_modules/module-mob/commands/swipeScreen.js +20 -20
- package/build/ox_modules/module-mob/commands/takeScreenshot.js +17 -17
- package/build/ox_modules/module-mob/commands/tap.js +17 -17
- package/build/ox_modules/module-mob/commands/type.js +20 -20
- package/build/ox_modules/module-mob/commands/unlockPattern.js +22 -22
- package/build/ox_modules/module-mob/commands/waitForExist.js +18 -18
- package/build/ox_modules/module-mob/commands/waitForInteractable.js +17 -17
- package/build/ox_modules/module-mob/commands/waitForVisible.js +17 -17
- package/build/ox_modules/module-mob.js +83 -79
- package/build/ox_modules/module-pdf.js +35 -35
- package/build/ox_modules/module-proxy.js +77 -77
- package/build/ox_modules/module-serial.js +55 -55
- package/build/ox_modules/module-shell.js +25 -25
- package/build/ox_modules/module-soap.js +72 -72
- package/build/ox_modules/module-twilio.js +41 -41
- package/build/ox_modules/module-utils.js +91 -91
- package/build/ox_modules/module-web/commands/alertAccept.js +17 -17
- package/build/ox_modules/module-web/commands/alertDismiss.js +17 -17
- package/build/ox_modules/module-web/commands/assertAlert.js +20 -20
- package/build/ox_modules/module-web/commands/assertExist.js +17 -17
- package/build/ox_modules/module-web/commands/assertSelectedLabel.js +21 -21
- package/build/ox_modules/module-web/commands/assertSelectedValue.js +21 -21
- package/build/ox_modules/module-web/commands/assertText.js +21 -21
- package/build/ox_modules/module-web/commands/assertTextNotPresent.js +18 -18
- package/build/ox_modules/module-web/commands/assertTextPresent.js +18 -18
- package/build/ox_modules/module-web/commands/assertTitle.js +19 -19
- package/build/ox_modules/module-web/commands/assertValue.js +20 -20
- package/build/ox_modules/module-web/commands/back.js +16 -16
- package/build/ox_modules/module-web/commands/clear.js +18 -18
- package/build/ox_modules/module-web/commands/click.js +25 -25
- package/build/ox_modules/module-web/commands/clickHidden.js +23 -23
- package/build/ox_modules/module-web/commands/closeWindow.js +15 -15
- package/build/ox_modules/module-web/commands/debug.js +15 -15
- package/build/ox_modules/module-web/commands/deleteCookies.js +12 -12
- package/build/ox_modules/module-web/commands/deselect.js +22 -22
- package/build/ox_modules/module-web/commands/doubleClick.js +17 -17
- package/build/ox_modules/module-web/commands/dragAndDrop.js +20 -20
- package/build/ox_modules/module-web/commands/execute.js +24 -24
- package/build/ox_modules/module-web/commands/fileBrowse.js +18 -18
- package/build/ox_modules/module-web/commands/findElement.js +19 -19
- package/build/ox_modules/module-web/commands/findElements.js +22 -22
- package/build/ox_modules/module-web/commands/fullscreenWindow.js +14 -14
- package/build/ox_modules/module-web/commands/getAlertText.js +16 -16
- package/build/ox_modules/module-web/commands/getAttribute.js +19 -19
- package/build/ox_modules/module-web/commands/getBrowserLogs.js +17 -17
- package/build/ox_modules/module-web/commands/getCookies.js +13 -13
- package/build/ox_modules/module-web/commands/getCssValue.js +19 -19
- package/build/ox_modules/module-web/commands/getElementCount.js +17 -17
- package/build/ox_modules/module-web/commands/getHTML.js +17 -17
- package/build/ox_modules/module-web/commands/getSource.js +16 -16
- package/build/ox_modules/module-web/commands/getText.js +18 -18
- package/build/ox_modules/module-web/commands/getTitle.js +12 -12
- package/build/ox_modules/module-web/commands/getUrl.js +16 -16
- package/build/ox_modules/module-web/commands/getValue.js +18 -18
- package/build/ox_modules/module-web/commands/getWindowHandles.js +16 -16
- package/build/ox_modules/module-web/commands/getWindowSize.js +16 -16
- package/build/ox_modules/module-web/commands/getXMLPageSource.js +16 -16
- package/build/ox_modules/module-web/commands/index.js +1 -1
- package/build/ox_modules/module-web/commands/isAlertPresent.js +16 -16
- package/build/ox_modules/module-web/commands/isChecked.js +18 -18
- package/build/ox_modules/module-web/commands/isExist.js +19 -19
- package/build/ox_modules/module-web/commands/isInteractable.js +22 -22
- package/build/ox_modules/module-web/commands/isSelected.js +23 -23
- package/build/ox_modules/module-web/commands/isVisible.js +19 -19
- package/build/ox_modules/module-web/commands/makeVisible.js +25 -25
- package/build/ox_modules/module-web/commands/maximizeWindow.js +14 -14
- package/build/ox_modules/module-web/commands/minimizeWindow.js +14 -14
- package/build/ox_modules/module-web/commands/mock.js +20 -20
- package/build/ox_modules/module-web/commands/mockClearAll.js +12 -12
- package/build/ox_modules/module-web/commands/mockRestoreAll.js +12 -12
- package/build/ox_modules/module-web/commands/newWindow.js +16 -16
- package/build/ox_modules/module-web/commands/open.js +16 -16
- package/build/ox_modules/module-web/commands/pause.js +15 -15
- package/build/ox_modules/module-web/commands/point.js +21 -21
- package/build/ox_modules/module-web/commands/pointJS.js +15 -15
- package/build/ox_modules/module-web/commands/refresh.js +15 -15
- package/build/ox_modules/module-web/commands/rightClick.js +17 -17
- package/build/ox_modules/module-web/commands/rightClickActions.js +19 -19
- package/build/ox_modules/module-web/commands/scrollToElement.js +21 -21
- package/build/ox_modules/module-web/commands/select.js +23 -23
- package/build/ox_modules/module-web/commands/selectFrame.js +24 -24
- package/build/ox_modules/module-web/commands/selectWindow.js +27 -27
- package/build/ox_modules/module-web/commands/sendKeys.js +22 -22
- package/build/ox_modules/module-web/commands/setAutoWaitForAngular.js +20 -20
- package/build/ox_modules/module-web/commands/setTimeout.js +21 -21
- package/build/ox_modules/module-web/commands/setWindowSize.js +17 -17
- package/build/ox_modules/module-web/commands/takeScreenshot.js +17 -17
- package/build/ox_modules/module-web/commands/type.js +20 -20
- package/build/ox_modules/module-web/commands/verifyAlert.js +20 -20
- package/build/ox_modules/module-web/commands/verifyExist.js +17 -17
- package/build/ox_modules/module-web/commands/verifySelectedLabel.js +21 -21
- package/build/ox_modules/module-web/commands/verifySelectedValue.js +21 -21
- package/build/ox_modules/module-web/commands/verifyText.js +21 -21
- package/build/ox_modules/module-web/commands/verifyTextNotPresent.js +18 -18
- package/build/ox_modules/module-web/commands/verifyTextPresent.js +18 -18
- package/build/ox_modules/module-web/commands/verifyTitle.js +19 -19
- package/build/ox_modules/module-web/commands/verifyValue.js +20 -20
- package/build/ox_modules/module-web/commands/waitForAngular.js +19 -19
- package/build/ox_modules/module-web/commands/waitForExist.js +17 -17
- package/build/ox_modules/module-web/commands/waitForInteractable.js +17 -17
- package/build/ox_modules/module-web/commands/waitForNotExist.js +17 -17
- package/build/ox_modules/module-web/commands/waitForNotText.js +20 -20
- package/build/ox_modules/module-web/commands/waitForNotValue.js +20 -20
- package/build/ox_modules/module-web/commands/waitForText.js +20 -20
- package/build/ox_modules/module-web/commands/waitForValue.js +20 -20
- package/build/ox_modules/module-web/commands/waitForVisible.js +17 -17
- package/build/ox_modules/module-web/commands/waitForWindow.js +22 -22
- package/build/ox_modules/module-web.js +105 -100
- package/build/ox_modules/module-win/commands/assertText.js +17 -17
- package/build/ox_modules/module-win/commands/assertTitle.js +15 -15
- package/build/ox_modules/module-win/commands/assertValue.js +14 -14
- package/build/ox_modules/module-win/commands/back.js +11 -11
- package/build/ox_modules/module-win/commands/clear.js +13 -13
- package/build/ox_modules/module-win/commands/click.js +13 -13
- package/build/ox_modules/module-win/commands/clickLong.js +14 -14
- package/build/ox_modules/module-win/commands/clickMultipleTimes.js +14 -14
- package/build/ox_modules/module-win/commands/findElement.js +15 -15
- package/build/ox_modules/module-win/commands/findElements.js +15 -15
- package/build/ox_modules/module-win/commands/getAppiumLogs.js +12 -12
- package/build/ox_modules/module-win/commands/getCurrentWindowHandle.js +15 -15
- package/build/ox_modules/module-win/commands/getLocation.js +14 -14
- package/build/ox_modules/module-win/commands/getSource.js +12 -12
- package/build/ox_modules/module-win/commands/getText.js +14 -14
- package/build/ox_modules/module-win/commands/getValue.js +14 -14
- package/build/ox_modules/module-win/commands/getWindowHandles.js +15 -15
- package/build/ox_modules/module-win/commands/index.js +1 -1
- package/build/ox_modules/module-win/commands/isCheckable.js +14 -14
- package/build/ox_modules/module-win/commands/isChecked.js +14 -14
- package/build/ox_modules/module-win/commands/isClickable.js +14 -14
- package/build/ox_modules/module-win/commands/isExist.js +15 -15
- package/build/ox_modules/module-win/commands/isSelected.js +14 -14
- package/build/ox_modules/module-win/commands/isVisible.js +15 -15
- package/build/ox_modules/module-win/commands/open.js +13 -13
- package/build/ox_modules/module-win/commands/pause.js +12 -12
- package/build/ox_modules/module-win/commands/rightClick.js +13 -13
- package/build/ox_modules/module-win/commands/selectWindow.js +23 -23
- package/build/ox_modules/module-win/commands/sendKeys.js +22 -22
- package/build/ox_modules/module-win/commands/setTimeout.js +17 -17
- package/build/ox_modules/module-win/commands/takeScreenshot.js +16 -16
- package/build/ox_modules/module-win/commands/tap.js +13 -13
- package/build/ox_modules/module-win/commands/type.js +16 -16
- package/build/ox_modules/module-win/commands/waitForExist.js +14 -14
- package/build/ox_modules/module-win/commands/waitForInteractable.js +16 -16
- package/build/ox_modules/module-win/commands/waitForVisible.js +13 -13
- package/build/ox_modules/module-win.js +47 -47
- package/build/ox_modules/utils.js +8 -8
- package/build/ox_reporters/excel/template.json +48 -48
- package/build/ox_reporters/html/index.ejs +163 -163
- package/build/ox_reporters/html/summary.ejs +77 -77
- package/build/ox_reporters/html/tests-details.ejs +134 -134
- package/build/ox_reporters/html/tests-devices-browsers.ejs +83 -83
- package/build/ox_reporters/reporter-excel.js +1 -1
- package/build/ox_reporters/reporter-html.js +1 -1
- package/build/ox_reporters/reporter-json.js +1 -1
- package/build/ox_reporters/reporter-junit.js +1 -1
- package/build/ox_reporters/reporter-pdf.js +1 -1
- package/build/ox_reporters/reporter-rp.js +376 -0
- package/build/ox_reporters/reporter-xml.js +1 -1
- package/build/ox_services/service-devtools/submodule-network.js +1 -1
- package/build/ox_services/service-devtools.js +1 -1
- package/build/reporter/FileReporterBase.js +1 -1
- package/build/reporter/ReportAggregator.js +110 -43
- package/build/reporter/ReporterBase.js +2 -2
- package/build/runners/WorkerProcess.js +1 -1
- package/build/runners/cucumber/CucumberEventListener.js +1 -1
- package/build/runners/cucumber/CucumberReporter.js +1 -1
- package/build/runners/cucumber/CucumberWorker.js +1 -1
- package/build/runners/cucumber/index.js +1 -1
- package/build/runners/cucumber/worker.js +1 -1
- package/build/runners/index.js +1 -1
- package/build/runners/oxygen/OxygenWorker.js +1 -1
- package/build/runners/oxygen/index.js +37 -22
- package/build/runners/oxygen/worker.js +1 -1
- package/config/default.json +6 -6
- package/log.txt +1614 -0
- package/package.json +136 -135
- package/types/index.d.ts +70 -70
- package/types/module-eyes.d.ts +39 -39
- package/types/module-http.d.ts +163 -163
- package/types/module-log.d.ts +34 -34
- package/types/module-mob.d.ts +966 -966
- package/types/module-pdf.d.ts +40 -40
- package/types/module-proxy.d.ts +100 -100
- package/types/module-shell.d.ts +24 -24
- package/types/module-utils.d.ts +99 -99
- package/types/module-web.d.ts +1053 -1053
- package/types/module-win.d.ts +352 -352
- 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>
|