Forum Discussion

sridhar249's avatar
sridhar249
Occasional Contributor
2 years ago
Solved

How to capture output of running a TestedApp

 

 

function runTestedApp(){
  let testAppIndex = TestedApps.Add("C:\\Program Files\\SmartBear\\ReadyAPI-3.43.1\\bin\\agentavailability.bat")
  let testApp = TestedApps.Items(testAppIndex)
  testApp.Params.SimpleParams.CommandLineParameters = "-a 12.14.154.102:1234";
  let result = testApp.Run()
  Log.Message(result)
}

 

 

When i run the above method, i am hoping to capture the output from running the testedapp. The following statement does not capture the output. It simply runs the app.

 

 

let result = testApp.Run()

 

 

 Please help.