Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to read a unix flat file from a unix server using QTP
#4
Not Solved
i need to validate the return code after executing the simple command in unix machine loggedin thru putty
logged in to the system thru putty using telnet and recorded, i need to automate and validate
the return code after executing simple command. pls send some examples to try it out.

tried gettextvalue,checkpoints no results
Code:
systemutil.run "C:\putty.exe"

Window("PuTTY Configuration").WinRadioButton("Telnet").Set
Window("PuTTY Configuration").WinEdit("Host Name (or IP address)").Set "hostname"
Window("PuTTY Configuration").WinButton("Open").Click
wait 2
Window("PuTTY").Type "root"
Window("PuTTY").Type  micReturn


wait 1
Window("PuTTY").Type "test*help"
Window("PuTTY").Type  micReturn
wait 1
Window("PuTTY").Type "uname -a"
Window("PuTTY").Type  micReturn
wait 1
Window("PuTTY").Type."echo $?
Window("PuTTY").Type  micReturn
0

validation is like. if i get "0" my command is successful else the executed commad is failed

thru QTP GUI i am able to execute(write) the command to the putty window in a unix machine
ex : window(PuTTY).Type <unix commands to be executed> can i read it thru same window ? any suggestion

pls give the steps


Thanks in advance
Guna
Reply


Messages In This Thread
RE: How to read a unix flat file from a unix server using QTP - by gunaseakaran - 06-18-2012, 11:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to read a text file using FSO from bottom to up order?? vallalarasu.p 0 2,508 10-13-2014, 11:14 AM
Last Post: vallalarasu.p
Wink How to read text in command prompt using QTP Sourabh146 1 6,625 11-30-2013, 11:02 AM
Last Post: ravi.gajul
  Read text from text file and save it into a variable in qtp arpan 3 12,974 06-19-2013, 08:34 PM
Last Post: arpan
  Exporting QTP runtime datatable to SQL server during SweetyChowdhury 1 3,259 05-10-2013, 03:41 AM
Last Post: sria123
MyBB Downloading files from Unix server elango87 0 3,291 12-13-2012, 06:25 PM
Last Post: elango87

Forum Jump:


Users browsing this thread: 1 Guest(s)