--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
'Function Name Putty_conn'Description To Connect the Putty''*************************************************************************************************************************Public Function Putty_conn()SystemUtil.Run Environment.Value("PuttyConnection")End Function'***************************************************************************************************************************'Function Name Putty'Description Click open Button'*************************************************************************************************************************Public Function Putty()Call OWindow1("PuTTY Configuration","PuTTY Configuration")window(OWindow).winEdit("attached text:=Host.*","nativeclass:=Edit").Set "vdl6"Call Win_Button1("&Open")window(OWindow).winbutton(Win_Button).ClickEnd Function'******'*******************************************************************************************************************'Function Name Putty_UserName_PWD'Description Passing the user name and password'*************************************************************************************************************************Public Function Putty_UserName_PWD()wait(5)Call OWindow1("vdl6.tru.com - PuTTY","PuTTY")User=Environment.Value("User")window(OWindow).Type Userwindow(OWindow).Type micReturnwait(3)'set AES1 = DotNetFactory.CreateInstance ("QTPES03Encryption.EncryptionMethods", "QTPES03Encryption")'Password=Environment.Value("PassWord")'pwd = AES1.DecryptString(Password, "mypass")Password=Environment.Value("pwd")window(OWindow).Type Passwordwindow(OWindow).Type micReturnEnd Function
Best option is to use Plink, and Connect to unix server, send commands on the Unix server. You can also write Shell scripts which will reside on the server at specific path and then run that shell scripts on the Unix server using plink from QTP.
So suppose you wanna run Command1 and then Command2. You can write the shell script (let the name be "RunTwoCommands.sh")which will have first Command1 and then Command2.
Then you can run "RunTwoCommands.sh" script using Plink and then get the result.