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
#1
Not Solved
I am using QTP in windows. manually i use putty to read the unix file.
if i want to automate this, how do i read file from unix server.
thanks in advance!!!
Reply
#2
Not Solved
FTP the file from Unix to Windows and read it using readall.
You can also use gettextUtil and getVisibleText for this.
Reply
#3
Not Solved
If you are still looking for an answer this should be it.
Interact With Unxi through QTP - Without Putty
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#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


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,530 10-13-2014, 11:14 AM
Last Post: vallalarasu.p
Wink How to read text in command prompt using QTP Sourabh146 1 6,649 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 13,058 06-19-2013, 08:34 PM
Last Post: arpan
  Exporting QTP runtime datatable to SQL server during SweetyChowdhury 1 3,291 05-10-2013, 03:41 AM
Last Post: sria123
MyBB Downloading files from Unix server elango87 0 3,311 12-13-2012, 06:25 PM
Last Post: elango87

Forum Jump:


Users browsing this thread: 1 Guest(s)