Micro Focus QTP (UFT) Forums
How to Interact Unix through QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to Interact Unix through QTP (/Thread-How-to-Interact-Unix-through-QTP)



How to Interact Unix through QTP - Hema - 07-08-2009

Hi,

I want to execute commands on unix box through QTP.
Can anyone help me on this.

Thanks
Hema


RE: How to Interact Unix through QTP - Hema - 07-08-2009

Can anyone know the solution to the above request


RE: How to Interact Unix through QTP - amitv - 03-06-2011

Use SystemUtil.Run "C:/Putty.exe" to start a Putty session.
Then use Window.Type to interact with Putty.


RE: How to Interact Unix through QTP - basanth27 - 03-07-2011

You can use putty, i am not sure how effective it is to interact with putty on QTP, but i use, java's javacraft package to connect to unix environment and then interact with unix. You can run that jar from QTP.I can put it up if you really need it.


RE: How to Interact Unix through QTP - KVK - 03-10-2011

HI,

You need to use terminal emulator Addin to interact with Putty tool.
QTP 10 does not support Putty tool. Only QTP 11 supports Putty.
Below are few details on automating Unix box :-
1. QTP 11 with PuTTY tool :-
PuTTY is a free and open source terminal emulator application which can connect to Unix Box to execute Shell script commands.
We can automate Putty only using QTP v11.0.
Advantages of Putty :
• Putty is open source tool and hence we can download it for free.
Disadvantages:-
• Putty can be automated only using QTP v11 and QTP v10.0 does not support putty.
• Putty does not support HLLAPI dll as it is free tool. We cannot make use of few important methods on QTP to automate putty. This will make automation difficult task to identify the success or error messages while running the shell scripts in Unix.

2. QTP 10 with Passport tool (or any other non open source tools):-
Passport supports HLLAPI dll while connecting to Unix box to execute shell scripts. Passport is not a open source tool.
Advantages of Passport:
• Passport can be automated using QTP v10.0.
• Supports HLLAPI dll. We can make use of all the method (getcursor position or set cursor position) on QTP to automate Unix commands and it is easy to identify the success or error messages while running the shell scripts in Unix.
Disadvantage:-
• Passport is not a open source tool hence amgen should buy the tool.


Thanks,
Vinod Kumar K

Hi Basanth,

Can you please share "java's javacraft package to connect to unix environment" ?

Thanks
Vinod