Hi Prabhat. Unfortunately I am no longer working for that company that I was at when I was on this particular project. So this might be very outdated by now but I hope this helps you take this further. It was very exciting when I got this working and things were looking promising. So I hope this helps. Good luck
module.exports = {
src_folders: ['tests'],
live_output: false,
output_folder: process.env.REPORTS_PATH || 'reports',
custom_commands_path: [
'./custom_commands',
'./custom_commands/common',
'./custom_commands/admin',
'./custom_commands/www'
],
page_objects_path: [
'./pages',
'./pages/admin',
'./pages/www',
'./pages/common'
],
globals_path: './config/globals',
test_settings: {
default: {
filter: '**/*.spec.js',
exclude: '',
selenium_host: 'localhost',
selenium_port: 4444,
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
prefs: {
credentials_enable_service: false,
download: {
default_directory: process.cwd() + '/download_folder',
prompt_for_download: false
},
profile: {
password_manager_enabled: false,
default_content_setting_values: { automatic_downloads: 1 }
}
}
}
},
screenshots: {
enabled: true,
on_failure: true,
on_error: false,
path: `./${process.env.SCREENSHOTS_PATH || 'screenshots'}`
}
},
ios: {
filter: '**/*.spec.js',
exclude: '',
selenium_host: '127.0.0.1',
selenium_port: 4723,
desiredCapabilities: {
browserName: 'Safari',
platformName: 'iOS',
platformVersion: '13.3',
deviceName: 'iPhone 11 Pro Max'
},
selenium: {
start_process: false,
server_path: 'node_modules/selenium-standalone/bin/selenium-server-standalone-3.9.1.jar',
log_path: '',
host: 'localhost',
port: 4724
},
screenshots: {
enabled: true,
on_failure: true,
on_error: false,
path: `./${process.env.SCREENSHOTS_PATH || 'screenshots'}`
}
},
ci: {
selenium_host: 'selenium',
desiredCapabilities: {
chromeOptions: {
prefs: {
download: {
default_directory: '/tmp/download_folder'
}
}
}
}
},
parallel: {
test_workers: {
enabled: true,
workers: 2
}
},
ci_parallel: {
selenium_host: 'selenium',
desiredCapabilities: {
chromeOptions: {
prefs: {
download: {
default_directory: '/tmp/download_folder'
}
}
}
},
test_workers: {
enabled: true,
workers: 2
}
}
}
};
```