Forum Discussion

divman's avatar
divman
Contributor
12 years ago

testRunner issue in windows 7 64bit

Hi,

I am facing an issue and would like to know whether it could be from testRunner batch or not? Below is the issue.

I was in a situation to create a excel macro to run all our SoapUI projects in a single run. i created a excel file which will have all my soapui projects as input. when i click a button, the excel macro will take the projects one by one and testRunner is called with required inputs as arguments to it.

In my macro, i form a string in a variable, in which the string holds a content to call 'testRunner.bat' file with set of arguments. Then i pass the string in the below code.

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run soapuiTestRunner, 1, True
Set WshShell = Nothing


In the excel i have list of input projects that needs to run. When the macro starts, it takes a soap project from the excel and forms a required soap batch string and then it comes to this above code. when this code executes, it call the command prompt and put the formed string (soapuiTestRunner from above) and it executes the soap project. Once the soap project execution done, the command will close and moves to next line and it continues further. This will repeat for all the soap projects which i gave in the excel file as input.

It was working fine till i have Windows XP, but it is not working in Windows 7 64bit. The error throws in the line "WshShell.Run soapuiTestRunner, 1, True".

Run-time error '-2147024894 (80070002)':

Method 'Run' of object 'IWshShell3' failed


I tried on many sources from internet and tweaked the logic by calling the other Apps like below and this line is working.

WshShell.Run "%windir%\syswow64\cmd.exe"
WshShell.Run "%windir%\SysWOW64\notepad.exe"

but when i try calling soapui testRunner.bat like "WshShell.Run soapuiTestRunner, 1, True", i get an error.

(as said before, the 'soapuiTestRunner' is a variable which will have a string like below.
"C:\Program Files (x86)\SmartBear\SoapUI-Pro-4.6.4\bin\testrunner.bat" -s"Account List Inquiry" -c"Account List Inquiry" -f"C:\Xpress\Groovy Automation\TestRunner Results" "C:\Xpress\Groovy Automation\Account List Inquiry\Reg_Account-List-Inquiry_sitE_latest.xml")

Could anyone help me whether its an soapui testRunner issue or do i need to work on VB macro area?

1 Reply

  • Hi,

    This is not a testrunner.bat issue, you should be able to run testrunner.bat from the command line with no problems on windows 7 64 bit. Try creating a simple batch file that takes parameters, call the batch file using the same code, and see if you get an error.


    Regards,
    Marcus
    SmartBear Support