[JAVA #22] [Web Automation #20] restAssured, Selenium 자동화 실시간 수신 케이스

in mini.topia4 years ago

pixabay

Selenium으로 자동화 케이스 설계 시 메시지 실시간 수신 케이스가 난도가 좀 있다.
두 계정으로 동시에 로그인해야 하고 수신 측의 세션은 상시 대기 상태여야 하며, 발신 측 세션은 수신 측 세션을 간섭하지 않아야 한다.

Selenium은 기본적으로 복수 세션을 지원한다. 다만 코드가 좀 복잡해지는 이유로 restAssured API 테스트 라이브러리를 접목해 봤다.
restAssured은 발신을 책임지고 Selenium으로 수신을 체크하면 된다.
코드가 간단해지고 가독성이 좋아진다.

restAssured :http://rest-assured.io/
Selenium:https://www.selenium.dev/

Sort:  

Source
Copying and pasting previous posts or significant parts there of could be seen as spam when:

  • Reposting the same content without additional original content or significant changes
  • Reposting content within the same payout window

Spam is discouraged by the community and may result in the account being Blacklisted.

Please refrain from copying and pasting previous posts going forward. If you believe this comment is in error, please contact us in #appeals in Discord.