Share

soapUI

Tracker: Bugs

5 can\'t launch testrunner for tests with spaces on Linux - ID: 1847642
Last Update: Comment added ( sf-robot )

soupui fails to launch the testrunner for tests or suites that have spaces
in their names.

Running soapUI TestRunner for [XXX]

directory: /home/jurka/xxx/soapui-1.7.6/bin/.

command: sh -c ./testrunner.sh \'-sTestSuite Event\' \'-cTestCase Event\'
/home/jurka/xxx/yyyWebService/yyy-soapui-project.xml


Then it gives the testrunner help and says:

Missing soapUI project file.

On tests without spaces, it does not add the \' escaping, so it knows it
must do something, but the something that it is doing does not work.


Kris Jurka ( kjurka ) - 2007-12-10 04:36

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 8 )




Date: 2008-01-31 03:20
Sender: sf-robotSourceForge.net Site Admin


This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2008-01-08 20:42
Sender: kjurka


That will work unless you have a test with a name that has %20 in it, then
you'll incorrectly turn that into a space. That's significantly less
likely than a test with a space, so it looks like a net improvement, but
not a complete solution.


Date: 2008-01-08 10:16
Sender: lars_ho


Hi!

I'm fixing this for the next release. I'm replacing "%20" with " "
internally, and this worked on Mac at least. Should work on Linux too.

Regards,
Lars, eviware.com


Date: 2007-12-17 18:00
Sender: kjurka


Testing soupui 2.0 shows this output:

command: sh -c ./testrunner.sh -sTestSuiteEvent -cTestCase%20Event
/home/jurka/xxxWebService/xxx-soapui-project.xml


10:56:49,964 INFO [SoapUITestCaseRunner] Running soapUI tests in project
[xxx]
10:56:49,970 INFO [SoapUITestCaseRunner] Running soapUI suite
[TestSuiteEvent], runType = SEQUENTIAL
10:56:49,971 INFO [SoapUITestCaseRunner] Skipping testcase [TestCase
Event], filter is [TestCase%20Event]
10:56:49,971 INFO [SoapUITestCaseRunner] soapUI suite [TestSuiteEvent]
finished in 1ms

So it now finds the xml project file, but doesn't actually run the
requested test case.



Date: 2007-12-17 17:17
Sender: omatzuraProject Admin


Hi,

ok.. %20 worked on MacOS so that's why we added it, maybe you could at
least try to confirm that it doesn't work? I'll see if we can use the
mentioned workaround(s) instead.. thanks!

regards,

/Ole
eviware.com


Date: 2007-12-17 17:04
Sender: kjurka


I have no reason to believe that using %20 would work unless you hacked up
the argument parsing to recognize it as well. %20 is a URI escape and has
nothing to do whatsoever with shell scripts. Testing on the command line
with soupui 1.7.6 shows that this does not work.

It's difficult for me to suggest an exact fix because you need replicate
the exact calling environment that the command is being issued in, that is
testing on the command line isn't the same.

I can point you to at least one of your problems. In testrunner.sh you
issue the command:

java -cp $SOAPUI_CLASSPATH com.eviware.soapui.tools.SoapUITestCaseRunner
$*

Using $* will not retain any quoting that was used when passing the
arguments in. So if you passed "./testrunner.sh 'a b'" this would run
"java ... a b" not "java ... 'a b'".

This page suggests you should use "$@" instead of $*, but that alone does
not fix the problem for me.

http://dowhatimean.net/2005/07/passing-arguments-from-a-shell-script-to-a-command




Date: 2007-12-17 12:35
Sender: omatzuraProject Admin


Hi,

soapUI 2.0 contains a workaround for this that hopefully works for you
too.. (it replaces spaces with %20), could you please try?

thanks in advance!

regards,

/Ole
eviware.com


Date: 2007-12-11 11:31
Sender: omatzuraProject Admin


Hi,

thanks.. hmm.. could please try running this at the command-line and
replacing the space with '%20' ? ie in the soapui\bin folder run

./testrunner.sh -sTestSuite%20Event -cTestCase%20Event
/home/jurka/xxx/yyyWebService/yyy-soapui-project.xml

and let me know if this works instead.. (or if you know/find any other way
to get this working correctly..)

regards!

/Ole
eviware.com


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Pending 2008-01-31 03:20 sf-robot
close_date 2008-01-16 06:49 2008-01-31 03:20 sf-robot
status_id Open 2008-01-16 06:49 omatzura
summary can't launch testrunner for tests with spaces on Linux 2008-01-16 06:49 omatzura
close_date - 2008-01-16 06:49 omatzura