PMI_Mortgage_In_1
15 years agoOccasional Contributor
StringToObjectMap: Update endpoint url
Hi,
I am using SOAPUI API's for running the projects using WsdlProjectRunner. Constructor of this class takes two parameters one is SOAPUI Project and another one is StringToObjectMap. I want to override the end point URL for all requests in the projects. I specified the following parameters for the map and used it. It still not taking the new endpoint url I specified in the MAP. I have the following questions. I don't see any documentation around the values that I can pass in the Map.
1). Can I used the Map to update the endpoint url for all teststeps in the project.
I am using the following code to run it
WsdlProject project = new WsdlProject(PropertyUtil.getProperty("projectFilePath")+testExcelFiles);
StringToObjectMap paramsMap = new StringToObjectMap();
paramsMap.put("e", PropertyUtil.getProperty("regressionEndPointURL"));
WsdlProjectRunner runner = new WsdlProjectRunner(project , paramsMap);
System.out.println("^^^^ New End Point URL is::"+PropertyUtil.getProperty("regressionEndPointURL"));
runner.run();
List<TestSuiteRunner> suiteResults = runner.getResults();
generateReport(suiteResults);
I even tried with the following parameters for the map and still seeing the same result. It's not taking new url. It's still getting executed with the old url.
paramsMap.put("-e", PropertyUtil.getProperty("regressionEndPointURL"));
paramsMap.put("Endpoint", PropertyUtil.getProperty("regressionEndPointURL"));
Regards
Param
I am using SOAPUI API's for running the projects using WsdlProjectRunner. Constructor of this class takes two parameters one is SOAPUI Project and another one is StringToObjectMap. I want to override the end point URL for all requests in the projects. I specified the following parameters for the map and used it. It still not taking the new endpoint url I specified in the MAP. I have the following questions. I don't see any documentation around the values that I can pass in the Map.
1). Can I used the Map to update the endpoint url for all teststeps in the project.
I am using the following code to run it
WsdlProject project = new WsdlProject(PropertyUtil.getProperty("projectFilePath")+testExcelFiles);
StringToObjectMap paramsMap = new StringToObjectMap();
paramsMap.put("e", PropertyUtil.getProperty("regressionEndPointURL"));
WsdlProjectRunner runner = new WsdlProjectRunner(project , paramsMap);
System.out.println("^^^^ New End Point URL is::"+PropertyUtil.getProperty("regressionEndPointURL"));
runner.run();
List<TestSuiteRunner> suiteResults = runner.getResults();
generateReport(suiteResults);
I even tried with the following parameters for the map and still seeing the same result. It's not taking new url. It's still getting executed with the old url.
paramsMap.put("-e", PropertyUtil.getProperty("regressionEndPointURL"));
paramsMap.put("Endpoint", PropertyUtil.getProperty("regressionEndPointURL"));
Regards
Param