목록분류 전체보기 (21)
ITGeine
Pytest 를 사용하다 보면 테스트 모듈마다 반복되는 기본 작업이 있는 경우가 있는데, 이 때 pytest 의 fixture 를 사용하여 리소스를 정의하고, 재사용할 수 있다. fixture를 테스트 자동화에 사용하다 개념 정리의 필요성을 느껴서 아래 문서 기반으로 정리해보고자 한다. (*의역 많음 주의) - pytest fixture : https://docs.pytest.org/en/6.2.x/fixture.html pytest fixtures: explicit, modular, scalable — pytest documentation Software test fixtures initialize test functions. They provide a fixed baseline so that test..
https://testautomationu.applitools.com/appium-visual-testing/ Automated Visual Testing with Appium testautomationu.applitools.com setup assumptions - Node.js & NPM - Appium CLI install - Appium Android Dependencies (Android SDK, Android studio, emulators, etc) - Appium * 선택사항 - opencv install npm i -g opencv4nodejs brew install opencv@3 OPENCV4NODEJS_DISABLE_AUTOBUILD=1 npm i -g opencv4nodejs 자동..
appium inspector 에서 Start session 시 오류 발생 appium guide : https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md#commyactivity-or-commyappcommyactivity-never-started inspector 세션 시작 전 capabilities 에 appWaitActivity 를 지정해주면 에러가 해결된다. adb shell dumpsys window windows 를 통해 현재 띄워진 activity 명을 직접 지정할 수도 있고, 와일드카드 (*) 로도 지정 가능하다.
Chapter 2.1: Finding Elements appium inspector 를 사용하는데, 기본적으로 설치가 되어있지 않아 따로 설치해주었다. https://github.com/appium/appium-inspector GitHub - appium/appium-inspector: A GUI inspector for mobile apps and more, powered by a (separately installed) Appium server A GUI inspector for mobile apps and more, powered by a (separately installed) Appium server - GitHub - appium/appium-inspector: A GUI inspector ..
Chapter 1.5 에서는 capabilities 에 대한 설명을 진행한다. > Appium 페이지 https://appium.io/docs/en/writing-running-appium/caps/ Desired Capabilities - Appium From here you can search these documents. Enter your search terms below. appium.io package.json 에 테스트 스크립트 직접 지정하면 아래 명령어로 테스트 수행가능 npm test 테스트로 돌릴 앱 경로 수정 - path 모듈, 프로젝트 내 파일 사용 let {join} = require('path'); 'appium:app' : join(process.cwd(),'./ApiDemos..
[0-0] 2022-05-23T04:43:05.622Z ERROR webdriver: unknown error: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome '83.0.4103'. You could also try to enable automated chromedrivers download server feature. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more deta..
TAU 강의 - Appium 자바 스크립트 강의를 들으면서 메모하려고 한다. Chapter 1.4 : Project Setup 해당 수업에서는 간단한 웹 테스트 프로젝트 생성 - 테스트 돌리는 시나리오까지 진행한다. 참고로 Chatper 1.1 ~ 1.3 으로는 사전에 필요한 환경 세팅 방법을 기술하고 있다. > node.js, jdk, android sdk, android studio 등 1. mkdir 로 workspace 생성 2. npm init -y { "name": "testapp", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && ..
android sdk 설치경로 확인법 안드로이드 스튜디오 > File > Project Structure > Android SDK location
문제 상황 gc overhead limit exceeded 발생하여 서비스 다운됨 - The GC Overhead Limit Exceeded error is one from the family of java.lang.OutOfMemoryError and is an indication of a resource (memory) exhaustion. 원인 - the error occurs when the JVM spent too much time performing Garbage Collection and was only able to reclaim very little heap space. 가비지 컬렉터 실행과정에서 자바 프로그램이 느려지는 경우 발생한다. 가바지 수집 후, 자바 프로세스가 자바 컬렉션을 수..
빠른 시작 : 클라이언트 라이브러리 사용하여 gcp pub/sub 메세지 전송 / 수신 > https://cloud.google.com/pubsub/docs/quickstart-client-libraries?hl=ko - gcp pub/sub 문서가 잘 작성되어 있어서 상세 가이드는 해당 문서를 참조하면 된다. 사전조건 2번에 GOOGLE_APPLICATION_CREDENTIALS (JSON 비공개 키) 환경 변수를 설정하는 사항이 있는데, 변수로 경로를 설정하는 대신 다음과 같이 직접 파일 경로를 설정할 수도 있다. private static ServiceAccountCredentials creds; private static TopicAdminSettings topicAdminSettings; sta..