You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to write Integration test case using restuse, and able to run test cases finely .
but got stuck when trying to set dynamic value in request header
protected Destination getDestination()
final Destination destination = new Destination(this, "http://localhost:8080");
final RequestContext context = destination.getRequestContext();
context.addHeader("SomeHeader", "SomeValue");
return destination;
}
this will help you to set dynamic headers.
However, as I have metioned in earlier forum posts, the annotaion based testing approach of restfuse leads to thioses issues, like yours.
The solution would be a alternate way in restfuse for doing rest-tests without using annotations,
I am trying to write Integration test case using restuse, and able to run test cases finely .
but got stuck when trying to set dynamic value in request header
@httptest( method = Method.GET, path = "/somepath",headers = { @Header(name = "authorization", value = "testheader_6")} )
here header accepts only constant value where as I want to set it dynamically ,because value for authorization is generating randomly.
may I know how can I set value to it dynamically.
Thanks in Advance !!!
The text was updated successfully, but these errors were encountered: