LambdaTest / webdriverio-selenium-sample

A sample test for LambdaTest distributed grid with webdriverio
https://www.lambdatest.com/
14 stars 36 forks source link

Tests in queue do not run after active test completes #11

Closed jeffbaxter17 closed 3 years ago

jeffbaxter17 commented 3 years ago

When I have more than one test, the tests that are in the queue do not run and sometimes double after longs periods of waiting. The problem seems to be the amount of time it waits after the test completes. You can see in the stack trace below that the connection does retry and reconnect, but the connection waits 2-5 minutes after the first test completes to move onto the test case.

Execution of 2 spec files started at 2020-11-02T16:04:21.279Z

2020-11-02T16:04:21.491Z INFO @wdio/cli:launcher: Run onPrepare hook
2020-11-02T16:04:21.501Z INFO @wdio/local-runner: Start worker 0-0 with arg: conf/desktop.conf.js
2020-11-02T16:04:21.529Z INFO @wdio/local-runner: Start worker 1-0 with arg: conf/desktop.conf.js
[0-0] 2020-11-02T16:04:22.163Z INFO @wdio/local-runner: Run worker command: run
[1-0] 2020-11-02T16:04:22.178Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in Chrome - C:\Users\jeff\Documents\tools\lambdatest-webdriverio\webdriverio-selenium-sample\tests\specs\desktop_test.js
[1-0] RUNNING in Firefox - C:\Users\jeff\Documents\tools\lambdatest-webdriverio\webdriverio-selenium-sample\tests\specs\desktop_test.js
[0-0] 2020-11-02T16:04:22.640Z INFO webdriverio: Initiate new session using the webdriver protocol
[0-0] 2020-11-02T16:04:22.644Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session
[0-0] 2020-11-02T16:04:22.644Z INFO webdriver: DATA {
  capabilities: {
    alwaysMatch: {
      platform: 'Windows 10',
      browserName: 'Chrome',
      version: '86.0',
      resolution: '1920x1080',
      name: 'LambdaTest',
      build: 'LambdaTest',
      network: false,
      video: true,
      visual: false,
      console: false
    },
    firstMatch: [ {} ]
  },
  desiredCapabilities: {
    platform: 'Windows 10',
    browserName: 'Chrome',
    version: '86.0',
    resolution: '1920x1080',
    name: 'LambdaTest',
    build: 'LambdaTest',
    network: false,
    video: true,
    visual: false,
    console: false
  }
}
[1-0] 2020-11-02T16:04:22.661Z INFO webdriverio: Initiate new session using the webdriver protocol
2020-11-02T16:04:22.665Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session
2020-11-02T16:04:22.665Z INFO webdriver: DATA {
  capabilities: {
    alwaysMatch: {
      platform: 'Windows 10',
      browserName: 'Firefox',
      version: '82.0',
      resolution: '1920x1080',
      name: 'LambdaTest',
      build: 'LambdaTest',
      network: false,
      video: true,
      visual: false,
      console: false
    },
    firstMatch: [ {} ]
  },
  desiredCapabilities: {
    platform: 'Windows 10',
    browserName: 'Firefox',
    version: '82.0',
    resolution: '1920x1080',
    name: 'LambdaTest',
    build: 'LambdaTest',
    network: false,
    video: true,
    visual: false,
    console: false
  }
}
[1-0] 2020-11-02T16:04:31.379Z INFO webdriver: COMMAND navigateTo("https://mister-medicare.hatfield.marketing/")
[1-0] 2020-11-02T16:04:31.379Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/url
2020-11-02T16:04:31.379Z INFO webdriver: DATA { url: 'https://mister-medicare.hatfield.marketing/' }
[1-0] 2020-11-02T16:04:33.221Z INFO webdriver: COMMAND findElement("css selector", ".brand-logos-section")
[1-0] 2020-11-02T16:04:33.222Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/element
2020-11-02T16:04:33.222Z INFO webdriver: DATA { using: 'css selector', value: '.brand-logos-section' }
[1-0] 2020-11-02T16:04:33.326Z INFO webdriver: RESULT {
  'element-6066-11e4-a52e-4f735466cecf': 'b08e7002-6df4-442f-81db-840a3719ba31'
}
[1-0] 2020-11-02T16:04:33.332Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[1-0] 2020-11-02T16:04:33.332Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/execute/sync
2020-11-02T16:04:33.332Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': 'b08e7002-6df4-442f-81db-840a3719ba31',
      ELEMENT: 'b08e7002-6df4-442f-81db-840a3719ba31'
    },
    true
  ]
}
[1-0] 2020-11-02T16:04:33.434Z INFO webdriver: COMMAND findElement("css selector", ".contact-form-section")
[1-0] 2020-11-02T16:04:33.434Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/element
2020-11-02T16:04:33.435Z INFO webdriver: DATA { using: 'css selector', value: '.contact-form-section' }
[1-0] 2020-11-02T16:04:33.529Z INFO webdriver: RESULT {
  'element-6066-11e4-a52e-4f735466cecf': '7c9af7ac-c7ff-4f74-b70d-c7b6c39ba9f2'
}
[1-0] 2020-11-02T16:04:33.533Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[1-0] 2020-11-02T16:04:33.533Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/execute/sync
2020-11-02T16:04:33.533Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '7c9af7ac-c7ff-4f74-b70d-c7b6c39ba9f2',
      ELEMENT: '7c9af7ac-c7ff-4f74-b70d-c7b6c39ba9f2'
    },
    true
  ]
}
[1-0] 2020-11-02T16:04:33.639Z INFO webdriver: COMMAND navigateTo("https://mister-medicare.hatfield.marketing/dental-plans")
[1-0] 2020-11-02T16:04:33.639Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/url
2020-11-02T16:04:33.639Z INFO webdriver: DATA { url: 'https://mister-medicare.hatfield.marketing/dental-plans' }
[1-0] 2020-11-02T16:04:35.105Z INFO webdriver: COMMAND findElement("css selector", ".brand-logos-section")
[1-0] 2020-11-02T16:04:35.105Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/element
2020-11-02T16:04:35.105Z INFO webdriver: DATA { using: 'css selector', value: '.brand-logos-section' }
[1-0] 2020-11-02T16:04:35.206Z INFO webdriver: RESULT {
  'element-6066-11e4-a52e-4f735466cecf': '0290dd31-e1ae-4ab0-9ecc-47d4671308cb'
}
[1-0] 2020-11-02T16:04:35.210Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[1-0] 2020-11-02T16:04:35.211Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/execute/sync
2020-11-02T16:04:35.211Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '0290dd31-e1ae-4ab0-9ecc-47d4671308cb',
      ELEMENT: '0290dd31-e1ae-4ab0-9ecc-47d4671308cb'
    },
    true
  ]
}
[1-0] 2020-11-02T16:04:35.312Z INFO webdriver: COMMAND findElement("css selector", ".contact-form-section")
[1-0] 2020-11-02T16:04:35.313Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/element
2020-11-02T16:04:35.313Z INFO webdriver: DATA { using: 'css selector', value: '.contact-form-section' }
[1-0] 2020-11-02T16:04:35.413Z INFO webdriver: RESULT {
  'element-6066-11e4-a52e-4f735466cecf': '846d858f-749b-4399-a1dc-fe6348ea43c3'
}
[1-0] 2020-11-02T16:04:35.415Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[1-0] 2020-11-02T16:04:35.415Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/execute/sync
2020-11-02T16:04:35.415Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '846d858f-749b-4399-a1dc-fe6348ea43c3',
      ELEMENT: '846d858f-749b-4399-a1dc-fe6348ea43c3'
    },
    true
  ]
}
[1-0] 2020-11-02T16:04:35.513Z INFO webdriver: COMMAND navigateTo("https://mister-medicare.hatfield.marketing/about-mister-medicare")
[1-0] 2020-11-02T16:04:35.513Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/url
2020-11-02T16:04:35.513Z INFO webdriver: DATA {
  url: 'https://mister-medicare.hatfield.marketing/about-mister-medicare'
}
[1-0] 2020-11-02T16:04:37.748Z INFO webdriver: COMMAND findElement("css selector", ".brand-logos-section")
[1-0] 2020-11-02T16:04:37.749Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/element
2020-11-02T16:04:37.749Z INFO webdriver: DATA { using: 'css selector', value: '.brand-logos-section' }
[1-0] 2020-11-02T16:04:38.070Z INFO webdriver: RESULT {
  'element-6066-11e4-a52e-4f735466cecf': 'e923b1f1-edc3-4ea4-b14d-4c8f90de8c7e'
}
[1-0] 2020-11-02T16:04:38.073Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[1-0] 2020-11-02T16:04:38.074Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/execute/sync
2020-11-02T16:04:38.074Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': 'e923b1f1-edc3-4ea4-b14d-4c8f90de8c7e',
      ELEMENT: 'e923b1f1-edc3-4ea4-b14d-4c8f90de8c7e'
    },
    true
  ]
}
[1-0] 2020-11-02T16:04:38.205Z INFO webdriver: COMMAND findElement("css selector", ".contact-form-section")
[1-0] 2020-11-02T16:04:38.205Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/element
2020-11-02T16:04:38.205Z INFO webdriver: DATA { using: 'css selector', value: '.contact-form-section' }
[1-0] 2020-11-02T16:04:38.455Z INFO webdriver: RESULT {
  'element-6066-11e4-a52e-4f735466cecf': 'acebdb6a-060d-46a8-a9f1-fd2189d53766'
}
[1-0] 2020-11-02T16:04:38.458Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[1-0] 2020-11-02T16:04:38.459Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629/execute/sync
2020-11-02T16:04:38.459Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': 'acebdb6a-060d-46a8-a9f1-fd2189d53766',
      ELEMENT: 'acebdb6a-060d-46a8-a9f1-fd2189d53766'
    },
    true
  ]
}
[1-0] 2020-11-02T16:04:38.558Z INFO @wdio/lambdatest-service: Update job with sessionId 94ace3c4-7d43-4e34-8d2f-1d40c6592629, status: passed
[1-0] 2020-11-02T16:04:38.913Z INFO webdriver: COMMAND deleteSession()
[1-0] 2020-11-02T16:04:38.913Z INFO webdriver: [DELETE] http://hub.lambdatest.com:80/wd/hub/session/94ace3c4-7d43-4e34-8d2f-1d40c6592629
[1-0] PASSED in Firefox - C:\Users\jeff\Documents\tools\lambdatest-webdriverio\webdriverio-selenium-sample\tests\specs\desktop_test.js
[0-0] 2020-11-02T16:06:02.726Z WARN webdriver: Request failed due to ESOCKETTIMEDOUT
[0-0] 2020-11-02T16:06:02.726Z INFO webdriver: Retrying 1/5
2020-11-02T16:06:02.727Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session
2020-11-02T16:06:02.727Z INFO webdriver: DATA {
  capabilities: {
    alwaysMatch: {
      platform: 'Windows 10',
      browserName: 'Chrome',
      version: '86.0',
      resolution: '1920x1080',
      name: 'LambdaTest',
      build: 'LambdaTest',
      network: false,
      video: true,
      visual: false,
      console: false
    },
    firstMatch: [ {} ]
  },
  desiredCapabilities: {
    platform: 'Windows 10',
    browserName: 'Chrome',
    version: '86.0',
    resolution: '1920x1080',
    name: 'LambdaTest',
    build: 'LambdaTest',
    network: false,
    video: true,
    visual: false,
    console: false
  }
}
[0-0] 2020-11-02T16:06:09.491Z INFO webdriver: COMMAND navigateTo("https://mister-medicare.hatfield.marketing/")
[0-0] 2020-11-02T16:06:09.492Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/url
2020-11-02T16:06:09.492Z INFO webdriver: DATA { url: 'https://mister-medicare.hatfield.marketing/' }
[0-0] 2020-11-02T16:06:11.212Z INFO webdriver: COMMAND findElement("css selector", ".brand-logos-section")
[0-0] 2020-11-02T16:06:11.212Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/element
2020-11-02T16:06:11.212Z INFO webdriver: DATA { using: 'css selector', value: '.brand-logos-section' }
[0-0] 2020-11-02T16:06:11.313Z INFO webdriver: RESULT { ELEMENT: '0.0004651119544065718-1' }
[0-0] 2020-11-02T16:06:11.323Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[0-0] 2020-11-02T16:06:11.323Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/execute
[0-0] 2020-11-02T16:06:11.323Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '0.0004651119544065718-1',
      ELEMENT: '0.0004651119544065718-1'
    },
    true
  ]
}
[0-0] 2020-11-02T16:06:11.418Z INFO webdriver: COMMAND findElement("css selector", ".contact-form-section")
[0-0] 2020-11-02T16:06:11.418Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/element
2020-11-02T16:06:11.418Z INFO webdriver: DATA { using: 'css selector', value: '.contact-form-section' }
[0-0] 2020-11-02T16:06:11.588Z INFO webdriver: RESULT { ELEMENT: '0.0004651119544065718-2' }
[0-0] 2020-11-02T16:06:11.592Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[0-0] 2020-11-02T16:06:11.593Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/execute
2020-11-02T16:06:11.593Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '0.0004651119544065718-2',
      ELEMENT: '0.0004651119544065718-2'
    },
    true
  ]
}
[0-0] 2020-11-02T16:06:11.691Z INFO webdriver: COMMAND navigateTo("https://mister-medicare.hatfield.marketing/dental-plans")
[0-0] 2020-11-02T16:06:11.691Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/url
2020-11-02T16:06:11.691Z INFO webdriver: DATA { url: 'https://mister-medicare.hatfield.marketing/dental-plans' }
[0-0] 2020-11-02T16:06:12.641Z INFO webdriver: COMMAND findElement("css selector", ".brand-logos-section")
[0-0] 2020-11-02T16:06:12.641Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/element
2020-11-02T16:06:12.641Z INFO webdriver: DATA { using: 'css selector', value: '.brand-logos-section' }
[0-0] 2020-11-02T16:06:12.751Z INFO webdriver: RESULT { ELEMENT: '0.2360071775803776-1' }
[0-0] 2020-11-02T16:06:12.755Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[0-0] 2020-11-02T16:06:12.755Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/execute
2020-11-02T16:06:12.755Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '0.2360071775803776-1',
      ELEMENT: '0.2360071775803776-1'
    },
    true
  ]
}
[0-0] 2020-11-02T16:06:12.998Z INFO webdriver: COMMAND findElement("css selector", ".contact-form-section")
[0-0] 2020-11-02T16:06:12.998Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/element
2020-11-02T16:06:12.999Z INFO webdriver: DATA { using: 'css selector', value: '.contact-form-section' }
[0-0] 2020-11-02T16:06:13.096Z INFO webdriver: RESULT { ELEMENT: '0.2360071775803776-2' }
[0-0] 2020-11-02T16:06:13.099Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[0-0] 2020-11-02T16:06:13.099Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/execute
2020-11-02T16:06:13.099Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '0.2360071775803776-2',
      ELEMENT: '0.2360071775803776-2'
    },
    true
  ]
}
[0-0] 2020-11-02T16:06:13.198Z INFO webdriver: COMMAND navigateTo("https://mister-medicare.hatfield.marketing/about-mister-medicare")
[0-0] 2020-11-02T16:06:13.199Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/url
[0-0] 2020-11-02T16:06:13.199Z INFO webdriver: DATA {
  url: 'https://mister-medicare.hatfield.marketing/about-mister-medicare'
}
[0-0] 2020-11-02T16:06:14.311Z INFO webdriver: COMMAND findElement("css selector", ".brand-logos-section")
[0-0] 2020-11-02T16:06:14.312Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/element
2020-11-02T16:06:14.312Z INFO webdriver: DATA { using: 'css selector', value: '.brand-logos-section' }
[0-0] 2020-11-02T16:06:14.450Z INFO webdriver: RESULT { ELEMENT: '0.056071708552020594-1' }
[0-0] 2020-11-02T16:06:14.456Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[0-0] 2020-11-02T16:06:14.456Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/execute
2020-11-02T16:06:14.456Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '0.056071708552020594-1',
      ELEMENT: '0.056071708552020594-1'
    },
    true
  ]
}
[0-0] 2020-11-02T16:06:14.646Z INFO webdriver: COMMAND findElement("css selector", ".contact-form-section")
[0-0] 2020-11-02T16:06:14.646Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/element
2020-11-02T16:06:14.646Z INFO webdriver: DATA { using: 'css selector', value: '.contact-form-section' }
[0-0] 2020-11-02T16:06:14.736Z INFO webdriver: RESULT { ELEMENT: '0.056071708552020594-2' }
[0-0] 2020-11-02T16:06:14.740Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[0-0] 2020-11-02T16:06:14.740Z INFO webdriver: [POST] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af/execute
2020-11-02T16:06:14.740Z INFO webdriver: DATA {
  script: 'return (function (elem, options) {\n' +
    '    elem.scrollIntoView(options);\n' +
    '  }).apply(null, arguments)',
  args: [
    {
      'element-6066-11e4-a52e-4f735466cecf': '0.056071708552020594-2',
      ELEMENT: '0.056071708552020594-2'
    },
    true
  ]
}
[0-0] 2020-11-02T16:06:14.833Z INFO @wdio/lambdatest-service: Update job with sessionId 22f67ae49fdd1ee30dc9c7e9f04435af, status: passed
[0-0] 2020-11-02T16:06:15.432Z INFO webdriver: COMMAND deleteSession()
[0-0] 2020-11-02T16:06:15.432Z INFO webdriver: [DELETE] http://hub.lambdatest.com:80/wd/hub/session/22f67ae49fdd1ee30dc9c7e9f04435af
[0-0] PASSED in Chrome - C:\Users\jeff\Documents\tools\lambdatest-webdriverio\webdriverio-selenium-sample\tests\specs\desktop_test.js
2020-11-02T16:06:15.704Z INFO @wdio/cli:launcher: Run onComplete hook

Spec Files:      2 passed, 2 total (100% completed) in 00:01:54

2020-11-02T16:06:15.708Z INFO @wdio/local-runner: Shutting down spawned worker
2020-11-02T16:06:15.960Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2020-11-02T16:06:15.962Z INFO @wdio/local-runner: shutting down

Here's my conf file:

exports.config = {
  services: [
    [
      "lambdatest",
      {
        // tunnel: true,
        lambdatestOpts: {
          logFile: "tunnel.log"
        }
      }
    ]
  ],
  user: process.env.LT_USERNAME,
  key: process.env.LT_ACCESS_KEY,
  specs: ["./tests/specs/desktop_test.js"],
  exclude: [],
  maxInstances: 10,

  // Adjust Capabilities as needed
  commonCapabilities: {
    name: 'LambdaTest',
    build: 'LambdaTest',
    network: false,
    video: true,
    visual: false,
    console: false
  },

  // Adjust Name and Build info here.
  // These are commmon capabilities used for each build you want to test
  // so we're not duplicating build info.  
  capabilities: [
     /* Firefox */
    {
      platform: "Windows 10",
      browserName: "Firefox",
      version: "82.0",
      resolution: "1920x1080"
    },
    /* Chrome */
    {
      platform: "Windows 10",
      browserName: "Chrome",
      version: "86.0",
      resolution: "1920x1080"
    },
    /* Edge */
     {
       platform: "Windows 10",
       browserName: "MicrosoftEdge",
       version: "85.0",
       resolution: "1920x1080"
     },    
  ],
  logLevel: "info",
  coloredLogs: true,
  screenshotPath: "./errorShots/",
  baseUrl: "",
  waitforTimeout: 100000,
  connectionRetryTimeout: 100000,
  connectionRetryCount: 5,
  path: "/wd/hub",
  hostname: "hub.lambdatest.com",
  port: 80,
  framework: "mocha",
  mochaOpts: {
    ui: "bdd",
  },
  urls: [
      "https://mister-medicare.hatfield.marketing/", "https://mister-medicare.hatfield.marketing/dental-plans", "https://mister-medicare.hatfield.marketing/about-mister-medicare",
  ]
};

// Code to support common capabilities
exports.config.capabilities.forEach(function(caps) {
  for (var i in exports.config.commonCapabilities)
    caps[i] = caps[i] || exports.config.commonCapabilities[i];
});
sushobhit-lt commented 3 years ago

hey @jeffbaxter17 , I found reason probably due to the maxInstances key, it should be less than or equal to the number of parallel sessions you have.

maxInstances <= concurrency (lambdatest parallel session)

Try to update your conf file,

exports.config = {

  ...
  exclude: [],
  maxInstances: 1,
  ...

}
jeffbaxter17 commented 3 years ago

That change doesn't appear to send results in the queue. It instead just creates a new session each time, which takes much longer to run.

On Wed, Nov 4, 2020 at 12:57 PM sushobhit-lt notifications@github.com wrote:

hey @jeffbaxter17 https://github.com/jeffbaxter17 , I found reason probably due to the maxInstances key, it should be less than or equal to the number of parallel sessions you have.

maxInstances <= concurrency (lambdatest parallel session)

Try to update your conf file,

exports.config = {

... exclude: [], maxInstances: 1, ...

}

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LambdaTest/webdriverio-selenium-sample/issues/11#issuecomment-721883814, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMTZKI5ZFRYBIHGTVDHQRKDSOGIXNANCNFSM4THVPMKA .

sushobhit-lt commented 3 years ago

yes, It will not add tests in lambda queue, rather than webdriverio manages own queue and create new test once previous one executed.

It will not take longer to run as its same either we queue on Lambda side or wdio manages the same.

jeffbaxter17 commented 3 years ago

I think there's some confusion somewhere. Let me explain.

Previously when testing - each browser would be its own test and sit in the queue. The script would parse each browser and capabilities, then send this to LambdaTest.

Currently with the suggested fix, when testing against multiple browsers - each browser is not in the queue. Instead, it doesn't fire until the first one starts and stops for each browser that's listed. This seems to defeat the purpose of the queue. It appears from my recent tests that this increases the times for the scripts to finish.

I have saved previous tests and stack traces if this helps with any clarification. They're probably noted in previous tickets as well.