본문 바로가기

코딩28

구글 스프레드 시트 API 연동 (Python) + OS에 따라 Xpath 가져오기 https://velog.io/@junsugi/Google-Sheet-%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0-feat.-Google-API Google Sheet 연동하기 (feat. Google API)구글 스프레드시트 연동하다 빡쳐서 쓰는 글velog.io위 블로그 참고하여 프로젝트 생성 + 구글 스프레드 시트 라이브러리 추가 + 서비스 계정 생성 + 키 생성 + 구글 스프레드 시트 공유까지  + 트러블 슈팅공유 드라이브 내 스프레드 시트를 만들어서 공유 > 서비스 계정 추가하는 단계가 불가했는데,개인 드라이브 계정에 구축함으로써 해결 worksheet()@pytest.fixture(scope="module")def worksheet(): # 구글 스프레드시트 연동 .. 2024. 5. 8.
appium 자동화 2024 - 9) git - Jenkins 연동 Jenkins 기본 설정 후 + New Item ㄴ Freestyle 로 ㄴ Git Repository URL에 git 주소를 넣어주면 되는데, 위와 같은 에러가 노출되었다. stderr: remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied * 트러블 슈팅 히스토리... 2024. 4. 4.
appium 자동화 2024 - 8) PC web + Mobile 동시 자동화 setting.py import pytest from appium import webdriver as appium_webdriver from appium.options.android import UiAutomator2Options from selenium import webdriver as selenium_webdriver from selenium.webdriver import Chrome # appium 세팅 @pytest.fixture(scope="module") def driver_m(): capabilities = dict( platformName='Android', automationName='uiautomator2' ) appium_server_url = 'http://localhost:472.. 2024. 3. 29.
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.
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 자동화 2024 - 4) Pytest+appium 자동화 구현 1. Appium 실행 맥 터미널 > appium 앱피움 실행 확인 2. Appium Inspector ㄴ 우선 가장 기본적인 세팅값 설정 후, 하단 Start Session 클릭 ㄴ 미러링이 되며, 각 Element 를 선택할수 있게된다. ㄴ 시계를 실행시키기 위해, 시계 아이콘을 선택하면 위와같이 Element 정보가 노출된다. ㄴ 위에서 xpath 값을 복사해둔다. //android.widget.TextView[@content-desc="시계"] 3. Python 소스코드 앞서 설치 했던 Pytest 테스트 포맷으로 통해 소스코드를 작성한다. 구조화 되기 전 단일 코드로 작성하는 단계 import pytest from appium import webdriver from appium.options.a.. 2024. 2. 21.