New way of sharing obj rep

43 views
Skip to first unread message

Prasad.L.V

unread,
Nov 27, 2015, 12:53:37 PM11/27/15
to QTP - HP Quick Test Professional - Automated Software Testing
Hi All,

I moved to a new project, where there are already scripts available.

but most of the scripts are not referring to object Repository, these objects are created as Descriptive objects (Description.Create) and placed in a Function library.

surprisingly this Fun lib is associated to the script and all the objects from fun lib are getting referred in script.

is it possible?

Please let me know.

When I try the same logic with new script and new Fun lib, its not working

Thanks,
L V Prasad. K


Nishant Pawar

unread,
Dec 7, 2015, 11:37:14 PM12/7/15
to QTP - HP Quick Test Professional - Automated Software Testing
Hi,

The behavior which you mentioned is absolutely fine.
You can access the object through object repository/Descriptive Programming.

When you are trying the same please make sure that you are associating the Library to the suite.
Please let me know what problem you are facing.

Thanks,
Nishant

Prasad.L.V

unread,
Dec 8, 2015, 1:22:44 AM12/8/15
to QTP - HP Quick Test Professional - Automated Software Testing
@ Nishant,

Thanks for the reply.

The issue what im facing is.

Created the descriptive objects in Fun lib and referred them in action script by associating the library.

Now when i execute the script, the error says that the descriptive obj variable which i am using is not declared.

it means UFT/QTP expecting the descriptive code to be executed first so that UFT will get hold on reference variable then my action script will work fine.

but in my project(which I said, scripts are already available) the action script is getting executed successfully without executing the descriptive code.

wondering how is this possible.

Thanks,
L V Prasad. K

--
--
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/d/optout.

Reply all
Reply to author
Forward
0 new messages