Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18488 Posts in 4838 Topics- by 32654 Members - Latest Member: revitvm
 

AdvancedQTP forums have been nominated as a finalist in ATI’s 2nd annual automation honors awards!

We’d like to thank you for your continued support and participation, and urge you to hurry and vote.

Make you voice count! 


Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: How to record without coordinates,    (Read 2001 times)
Rajani
FRProject
Active User
*
Offline Offline

Posts: 93


WWW
« on: November 16, 2007, 11:23:46 AM »

Hi,

Iam using QTP 9.1 with .NET. And my aplication is a desktop application.
While recording the QTp records the coordiantes for the Click Method for some of the objects. I do not want the QTP  to record the coordiantes as most of the times the test scripts fails due to change in postion of object or screen resolution. Please let me know how I can overcome this problem. I do not want to use other than DP.

Thanks
Logged
Dani Vainstein
Advanced User
*****
Offline Offline

Posts: 623



« Reply #1 on: November 16, 2007, 11:44:50 AM »

Hi
even that you did not mentioned it, i am assuming that you are trying to record on Third-Party Dot.Net object

QTP offers support for third-party objects using the Dot.Net extensibility.
the Dot.Net extensibility requires from you programming skills, and C# knowledge.

also we have some demos and articles on Dot.net objects in our site.
the articles can be found here :
http://www.advancedqtp.com/knowladge-base/env-techniques/dot-net/
« Last Edit: November 17, 2007, 01:22:16 AM by Meir Bar-Tal » Logged

Best Regards,
Dani Vainstein
Mercury CPC

http://www.advancedqtp.com
Rajani
FRProject
Active User
*
Offline Offline

Posts: 93


WWW
« Reply #2 on: November 16, 2007, 02:05:43 PM »

Hi Dani,

Thanks for the information. Yes Iam using the third party controls.  But I do have .NET Extensibility. Hence I am looking for some other method which solves this problem

QTP records like this

Window("windowname").button("buttonname").Click 123,45

Thanks
Logged
Rajani
FRProject
Active User
*
Offline Offline

Posts: 93


WWW
« Reply #3 on: November 20, 2007, 03:22:07 PM »

Hi dani,

Can you please let me know how I can record without coordinates. Sorry I do not have .NET extensiblity. Sometimes for the new build the test script would fail. Hence I ask you to suggest another method.

Thanks
Logged
Dani Vainstein
Advanced User
*****
Offline Offline

Posts: 623



« Reply #4 on: November 20, 2007, 03:46:22 PM »

if you are using Dot.Net addin you have dot.net extensibility.
it seems that maybe you don't know how to use it.

your solution is more easy that it seems
Code
GeSHi (qtp):
swfWindow("W").swfObject("Checkbox").object.Checked = True
Created by GeSHI 1.0.7.20
for this, you must use Dot.Net addin
Logged

Best Regards,
Dani Vainstein
Mercury CPC

http://www.advancedqtp.com
Rajani
FRProject
Active User
*
Offline Offline

Posts: 93


WWW
« Reply #5 on: November 20, 2007, 03:58:50 PM »

Hi Dani

I used the code given But Iam getting an error saying
object does not support this property.



Logged
Dani Vainstein
Advanced User
*****
Offline Offline

Posts: 623



« Reply #6 on: November 21, 2007, 01:25:01 AM »

    ok, so i need more info

  • application is Dot.Net Form s or Dot.Net Web?
  • add-in you are using
  • screenshot of Spy on the object ( Run-time properties and object properties]
Logged

Best Regards,
Dani Vainstein
Mercury CPC

http://www.advancedqtp.com
Pages: [1]   Go Up
Print
Jump to: