Forum Discussion

MSORIANO's avatar
MSORIANO
New Contributor
13 years ago

Automation: Importing multiple existing projects

Hi, Support,

I would like to ask if this can be achieved. I am importing an existing project in soapUI pro, what I always do is please see below:

1. Import the existing project.


2. Navigate to the request.


3. Open it in request editor by double clicking it.


4. Submit the request to specified endpoint URL.




Is there a way to automate this task? Importing multiple existing soapUI projects is not supported in Pro?

Thank you.

Sincerely yours,

msoriano
  • Hi!

    hmm.. you can import as many projects as you like - but you have to do it one at a time.

    Regarding your question on automation - I would suggest you do the following:

    1) Create a TestSuite and TestCase in your project
    2) Add your request to the TestCase as a SOAP Request TestStep
    3) Add assertions to the TestStep to validate the response
    4) Save the project
    5) Run the TestCase from the command-line using the command-line tools any time you need to run the request (see http://soapui.org/Test-Automation/functional-tests.html)

    In this way you can easily run the request any time you need to.

    Does that make sense?

    regards!

    /Ole
    SmartBear Software
  • MSORIANO's avatar
    MSORIANO
    New Contributor
    Hi,

    You mean if I have 100 existing projects (xml), I need to import it one at a time?

    You're suggestion in automation requires importing project one by one?

    Is the a way that I will just set the folder path of my existing projects then run a script/batch then the will be done?

    -msoriano
  • Hi,

    hmm.. if you have 100 projects in this format I still suggest you add a TestCase to each of them containing the corresponding Test Request. You can then create a batch/shell script that calls the soapUI TestRunner for each project from the command-line.

    Hope this helps!

    regards,

    /Ole
    SmartBear Software
  • MSORIANO's avatar
    MSORIANO
    New Contributor
    Hi,

    Thanks for your reply, "add a test case in each of them", you mean I should open the files first one at a time? And if I have another set of 100 xml's, I need to do the same process? Kindly clarify.

    msoriano
  • Hi,

    yes - open each project - add a TestCase with a SOAP Test Request as I outlined in my first response - this will make it possible to run the tests automatically from the command-line.

    regards,

    /Ole
    SmartBear Software
  • MSORIANO's avatar
    MSORIANO
    New Contributor
    wow, it's kinda tiring, thanks for your input, I just thought that there's a way to open each project automatically. Thanks for the responses.

    msoriano