Skip to content

Commit d58670f

Browse files
committed
switch to wdio reporter for sending assertions to testable
1 parent dfed7c3 commit d58670f

17 files changed

+357
-5042
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Selenium Remote Examples
33

44
Example code for running a Selenium test against the Testable remote grid. Currently implemented with the <a target="_blank" href="https://webdriver.io">Webdriver.io</a> Selenium client library.
55

6-
The examples include an `assertion-reporter.js` utility that reports the test steps back to Testable as assertions that can be seen along side the test results.
6+
The examples include an `assertion-reporter.js` Webdriver.io reporter that reports the test steps back to Testable as assertions that can be seen along side the test results.
77

88
### Steps to Run
99

wdio/01-chrome-latest-shared-region.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
exports.config = {
24
specs: [
35
"tests/test.simple.js"
@@ -13,6 +15,9 @@ exports.config = {
1315
}
1416
}
1517
],
18+
reporters: [
19+
WdioAssertionReporter
20+
],
1621
user: "user-to-log",
1722
key: process.env.TESTABLE_KEY,
1823
hostname: "selenium.testable.io",

wdio/02-openfin-shared-region.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
exports.config = {
24
specs: [
35
"tests/openfin/test.*.js"
@@ -11,6 +13,9 @@ exports.config = {
1113
}
1214
}
1315
],
16+
reporters: [
17+
WdioAssertionReporter
18+
],
1419
user: "user-to-log",
1520
key: process.env.TESTABLE_KEY,
1621
hostname: "selenium.testable.io",

wdio/03-firefox-latest-shared-region.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
const reportId = `test-${Date.now()}`;
24

35
exports.config = {
@@ -16,6 +18,9 @@ exports.config = {
1618
}
1719
}
1820
],
21+
reporters: [
22+
WdioAssertionReporter
23+
],
1924
user: "user-to-log",
2025
key: process.env.TESTABLE_KEY,
2126
hostname: "selenium.testable.io",

wdio/04-chrome-latest-aws-all-options.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
exports.config = {
24
specs: [
35
"tests/test.simple.js"
@@ -21,6 +23,9 @@ exports.config = {
2123
}
2224
}
2325
],
26+
reporters: [
27+
WdioAssertionReporter
28+
],
2429
user: "user-to-log",
2530
key: process.env.TESTABLE_KEY,
2631
hostname: "selenium.testable.io",

wdio/05-debug-shared-region.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
exports.config = {
24
specs: [
35
"tests/debug/test.debug.js"
@@ -13,6 +15,9 @@ exports.config = {
1315
}
1416
}
1517
],
18+
reporters: [
19+
WdioAssertionReporter
20+
],
1621
user: "user-to-log",
1722
key: process.env.TESTABLE_KEY,
1823
hostname: "selenium.testable.io",

wdio/chrome-latest-1-shared-region.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
exports.config = {
24
specs: [
35
"tests/test.simple.js"
@@ -8,6 +10,9 @@ exports.config = {
810
browserVersion: "Latest-1"
911
}
1012
],
13+
reporters: [
14+
WdioAssertionReporter
15+
],
1116
user: "user-to-log",
1217
key: process.env.TESTABLE_KEY,
1318
hostname: "selenium.testable.io",

wdio/chrome-latest-all-options.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
exports.config = {
24
specs: [
35
"tests/test.*.js"
@@ -21,6 +23,9 @@ exports.config = {
2123
}
2224
}
2325
],
26+
reporters: [
27+
WdioAssertionReporter
28+
],
2429
user: "user-to-log",
2530
key: process.env.TESTABLE_KEY,
2631
hostname: "selenium.testable.io",

wdio/chrome-latest-azure-all-options.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
exports.config = {
24
specs: [
35
"tests/test.*.js"
@@ -23,6 +25,9 @@ exports.config = {
2325
}
2426
}
2527
],
28+
reporters: [
29+
WdioAssertionReporter
30+
],
2631
user: "user-to-log",
2732
key: process.env.TESTABLE_KEY,
2833
hostname: "selenium.testable.io",

wdio/chrome-latest-ondemand-region.conf.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const WdioAssertionReporter = require('./utils/assertion-reporter');
2+
13
exports.config = {
24
specs: [
35
"tests/test.testable-commands.js"
@@ -12,6 +14,9 @@ exports.config = {
1214
}
1315
}
1416
],
17+
reporters: [
18+
WdioAssertionReporter
19+
],
1520
user: "user-to-log",
1621
key: process.env.TESTABLE_KEY,
1722
hostname: "selenium.testable.io",

0 commit comments

Comments
 (0)