Forum Discussion

BalamuruganRavi's avatar
BalamuruganRavi
Occasional Contributor
10 years ago

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

  • nmrao's avatar
    nmrao
    Champion Level 3
    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.
  • nmrao's avatar
    nmrao
    Champion Level 3
    By the way if you are pro user, try posting in pro boards for faster response.
  • BalamuruganRavi's avatar
    BalamuruganRavi
    Occasional Contributor
    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.