We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
Solution: Set the Endpoint property value seperately.
Before : String EndPoint = "\${#Project#Endpoint}" OR String EndPoint = "http://\${#Project#Endpoint}"
testStep = testCase.addTestStep(type: "httprequest", name: "abc", endpoint: "EndPoint" + "/xml" , method: "POST")
Output: Request URL: http:///${#Project#Endpoint}/xml ==> http contained 3 slashes
After applying solution:
String EndPoint = "http://\${#Project#Endpoint}"
testStep = testCase.addTestStep(type: "httprequest", name: "abc", endpoint: " " , method: "POST")
testStep.setPropertyValue( "Endpoint", "EndPoint" + "/xml")
Output Request URL: http://${#Project#Endpoint}/xml
Solution: Set the Endpoint property value seperately.
Before : String EndPoint = "\${#Project#Endpoint}" OR String EndPoint = "http://\${#Project#Endpoint}"
testStep = testCase.addTestStep(type: "httprequest", name: "abc", endpoint: "EndPoint" + "/xml" , method: "POST")
Output: Request URL: http:///${#Project#Endpoint}/xml ==> http contained 3 slashes
After applying solution:
String EndPoint = "http://\${#Project#Endpoint}"
testStep = testCase.addTestStep(type: "httprequest", name: "abc", endpoint: " " , method: "POST")
testStep.setPropertyValue( "Endpoint", "EndPoint" + "/xml")
Output Request URL: http://${#Project#Endpoint}/xml