cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically setEndpoint and credentials for soapUIPro

BalamuruganRavi
Occasional Contributor

How to dynamically setEndpoint and credentials for soapUIPro

I have an requirement to read the project, testsuite, testcase, username,password and endpoint details from external file and execute through command prompt. Partially I am able to achieve this using below code

WsdlProjectPro project = new WsdlProjectPro(“projectxml”);
TestSuite testSuite = project.getTestSuiteByName(“testsuitename”);
TestCase testCase = testSuite.getTestCaseByName(“testcasename”);
TestRunner runner = testCase.run(new PropertiesMap(), false);
But here I don’t know how to set the endpoint and credentials for the same.

Can somebody please help me?

Thanks in advance,
Balamurugan Ravi.
4 REPLIES 4
nmrao
Community Hero

Re: How to dynamically setEndpoint and credentials for soapU

Not sure what you mean by
Partially I am able to achieve this using below code

What is more required, details would help for someone to reply.


Regards,
Rao.
nmrao
Community Hero

Re: How to dynamically setEndpoint and credentials for soapU

By the way if you are pro user, try posting in pro boards for faster response.


Regards,
Rao.
BalamuruganRavi
Occasional Contributor

Re: How to dynamically setEndpoint and credentials for soapU

Partially i meant is i am able run the testcase and get the results with the defalut endpoint& credentials already set in the project. But here my requirement is to override that endpoint.
nmrao
Community Hero

Re: How to dynamically setEndpoint and credentials for soapU

Have you checked this?
http://www.soapui.org/Test-Automation/r ... -line.html


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors