LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 10-09-2018, 06:00 AM   #1
iOleg1986
LQ Newbie
 
Registered: Oct 2018
Posts: 4

Rep: Reputation: Disabled
Question Selenium + Docker


Hi everybody!
I need a help, comrades!
I have this conteiners (installed):
selenium/node-firefox
selenium/node-chrome
selenium/node-firefox-debug
selenium/node-chrome-debug
selenium/hub
Started the HUB and NODEs:
# docker run -d -p 4444:4444 –-name selenium-hub selenium/hub
# docker run -d -–link selenium-hub:hub selenium/node-chrome
# docker run -d -–link selenium-hub:hub selenium/node-firefox
then started "debug":
# docker run -d –P –-link selenium-hub:hub selenium/node-chrome-debug
# docker run -d –P –-link selenium-hub:hub selenium/node-firefox-debug
On the server no GUI (and never be). Testing on the 1 server (localhost). Im googling and googling few weeks - how i have to run some test scripts on my nodes (without GUI)?
 
Old 10-10-2018, 11:49 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I'm sorry, but I don't understand it. Probably you need to explain better that situation.
 
Old 10-15-2018, 08:32 AM   #3
iOleg1986
LQ Newbie
 
Registered: Oct 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I'm sorry, but I don't understand it. Probably you need to explain better that situation.
Ok) I have selenium/hub where i installed nightwather. I have a simple test-script .js. Then –-link selenium-hub with node-chrome, start selenium grid - all Ok, BUT i don't understand how i have to send test-script on the my node.
This is my nightwatch.json on the Docker selenium/hub:

{
"src_folders": ["/home/project"],
"output_folder": "./reports",
"custom_commands_path": "",
"custom_assertions_path": "",
"page_objects_path": "",
"globals_path": "/home/project/globals.js",

"selenium" : {
"start_process" : true,
"server_path" : "/opt/selenium/selenium-server-standalone.jar",
"log_path" : "",
"port" : 4444,
"cli_args" : {
"webdriver.chrome.driver" : "./bin/chromedriver"
}
},

"test_settings" : {
"default" : {
"selenium_port" : 9515,
"selenium_host" : "localhost",
"default_path_prefix" : "",
"screenshots" : {
"enabled" : true,
"path" : "./screen"
},

"desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"chromeOptions" : {
"args" : ["--no-sandbox", "--headless", "--disable-gpu", "--disable-extensions"]
},
"acceptSslCerts": true
}
}
}
}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Docker Guide: Deploying Ghost Blog with MySQL and Traefik with Docker LXer Syndicated Linux News 0 08-31-2018 01:03 PM
LXer: Create & manage docker hosts with Docker Machine on VirtualBox LXer Syndicated Linux News 0 11-28-2017 02:33 AM
LXer: How to install Docker and run Docker containers on Linux Mint 18/18.1 LXer Syndicated Linux News 1 12-13-2016 11:11 AM
LXer: Canonical and Docker Partner to Distribute Docker Releases as Snaps on Ubuntu LXer Syndicated Linux News 0 12-03-2016 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration