Forum Discussion
pgrow
15 years agoNew Contributor
I am trying your suggestion but TC cannot find my process. 'Process not found. The object does not exist'.
Can anyone help..
I added the console app to my TestedApps.
Here is new script - it appears I only needed to modify the 3rd line for my app name.
Sub MyTest
Dim p, w, txt, cnt, i, s
Set p = Sys.Process("ConsoleAuth.exe")
Set w = p.Window("ConsoleWindowClass", "*")
txt = w.wText
' Specify the separator
aqString.ListSeparator = vbNewLine
' Obtain the list's length
cnt = aqString.GetListLength(txt)
For i = 0 To cnt - 1
' Obtain a line
s = aqString.GetListItem(txt, i)
' Post the line to the test log
Call Log.Message(s)
Next
End Sub
Can anyone help..
I added the console app to my TestedApps.
Here is new script - it appears I only needed to modify the 3rd line for my app name.
Sub MyTest
Dim p, w, txt, cnt, i, s
Set p = Sys.Process("ConsoleAuth.exe")
Set w = p.Window("ConsoleWindowClass", "*")
txt = w.wText
' Specify the separator
aqString.ListSeparator = vbNewLine
' Obtain the list's length
cnt = aqString.GetListLength(txt)
For i = 0 To cnt - 1
' Obtain a line
s = aqString.GetListItem(txt, i)
' Post the line to the test log
Call Log.Message(s)
Next
End Sub
Related Content
Recent Discussions
- 11 hours agoSvetaG