Yes this is the correct behavior. Sounds like you need to disable automatic re-directs for this test, see configure
. You can do:
* configure followRedirects = false
And then get the redirect location manually as follows:
* def location = responseHeaders['Location'][0]
Refer to this test for an example: redirect.feature
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…