2.1.1 • Published 7 months ago

wdio-junitcsv v2.1.1

Weekly downloads
-
License
GNU
Repository
github
Last release
7 months ago

wdio-junitcsv

Converts Junit reports for Webdriver IO into CSV format.

Node package installation

npm install wdio-junitcsv

Usage

The script takes one argument, a directory path, which it parses for Junit reporter format XML files and merges them into a single CSV file. Output is returned to STDOUT which can be piped to a file or clipboard.

Command line

node junitcsv ./path/to/reports

Imported as Node.js module

const wdioJunitCSV = require('wdio-junitcsv');

console.log(wdioJunitCSV('./path/to/reports/'));

CSV ouptut fields

Field nameDescription
UUIDUniversal unique identifier for test case - generated from timestamp of test run
uniqueIdID combining first three characters from test attributes (script ID, test ID, browser name, platform name, device name)
specPathDirectory path to which test suite belongs
scriptIdID for script extracted from suite name. If present, formed from initial alpha character and subsequent numeric characters
testIdID for test case extracted from test name. If present, formed from initial alpha character and subsequent numeric characters
suiteNameName of test suite
browserNameBrowser name from capabilities where supplied
platformNameOperating system
deviceNameDevice name - defaults to desktop for desktop browser sessions
testNameName of test case within suite
statePassed or failed, based on whether <failed> element is present in Junit test case
errorTaken from error message in Junit report
urlInitialFirst URL encountered when running the test
urlExpectedWhen a test case fails on URL matching, extracts the expected URL
urlActualWhen a test case fails on URL matching, extracts the actual URL returned
imageVarianceWhen using wdio-image-comparison-service and the test fails, returns the reported degree of variance beteen images
startTime stamp for when test was started
durationDuration of test suite in seconds
2.1.1

7 months ago

2.1.0

8 months ago

1.1.1

2 years ago

2.0.0

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago