Skip to content

@BeforeThread에서 로그인한 뒤 쿠키매니저를 사용해서 로그인 상태를 유지시키는 방법이 있나요? #960

Answered by junoyoon
nerdyinu asked this question in Q&A
Discussion options

You must be logged in to vote

이것은 before thread 가 아닌 beforeProcess 에서 해야하는 작업으로 보이는 군요.
before process 에 다음 코드를 넣지 못하나요?

HTTPResponse loginres=request.POST("http://192.168.0.13:7070/login", body.getBytes())
assertThat(loginres.statusCode, is(200))		
cookies = CookieManager.getCookies()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nerdyinu
Comment options

Answer selected by nerdyinu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants