Skip to content

refactor(test): Selenium 테스트 서버 기동 방식 개선#64

Merged
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
itcen-entec-2026:codex/refactor-selenium-random-port
Jul 21, 2026
Merged

refactor(test): Selenium 테스트 서버 기동 방식 개선#64
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
itcen-entec-2026:codex/refactor-selenium-random-port

Conversation

@LeeBaekHaeng

Copy link
Copy Markdown
Contributor

수정 사유 Reason for modification

소스를 수정한 사유가 무엇인지 체크해 주세요. Please check the reason you modified the source. ([X] X는 대문자여야 합니다.)

  • 버그수정 Bug fixes
  • 기능개선 Enhancements
  • 기능추가 Adding features
  • 기타 Others

수정된 소스 내용 Modified source

검토자를 위해 수정된 소스 내용을 설명해 주세요. Please describe the modified source for reviewers.

변경 사항

  • Thread.sleep(...)을 Selenium의 Sleeper.SYSTEM_SLEEPER로 변경
  • @SpringBootTest(webEnvironment = RANDOM_PORT) 적용
  • @LocalServerPort로 애플리케이션 서버의 임의 포트 주입
  • 고정된 localhost:8080 접속 주소 제거
  • @AfterEach에서 WebDriver가 종료되도록 정리

테스트

  • JDK: 17.0.17
  • Maven: 3.9.9
  • mvn -DskipTests test-compile 성공
  • mvn -Dtest=EgovSampleControllerTestSelenium test 성공
  • 테스트 실행 중 임의 포트로 내장 Tomcat이 기동되는 것을 확인

JUnit 테스트 JUnit tests

테스트를 완료하셨으면 다음 항목에 [대문자X]로 표시해 주세요. When you're done testing, check the following items.

  • JUnit 테스트 JUnit tests
  • 수동 테스트 Manual testing

테스트 브라우저 Test Browser

테스트를 진행한 브라우저를 선택해 주세요. Please select the browser(s) you ran the test on. (다중 선택 가능 you can select multiple) [X] X는 대문자여야 합니다.

  • Chrome
  • Firefox
  • Edge
  • Safari
  • Opera
  • Internet Explorer
  • 기타 Others

테스트 스크린샷 또는 캡처 영상 Test screenshots or captured video

테스트 전과 후의 스크린샷 또는 캡처 영상을 이곳에 첨부해 주세요. Please attach screenshots or video captures of your before and after tests here.

https://youtu.be/L5I6qIsfeJs

@eGovFrameSupport

Copy link
Copy Markdown
Contributor

표준프레임워크에 대한 지속적인 참여에
대단히 감사드립니다.

@eGovFrameSupport
eGovFrameSupport merged commit c81578e into eGovFramework:main Jul 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants