Forum Discussion
Thanks Kondasamy !
Now, it works a little better... A made a couple of discoveries:
1) I was using the XTools.run command, and unless I was using it wrong, it did not seems to work properly... For instance, to simplify to the maximum, I wrote the command line in a batch file (testrunner1.bat):
testrunner1.bat look like this:
"C:\Program Files\SmartBear\SoapUI-5.2.1\bin\testrunner.bat" -seRxOTP -cRequestOTP -r -a -j -J -fC:\2delete\test\ -I -tC:\Users\T850437\soapui-settings.xml -i G:\DA-QA\001-ePrescribe\Automation\STS-SDF-DEV-soapui-project.xml
When I run in QC, the following line:
XTools.run "C:\2delete\testrunner1.bat", "", -1, true
Produce (in the Output):
c:\2delete>"C:\Program Files\SmartBear\SoapUI-5.2.1\bin\testrunner.bat" -seRxOTP -cRequestOTP -r -a -j -J -fC:\2delete\test\ -I -tC:\Users\T850437\soapui-settings.xml -i G:\DA-QA\001-ePrescribe\Automation\STS-SDF-DEV-soapui-project.xml
del %TEMP%\jfxrtpath
set CLASSPATH=%CLASSPATH%;%JFXRTPATH%
rem JVM parameters, modify as appropriate
set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties "-Dsoapui.home=%SOAPUI_HOME%\"
if "%SOAPUI_HOME%\" == "" goto START
set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext"
set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners"
set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.actions="%SOAPUI_HOME%actions"
:START
rem ********* run soapui testcase runner ***********
Plusÿ?
Test < RequestOTP > is completed.
Which does not seems to work at all! I even think that SoapUI is not really called !
So I based myself on your call (the use of WshShell.Exec) to call the same batch file, so it is now:
Set oExec = WshShell.Exec("C:\2delete\testrunner1.bat")
This produced a result that is exactly the same as when I run the batch file manually... a GOOD result.
I still a little bit puzzled as why the XTools.run does not produce anything... but at least I have a work around for my scripts.
If you have an idea ?
Thanks
Jan
Glad that the solution worked for you! I'm unsure about the XTools concept. I would suggest to reach HPE ALM forum for possible solutions.
Thanks,
Kondasamy
Related Content
- 4 years ago
- 3 years ago
Recent Discussions
- 16 hours ago