44An open-source Automation Engine that can perform full Front-End & Back-End Automation for scraping data in addition to Test Automation with Docker and Kubernetes integration.
55
66## Step 1: Install Docker Desktop
7- Docker Desktop [ Instructions] ( https://docs.docker.com/desktop/mac/install )
7+ Docker Desktop [ Instructions] ( https://docs.docker.com/desktop )
88
9- ## Step 2: Install Minikube
10- ``` bash
11- brew install minikube
12- ```
9+ ## Step 2: Install Helm
10+ Helm [ Instructions] ( https://helm.sh/docs/intro/install )
1311
14- ## Step 3: Install Helm
12+ ## Step 3a: Setup Local Environment MAC/LINUX [ OPTION 1 ]
1513``` bash
16- brew install helm
14+ python3 -m venv venv
15+ source venv/bin/activate
16+ pip install -r requirements.txt
1717```
1818
19- ## Step 4 : Setup Local Environment
19+ ## Step 3b : Setup Local Environment Windows [ OPTION 2 ]
2020``` bash
2121python3 -m venv venv
22- source venv/bin/ activate
22+ . \ v env\S cripts \ a ctivate
2323pip install -r requirements.txt
2424```
2525
26- ## Step 5: Setup Voice Recognition
27- [ Instructions] ( https://support.apple.com/en-us/HT210539 )
28-
29- ## Step 6: Build App Locally
26+ ## Step 4a: Build App Locally [ OPTION 1]
3027``` bash
3128cd app/website
3229docker build --tag cortexaai:latest .
@@ -35,48 +32,41 @@ cd ..
3532cd ..
3633```
3734
38- ## Step 7: Install Ansible Galaxy kubernetes.core.k8s
39- ``` bash
40- pip install openshift pyyaml kubernetes
41- cd /Applications/Python\ < version>
42- ./Install\ Certificates.command
43- ansible-galaxy collection install kubernetes.core
44- cd < repo>
45- ```
46-
47- ## Step 8: Deploy & Run App to Kubernetes
35+ ## Step 4b: Deploy & Run App to Kubernetes [ OPTION 2]
4836``` bash
4937cd app
50- minikube delete
51- minikube start
5238helm install website .
53- minikube service website-cortexaai [terminal 1]
54- kubectl port-forward --address 0.0.0.0 service/website-cortexaai 30000:80 [terminal 2]
39+ kubectl -n default get service website-cortexaai
5540```
5641
57- ## Step 9 : Run Docker Compose (Selenium Grid)
42+ ## Step 5 : Run Docker Compose (Selenium Grid)
5843``` bash
59- docker-compose -f ./docker- compose.yml up --scale chrome=1 -d
44+ docker compose up --scale chrome=2
6045```
6146
62- ## Step 10 : Observe Selenium Grid Run (Including Built-In VNC Viewer)
47+ ## Step 6 : Observe Selenium Grid Run (Including Built-In VNC Viewer)
6348```
64- http://localhost:4444/ui/index.html#/sessions
49+ http://localhost:4444/ui
6550```
6651
6752## CortexaAI (Results Populated In ` items.csv ` )
6853``` bash
69- export BROWSER=chrome && python cortexaai_cli.py
54+ export BROWSER=chrome
55+ python cortexaai_cli.py
7056```
7157
72- ## Run Front-End Tests (Including Snapshot Images)
58+ ## Run Front-End Tests MAC/LINUX (Including Snapshot Images) [ OPTION 1 ]
7359``` bash
74- export BROWSER=chrome URL=http://< internal-ip> :30000 && python -m unittest discover
60+ export BROWSER=chrome
61+ URL=http://localhost:< PORT>
62+ python -m unittest discover
7563```
7664
77- ## Run Back -End Tests
65+ ## Run Front -End Tests Windows (Including Snapshot Images) [ OPTION 2 ]
7866``` bash
79- ansible-playbook -i hosts roles/tests/main.yml
67+ $env :BROWSER=" chrome"
68+ $env :URL=" http://host.docker.internal:<PORT>"
69+ python -m unittest discover
8070```
8171
8272## Contributing
0 commit comments