Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Need support]: Need support in disabling the URL as one of the healing parameter in healenium without docker #255

Open
clrameshchandra opened this issue Nov 22, 2023 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@clrameshchandra
Copy link

Describe the problem

Need support in disabling the URL as one of the healing parameter in healenium without docker, Every time the selector is stored in postgres DB, url is also getting captured and used for healing. In the application that we are testing every time there is a token attached to the url based on the session login. So I wanted to disable the url capturing and using it for healing purpose.
We are using healenium without docker.
i have modified start_healenium.sh file and added the below paramenters.

HLM_SELECTOR_URL=false
HLM_SELECTOR_PATH=false
PRING_POSTGRES_DB=$HLM_POSTGRES_DB SPRING_POSTGRES_SCHEMA=$HLM_POSTGRES_SCHEMA SPRING_POSTGRES_USER=$HLM_POSTGRES_USER SPRING_POSTGRES_PASSWORD=$HLM_POSTGRES_PASSWORD COLLECT_METRICS=$HLM_COLLECT_METRICS SPRING_SERVER_PORT=$HLM_SERVER_PORT HLM_LOG_LEVEL=$HLM_LOG_LEVEL KEY_SELECTOR_URL=$HLM_SELECTOR_URL KEY_SELECTOR_PATH=$HLM_SELECTOR_PATH java -jar hlm-backend.jar 2>&1 & echo $! > ./pid-hlm-backend.file &

Below is the snapshot of the start_healenium.sh file.

image

Even with this i am seeing that the URL is being captured and used for healing.

We want to make it url independent.

Any help would be appreciated
Thanks

Healenium Web version

healenium-1.3.6

Healenium Backend version

healenium-backend-3.4.1

Selenium version

selenium 3.9

Platform

python 3.9, and Java 17

Properties file

#!/bin/bash

Requirements hlm_backend

HLM_POSTGRES_DB=healenium
HLM_POSTGRES_SCHEMA=healenium
HLM_POSTGRES_USER=healenium_user
HLM_POSTGRES_PASSWORD=YDk2nmNs4s9aCP6K
HLM_COLLECT_METRICS=true
HLM_SELECTOR_URL=false
HLM_SELECTOR_PATH=false
HLM_SERVER_PORT=7878
HLM_LOG_LEVEL=info

Requirements hlm_proxy

RECOVERY_TRIES=1
SCORE_CAP=.6
HEAL_ENABLED=true
SELENIUM_SERVER_URL=http://localhost:4444
APPIUM_SERVER_URL=http://localhost:4723/wd/hub
HEALENIUM_SERVER_URL=http://localhost:7878
HEALENIUM_SERVICE=http://localhost:7878
IMITATE_SERVICE=http://localhost:8000

Deploy the hlm-backend service

SPRING_POSTGRES_DB=$HLM_POSTGRES_DB SPRING_POSTGRES_SCHEMA=$HLM_POSTGRES_SCHEMA SPRING_POSTGRES_USER=$HLM_POSTGRES_USER SPRING_POSTGRES_PASSWORD=$HLM_POSTGRES_PASSWORD COLLECT_METRICS=$HLM_COLLECT_METRICS SPRING_SERVER_PORT=$HLM_SERVER_PORT KEY_SELECTOR_URL=$HLM_SELECTOR_URL KEY_SELECTOR_PATH=$HLM_SELECTOR_PATH HLM_LOG_LEVEL=$HLM_LOG_LEVEL java -jar hlm-backend.jar 2>&1 & echo $! > ./pid-hlm-backend.file &

Deploy the hlm-proxy service

RECOVERY_TRIES=$RECOVERY_TRIES SCORE_CAP=$SCORE_CAP HEAL_ENABLED=$HEAL_ENABLED SELENIUM_SERVER_URL=$SELENIUM_SERVER_URL APPIUM_SERVER_URL=$APPIUM_SERVER_URL HEALENIUM_SERVER_URL=$HEALENIUM_SERVER_URL HEALENIUM_SERVICE=$HEALENIUM_SERVICE IMITATE_SERVICE=$IMITATE_SERVICE KEY_SELECTOR_URL=$HLM_SELECTOR_URL KEY_SELECTOR_PATH=$HLM_SELECTOR_PATH HLM_LOG_LEVEL=$HLM_LOG_LEVEL java -jar hlm-proxy.jar 2>&1 & echo $! > ./pid-hlm-proxy.file &

Deploy the imitator service

pip install --upgrade pip

pip install -r healenium-selector-imitator/requirements.txt

if [[ $OSTYPE == 'msys'* ]];
then
python healenium-selector-imitator/app.py & echo $! > ./pid-selector.file &
else
python3 healenium-selector-imitator/app.py & echo $! > ./pid-selector.file &
fi

Logs appeared during using Healenium

NA

Additional context

We are using selenium-grid for this purpose as we are using python for our automation scripts. and this setup is with out dockers

@clrameshchandra clrameshchandra added the help wanted Extra attention is needed label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants