lovetemple / kube-selenium-demo

API and Web Selenium hub with Kubernetes Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kube-selenium-demo

API and Web Selenium hub with Kubernetes Demo

Run tests in the Selenium Hub.

  • To get the IP - there are several ways to get the IP, the one I recommend which will also be easier for you to remember is using the kubectl to describe the selenium-hub.
    • Kubectl describe pod selenium-hub
    • All the information about the selenium-hub will be rendered. You want to pay attention to the value of the Node - minikube/XXX.XX.XX.X
    • The IP value will be listed as the value of Node
  • Selenium test suite - The document assumes that you know how to run selenium tests remotely using the remote function provided by selenium.
  • TIP - Write a script to check that the hub’s availability before running test - http://XXX.XX.XX.X:30001/wd/hub/status

Debugging

  • Download VNC from Chrome
  • Replace POD_NAME with the name of the pod you want to connect to.
  • kubectl port-forward $POD_NAME 5900:5900
  • Then connect to localhost:5900 with your VNC client using the password "secret"

About

API and Web Selenium hub with Kubernetes Demo

License:GNU General Public License v3.0


Languages

Language:Ruby 97.1%Language:Shell 2.9%