반응형

Browser 4

Playwright Python: Tutorial #5 - API Testing

Playwright Python: Tutorial #5 - API Testing Tutorial #1 https://helloahram.tistory.com/221 Tutorial #2 https://helloahram.tistory.com/222Tutorial #3 https://helloahram.tistory.com/223Tutorial # 4 https://helloahram.tistory.com/224   API Testing Playwright 공식 문서 https://playwright.dev/python/docs/api-testing API Testing 으로 Server API 를 시험하고 Server Side Post Condition 을 Validate 할 수 있다  APIReques..

TIL/Playwright 2025.02.28

Playwright Python: Tutorial #4 - Browser Context

Playwright Python: Tutorial #4 - Browser ContextTutorial #1 https://helloahram.tistory.com/221 Tutorial #2 https://helloahram.tistory.com/222Tutorial #3 https://helloahram.tistory.com/223  Browser Context Playwright 공식 문서 https://playwright.dev/python/docs/api/class-browsercontext  BrowserContext는 여러 개의 독립적인 브라우저 세션을 운영하는 방법을 제공한다 Browser 에 Cookie 를 넣을 수도 있고, 테스트 환경을 격리하여 성능을 최적화 할 수도 있다 # https..

TIL/Playwright 2025.02.27

Playwright Python: Tutorial #2 - Pytest

Playwright Python: Tutorial #2 - PytestTutorial #1 https://helloahram.tistory.com/221  Pytest Plugin 을 설치해준다 pip install playwright pytest-playwrightplaywright install # Playwright Browser 설치 파일명은 제일 앞에 test_ 또는 제일 뒤에 _test 로 만들어준다 ex. test_webpage.py or webpage_test.py  Test Code 를 작성할 때는 반.드.시!🔥 테스트 함수의 이름 제일 앞에 test_ 를 적어줘야 한다 🔥그리고 본문에는 아래와 같은 Test Code 예시를 작성해 준다 # https://youtu.be/IDrTac..

TIL/Playwright 2025.02.21

[TIL] CORS 오류

CORS Cross-Origin-Resource-Sharing 교차 출처 리소스 공유 최신 Git 을 pull 하고 화면을 열면 가끔 CORS 오류가 나와서 개념을 정리하려고 한다  MDN Web Docs 에 의하면, CORS 는 브라우저가 자신의 출처가 아닌 다른 어떤 출처로부터 자원을 로딩하는 것을 허용하도록 서버가 허가해주는 HTTP 헤더 기반 메커니즘이다,또한 교차 출처 리소스를 호스팅하는 서버가 실제 요청을 허가할 것인지 확인하기 위해 브라우저가 보내는 "사전 요청" 매커니즘에 의존한다 이 사전 요청에서 브라우저는 실제 요청에서 사용할 HTTP 메서드와 헤더들에 대한 정보가 표시된 헤더에 담아 보낸다   🐣 앞의 문장이 와닿지 않아 다시 정리해 보면 🐣CORS 는, 브라우저가 다른 출처의 리..

TIL/용어 2025.01.17
반응형