Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question on QTP Support
#1
Solved: 11 Years, 4 Months ago
Hi All,

Actually in an Interview with Amazon, he asked me one question.
I had to script the following scnario.

1) Click start->programs->Remote Desktop connection
2) Give an approp IP
3) Click ok and on the next screen , give username / password / domain
4) Assuming it logs in correctly, do some stuff in the Remote desktop
5) exit out of remote desktop

Sir/Maam, my question is does qtp support that??

Thread moved to QTP Interview Questions Forum
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Karanth,

The answer for this is you cant capture the objects in rdc.
if you try to record it will record in a analog way.
Reply
#3
Solved: 11 Years, 4 Months ago
Sreekanth is correct, we can't record rdc
Reply
#4
Solved: 11 Years, 4 Months ago
Sure you can, I do it all day every day. I have several remote virtual machines. The only requirement is QTP has to be installed on the VM.
Reply
#5
Solved: 11 Years, 4 Months ago
Hi Karanth,
Recording will generate a script that works on co-ordinates of the application. None of the objects will be captured.
This is how the script will look:
___________________________________________________________
Code:
SystemUtil.Run "mstsc","","C:\Documents and Settings\dpqasmg",""
Dialog("Remote Desktop Connection").WinButton("Connect").Click
Wait 5
Window("Remote Desktop").WinObject("Input Capture Window").Type "test123"
Window("Remote Desktop").WinObject("Input Capture Window").Type  micReturn
Wait 15
Window("Remote Desktop").WinObject("Input Capture Window").Click 9,944
Window("Remote Desktop").WinObject("Input Capture Window").Click 118,913
Window("Remote Desktop").WinObject("Input Capture Window").Click 629,421
Dialog("Remote Desktop Connection").WinButton("Close").Click
__________________________________________________________

From my experience, this is a bad way of scripting.
Reply
#6
Solved: 11 Years, 4 Months ago
What Shravan Gaddam recorded was the login to the remote desktop. I get the correct lines of code when I record in the remote desktop itself just like recording on your local desktop..

Code:
Window("Program Manager").WinListView("SysListView32").Click 897,599
Window("Program Manager").WinListView("SysListView32").Click 897, 599, micRightBtn
Window("Program Manager").WinObject("SHELLDLL_DefView").WinMenu("ContextMenu").Select "Properties"
SystemUtil.Run "C:\WINDOWS\system32\rundll32.exe","/d C:\WINDOWS\system32\shell32.dll,Control_RunDLL desk.cpl","",""
Dialog("Display Properties").WinButton("OK").Click
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE","","C:\Documents and Settings\fred_h","open"
Browser("MSN.com").WinToolbar("ToolbarWindow32").Press "&File"
Browser("MSN.com").WinMenu("ContextMenu").Select "Close"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  qtp interview question-1 rvrbabu434 0 3,634 12-26-2011, 12:36 PM
Last Post: rvrbabu434
  qtp interview question rvrbabu434 3 4,122 12-25-2011, 11:13 PM
Last Post: chandan
  QTP setting related question prodipto 3 5,122 03-04-2011, 02:46 PM
Last Post: prodipto
  Mysql support qtp venkatanaga 1 3,733 04-06-2008, 02:14 PM
Last Post: Ankur
  Question Asked in CTS on QTP asif.testing 2 10,127 04-01-2008, 01:55 AM
Last Post: ShravanGaddam

Forum Jump:


Users browsing this thread: 1 Guest(s)