02-03-2012, 06:58 PM
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)
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)