Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Window Object does not react without RDP
#1
Not Solved
Hello ,
im Using QTP 9,5 and try to generate automated scripts for an Application
The first thing i realized is, that the application is only recognized als Window Object, so i have to use positions x,y to move in the application.
This is not good but does not making any trouble. The terrible thing is:
My Testcase only runs, when i watch via RDP.
When i dont watch via RDP, i cant login into my application:

Quote:Window("Customer Management").Window("Sign in").Activate
Window("Customer Management").Window("Sign in").Click 165,70
Window("Customer Management").Window("Sign in").Type username
Window("Customer Management").Window("Sign in").Click 159,89
Window("Customer Management").Window("Sign in").Type password
Window("Customer Management").Window("Sign in").Click 213,154
[/quote]

username and password are declared and initialized variables
In my oppinion all looks pretty well so i dont understand why qtp cannot realize this steps while im not watching per RDP.
My suggestion was that the method type can only be performed when there is a active keyboard (O.o).
Any suggestions ?=)

Regards
Dennis


Reply
#2
Not Solved
Hi Dennis,

What language is your application coded in? Maybe you need to utilise an add-in in order for QTP to recognise objects properly? For example the Java add-in if your application GUI is coded in java swing.

I'm not sure I understand what you mean when you say you have to watch via RDP. Do you mean that if you try and execute the script while the application is just running on your desktop it doesn't work, and you have to RDP to a different machine and run the application and then execute the script from there? Was the script recorded via an RDP window? I think the coordinates are relative, so you would need the window resized to the same each time the script was run. All of this would depend on:

- where the application is running (local or RDP)
- where QTP is executing from (local or RDP)
- the environment in which the script was recorded (e.g. on an application locally, or on an application via an RDP screen)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  regular expression on Window object qupi 4 4,719 11-19-2012, 08:18 AM
Last Post: qupi

Forum Jump:


Users browsing this thread: 1 Guest(s)