WsPlugin
Configures HTTP connection and other options of
e:post
, e:get
, e:put
, e:delete
, e:soap
commands
Overview
Usage
WsPlugin
expects an address of the web service under test.
If not provided http://localhost:8080
will be used.
src/test/java/specs/Specs.java
import java.util.Map;
public class Specs extends AbstractSpecs {
@Override
protected ExamExtension init() {
return new ExamExtension(
// all arguments are optional
new WsPlugin(
"http://localhost", // uri
"", // context path
8080, // port
Map.of(), // additional Content-Type Configs: defines how to resolve/verify/print data of specified Content-Type
MultiPartAware() // Content-Type Resolver: resolves one of the supported Content-Types by contentType attribute of a command
)
);
}
}