분류 전체보기147 Selenium Grid - 3) 기존 테스트 Selenium Grid 연동 기존 코드 import time import pytest from selenium import webdriver @pytest.fixture(scope="module") def driver(): driver = webdriver.Chrome() yield driver driver.quit() def test_case_01(driver): driver.get("https://www.selenium.dev/selenium/web/web-form.html") time.sleep(5) driver.get("https://www.naver.com") time.sleep(5) driver 선언 시 selenium grid hub 주소를 넣어준다. import time import pytest from seleniu.. 2024. 3. 28. Selenium Grid - 2) Docker 네트워크 구성 이전 블로그에서 Docker standalone 버전으로 실행을 해봤고, 실행중인 docker 이미지를 멈추고 Docker 네트워크를 구성해보자. * 맥 터미널 docker ps docker stop 추후 Appium 연결을 위해 아래 docker image 로 진행해보겠다. https://github.com/seleniumhq-community/docker-seleniarm GitHub - seleniumhq-community/docker-seleniarm: Multi-Arch (arm64/armhf/amd64) Docker images for the Selenium Grid Server Multi-Arch (arm64/armhf/amd64) Docker images for the Selenium Gr.. 2024. 3. 24. Selenium Grid - 1) Docker 설치 https://www.selenium.dev/downloads/ Downloads Selenium automates browsers. That's it! www.selenium.dev Lastest stable version 다운로드 * 맥 터미널 java -jar selenium-server-4.18.1.jar standalone ㄴ 위 명령어 실행 시, * 브라우저 http://localhost:4444/ui 접속 시, ... 하려다가 https://velog.io/@tkjung/Selenium-Grid-%EC%BB%A8%ED%85%8C%EC%9D%B4%EB%84%88%EC%97%90-Appium-%EC%97%B0%EA%B2%B0 Selenium Grid 컨테이너에 Appium 연결 Selenium .. 2024. 3. 24. 내가 쓰려고 모아두는 자주 사용하는 Git 명령어 모음집 1-1. 초기 세팅 (로컬저장소 > 원격저장소 업로드) echo "# ~ " > README…md git init git add README. md git commit -m "first commit" git branch -M main git remote add origin 주소 git push -u origin main 1-2. 초기 설정 (원격저장소 > 로컬저장소 복제) git clone 2. commit & push git add . git commit -m "~" git push -u origin develop * [rejected] master -> master (non-fast-forward) 해결 방법 git push -u origin +develop 3. Pull git pull origin.. 2024. 3. 16. Git push > fatal: Authentication failed for ... / Permission denied (publickey). 해결 remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. git push -u origin main 명령어 이후 계정과 비밀번호를 정확히 입력해도 위 fatal: Authentication failed for ... 오류가 노출되면서 Push가 불가한 현상이 있었다. 원래 https.. 2024. 3. 15. appium Inspector session 끊기지 않도록 설정하기 appium Inspector 는 입력이 없을때 금방 session 이 끊겨서 불편함이 있는데 { "platformName": "Android", "appium:automationName": "uiautomator2", "appium:newCommandTimeout": 600 } 마지막 "appium:newCommandTimeout": 600 요 Capabilities 를 넣어주면 세션 길이를 늘릴 수 있다. (600 입력 시 600초) https://salzzak.tistory.com/95 미국식 의료 개그 만화 1 salzzak.tistory.com 2024. 3. 3. appium 실행 시, 기기 연결이 안되는 경우 exited with code 1'; Command output: adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set Try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device. 위 에러 메시지가 노출되면서 연결이 안되는 경우 안드로이드 기기 > 개발자 옵션 > 기본 USB 구성에서 "파일 전송/Android Auto" 로 기본 설정 되어있을 확률이 높다. 이를 "USB 테더링" 으로 변경해주면, USB 디버깅 허용 얼럿이 뜨면서 정상 연결된다. 이후 adb devices 명령어 실행시, 연결 확인~ https.. 2024. 3. 3. appium 자동화 2024 - 6) Git 레파지토리 생성 > 로컬 프로젝트 업로드 하기 brew install git 맥 터미널 git 설치 https://github.com/ GitHub: Let’s build from here GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea... github.com 1. github 회원가입 2. 오른쪽 상단 프로필 파일 > Your repositories > New 로 레파지토리 생성 3. 맥 터미널 > 기존에 만들어둔 프로젝트로 위치 후 깃 레파지토.. 2024. 3. 3. appium 자동화 2024 - 5) 소스 코드 구조화 이전에 짰던 하나의 소스코드를 구조화 import pytest from appium import webdriver from appium.options.android import UiAutomator2Options from selenium.common import TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from appium.webdriver import WebElement from selenium.webdriver.support.wait import WebDriverWait # 1. 기다렸다가 클릭하는 함수 wait_Ele.. 2024. 2. 22. appium-doctor 관련 트러블 슈팅 1. zsh: command not found: appium-doctor 위 에러가 뜨면서 appium-doctor 가 실행되지 않는 현상이 있었다. npm install appium-doctor 로 설치하면 안되고, npm install appium-doctor -g 로 설치해야 정상 작동된다. 2. appium-doctor 실행 시, ANDROID/JAVA_HOME environment variable is NOT set! Android / JAVA_HOME 환경변수가 세팅되지 않았다는 에러가 노출되었었는데, JAVA_HOME 변수 선언시 export 를 안붙여줘서 그랬다. 이슈 재현 JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/H.. 2024. 2. 22. 이전 1 2 3 4 5 6 ··· 15 다음