You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we run tests in Browserstack cloud, and after the successful test run. Users will get the session URL like this https://automate.browserstack.com/builds/undefined/sessions/ff3a33f25464220871e9dcec2b006ae8a0bb71ea.
Currently, the above URL contains undefined, which must be addressed.
Steps To Reproduce
Using the below sample tests, Run tests with Nightwatch on Browserstack
Check the URL outputted by Nightwatch CLI
Sample test
sampleTest.js
describe('Ecosia.org Demo',function(){before(browser=>browser.navigateTo('https://www.ecosia.org/'));it('Demo test ecosia.org',function(browser){browser.waitForElementVisible('body').assert.titleContains('Ecosia').assert.visible('input[type=search]').setValue('input[type=search]','nightwatch').assert.visible('button[type=submit]').click('button[type=submit]').assert.textContains('.layout__content','Nightwatch.js');});after(browser=>browser.end());});
// Autogenerated by Nightwatch// Refer to the online docs for more details: https://nightwatchjs.org/gettingstarted/configuration/constServices={};loadServices();// _ _ _ _ _ _ _// | \ | |(_) | | | | | | | |// | \| | _ __ _ | |__ | |_ __ __ __ _ | |_ ___ | |__// | . ` || | / _` || '_ \ | __|\ \ /\ / / / _` || __| / __|| '_ \// | |\ || || (_| || | | || |_ \ V V / | (_| || |_ | (__ | | | |// \_| \_/|_| \__, ||_| |_| \__| \_/\_/ \__,_| \__| \___||_| |_|// __/ |// |___/module.exports={// An array of folders (excluding subfolders) where your tests are located;// if this is not specified, the test source must be passed as the second argument to the test runner.src_folders: ['dist/src'],// See https://nightwatchjs.org/guide/working-with-page-objects/page_objects_path: ['dist/pages'],// See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-commandscustom_commands_path: [],// See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-assertionscustom_assertions_path: '',// See https://nightwatchjs.org/guide/#external-globalsglobals_path: '',webdriver: {},test_settings: {default: {disable_error_log: false,launch_url: 'https://the-internet.herokuapp.com',screenshots: {enabled: false,path: 'screens',on_failure: true},desiredCapabilities: {browserName: 'firefox'},webdriver: {start_process: true,server_path: ''}},safari: {desiredCapabilities: {browserName: 'safari',alwaysMatch: {acceptInsecureCerts: false}},webdriver: {start_process: true,server_path: ''}},firefox: {desiredCapabilities: {browserName: 'firefox',alwaysMatch: {acceptInsecureCerts: true,'moz:firefoxOptions': {args: [// '-headless',// '-verbose']}}},webdriver: {start_process: true,server_path: '',cli_args: [// very verbose geckodriver logs// '-vv']}},chrome: {desiredCapabilities: {browserName: 'chrome','goog:chromeOptions': {// More info on Chromedriver: https://sites.google.com/a/chromium.org/chromedriver///// w3c:false tells Chromedriver to run using the legacy JSONWire protocol (not required in Chrome 78)w3c: true,args: [//'--no-sandbox',//'--ignore-certificate-errors',//'--allow-insecure-localhost',//'--headless']}},webdriver: {start_process: true,server_path: '',cli_args: [// --verbose]}},edge: {desiredCapabilities: {browserName: 'MicrosoftEdge','ms:edgeOptions': {w3c: true,// More info on EdgeDriver: https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/capabilities-edge-optionsargs: [//'--headless']}},webdriver: {start_process: true,// Download msedgedriver from https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/// and set the location below:server_path: '',cli_args: [// --verbose]}},//////////////////////////////////////////////////////////////////////////////////// Configuration for when using cucumber-js (https://cucumber.io) |// |// It uses the bundled examples inside the nightwatch examples folder; feel free |// to adapt this to your own project needs |//////////////////////////////////////////////////////////////////////////////////'cucumber-js': {src_folders: ['examples/cucumber-js/features/step_definitions'],test_runner: {// set cucumber as the runnertype: 'cucumber',// define cucumber specific optionsoptions: {//set the feature pathfeature_path: 'node_modules/nightwatch/examples/cucumber-js/*/*.feature'// start the webdriver session automatically (enabled by default)// auto_start_session: true// use parallel execution in Cucumber// parallel: 2 // set number of workers to use (can also be defined in the cli as --parallel 2}}},//////////////////////////////////////////////////////////////////////////////////// Configuration for when using the browserstack.com cloud service |// |// Please set the username and access key by setting the environment variables: |// - BROWSERSTACK_USER |// - BROWSERSTACK_KEY |// .env files are supported |//////////////////////////////////////////////////////////////////////////////////browserstack: {selenium: {host: 'hub-cloud.browserstack.com',port: 443},// More info on configuring capabilities can be found on:// https://www.browserstack.com/automate/capabilities?tag=selenium-4desiredCapabilities: {'bstack:options': {userName: '${BROWSERSTACK_USER}',accessKey: '${BROWSERSTACK_KEY}'}},disable_error_log: true,webdriver: {timeout_options: {timeout: 15000,retry_attempts: 3},keep_alive: true,start_process: false}},'browserstack.local': {extends: 'browserstack',desiredCapabilities: {'browserstack.local': true}},'browserstack.chrome': {extends: 'browserstack',desiredCapabilities: {browserName: 'chrome',chromeOptions: {w3c: true,'args': ['start-maximized']}}},'browserstack.firefox': {extends: 'browserstack',desiredCapabilities: {browserName: 'firefox'}},'browserstack.ie': {extends: 'browserstack',desiredCapabilities: {browserName: 'internet explorer',browserVersion: '11.0'}},'browserstack.safari': {extends: 'browserstack',desiredCapabilities: {browserName: 'safari'}},'browserstack.local_chrome': {extends: 'browserstack.local',desiredCapabilities: {browserName: 'chrome'}},'browserstack.local_firefox': {extends: 'browserstack.local',desiredCapabilities: {browserName: 'firefox'}},//////////////////////////////////////////////////////////////////////////////////// Configuration for when using the Selenium service, either locally or remote, |// like Selenium Grid |//////////////////////////////////////////////////////////////////////////////////selenium_server: {// Selenium Server is running locally and is managed by Nightwatchselenium: {start_process: true,port: 4444,server_path: (Services.seleniumServer ? Services.seleniumServer.path : ''),cli_args: {'webdriver.gecko.driver': (Services.geckodriver ? Services.geckodriver.path : ''),'webdriver.chrome.driver': (Services.chromedriver ? Services.chromedriver.path : '')}}},'selenium.chrome': {extends: 'selenium_server',desiredCapabilities: {browserName: 'chrome',chromeOptions: {w3c: true}}},'selenium.firefox': {extends: 'selenium_server',desiredCapabilities: {browserName: 'firefox','moz:firefoxOptions': {args: [// '-headless',// '-verbose']}}}}};functionloadServices(){try{Services.seleniumServer=require('selenium-server');}catch(err){}try{Services.chromedriver=require('chromedriver');}catch(err){}try{Services.geckodriver=require('geckodriver');}catch(err){}}
Your Environment
Executable
Version
nightwatch --version
2.3.0
npm --version
8.11.0
node --version
v16.16.0
OS
Version
NAME
VERSION
Ref
The text was updated successfully, but these errors were encountered:
Describe the bug
When we run tests in Browserstack cloud, and after the successful test run. Users will get the session URL like this
https://automate.browserstack.com/builds/undefined/sessions/ff3a33f25464220871e9dcec2b006ae8a0bb71ea
.Currently, the above URL contains
undefined
, which must be addressed.Steps To Reproduce
Sample test
sampleTest.js
Run with command
Verbose output
debug.log
Configuration
nightwatch.json
Your Environment
nightwatch --version
npm --version
node --version
Ref
The text was updated successfully, but these errors were encountered: