Forum Discussion

earriaga's avatar
earriaga
Occasional Contributor
13 years ago

TestComplete-How to get text from window

Hello,



I am new to TestComple. Using version  7.10.475.5. I want to run a program that pings a certain address and loops until I get the message "Request has timed out." I am doing this throught the command window using Windows XP. My question is how do I read  or scan (don't know the correct term here) the text "Request timed out."  from the command window or any  other window? so that when this text appears  I can tell my script stop. This would help me so much on other scripts  I want to run.





Thanks,



Ed

2 Replies

  • Hi Ed,



    First of all, I recommend installing TC 7.52 or 8.70. The version you use is very old.



    As for getting console output, you can find information on this in the Testing Console Applications help topic.



    Regarding ping, there's a (old, but still can demonstrate the approach) function which gets and parses its output here.
  • earriaga's avatar
    earriaga
    Occasional Contributor
    Well thanks for the information. I'll soon upgrade the version.