Forum Discussion

sridhar249's avatar
Occasional Contributor
2 years ago

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";
  let result = testApp.Run()



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.