Micro Focus QTP (UFT) Forums
Issue during call to the copy of action - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Issue during call to the copy of action (/Thread-Issue-during-call-to-the-copy-of-action)



Issue during call to the copy of action - Shama Ahsan - 04-13-2011

Hi Basanth,
My login script is working properly
when i tried through it as
New->Insert->Copy to call of action->i added my login script in tht pop up...
code is as follows


Code:
''Login
Reporter.ReportEvent micpass, "Login Report", "user has log in successfully"


SwfWindow("Please log in").SwfEdit("intralinksIdBox").Set "shamaqtp@hirasoft.com"
SwfWindow("Please log in").SwfEdit("intralinksIdBox").Type  micTab
SwfWindow("Please log in").SwfEdit("passwordBox").SetSecure "4da55c88784bba11cf5ee6e183d0f3fece3dfcd8a6f7c522bd74f4aaa411"
SwfWindow("Please log in").SwfButton("Log In").Click
SwfWindow("Auto Update - IntraLinks").SwfObject("No").Click 33,18
SwfWindow("IntraLinks Designer").Close

when em running it, its showing error not working, Error you can see in screen shot


RE: Issue during call to the copy of action - Jay - 04-13-2011

Problem with Object Repository.
if you have done call to copy action then all the local objects should get copied but if you are using shared OR then you need to associate OR to this script.



RE: Issue during call to the copy of action - Shama Ahsan - 04-13-2011

thanks jay...
then how to fix it out, i mean how i can add these login stuff in Object repository :-|


RE: Issue during call to the copy of action - Jay - 04-13-2011

First check wheter OR is present.
if its not then export OR from the source action (from where you have copied) and associate with this script .


RE: Issue during call to the copy of action - Shama Ahsan - 04-13-2011

yes, the Object repository is present.
now how to associate this with the script?? please guide in detail...
thanks