Home
> Quick Test Pro > Executing Soap ui from VBS file
Executing Soap ui from VBS file
The below code illustrate to execute the the Soap UI project to execute.It executes all the test suites in the Soap UI Project‘Calls to the functionExecuteSoapUI “127.0.0.1”‘Function to execute the soap UI ProjectPublic Function ExecuteSoapUI(IPaddress)‘creating an object of type shellSet obj=CreateObject(“Wscript.Shell”)‘invoke the command prompt.abc = obj.Run(“cmd”)‘waiting toi make sure the command prompt opensWScript.Sleep “1000”‘String used to execute SoapUI Projectxyz=”testrunner.bat -h”&IPaddress&”:8080 -r -f D:\SoapUI\Results D:\soapui-project.xml”‘LogWScript.Echo(abc)‘Activate the command promptobj.AppActivate(“cmd.exe”)‘Navigation to Soap UI bin folder in cmd prompt.obj.SendKeys “cd C:\Program Files\eviware\soapUI-Pro-2.5.1\bin”,3obj.SendKeys “~”‘Executing the command to run the soap Projectobj.SendKeys xyz,3obj.SendKeys “~”End Function
Categories: Quick Test Pro
Comments (0)
Trackbacks (0)
Leave a comment
Trackback