为什么我得到"预计在索引"呃

时间:2017-11-30 09:37:11

标签: http jmeter

我尝试手动发布通常由Javascript自动完成的表单,但我遇到以下错误:

> java.net.URISyntaxException: Expected closing bracket for IPv6 address at index 15: https://[https://REDACTEDURL.co.uk:]/ssomanager/saml/SSO?
    at java.net.URI$Parser.fail(Unknown Source)
    at java.net.URI$Parser.failExpecting(Unknown Source)
    at java.net.URI$Parser.parseServer(Unknown Source)
    at java.net.URI$Parser.parseAuthority(Unknown Source)
    at java.net.URI$Parser.parseHierarchical(Unknown Source)
    at java.net.URI$Parser.parse(Unknown Source)
    at java.net.URI.<init>(Unknown Source)
    at java.net.URL.toURI(Unknown Source)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:357)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
    at java.lang.Thread.run(Unknown Source)

我已按如下方式配置请求:在此输入图像描述变量为:

enter image description here

变量是:

ManualServer_g1 = REDACTEDURL.co.uk

ManualPath_g1 = / ssomanager / SAML / SSO

但请求如下:

> POST https://[https://REDACTEDURL.co.uk:]/ssomanager/saml/SSO?

> POST data:
> 
> 
> [no cookies]

任何想法

1 个答案:

答案 0 :(得分:1)

在服务器名称中,您应该使用在正则表达式中找到的第一个组,使用:

${ManualServer_g1}

而不是${ManualServer_g0}