Project name changed

This commit is contained in:
Burak Kaygusuz
2021-02-14 14:02:46 +03:00
parent 2233aacd00
commit f512803993
4 changed files with 27 additions and 42 deletions

View File

@@ -1,43 +1,28 @@
# Selenium Automation Architecture # Selenium 4 Grid & K8s & Docker
This demo that created as a template, demonstrates how to do the settings of the Chrome ve Firefox web driver for distributed parallel testing with Selenium 4 Grid using Kubernetes and Docker.
This demo that created as a template, demonstrates how to do the settings of the Chrome ve Firefox web driver for
distributed parallel testing with Selenium 4 Grid using Kubernetes and Docker.
## Requirements ## Requirements
- This project requires [Java 11 JDK](https://adoptopenjdk.net/). - This project requires [Java 11 JDK](https://adoptopenjdk.net/).
- Install [Docker](https://www.docker.com/) for parallel testing. - Install [Docker](https://www.docker.com/) for parallel testing.
- Install [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/), Kubernetes command-line tool. (This item is optional. **kubectl.exe** is added with Docker installation.) - Install [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/), Kubernetes command-line tool. (This item
- Install [Minikube](https://kubernetes.io/docs/setup/learning-environment/minikube/) to run Kubernetes as locally. is optional. **kubectl.exe** is added with Docker installation.)
- Specify any VM driver appropriate for your OS. Review the doc for driver list : [https://minikube.sigs.k8s.io/docs/drivers/](https://minikube.sigs.k8s.io/docs/drivers/) - Install [Minikube](https://kubernetes.io/docs/setup/learning-environment/minikube/) to run Kubernetes as locally.
- Specify any VM driver appropriate for your OS. Review the doc for driver
## Commands list : [https://minikube.sigs.k8s.io/docs/drivers/](https://minikube.sigs.k8s.io/docs/drivers/)
- Start the minikube. ### Deploying the Kubernetes
```sh
$ minikube start ```shell
```
- Create the deployment. # Deploying all the grid components to kubernetes
```sh $ kubectl apply -f deploy.yml
$ kubectl create -f deploy.yml
``` # Exposing the router
- Check the details of deployment. $ kubectl expose deployment selenium-router-deployment --type=NodePort --port=4444
```sh
$ kubectl describe deploy.yml # Get the router URL to access the grid from outside K8s cluster
``` $ minikube service selenium-router-deployment --url
- Create the service. ```
```sh
$ kubectl create -f service.yml
```
- Check the details of services and reach the hub URL in the Endpoints section with the port number in the NodePort section. Add that values in URL methods of **DriverFactory** class.
```sh
$ kubectl describe service
```
- Create the replication controller(s).
```sh
$ kubectl create -f repchrome.yml
```
- Get all created pods.
```sh
$ kubectl get pods
```

View File

@@ -10,7 +10,7 @@ version '1.0'
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11
description = "Selenium Automation Architecture" description = "Selenium 4 Grid & K8s & Docker"
compileJava.options.encoding = 'UTF-8' compileJava.options.encoding = 'UTF-8'
repositories { repositories {

View File

@@ -1,2 +1,2 @@
rootProject.name = 'Selenium Automation Architecture' rootProject.name = 'selenium-4-grid-k8s-docker'

View File

@@ -10,7 +10,7 @@ Configuration:
RollingFile: RollingFile:
- name: LogToRollingFile - name: LogToRollingFile
fileName: logs/selenium_automation_architecture.log fileName: logs/selenium_4_grid_k8s_docker.log
filePattern: "logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz" filePattern: "logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz"
PatternLayout: PatternLayout:
pattern: "[%-5level] %d{yyyy-MM-dd | HH:mm:ss} | %c{1} | %msg%n" pattern: "[%-5level] %d{yyyy-MM-dd | HH:mm:ss} | %c{1} | %msg%n"