nightwatch.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "src_folders" : ["./examples/tests"],
  3. "output_folder" : "./examples/reports",
  4. "custom_commands_path" : "./examples/custom-commands",
  5. "page_objects_path" : "./examples/pages",
  6. "custom_assertions_path" : "",
  7. "globals_path" : "",
  8. "live_output" : false,
  9. "parallel_process_delay" : 10,
  10. "disable_colors": false,
  11. "test_workers" : false,
  12. "selenium" : {
  13. "start_process" : false,
  14. "server_path" : "",
  15. "log_path" : "",
  16. "host" : "127.0.0.1",
  17. "port" : 4444,
  18. "cli_args" : {
  19. "webdriver.chrome.driver" : "",
  20. "webdriver.ie.driver" : "",
  21. "webdriver.firefox.profile" : ""
  22. }
  23. },
  24. "test_settings" : {
  25. "default" : {
  26. "launch_url" : "http://localhost",
  27. "selenium_host" : "127.0.0.1",
  28. "selenium_port" : 4444,
  29. "silent" : true,
  30. "disable_colors": false,
  31. "screenshots" : {
  32. "enabled" : false,
  33. "path" : ""
  34. },
  35. "desiredCapabilities" : {
  36. "browserName" : "firefox",
  37. "javascriptEnabled" : true,
  38. "acceptSslCerts" : true
  39. }
  40. },
  41. "saucelabs" : {
  42. "selenium_host" : "ondemand.saucelabs.com",
  43. "selenium_port" : 80,
  44. "username" : "${SAUCE_USERNAME}",
  45. "access_key" : "${SAUCE_ACCESS_KEY}",
  46. "use_ssl" : false,
  47. "silent" : true,
  48. "output" : true,
  49. "screenshots" : {
  50. "enabled" : false,
  51. "on_failure" : true,
  52. "path" : ""
  53. },
  54. "desiredCapabilities": {
  55. "name" : "test-example",
  56. "browserName": "firefox"
  57. },
  58. "globals" : {
  59. "myGlobal" : "some_sauce_global"
  60. },
  61. "selenium" : {
  62. "start_process" : false
  63. }
  64. },
  65. "phantomjs" : {
  66. "desiredCapabilities" : {
  67. "browserName" : "phantomjs",
  68. "javascriptEnabled" : true,
  69. "acceptSslCerts" : true,
  70. "phantomjs.binary.path" : "/path/to/phantomjs"
  71. }
  72. },
  73. "browserstack" : {
  74. "selenium" : {
  75. "start_process" : false
  76. },
  77. "selenium_host" : "hub.browserstack.com",
  78. "selenium_port" : 80,
  79. "silent" : true,
  80. "desiredCapabilities": {
  81. "name" : "test-example",
  82. "browserName": "firefox",
  83. "browserstack.user" : "...",
  84. "browserstack.key" : "..."
  85. }
  86. },
  87. "testingbot" : {
  88. "selenium_host" : "hub.testingbot.com",
  89. "selenium_port" : 80,
  90. "apiKey" : "${TB_KEY}",
  91. "apiSecret" : "${TB_SECRET}",
  92. "silent" : true,
  93. "output" : true,
  94. "screenshots" : {
  95. "enabled" : false,
  96. "on_failure" : true,
  97. "path" : ""
  98. },
  99. "desiredCapabilities": {
  100. "name" : "test-example",
  101. "browserName": "firefox"
  102. },
  103. "selenium" : {
  104. "start_process" : false
  105. }
  106. }
  107. }
  108. }