diff --git a/jsLibrary/multipleDevices/multi.js b/jsLibrary/multipleDevices/multi.js index eb260d4..2518f73 100644 --- a/jsLibrary/multipleDevices/multi.js +++ b/jsLibrary/multipleDevices/multi.js @@ -44,8 +44,8 @@ function startTest(cmds, config) { const executeCmd = isWin ? 'mocha.cmd' : 'mocha'; cmds.forEach(({options, name}) => { let child = spawn(executeCmd, [`${test}`,'--reporter', 'mochawesome', '--reporter-options', `reportDir=${outputdir},reportFilename=${name}`, options]); - child.on('error', (messasge) => { - console.log(`${name} error: ${messasge}`); + child.on('error', (message) => { + console.log(`${name} error: ${message}`); }); child.stdout.on('data', (data) => { console.log(`${name} stdout:\n${data}`); diff --git a/jsLibrary/package.json b/jsLibrary/package.json index 57aad48..5dfb3a4 100644 --- a/jsLibrary/package.json +++ b/jsLibrary/package.json @@ -7,6 +7,7 @@ "chai": "4.2.0", "form-data": "3.0.0", "mocha": "7.0.1", + "mochawesome": "5.0.0", "nock": "12.0.1" } } diff --git a/jsLibrary/tests/test_7-EpisodePicker.js b/jsLibrary/tests/test_7-EpisodePicker.js index da1428f..2922ecf 100644 --- a/jsLibrary/tests/test_7-EpisodePicker.js +++ b/jsLibrary/tests/test_7-EpisodePicker.js @@ -52,7 +52,7 @@ describe('test_7-EpisodePicker', () => { expect(res).equal(true); }); - it('Verify is Categort list loaded', async function() { + it('Verify is Category list loaded', async function() { this.timeout(50000); await library.sendKey('select', 3); const res = await library.verifyIsScreenLoaded({'elementData': [{'using': 'tag', 'value': 'CategoryListView'}]}); diff --git a/jsLibrary/uTest/test_rokuLibrary.js b/jsLibrary/uTest/test_rokuLibrary.js index c57735c..014ef13 100644 --- a/jsLibrary/uTest/test_rokuLibrary.js +++ b/jsLibrary/uTest/test_rokuLibrary.js @@ -337,7 +337,7 @@ describe('rokuLibrary tests', () => { } }); - it('test verify is playack started success', async () => { + it('test verify is playback started success', async () => { nock(baseUrl) .get(`/${sessionId}/player`) .reply(200, respWithPlayerInfo); @@ -345,7 +345,7 @@ describe('rokuLibrary tests', () => { expect(result).to.equal(true); }); - it('test verify is playack started error', async () => { + it('test verify is playback started error', async () => { nock(baseUrl) .get(`/${sessionId}/player`) .reply(500, responseWithError); diff --git a/sample/Postman/README.md b/sample/Postman/README.md index 392e94d..b081591 100644 --- a/sample/Postman/README.md +++ b/sample/Postman/README.md @@ -1,3 +1,4 @@ + # Importing and testing the Postman collection Roku's test automation software includes a Postman collection that enables you to test the Roku WebDriver API calls and write test suites. To import the Postman JSON collection and use it to test the Roku WebDriver calls, follow these steps: @@ -17,3 +18,4 @@ Roku's test automation software includes a Postman collection that enables you t ![roku-webdriver-postman-collection](https://image.roku.com/ZHZscHItMTc2/roku-webdriver-postman-collection.png) 7. When you have finished testing, send the **DEL delete session** request to remove the session. + diff --git a/sample/Postman/WebDriver_endpoints b/sample/Postman/WebDriver_endpoints.json similarity index 100% rename from sample/Postman/WebDriver_endpoints rename to sample/Postman/WebDriver_endpoints.json