BA_Service_Haus
13 years agoRegular Contributor
How to run Mocks as a service?
Hi,
we offer a keyworddriven framework to our testers for running soapUI testcases.
Thus all testcases are executet via command line.
Now we want to enable the user to start and stop a mock via keywords.
Therefor we thought about the following approach:
- Creating 2 special testcases: one of them starting the mock and the other stopping it (via groovy script teststep)
So if the user wants to start the mock, the framework will run the corresponding testcase.
But after this, the user wants to run another (this time a real) testcase, that uses the mock. If this is done, the testcase fails.
I assume that the mock, started with the first testcase, is stopped after the testcase execution via command line was finished, isn't it?
So is there a possibility to run the mock as a service this way?
Please notice, that it is no option for us to run the mock via commandline directly (using mockServicerunner.bat) as this requires control of the DOS-window (mock only stops after pressing a key here).
Best regards
Nico
we offer a keyworddriven framework to our testers for running soapUI testcases.
Thus all testcases are executet via command line.
Now we want to enable the user to start and stop a mock via keywords.
Therefor we thought about the following approach:
- Creating 2 special testcases: one of them starting the mock and the other stopping it (via groovy script teststep)
So if the user wants to start the mock, the framework will run the corresponding testcase.
But after this, the user wants to run another (this time a real) testcase, that uses the mock. If this is done, the testcase fails.
I assume that the mock, started with the first testcase, is stopped after the testcase execution via command line was finished, isn't it?
So is there a possibility to run the mock as a service this way?
Please notice, that it is no option for us to run the mock via commandline directly (using mockServicerunner.bat) as this requires control of the DOS-window (mock only stops after pressing a key here).
Best regards
Nico