nightwatch.conf.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* This file is part of AToMPM - A Tool for Multi-Paradigm Modelling
  2. * Copyright 2011 by the AToMPM team
  3. * See COPYING, COPYING.lesser, and README.md for full details
  4. */
  5. const chromedriver = require("chromedriver");
  6. const selenium_server = require("selenium-server");
  7. module.exports = {
  8. "src_folders" : ["tests"],
  9. "output_folder" : false,
  10. "custom_commands_path" : "",
  11. "custom_assertions_path" : "",
  12. "page_objects_path" : "",
  13. "globals_path" : "",
  14. "selenium" : {
  15. "start_process" : true,
  16. "server_path" : selenium_server.path,
  17. "log_path" : "",
  18. "port" : 4444,
  19. "check_process_delay": 2000,
  20. "cli_args" : {
  21. "webdriver.chrome.driver" : chromedriver.path,
  22. "webdriver.gecko.driver" : "",
  23. "webdriver.edge.driver" : ""
  24. }
  25. },
  26. "test_settings" : {
  27. "default" : {
  28. "launch_url" : "http://localhost",
  29. "selenium_port" : 4444,
  30. "selenium_host" : "localhost",
  31. "silent": true,
  32. "screenshots" : {
  33. "enabled" : false,
  34. "path" : ""
  35. },
  36. "globals": {
  37. "waitForConditionTimeout": 5000 // sometimes internet is slow so wait.
  38. },
  39. "desiredCapabilities": {
  40. "browserName": "chrome",
  41. "javascriptEnabled": true,
  42. "marionette": true,
  43. "chromeOptions": {
  44. "args" : ["--no-sandbox"],
  45. "w3c": false
  46. },
  47. }
  48. },
  49. "chrome" : {
  50. "desiredCapabilities": {
  51. "browserName": "chrome"
  52. }
  53. },
  54. "edge" : {
  55. "desiredCapabilities": {
  56. "browserName": "MicrosoftEdge"
  57. }
  58. }
  59. }
  60. };